Richard Sandiford
a26587bab5
bfd/
...
* elflink.c (_bfd_elf_fix_symbol_flags): Only assert the type
of weakdef->root.type if weakdef has no regular definition.
ld/testsuite/
* ld-elf/weak-dyn-1a.s, ld-elf/weak-dyn-1b.s, ld-elf/weak-dyn-1.ld,
* ld-elf/weak-dyn-1.rd: New test.
* ld-elf/elf.exp: Run it.
2007-07-23 09:56:19 +00:00
Alan Modra
07a5aea53e
daily update
2007-07-23 00:00:06 +00:00
Adam Nemet
0e53d9daab
* elfxx-mips.c (struct mips_elf_link_hash_table): Add new field
...
small_data_overflow_reported.
(_bfd_mips_elf_link_hash_table_create): Initialize it.
(_bfd_mips_elf_relocate_section) <bfd_reloc_overflow>: Report
small-data section overflow.
2007-07-22 16:45:06 +00:00
Alan Modra
9516781d06
daily update
2007-07-22 00:00:05 +00:00
Alan Modra
8dcdf3b7aa
daily update
2007-07-21 00:00:05 +00:00
Alan Modra
dec4bb46b3
daily update
2007-07-20 00:00:07 +00:00
Nick Clifton
6b33789f61
PR binutils/4797
...
* dwarf2.c: (find_line) Do not dereference functionname_ptr if do_line is true.
2007-07-19 16:51:10 +00:00
Alan Modra
b93bc07744
daily update
2007-07-19 00:00:06 +00:00
Bob Wilson
13161072f2
* elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
...
non-ELF sections.
2007-07-18 21:06:06 +00:00
Bob Wilson
e29297b73c
* elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section
...
vma and size for dynamic tags from the output sections.
2007-07-18 18:23:47 +00:00
Alan Modra
a5d1b3b53e
* elf-bfd.h (struct sym_sec_cache): Delete "sec". Add "shndx".
...
* elf.c (bfd_section_from_r_symndx): Don't cache bfd section of
symbol. Instead cache ELF section index. Remove redundant
checks of st_shndx.
2007-07-18 11:23:37 +00:00
Alan Modra
e6b368d89f
daily update
2007-07-18 00:00:05 +00:00
Alan Modra
bd4dd364df
daily update
2007-07-17 00:00:06 +00:00
Alan Modra
cbafdc0d90
daily update
2007-07-16 00:00:06 +00:00
Mike Frysinger
d955dada99
* trad-core.c (NBPG): If not defined, set to getpagesize().
2007-07-15 06:33:34 +00:00
Alan Modra
20ee575b1e
daily update
2007-07-15 00:00:06 +00:00
Alan Modra
c144990811
daily update
2007-07-14 00:00:06 +00:00
Roland McGrath
979dc3bca9
.
2007-07-13 10:44:44 +00:00
Roland McGrath
bfb53a4f5b
2007-07-13 Roland McGrath <roland@redhat.com>
...
* elf-bfd.h (struct elf_obj_tdata): Revert last change.
Add after_write_object_contents, after_write_object_contents_info.
* elf.c (_bfd_elf_write_object_contents): Revert last change.
Instead, call after_write_object_contents if set.
2007-07-13 10:44:12 +00:00
Alan Modra
44139f2d0c
daily update
2007-07-13 00:00:05 +00:00
Nick Clifton
d2df793a71
Add support for building on a 64-bit Windows host.
2007-07-12 07:16:41 +00:00
Alan Modra
2d9d480e3b
daily update
2007-07-12 00:00:06 +00:00
Alan Modra
5aa7ce4b0a
daily update
2007-07-11 00:00:06 +00:00
H.J. Lu
a3a4ddad29
2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
...
* Makefile.in: Regenerated.
2007-07-10 15:03:03 +00:00
H.J. Lu
329b43c490
2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
...
PR binutils/4756
* simple.c (bfd_simple_get_relocated_section_content): Don't
apply relocation on executable and shared library.
2007-07-10 13:49:04 +00:00
Nathan Sidwell
cfd2c77310
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't eliminate
...
copy relocs on vxworks.
2007-07-10 07:42:30 +00:00
Alan Modra
1489a3a0d7
* elf32-arm.c (elf32_arm_size_info): Init checksum_contents field.
...
* elf64-alpha.c (alpha_elf_size_info): Likewise.
* elf64-hppa.c (hppa64_elf_size_info): Likewise.
* elf64-mips.c (mips_elf64_size_info): Likewise.
* elf64-s390.c (s390_elf64_size_info): Likewise.
* elf64-sparc.c (elf64_sparc_size_info): Likewise.
2007-07-10 04:08:12 +00:00
H.J. Lu
00cbee0aa8
2007-07-09 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.c (bfd_elf_record_link_assignment): Handle indirect
symbol.
(_bfd_elf_merge_symbol): Properly update normal symbol when
overriding the versioned symbol from a dynamic library.
2007-07-10 02:40:31 +00:00
Alan Modra
e93cb65d42
daily update
2007-07-10 00:00:05 +00:00
Roland McGrath
fd2f25da9b
.
2007-07-09 21:25:39 +00:00
Roland McGrath
ff59fc360e
2007-07-09 Roland McGrath <roland@redhat.com>
...
* elf-bfd.h (struct elf_obj_tdata): Add members
emit_note_gnu_build_id and note_gnu_build_id_sec.
* elf.c (_bfd_id_note_section_size): New global function.
(read_hex, _bfd_elf_write_build_id_section): New static functions.
(_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section
if emit_note_gnu_build_id is set.
* Makefile.am (elf.lo): Update dependencies.
2007-07-09 21:23:43 +00:00
Roland McGrath
20a761b5e9
2007-07-09 Roland McGrath <roland@redhat.com>
...
* elf-bfd.h (struct elf_obj_tdata): Add members
emit_note_gnu_build_id and note_gnu_build_id_sec.
* elf.c (_bfd_id_note_section_size): New global function.
(read_hex, _bfd_elf_write_build_id_section): New static functions.
(_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section
if emit_note_gnu_build_id is set.
* Makefile.am (elf.lo): Update dependencies.
* elf-bfd.h (struct elf_size_info): Add checksum_contents hook.
(bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare.
* elfcode.h (elf_checksum_contents): New macro and function.
(NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
2007-07-09 21:23:39 +00:00
Roland McGrath
d94838b102
2007-07-09 Roland McGrath <roland@redhat.com>
...
* elf-bfd.h (struct elf_size_info): Add checksum_contents hook.
(bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare.
* elfcode.h (elf_checksum_contents): New macro and function.
(NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
2007-07-09 21:23:37 +00:00
Alan Modra
049c3c6b72
daily update
2007-07-09 00:00:06 +00:00
Alan Modra
5da62ef0e8
daily update
2007-07-08 00:00:06 +00:00
Alan Modra
489cadc25a
daily update
2007-07-07 00:00:06 +00:00
Alan Modra
9af2a943ee
* elflink.c (elf_link_add_object_symbols): Return via
...
error_free_vers on "notice" failure.
2007-07-06 02:29:10 +00:00
Alan Modra
e3bb9257f6
daily update
2007-07-06 00:00:05 +00:00
H.J. Lu
a93221e521
2007-07-04 H.J. Lu <hongjiu.lu@intel.com>
...
* peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target
if arch is unknown.
2007-07-05 02:50:02 +00:00
Alan Modra
004082e09a
daily update
2007-07-05 00:00:06 +00:00
Nick Clifton
b49281938d
* elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly compensate
...
for high bit set in R_MEP_LOW16.
2007-07-04 14:23:22 +00:00
Alan Modra
51afcce0d3
daily update
2007-07-04 00:00:05 +00:00
Joseph Myers
3cfad14c4a
bfd:
...
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Copy type from
input attributes if value has been copied.
ld/testsuite:
* ld-arm/attr-merge-2a.s, ld-arm/attr-merge-2b.s,
ld-arm/attr-merge-2.attr: New.
* ld-arm/arm-elf.exp (armelftests): Add new test.
2007-07-03 15:21:30 +00:00
Nick Clifton
cd123cb70c
Switch sources over to use the GPL version 3
2007-07-03 14:26:43 +00:00
Alan Modra
6e29ef6d28
daily update
2007-07-03 00:00:05 +00:00
Joseph Myers
741d6ea85b
bfd:
...
* elfxx-mips.c (mips_elf_calculate_relocation): Handle
R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64.
* elf64-mips.c (mips_elf64_howto_table_rela): Support
R_MIPS_TLS_DTPREL64.
gas:
* config/tc-mips.c (s_dtprelword, s_dtpreldword,
s_dtprel_internal): New.
(mips_pseudo_table): Add .dtprelword and .dtpreldword.
(md_apply_fix): Handle BFD_RELOC_MIPS_TLS_DTPREL32 and
BFD_RELOC_MIPS_TLS_DTPREL64.
2007-07-02 10:49:42 +00:00
Alan Modra
ae351704e2
Regenerate files.
2007-07-02 07:12:53 +00:00
Alan Modra
3e5484dbb9
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy
...
symsec != NULL tests.
2007-07-02 06:51:57 +00:00
Alan Modra
08a40648e5
PR 4712
...
* elf.c (assign_file_positions_for_load_sections): Adjust lma
by p_vaddr_offset.
2007-07-02 06:47:43 +00:00
Alan Modra
3adf154903
daily update
2007-07-02 00:00:06 +00:00