Alan Modra
3da732519b
daily update
2012-07-03 00:00:04 +00:00
Alan Modra
87e0a731c8
* elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_section
...
"anyway" variant when creating .plt.
(m32c_elf_relax_plt_section): Remove redundant test and unused param.
(m32c_elf_relax_section): Test SEC_LINKER_CREATED before calling
m32c_elf_relax_plt_section.
* elfxx-mips.c (mips_elf_create_got_section): Use make anyway variant
when creating .got and .got.plt.
(_bfd_mips_elf_final_link): Likewise for .rtproc, and use
bfd_get_linker_section.
* sunos.c: Similarly throughout.
2012-07-02 03:02:45 +00:00
Alan Modra
8de28c9ef6
daily update
2012-07-02 00:00:04 +00:00
Andreas Schwab
bc823199d1
* elf.c (_bfd_elf_make_section_from_shdr): Fix typo in error
...
message.
2012-07-01 08:23:13 +00:00
Alan Modra
4a84e058e5
daily update
2012-07-01 00:00:04 +00:00
Alan Modra
9eaa1654f1
daily update
2012-06-30 00:00:05 +00:00
H.J. Lu
a040981f62
Return FALSE on unresolvable relocation
...
* elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE
on unresolvable relocation.
2012-06-29 21:54:44 +00:00
H.J. Lu
d5abbdf3c1
Simplify global symbol handling
...
* archive.c (_bfd_compute_and_write_armap): Simplify global
symbol handling.
2012-06-29 17:36:21 +00:00
Nick Clifton
a8c887ddc5
PR ld/14189
...
* elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount
for locally bound symbols.
2012-06-29 15:20:30 +00:00
Alan Modra
3d4d4302b9
* section.c (bfd_get_linker_section): New function.
...
* elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use
the above throughout rather than bfd_get_section_by_name. Use
bfd_make_section_anyway rather than bfd_make_section when creating
them.
* elf32-bfin.c: Likewise.
* elf32-cr16.c: Likewise.
* elf32-cris.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-lm32.c: Likewise.
* elf32-m32c.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-microblaze.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-rl78.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-tic6x.c: Likewise.
* elf32-tilepro.c: Likewise.
* elf32-vax.c: Likewise.
* elf32-xstormy16.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ia64-vms.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-sparc.c: Likewise.
* elfxx-tilegx.c: Likewise.
* elflink.c: Likewise.
* elf-vxworks.c: Likewise.
* elf-m10300.c: Likewise. Also make use of htab plt, got and
gotplt shortcuts.
* bfd-in2.h: Regenerate.
* elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when
calling create_rofixup_section.
* elflink.c (bfd_elf_final_link): Simplify test for .dynstr.
2012-06-29 14:46:03 +00:00
Alan Modra
66e17d7f53
* elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .rela
...
section for bss type sections, except for .rela.bss.
* elf-m10300.c (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
* elf32-cr16.c (_bfd_cr16_elf_create_dynamic_sections): Likewise.
* elf32-lm32.c (lm32_elf_create_dynamic_sections): Likewise.
* elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
* elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
2012-06-29 07:37:50 +00:00
Alan Modra
bd2e36c1da
daily update
2012-06-29 00:00:05 +00:00
Sean Keys
fe54041627
gas/config/
...
* tc-xgate.h: Defined tc_frob_symbol.
* tc-xgate.c (xgate_frob_symbol): Wrote new function to mark
symbols as being XGATE by setting st_target_internal value.
bfd/
* elf32-xgate.c (elf32_xgate_add_symbol_hook): Added a temp patch
that forces st_target_internal to equal 1, since tc_frob_symbol
seems to need adjusting.
2012-06-28 21:36:35 +00:00
Roland McGrath
6034aab8a1
bfd/
...
* elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for
displacement calculation in nacl_p case.
2012-06-28 16:57:24 +00:00
Nick Clifton
4c6a93d362
* po/vi.po: Updated Vietnamese translation.
...
* po/uk.po: New Ukranian translation.
* configure.in (ALL_LINGUAS): Add uk.
* configure: Regenerate.
2012-06-28 14:36:01 +00:00
Alan Modra
d26281a3fc
daily update
2012-06-28 00:00:04 +00:00
Alan Modra
f7ccda615a
daily update
2012-06-27 00:00:05 +00:00
Alan Modra
a4fd3de5d3
* elf64-ppc.c (ppc64_elf_next_toc_section): Don't error if input
...
file has multiple .got/.toc sections and all don't fit in
current toc group.
2012-06-26 01:40:59 +00:00
Alan Modra
e01efe68d4
daily update
2012-06-26 00:00:05 +00:00
Alan Modra
8eb3f24a99
daily update
2012-06-25 00:00:05 +00:00
Alan Modra
5a0196faca
daily update
2012-06-24 00:00:04 +00:00
Alan Modra
069db2a3fe
daily update
2012-06-23 00:00:04 +00:00
Roland McGrath
62655c7b8b
bfd/
...
* elf.c (assign_file_positions_for_non_load_sections): Define
__ehdr_start symbol if it's referenced and there's a PT_LOAD
segment that covers both the file and program headers.
ld/
* NEWS: Mention __ehdr_start.
ld/testsuite/
* ld-elf/ehdr_start.s: New file.
* ld-elf/ehdr_start.d: New file.
2012-06-22 16:52:33 +00:00
Andreas Schwab
b70e7a2fdf
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make
...
_GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
2012-06-22 09:30:18 +00:00
Alan Modra
27fc25a1a9
* elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-line
...
save/restore functions when relocatable. Make "funcs" static.
2012-06-22 05:53:04 +00:00
Alan Modra
dedde98681
daily update
2012-06-22 00:00:05 +00:00
Alan Modra
e7c706a741
daily update
2012-06-21 00:00:04 +00:00
Alan Modra
bc2dbe6f7c
daily update
2012-06-20 00:00:04 +00:00
Alan Modra
de7a087642
daily update
2012-06-19 00:00:04 +00:00
Hans-Peter Nilsson
51806b9750
* elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presence
...
of merged .got and .got.plt entries.
2012-06-18 06:16:59 +00:00
Alan Modra
466911340d
* elf32-arm.c (elf32_arm_final_link_relocate): Correct return value.
2012-06-18 00:46:28 +00:00
Alan Modra
87e7ada21d
daily update
2012-06-18 00:00:05 +00:00
Hans-Peter Nilsson
26a48bb3a9
* elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>
...
<R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to
thread common symbols.
2012-06-17 07:28:29 +00:00
Alan Modra
e24b8d86fc
daily update
2012-06-17 00:00:05 +00:00
Alan Modra
c4a8824cca
daily update
2012-06-16 00:00:04 +00:00
Alan Modra
a9322fc66a
daily update
2012-06-15 00:00:05 +00:00
Alan Modra
1d1702fcaa
daily update
2012-06-14 00:00:05 +00:00
Nick Clifton
5968a7b800
* elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.
...
(elf32_arm_object_p): If the machine number could not be deduced
from the notes, call bfd_arm_get_mach_from_attributes to get the
number from the attributes.
2012-06-13 10:01:50 +00:00
Alan Modra
a8f7b9da8d
daily update
2012-06-13 00:00:04 +00:00
H.J. Lu
8981c88a1e
Abort if PT_GNU_RELRO segment doesn't fit in PT_LOAD segment
...
bfd/
PR bfd/14207
* elf.c (assign_file_positions_for_non_load_sections): Abort if
PT_GNU_RELRO segment doesn't fit in PT_LOAD segment.
ld/testsuite/
PR ld/14207
* ld-x86-64/x86-64.exp: Run pr14207.
* ld-x86-64/pr14207.d: New file.
* ld-x86-64/pr14207.s: Likewise.
2012-06-12 12:55:11 +00:00
Alan Modra
3832a4d892
PR ld/14207
...
* elf.c (_bfd_elf_map_sections_to_segments): Disregard bss type
sections at end of PT_LOAD segment when searching for segment
that contains end of relro extent.
2012-06-12 06:31:06 +00:00
Alan Modra
1bec2beaab
daily update
2012-06-12 00:00:04 +00:00
H.J. Lu
f3944f7224
Reindent assign_file_positions_for_non_load_sections
...
* elf.c (assign_file_positions_for_non_load_sections): Reindent.
2012-06-11 16:48:35 +00:00
H.J. Lu
be01b34487
Reindent _bfd_elf_map_sections_to_segments
...
* elf.c (_bfd_elf_map_sections_to_segments): Reindent.
2012-06-11 16:44:02 +00:00
Alan Modra
7b9f845ec7
daily update
2012-06-11 00:00:05 +00:00
Alan Modra
a77271fddc
daily update
2012-06-10 00:00:04 +00:00
Alan Modra
036746c412
daily update
2012-06-09 00:00:04 +00:00
Alan Modra
5d9636cc4a
daily update
2012-06-08 00:00:05 +00:00
Alan Modra
08d5d40f93
daily update
2012-06-07 00:00:05 +00:00
Alan Modra
ffbc01ccf0
bfd/
...
* elflink.c (elf_link_input_bfd): Provide a file symbol for
each input file with local syms, if the input lacks such.
(bfd_elf_final_link): Add a file symbol to mark end of locals
for which we can associate with input files.
(struct elf_final_link_info): Add filesym_count field.
(struct elf_outext_info): Add need_second_pass and second_pass.
(elf_link_output_extsym): Detect symbols defined in the output
file, emit them on second pass over locals.
ld/testsuite/
Update to suit added STT_FILE symbols.
2012-06-06 10:50:18 +00:00