Alan Modra
f6e56188cf
daily update
2005-07-11 00:00:06 +00:00
Alan Modra
d573fd07a8
daily update
2005-07-10 00:00:06 +00:00
Alan Modra
da979fa888
daily update
2005-07-09 00:00:06 +00:00
Paul Koning
0af4cd7c60
2005-07-08 Paul Koning <pkoning@equallogic.com>
...
* dwarf2.c (read_address): Check sign_extend_vma to handle targets
where addresses are sign extended.
2005-07-08 21:42:33 +00:00
Nick Clifton
7e4e2059b5
Mark i960-*-rtems*, or32-*-rtems* as obsolete.
...
Mark a29k-*rtems*, hppa*-*-rtems*, *-go32-rtems*, i[3-7]86*-*-rtemscoff*,
mips*el-*-rtems*, powerpcle-*-rtems*, sparc*-*-rtemsaout* as removed
2005-07-08 11:17:16 +00:00
Alan Modra
c456f0829f
* elf-hppa.h (elf_hppa_final_link): Use gp val of zero when none
...
of the usual sections are found.
* elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Tidy.
Strip .dynbss if it is zero size.
* elf32-arm.c (elf32_arm_size_dynamic_sections): Likewise.
* elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
* elf32-i370.c (i370_elf_size_dynamic_sections): Likewise, and
.dynsbss.
(i370_elf_finish_dynamic_sections): Don't attempt to write .got
when it is zero size.
* elf32-i386.c (elf_i386_size_dynamic_sections): Correct handling
of .dynbss and zero size sections.
* elf32-m32r.c (m32r_elf_size_dynamic_sections): Strip .dynbss if
it is zero size.
* elf32-m68k.c (elf_m68k_size_dynamic_sections): Tidy. Strip
.dynbss if zero size.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise, .dynsbss
too.
* elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
* elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
* elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
* elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Tidy. Strip
.plt.* and .got.plt.* if zero size.
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Tidy. Strip
.got* and .dynbss if zero size.
* elf64-hppa.c (elf64_hppa_size_dynamic_sections): Tidy. Strip
* elf64-ppc.c (create_linkage_sections): Create branch lookup table
in .data.rel.ro.brlt or .rodata.brlt, and similarly for associated
reloc section.
(create_got_section): Always create new .got and .rela.got sections.
(ppc64_elf_size_dynamic_sections): Tidy. Strip .dynbss if zero size.
* elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
* elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Handle
dynamic bss sections correctly.
* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Tidy.
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Tidy. Strip
.dynbss if zero size.
2005-07-08 06:20:06 +00:00
Ben Elliston
6c98dd1ecb
* elf32-xtensa.c: Include <stdarg.h> unconditionally, not only
...
when ANSI_PROTOTYPES is defined. Remove #ifdef logic.
2005-07-08 05:44:53 +00:00
H.J. Lu
29ef70053f
2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
...
* elf-bfd.h (elf_backend_data): Add special_sections.
* elf.c (_bfd_elf_get_sec_type_attr): Check special_sections
first.
* elf32-arm.c (elf_backend_get_sec_type_attr): Removed.
(elf_backend_special_sections): New. Defined.
* elf32-m32r.c: Likewise.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-sh64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-mips.h: Likewise.
* elfxx-target.h (elf_backend_special_sections): New.
(elfNN_bed): Initialize special_sections.
2005-07-08 00:26:53 +00:00
Alan Modra
e7de25feb2
daily update
2005-07-08 00:00:07 +00:00
Bob Wilson
074f51093b
* xtensa-modules.c: Update tables with Xtensa MMU features.
2005-07-07 21:50:57 +00:00
Jim Wilson
0fd3a4776c
Kaveh Ghazi's printf format attribute checking patch.
...
bfd:
* elf32-xtensa.c (vsprint_msg): Add format attribute. Fix
format bugs.
* vms.h (_bfd_vms_debug): Add format attribute.
(_bfd_vms_debug, _bfd_hexdump): Fix typos.
binutils:
* bucomm.h (report): Add format attribute.
* dlltool.c (inform): Likewise.
* dllwrap.c (display, inform, warn): Likewise.
* objdump.c (objdump_sprintf): Likewise.
* readelf.c (error, warn): Likewise. Fix format bugs.
gas:
* config/tc-tic30.c (debug): Add format attribute. Fix format
bugs.
include:
* dis-asm.h (fprintf_ftype): Add format attribute.
opcodes:
* arc-dis.c, arm-dis.c, cris-dis.c, crx-dis.c, d10v-dis.c,
d30v-dis.c, fr30-dis.c, h8300-dis.c, h8500-dis.c, i860-dis.c,
ia64-dis.c, ip2k-dis.c, m10200-dis.c, m10300-dis.c,
m88k-dis.c, mcore-dis.c, mips-dis.c, ms1-dis.c, or32-dis.c,
ppc-dis.c, sh64-dis.c, sparc-dis.c, tic4x-dis.c, tic80-dis.c,
v850-dis.c: Fix format bugs.
* ia64-gen.c (fail, warn): Add format attribute.
* or32-opc.c (debug): Likewise.
2005-07-07 19:27:52 +00:00
H.J. Lu
9968d831f9
2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
...
PR 975
* elflink.c (_bfd_elf_symbol_refs_local_p): Only undefined
symbol with default visibility is local.
2005-07-07 17:44:58 +00:00
Ben Elliston
3b1fcf963b
* config.bfd: Mark m68*-*-rtemscoff as obsolete.
2005-07-07 12:12:40 +00:00
Alan Modra
ceea5ff9c5
daily update
2005-07-07 00:00:07 +00:00
H.J. Lu
5cf2e3f01e
2005-07-06 H.J. Lu <hongjiu.lu@intel.com>
...
* dwarf2.c (varinfo): Add addr.
(lookup_symbol_in_variable_table): Also check addr.
(scan_unit_for_symbols): Set addr for variable.
(comp_unit_find_line): Updated.
2005-07-06 13:43:21 +00:00
Nick Clifton
0adc9281f0
coff-alpha.c (alpha_adjust_reloc_in): Issue an informative error message if an
...
unknown reloc is encountered.
(alpha_relocate_section): Likewise.
ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc with a missing
howto field.
2005-07-06 10:35:41 +00:00
Alan Modra
cfbe541f8a
* po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c,
...
elfxx-sparc.c.
2005-07-06 08:18:13 +00:00
Alan Modra
2d296aac7e
daily update
2005-07-06 00:00:06 +00:00
Paul Brook
d5e3d971f0
2005-07-05 Paul Brook <paul@codesourcery.com>
...
* elf32-ppc.c (ppc_elf_vxworks_special_sections): Remove.
(ppc_elf_vxworks_get_sec_type_attr): New function.
(elf_backend_special_sections): Remove vxwords definition.
(elf_backend_get_sec_type_attr): Define for vxworks.
2005-07-05 16:52:48 +00:00
Nick Clifton
3ec2b351bd
Fix compile time warnings from a GCC 4.0 compiler
2005-07-05 15:07:46 +00:00
Paul Brook
9d8504b17f
2005-05-07 Paul Brook <paul@codesourcery.com>
...
bfd/
* config.bfd: Add separate case for ppc-vxworks.
* configure: Regenerate.
* configure.in: Include elf-vxworks.lo on ppc targets.
* elf-vxworks.c (elf_vxworks_final_write_processing): Handle
.rela.plt.unloaded.
* elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h.
(PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove.
(VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry,
ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE,
ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry,
VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS,
VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New.
(ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt,
is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size.
(ppc_elf_link_hash_table_create): Initialize hadtab plt fields.
(ppc_elf_create_got): Create .got.plt for VxWorks.
(ppc_elf_create_dynamic_sections): Create unloaded plt relocation
section for VxWorks.
(ppc_elf_select_plt_layout): Handle VxWorks plt format.
(allocate_got): VxWorks does not need a got header.
(allocate_dynrelocs): Handle VxWorks plt format.
(ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for
VxWorks. Handle VxWorks plt/got.
(ppc_elf_finish_dynamic_sections): Fill in VxWorks plt.
(ppc_elf_vxworks_special_sections): New.
(ppc_elf_vxworks_link_hash_table_create,
ppc_elf_vxworks_add_symbol_hook,
elf_i386_vxworks_link_output_symbol_hook,
ppc_elf_vxworks_final_write_processing): New functions.
* targets.c (bfd_elf32_powerpc_vxworks_vec): Declare.
(_bfd_target_vector): Use it.
gas/
* config/tc-ppc.c (ppc_target_format): Add VxWorks.
gas/testsuite/
* gas/ppc/altivec.d: Match all powerpc target vecs.
* gas/ppc/booke.d: Ditto.
* gas/ppc/e500.d: Ditto.
ld/
* Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
(eelf32ppcvxworks.o): Add dependencies.
* Makefile.in: Regenerate.
* configure.tgt: Add entry for powerpc-vxworks.
* emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
* emulparams/elf32ppcvxworks.sh: New file.
* emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
(is_ppc_elf32_vec): New function.
(ppc_after_open, ppc_before_allocation,
gld${EMULATION_NAME}_after_allocation): Use it.
2005-07-05 13:25:56 +00:00
Jakub Jelinek
9e492e0549
* libbfd-in.h (struct artdata): Add extended_names_size field.
...
* libbfd.h: Rebuilt.
* coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly
allocated object by bfd_zalloc.
* coff64-rs6000.c (xcoff64_archive_p): Likewise.
* ecoff.c (_bfd_ecoff_archive_p): Likewise.
* archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise.
(get_extended_arelt_filename): Fail if index is bigger or equal to
extended_names_size.
(_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive,
get_extended_arelt_filename already did that.
(_bfd_slurp_extended_name_table): Initialize extended_names_size field.
Allocate one extra byte and clear it, in case extended names table
is not terminated.
2005-07-05 09:45:54 +00:00
Jakub Jelinek
d0fb9a8d03
* libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2,
...
bfd_zalloc2): New prototypes.
* bfd-in.h (HALF_BFD_SIZE_TYPE): Define.
* libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions.
* opncls.c (bfd_alloc2, bfd_zalloc2): New functions.
* elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers,
elf_map_symbols, map_sections_to_segments,
assign_file_positions_for_segments, copy_private_bfd_data,
swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2
where appropriate.
* bfd-in2.h: Rebuilt.
* libbfd.h: Rebuilt.
* elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus
verdef or verneed section.
(_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or
verneed sections gracefully.
* elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on
bogus relocation values.
* elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
* elf64-s390.c (elf_s390_info_to_howto): Likewise.
* elf32-s390.c (elf_s390_info_to_howto): Likewise.
* elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise.
* elfxx-ia64.c (lookup_howto): Likewise.
2005-07-05 09:44:20 +00:00
Jakub Jelinek
c6c60d09fd
* elf.c (bfd_elf_get_str_section): Allocate an extra byte after
...
the end of strtab and clear it.
(elf_read): Remove.
2005-07-05 09:38:45 +00:00
Nick Clifton
dcd4b381c7
Add Vietnamese translation.
2005-07-05 09:17:22 +00:00
Nick Clifton
8532796c0c
(elf32_arm_size_dynamic_sections): Fix a typo and touchup logic like i386/ppc.
2005-07-05 09:14:14 +00:00
Alan Modra
b35d266b30
* elf.c (special_sections): Move const qualifier.
...
(special_sections_b..special_sections_t): Likewise.
* elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate
const.
(elf32_arm_symbian_special_sections): Move const qualifier.
* elf32-m32r.c: Similarly.
* elf32-m68hc11.c: Similarly.
* elf32-m68hc12.c: Similarly.
* elf32-mcore.c: Similarly.
* elf32-ppc.c: Similarly.
* elf32-sh64.c: Similarly.
* elf32-v850.c: Similarly.
* elf32-xtensa.c: Similarly.
* elf64-alpha.c: Similarly.
* elf64-hppa.c: Similarly.
* elf64-ppc.c: Similarly.
* elf64-sh64.c: Similarly.
* elfxx-ia64.c: Similarly.
* elfxx-mips.c: Similarly.
2005-07-05 06:23:37 +00:00
Alan Modra
fdaaac6426
daily update
2005-07-05 00:00:06 +00:00
Nick Clifton
80447b21a9
m32r-linux-ld support for position independent executables
2005-07-04 13:54:36 +00:00
Alan Modra
540b09cb7d
PR 1042
...
* elf.c (assign_file_positions_for_segments): Remove excluded
sections from the segment map.
2005-07-04 10:30:09 +00:00
Alan Modra
551b43fde1
PR 1004
...
bfd/
* elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete
special_sections.
(_bfd_elf_get_special_section): Declare.
(bfd_elf_special_section): Update prototype.
* elf.c (special_sections): Remove unused outer entries.
(get_special_section): Delete.
(_bfd_elf_get_special_section): New function.
(_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update
special_sections indexing.
(_bfd_elf_new_section_hook): Call backend get_sec_type_attr.
* elf32-arm.c (symbian_special_sections_d): Delete.
(symbian_special_sections_g, symbian_special_sections_h): Delete.
(symbian_special_sections_i, symbian_special_sections_f): Delete.
(symbian_special_sections_p): Delete.
(elf32_arm_symbian_special_sections): Merge above to here.
(elf32_arm_symbian_get_sec_type_attr): New function.
(elf_backend_special_sections): Don't define.
(elf_backend_get_sec_type_attr): Define.
* elf32-m32r.c: Similarly to elf32-arm.c.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-sh64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elf32-ppc.c: Likewise.
(bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable.
* elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare.
(_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete.
(elf_backend_get_sec_type_attr): Define.
* elfxx-target.h (elf_backend_get_sec_type_attr): Define.
(elf_backend_special_sections): Don't define.
(elfNN_bed): Update.
binutils/
* objcopy.c (copy_object): Use bfd_make_section_with_flags.
(write_debugging_info): Likewise.
(setup_section): Use bfd_make_section_anyway_with_flags.
gas/
* config/obj-elf.c (obj_elf_change_section): Use backend
get_sec_type_attr.
2005-07-04 01:53:44 +00:00
Alan Modra
f1cdfe1fce
daily update
2005-07-04 00:00:04 +00:00
Alan Modra
7878a86d51
daily update
2005-07-03 00:00:06 +00:00
Alan Modra
5ce4677562
daily update
2005-07-02 00:00:07 +00:00
Nick Clifton
47b0e7ad8c
Update function declarations to ISO C90 formatting
2005-07-01 11:16:33 +00:00
Alan Modra
85d162e6db
* elf64-alpha.c (elf64_alpha_create_got_section): Always create
...
a new .got section.
(elf64_alpha_create_dynamic_sections): Always make new sections
by using bfd_make_section_anyway_with_flags. Check that .got not
already created.
(elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj
instead.
2005-07-01 04:46:08 +00:00
Alan Modra
ecff417636
daily update
2005-07-01 00:00:06 +00:00
Alan Modra
b116d4a7eb
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
...
_SDA_BASE_ and _SDA2_BASE_ symbols.
* elflink.c (_bfd_elf_provide_symbol): Correct comment. Define
sym if not def_regular.
(_bfd_elf_provide_section_bound_symbols): Similarly.
2005-06-30 08:11:15 +00:00
Alan Modra
f8c1e89329
daily update
2005-06-30 00:00:07 +00:00
Ben Elliston
7f41b278fe
* config.bfd: Mark as obsolete:
...
m68*-apollo-*
m68*-apple-aux*
m68*-bull-sysv*
2005-06-29 21:22:13 +00:00
Alan Modra
39c2f51bd9
* elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
...
.eh_frame specially..
(bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
Don't recheck sections we have already marked.
(elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
* section.c (struct bfd_section): Add gc_mark_from_eh.
(STD_SECTION): Adjust.
* ecoff.c (bfd_debug_section): Adjust.
* bfd-in2.h: Regenerate.
2005-06-29 14:05:21 +00:00
Alan Modra
e8aaee2ad4
* elflink.c (elf_gc_sweep): Do not refcount on sections that have
...
not been processed by check_relocs.
2005-06-29 13:56:06 +00:00
Paul Brook
3b2175db9a
2005-06-29 Paul Brook <paul@codesourcery.com>
...
* bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
* bfd-in2.h: Regenerate.
* elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
relative.
* elflink.c (bfd_elf_set_symbol): Add section argument.
(_bfd_elf_provide_symbol): Ditto.
(_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
2005-06-29 13:16:44 +00:00
Alan Modra
28133f4968
daily update
2005-06-29 00:00:08 +00:00
Alan Modra
b119384778
daily update
2005-06-28 00:00:06 +00:00
Dave Anglin
a63e02c7f8
* bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
...
Use bh_root, and hh.
(struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache.
(struct elf32_hppa_dyn_reloc_entry): Use hdh_next.
(struct elf32_hppa_link_hash_table): Use etab and bstab.
(stub_hash_newfunc): Use hh.
(hppa_link_hash_newfunc): Use hsh_cache.
(elf32_hppa_link_hash_table_create): Use etab, and bstab.
(elf32_hppa_link_hash_table_free): Use bstab.
(hppa_stub_name): Use eh.
(hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache.
(hppa_add_stub): Use bstab.
(hppa_type_of_stub): Use eh.
(hppa_build_one_stub): Use hh and bh_root.
(elf32_hppa_copy_indirect_symbol): Use hdh_next.
(elf32_hppa_check_relocs): Use eh, etab, and hdh_next.
(elf32_hppa_gc_sweep_hook): Use hdh_next.
(elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab.
(allocate_plt_static): Use etab.
(allocate_dynrelocs): Use etab, and hdh_next.
(readonly_dynrelocs): Use hdh_next.
(elf32_hppa_size_dynamic_sections): Use etab, and hdh_next.
(get_local_syms): Use eh, bstab, and hh.
(elf32_hppa_size_stubs): Use eh, bstab, and hh.
(elf32_hppa_set_gp): Use etab.
(elf32_hppa_build_stubs): Use bstab.
(final_link_relocate): Use eh, bh_root.
(elf32_hppa_relocate_section): Use elf, etab.
(elf32_hppa_finish_dynamic_sections): Use etab.
2005-06-27 23:43:43 +00:00
H.J. Lu
5f1cb35385
2005-06-27 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
the extra `;'.
2005-06-27 21:08:10 +00:00
Alan Modra
55b494d39b
daily update
2005-06-27 00:00:06 +00:00
Alan Modra
7048393c8d
daily update
2005-06-26 00:00:06 +00:00
Alan Modra
9139537c21
daily update
2005-06-25 00:00:06 +00:00