Alan Modra
37ba9f93b2
* Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
...
* Makefile.in: Regenerate.
2013-02-05 13:57:49 +00:00
Alan Modra
80d79f653c
daily update
2013-02-04 23:00:04 +00:00
Sergio Durigan Junior
70a38d42c5
2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
...
Pedro Alves <palves@redhat.com>
* Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
* elf-bfd.h (elf_internal_linux_prpsinfo): New structure
declaration.
(elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
(elfcore_write_ppc32_linux_prpsinfo32): New declarations.
* elf-linux-psinfo.h: New file.
* elf.c: Include elf-linux-psinfo.h.
(elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
New functions.
* elf32-ppc.c: Include `elf-linux-psinfo.h'.
(elf_external_ppc_linux_prpsinfo32): New structure declaration.
(PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
(elfcore_write_ppc_linux_prpsinfo32): New function.
2013-02-04 18:26:34 +00:00
Tristan Gingold
5ee43bc47a
2013-02-04 Tristan Gingold <gingold@adacore.com>
...
* mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
start address.
2013-02-04 14:48:20 +00:00
Alan Modra
0cadb185c7
* Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
...
(BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
* Makefile.in: Regenerate.
* po/SRC-POTFILES.in: Regenerate.
2013-02-04 06:02:10 +00:00
Alan Modra
5d42dfb5b9
include/coff/
...
* ti.h (SWAP_OUT_RELOC_EXTRA): Define.
bfd/
* coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
* coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
2013-02-04 05:25:41 +00:00
Alan Modra
4d9d2f16a6
correct pr reference
2013-02-04 05:10:44 +00:00
Alan Modra
c254914192
daily update
2013-02-03 23:00:07 +00:00
Alan Modra
5a3c4024f8
daily update
2013-02-02 23:00:05 +00:00
Alan Modra
df68024921
daily update
2013-02-01 23:00:06 +00:00
Alan Modra
c57da1a761
* elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
...
clears def_regular.
2013-02-01 11:06:37 +00:00
Alan Modra
c556a362b6
daily update
2013-01-31 23:00:04 +00:00
Tristan Gingold
c0fd7846dc
2013-01-31 Tristan Gingold <gingold@adacore.com>
...
* mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
earlier. Fix status checking of bfd_mach_o_scan_start_address.
(bfd_mach_o_scan_start_address): Handle LC_MAIN.
2013-01-31 09:55:41 +00:00
Alan Modra
b45b6908c1
PR ld/15056
...
* elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
references to __tls_get_addr.
* elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
vtinherit and vtentry reloc handling too.
* elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
2013-01-31 07:32:45 +00:00
Alan Modra
bcaa2f8235
bfd/
...
* elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
ld/testsuite/
* ld-powerpc/tlsexe.d: Update for changed stub names.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.d: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstocso.d: Likewise.
* ld-powerpc/tlstocso.r: Likewise.
2013-01-31 06:28:48 +00:00
Alan Modra
bfe8a16067
daily update
2013-01-30 23:00:04 +00:00
Alan Modra
22aa0c7ed3
* elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
2013-01-30 22:31:31 +00:00
Alan Modra
92ff23a1bf
revert last commit
2013-01-30 10:07:26 +00:00
Alan Modra
ca3e555cca
daily update
2013-01-29 23:00:05 +00:00
DJ Delorie
392ca75208
* config/tc-rl78.c (rl78_cons_fix_new): Handle user-specified
...
relocs in .word/.etc statements.
2013-01-29 22:17:53 +00:00
Alan Modra
4a1af94739
daily update
2013-01-28 23:00:05 +00:00
Alan Modra
bc30df1657
* elf64-ppc.c: Use %T to print symbols names and remove redundant
...
"relocation" in error messages throughout file.
(ppc64_elf_relocate_section): Remove sibling call error message,
replace with "call lacks nop". Specially report errors for
branches to function entry points via OPD lookup and branches
to stubs. Remove NULL symbol handling now done by %T.
2013-01-28 12:30:17 +00:00
Alan Modra
89d7b8aa6b
* archive.c (bfd_generic_archive_p): Return target and keep
...
ardata on partial matches.
* format.c (bfd_check_format_matches): Adjust for above
change. Remove bfd_error_file_ambiguously_recognized dead
code.
2013-01-28 07:58:16 +00:00
Alan Modra
b30c8b939b
daily update
2013-01-27 23:00:05 +00:00
Mike Frysinger
36af392657
mention fixed bug in ChangeLog
2013-01-27 16:58:44 +00:00
Alan Modra
df686045e0
daily update
2013-01-26 23:00:06 +00:00
Alan Modra
c9ba0c87bf
* bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
...
bfd_preserve_finish): Move to..
* format.c: ..here, splitting out..
(bfd_reinit): ..this. New function.
(bfd_check_format_matches): Use bfd_preserve_save/restore to
keep bfd state for a match.
* elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
* elfcore.h (elf_core_file_p): Likewise.
* mach-o.c (bfd_mach_o_header_p): Likewise.
* pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
* xsym.c (bfd_sym_object_p): Likewise.
* mmo.c (mmo_scan): Clear abfd->symcount.
* opncls.c (_bfd_new_bfd): Use a smaller section hash table.
* section.c (bfd_section_list_clear): Clear section_htab.count.
* bfd-in2.h: Regenerate.
2013-01-26 02:08:01 +00:00
Alan Modra
05c7f19361
daily update
2013-01-25 23:00:05 +00:00
Nick Clifton
d79dcc73ac
* elf32-h8300.c (elf32_h8_relax_section): When checking for a
...
second reloc, make sure that the reloc potentially exists first.
2013-01-25 14:22:10 +00:00
Alan Modra
3623d4240a
daily update
2013-01-24 23:00:04 +00:00
Nick Clifton
78c8d46ca4
Add support for V850E3V5 architecture
2013-01-24 11:14:05 +00:00
Alan Modra
df5263dc7b
daily update
2013-01-23 23:00:08 +00:00
Nick Clifton
1a18f0aeb1
* elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
2013-01-23 12:41:32 +00:00
Alan Modra
f65a9e5395
* config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
2013-01-23 10:29:42 +00:00
Alan Modra
e4d8164c7a
daily update
2013-01-22 23:00:05 +00:00
Alan Modra
03d72d1e9b
daily update
2013-01-21 23:00:04 +00:00
Alan Modra
c16b7819b1
daily update
2013-01-20 23:00:07 +00:00
Alan Modra
73c75e1838
daily update
2013-01-19 23:00:04 +00:00
Alan Modra
8c9ae9d3f7
daily update
2013-01-18 23:00:05 +00:00
H.J. Lu
3bea1fcb8b
Resolve size relocation against non-zero TLS symbol
...
bfd/
* elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
non-zero TLS symbol.
(elf_i386_relocate_section): Resolve size relocation against
non-zero TLS symbol.
* elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
for non-zero TLS symbol.
(elf_x86_64_relocate_section): Resolve size relocation against
non-zero TLS symbol.
ld/testsuite/
* ld-size/size-10.rd: Updated.
* ld-size/size-8.rd: Likewise.
* ld-size/size32-2-i386.d: Likewise.
* ld-size/size32-2-x32.d: Likewise.
* ld-size/size32-2-x86-64.d: Likewise.
* ld-size/size64-2-x32.d: Likewise.
* ld-size/size64-2-x86-64.d: Likewise.
2013-01-18 22:50:30 +00:00
Mike Frysinger
b1b00fcc61
ld: change --enable-new-dtags to only generate new dtags
...
The "new" dtags options have been around for 14+ years, so there
shouldn't be a need to generate both new & old tags anymore.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-01-18 17:43:58 +00:00
H.J. Lu
06a6a421f2
Count size relocation as PC-relative relocation
...
bfd/
* elf32-i386.c (elf_i386_check_relocs): Count size relocation as
PC-relative relocation.
* elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
as PC-relative relocation.
ld/testsuite/
* ld-size/size32-3-i386.d: New file.
* ld-size/size32-3-x32.d: Likewise.
* ld-size/size32-3-x86-64.d: Likewise.
* ld-size/size32-3.s: Likewise.
2013-01-17 23:36:10 +00:00
Alan Modra
deef9214a4
daily update
2013-01-17 23:00:06 +00:00
Alan Modra
79f41398d3
daily update
2013-01-16 23:00:04 +00:00
H.J. Lu
6a3e1baeae
Update x86 size relocation check
...
* elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
check.
(elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
* elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
and R_X86_64_SIZE64 check.
(elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
nor R_X86_64_SIZE64.
2013-01-16 22:41:03 +00:00
H.J. Lu
1788fc08f7
Add x86 size relocation support to bfd
...
* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.
* elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
(elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
(elf_i386_check_relocs): Handle R_386_SIZE32.
(elf_i386_gc_sweep_hook): Likewise.
(elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
and R_X86_64_SIZE64 entries.
(x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
(elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
(elf_x86_64_reloc_name_lookup): Likewise.
(elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
R_X86_64_SIZE64.
(elf_x86_64_gc_sweep_hook): Likewise.
(elf_x86_64_relocate_section): Likewise.
* reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
BFD_RELOC_SIZE64.
2013-01-16 21:34:46 +00:00
Alan Modra
0a19f5610e
daily update
2013-01-15 23:00:04 +00:00
H.J. Lu
1e53645179
Define R_X86_64_standard with R_X86_64_RELATIVE64
...
* elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
with R_X86_64_RELATIVE64.
2013-01-15 17:30:49 +00:00
Nick Clifton
77bf820f91
Fix spelling typo.
2013-01-15 08:35:39 +00:00
Alan Modra
e245874365
bfd/
...
* elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
plt-thread-safe.
gold/
* powerpc.cc (Target_powerpc::do_relax): Default shared libs to
plt-thread-safe.
ld/testsuite/
* ld-powerpc/tlsso.d: Adjust for plt-thread-safe stubs.
* ld-powerpc/tlsso.g: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstocso.d: Likewise.
* ld-powerpc/tlstocso.g: Likewise.
2013-01-15 06:13:26 +00:00