1 |
148 |
khays |
2011-06-13 Nick Clifton
|
2 |
|
|
|
3 |
|
|
* elf32-tilepro.c (tilepro_elf_check_relocs): Delete unused local
|
4 |
|
|
variable 'local_got_offsets'.
|
5 |
|
|
* elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
|
6 |
|
|
(tilegx_finish_dyn): Delete unused local variable 'abi_64_p'.
|
7 |
|
|
|
8 |
|
|
2011-06-13 Walter Lee
|
9 |
|
|
|
10 |
|
|
* Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo.
|
11 |
|
|
(ALL_MACHINE_CFILES): Add cpu-tilegx.c and cpu-tilepro.c.
|
12 |
|
|
(BFD32_BACKENDS): Add elf32-tilegx.lo, elf32-tilepro.lo,
|
13 |
|
|
and elfxx-tilegx.lo.
|
14 |
|
|
(BFD32_BACKENDS_CFILES): Add elf32-tilegx.c elf32-tilepro.c, and
|
15 |
|
|
elfxx-tilegx.c.
|
16 |
|
|
(BFD64_BACKENDS): Add elf64-tilegx.lo.
|
17 |
|
|
(BFD64_BACKENDS_CFILES): Add elf64-tilegx.c.
|
18 |
|
|
* Makefile.in: Regenerate.
|
19 |
|
|
* arctures.c (bfd_architecture): Define bfd_arch_tilepro,
|
20 |
|
|
bfd_arch_tilegx, bfd_mach_tilepro, bfd_mach_tilegx.
|
21 |
|
|
(bfd_arch_info): Add bfd_tilegx_arch, bfd_tilepro_arch.
|
22 |
|
|
(bfd_archures_list): Add bfd_tilegx_arch, bfd_tilepro_arch.
|
23 |
|
|
bfd-in2.h: Regenerate.
|
24 |
|
|
* config.bfd: Handle tilegx-*-* and tilepro-*-*.
|
25 |
|
|
* configure.in: Handle bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
|
26 |
|
|
and bfd_elf64_tilegx_vec.
|
27 |
|
|
* configure: Regenerate.
|
28 |
|
|
* elf-bfd.h (enum elf_target_id): Define TILEGX_ELF_DATA and
|
29 |
|
|
TILEPRO_ELF_DATA.
|
30 |
|
|
* libbfd.h: Regenerate.
|
31 |
|
|
* reloc.c: Add BFD_RELOC_TILEPRO_{COPY, GLOB_DAT, JMP_SLOT,
|
32 |
|
|
RELATIVE, BROFF_X1, JOFFLONG_X1, JOFFLONG_X1_PLT, IMM8_X0,
|
33 |
|
|
IMM8_Y0, IMM8_X1, IMM8_Y1, DEST_IMM8_X1, MT_IMM15_X1, MF_IMM15_X1,
|
34 |
|
|
IMM16_X0, IMM16_X1, IMM16_X0_LO, IMM16_X1_LO, IMM16_X0_HI,
|
35 |
|
|
IMM16_X1_HI, IMM16_X0_HA, IMM16_X1_HA, IMM16_X0_PCREL,
|
36 |
|
|
IMM16_X1_PCREL, IMM16_X0_LO_PCREL, IMM16_X1_LO_PCREL,
|
37 |
|
|
IMM16_X0_HI_PCREL, IMM16_X1_HI_PCREL, IMM16_X0_HA_PCREL,
|
38 |
|
|
IMM16_X1_HA_PCREL, IMM16_X0_GOT, IMM16_X1_GOT, IMM16_X0_GOT_LO,
|
39 |
|
|
IMM16_X1_GOT_LO, IMM16_X0_GOT_HI, IMM16_X1_GOT_HI,
|
40 |
|
|
IMM16_X0_GOT_HA, IMM16_X1_GOT_HA, MMSTART_X0, MMEND_X0,
|
41 |
|
|
MMSTART_X1, MMEND_X1, SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1,
|
42 |
|
|
IMM16_X0_TLS_GD, IMM16_X1_TLS_GD, IMM16_X0_TLS_GD_LO,
|
43 |
|
|
IMM16_X1_TLS_GD_LO, IMM16_X0_TLS_GD_HI, IMM16_X1_TLS_GD_HI,
|
44 |
|
|
IMM16_X0_TLS_GD_HA, IMM16_X1_TLS_GD_HA, IMM16_X0_TLS_IE,
|
45 |
|
|
IMM16_X1_TLS_IE, IMM16_X0_TLS_IE_LO, IMM16_X1_TLS_IE_LO,
|
46 |
|
|
IMM16_X0_TLS_IE_HI, IMM16_X1_TLS_IE_HI, IMM16_X0_TLS_IE_HA,
|
47 |
|
|
IMM16_X1_TLS_IE_HA, TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
|
48 |
|
|
Add BFD_RELOC_TILEGX_{HW0, HW1, HW2, HW3, HW0_LAST, HW1_LAST,
|
49 |
|
|
HW2_LAST, COPY, GLOB_DAT, JMP_SLOT, RELATIVE, BROFF_X1,
|
50 |
|
|
JUMPOFF_X1, JUMPOFF_X1_PLT, IMM8_X0, IMM8_Y0, IMM8_X1, IMM8_Y1,
|
51 |
|
|
DEST_IMM8_X1, MT_IMM14_X1, MF_IMM14_X1, MMSTART_X0, MMEND_X0,
|
52 |
|
|
SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1, IMM16_X0_HW0,
|
53 |
|
|
IMM16_X1_HW0, IMM16_X0_HW1, IMM16_X1_HW1, IMM16_X0_HW2,
|
54 |
|
|
IMM16_X1_HW2, IMM16_X0_HW3, IMM16_X1_HW3, IMM16_X0_HW0_LAST,
|
55 |
|
|
IMM16_X1_HW0_LAST, IMM16_X0_HW1_LAST, IMM16_X1_HW1_LAST,
|
56 |
|
|
IMM16_X0_HW2_LAST, IMM16_X1_HW2_LAST, IMM16_X0_HW0_PCREL,
|
57 |
|
|
IMM16_X1_HW0_PCREL, IMM16_X0_HW1_PCREL, IMM16_X1_HW1_PCREL,
|
58 |
|
|
IMM16_X0_HW2_PCREL, IMM16_X1_HW2_PCREL, IMM16_X0_HW3_PCREL,
|
59 |
|
|
IMM16_X1_HW3_PCREL, IMM16_X0_HW0_LAST_PCREL,
|
60 |
|
|
IMM16_X1_HW0_LAST_PCREL, IMM16_X0_HW1_LAST_PCREL,
|
61 |
|
|
IMM16_X1_HW1_LAST_PCREL, IMM16_X0_HW2_LAST_PCREL,
|
62 |
|
|
IMM16_X1_HW2_LAST_PCREL, IMM16_X0_HW0_GOT, IMM16_X1_HW0_GOT,
|
63 |
|
|
IMM16_X0_HW1_GOT, IMM16_X1_HW1_GOT, IMM16_X0_HW2_GOT,
|
64 |
|
|
IMM16_X1_HW2_GOT, IMM16_X0_HW3_GOT, IMM16_X1_HW3_GOT,
|
65 |
|
|
IMM16_X0_HW0_LAST_GOT, IMM16_X1_HW0_LAST_GOT,
|
66 |
|
|
IMM16_X0_HW1_LAST_GOT, IMM16_X1_HW1_LAST_GOT,
|
67 |
|
|
IMM16_X0_HW2_LAST_GOT, IMM16_X1_HW2_LAST_GOT, IMM16_X0_HW0_TLS_GD,
|
68 |
|
|
IMM16_X1_HW0_TLS_GD, IMM16_X0_HW1_TLS_GD, IMM16_X1_HW1_TLS_GD,
|
69 |
|
|
IMM16_X0_HW2_TLS_GD, IMM16_X1_HW2_TLS_GD, IMM16_X0_HW3_TLS_GD,
|
70 |
|
|
IMM16_X1_HW3_TLS_GD, IMM16_X0_HW0_LAST_TLS_GD,
|
71 |
|
|
IMM16_X1_HW0_LAST_TLS_GD, IMM16_X0_HW1_LAST_TLS_GD,
|
72 |
|
|
IMM16_X1_HW1_LAST_TLS_GD, IMM16_X0_HW2_LAST_TLS_GD,
|
73 |
|
|
IMM16_X1_HW2_LAST_TLS_GD, IMM16_X0_HW0_TLS_IE,
|
74 |
|
|
IMM16_X1_HW0_TLS_IE, IMM16_X0_HW1_TLS_IE, IMM16_X1_HW1_TLS_IE,
|
75 |
|
|
IMM16_X0_HW2_TLS_IE, IMM16_X1_HW2_TLS_IE, IMM16_X0_HW3_TLS_IE,
|
76 |
|
|
IMM16_X1_HW3_TLS_IE, IMM16_X0_HW0_LAST_TLS_IE,
|
77 |
|
|
IMM16_X1_HW0_LAST_TLS_IE, IMM16_X0_HW1_LAST_TLS_IE,
|
78 |
|
|
IMM16_X1_HW1_LAST_TLS_IE, IMM16_X0_HW2_LAST_TLS_IE,
|
79 |
|
|
IMM16_X1_HW2_LAST_TLS_IE, TLS_DTPMOD64, TLS_DTPOFF64, TLS_TPOFF64,
|
80 |
|
|
TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
|
81 |
|
|
* targets.c (bfd_elf32_tilegx_vec): Declare.
|
82 |
|
|
(bfd_elf32_tilepro_vec): Declare.
|
83 |
|
|
(bfd_elf64_tilegx_vec): Declare.
|
84 |
|
|
(bfd_target_vector): Add bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
|
85 |
|
|
and bfd_elf64_tilegx_vec.
|
86 |
|
|
* cpu-tilegx.c: New file.
|
87 |
|
|
* cpu-tilepro.c: New file.
|
88 |
|
|
* elf32-tilepro.h: New file.
|
89 |
|
|
* elf32-tilepro.c: New file.
|
90 |
|
|
* elf32-tilegx.c: New file.
|
91 |
|
|
* elf32-tilegx.h: New file.
|
92 |
|
|
* elf64-tilegx.c: New file.
|
93 |
|
|
* elf64-tilegx.h: New file.
|
94 |
|
|
* elfxx-tilegx.c: New file.
|
95 |
|
|
* elfxx-tilegx.h: New file.
|
96 |
|
|
|
97 |
|
|
2011-06-13 Alan Modra
|
98 |
|
|
|
99 |
|
|
* linker.c (bfd_link_hash_traverse): Follow warning symbol link.
|
100 |
|
|
(_bfd_generic_link_write_global_symbol, fix_syms): Don't handle
|
101 |
|
|
warning symbols here.
|
102 |
|
|
* elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
|
103 |
|
|
* elf32-arm.c (allocate_dynrelocs_for_symbol,
|
104 |
|
|
elf32_arm_readonly_dynrelocs): Likewise.
|
105 |
|
|
* elf32-bfin.c (bfin_discard_copies): Likewise.
|
106 |
|
|
* elf32-cris.c (elf_cris_adjust_gotplt_to_got,
|
107 |
|
|
elf_cris_discard_excess_dso_dynamics,
|
108 |
|
|
elf_cris_discard_excess_program_dynamics): Likewise.
|
109 |
|
|
* elf32-hppa.c (allocate_plt_static, allocate_dynrelocs,
|
110 |
|
|
clobber_millicode_symbols, readonly_dynrelocs): Likewise.
|
111 |
|
|
* elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
|
112 |
|
|
* elf32-i386.c (elf_i386_allocate_dynrelocs,
|
113 |
|
|
elf_i386_readonly_dynrelocs): Likewise.
|
114 |
|
|
* elf32-lm32.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
|
115 |
|
|
* elf32-m32c.c (m32c_relax_plt_check, m32c_relax_plt_realloc): Likewise.
|
116 |
|
|
* elf32-m32r.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
|
117 |
|
|
* elf32-m68k.c (elf_m68k_discard_copies): Likewise.
|
118 |
|
|
* elf32-microblaze.c (allocate_dynrelocs): Likewise.
|
119 |
|
|
* elf32-ppc.c (allocate_dynrelocs, maybe_set_textrel): Likewise.
|
120 |
|
|
* elf32-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
|
121 |
|
|
* elf32-score.c (score_elf_sort_hash_table_f): Likewise.
|
122 |
|
|
* elf32-score7.c (score_elf_sort_hash_table_f): Likewise.
|
123 |
|
|
* elf32-sh.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
|
124 |
|
|
* elf32-tic6x.c (elf32_tic6x_allocate_dynrelocs,
|
125 |
|
|
elf32_tic6x_readonly_dynrelocs): Likewise.
|
126 |
|
|
* elf32-vax.c (elf_vax_discard_copies): Likewise.
|
127 |
|
|
* elf32-xstormy16.c (xstormy16_relax_plt_check,
|
128 |
|
|
xstormy16_relax_plt_realloc): Likewise.
|
129 |
|
|
* elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Likewise.
|
130 |
|
|
* elf64-alpha.c (elf64_alpha_output_extsym,
|
131 |
|
|
elf64_alpha_calc_got_offsets_for_symbol,
|
132 |
|
|
elf64_alpha_calc_dynrel_sizes, elf64_alpha_size_rela_got_1): Likewise.
|
133 |
|
|
* elf64-hppa.c (elf64_hppa_mark_exported_functions,
|
134 |
|
|
allocate_global_data_opd, elf64_hppa_mark_milli_and_exported_functions,
|
135 |
|
|
elf_hppa_unmark_useless_dynamic_symbols,
|
136 |
|
|
elf_hppa_remark_useless_dynamic_symbols): Likewise.
|
137 |
|
|
* elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref, func_desc_adjust,
|
138 |
|
|
adjust_opd_syms, adjust_toc_syms, allocate_dynrelocs,
|
139 |
|
|
readonly_dynrelocs, merge_global_got, reallocate_got,
|
140 |
|
|
undo_symbol_twiddle): Likewise.
|
141 |
|
|
* elf64-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
|
142 |
|
|
* elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
|
143 |
|
|
* elf64-x86-64.c (elf_x86_64_allocate_dynrelocs,
|
144 |
|
|
elf_x86_64_readonly_dynrelocs): Likewise.
|
145 |
|
|
* elflink.c (elf_link_renumber_hash_table_dynsyms,
|
146 |
|
|
elf_link_renumber_local_hash_table_dynsyms, _bfd_elf_export_symbol,
|
147 |
|
|
_bfd_elf_link_find_version_dependencies,
|
148 |
|
|
_bfd_elf_link_assign_sym_version, _bfd_elf_adjust_dynamic_symbol,
|
149 |
|
|
_bfd_elf_link_sec_merge_syms, elf_adjust_dynstr_offsets,
|
150 |
|
|
elf_collect_hash_codes, elf_collect_gnu_hash_codes,
|
151 |
|
|
elf_renumber_gnu_hash_syms, elf_gc_sweep_symbol,
|
152 |
|
|
elf_gc_propagate_vtable_entries_used,
|
153 |
|
|
elf_gc_smash_unused_vtentry_relocs, bfd_elf_gc_mark_dynamic_ref_symbol,
|
154 |
|
|
elf_gc_allocate_got_offsets): Likewise.
|
155 |
|
|
* elfnn-ia64.c (elfNN_ia64_global_dyn_info_free,
|
156 |
|
|
elfNN_ia64_global_dyn_sym_thunk): Likewise.
|
157 |
|
|
* elfxx-mips.c (mips_elf_check_symbols, mips_elf_output_extsym,
|
158 |
|
|
mips_elf_sort_hash_table_f, allocate_dynrelocs): Likewise.
|
159 |
|
|
* elfxx-sparc.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
|
160 |
|
|
* i386linux.c (linux_tally_symbols): Likewise.
|
161 |
|
|
* m68klinux.c (linux_tally_symbols): Likewise.
|
162 |
|
|
* sparclinux.c (linux_tally_symbols): Likewise.
|
163 |
|
|
* sunos.c (sunos_scan_dynamic_symbol): Likewise.
|
164 |
|
|
* xcofflink.c (xcoff_post_gc_symbol): Likewise.
|
165 |
|
|
|
166 |
|
|
* elflink.c (elf_link_output_extsym): Make it a bfd_hash_traverse
|
167 |
|
|
function. Update all callers.
|
168 |
|
|
* aoutx.h (aout_link_write_other_symbol): Likewise.
|
169 |
|
|
* pdp11.c (aout_link_write_other_symbol): Likewise.
|
170 |
|
|
* cofflink.c (_bfd_coff_write_global_sym): Likewise.
|
171 |
|
|
* ecoff.c (ecoff_link_write_external): Likewise.
|
172 |
|
|
* xcofflink.c (xcoff_write_global_symbol): Likewise.
|
173 |
|
|
* vms-alpha.c (alpha_vms_link_output_symbol): Likewise. Handle
|
174 |
|
|
warning symbols.
|
175 |
|
|
* ecoff.c (ecoff_link_hash_traverse): Delete.
|
176 |
|
|
* coff-ppc.c (ppc_bfd_coff_final_link): Use bfd_hash_traverse for
|
177 |
|
|
_bfd_coff_write_global_sym.
|
178 |
|
|
* libcoff-in.h (_bfd_coff_write_global_sym): Update prototype.
|
179 |
|
|
* libcoff.h: Regenerate.
|
180 |
|
|
|
181 |
|
|
2011-06-10 Nick Clifton
|
182 |
|
|
|
183 |
|
|
* elflink.c (_bfd_elf_link_create_dynamic_sections): If the
|
184 |
|
|
backend does not provide a function for creating dynamic sections
|
185 |
|
|
then fail.
|
186 |
|
|
(bfd_elf_final_link): Issue a warning message if a dynamic section
|
187 |
|
|
has the SHT_NOTE type.
|
188 |
|
|
(bfd_elf_final_link): Do not look for dynamic strings in a section
|
189 |
|
|
that does not have the SHT_STRTAB type or the name .dynstr.
|
190 |
|
|
* elf32-arm.c (elf32_arm_finish_dynamic_sections): Fail if the got
|
191 |
|
|
section is not in the output binary.
|
192 |
|
|
* elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Likewise.
|
193 |
|
|
|
194 |
|
|
2011-06-09 Tristan Gingold
|
195 |
|
|
|
196 |
|
|
* elfnn-ia64.c (elfNN_ia64_relax_section, elfNN_ia64_choose_gp)
|
197 |
|
|
(elfNN_ia64_relocate_section, elfNN_vms_object_p): Remove trailing
|
198 |
|
|
spaces.
|
199 |
|
|
|
200 |
|
|
2011-06-09 Tristan Gingold
|
201 |
|
|
|
202 |
|
|
* bfd.c (bfd_get_sign_extend_vma): Handle aixcoff.
|
203 |
|
|
|
204 |
|
|
2011-06-09 Nick Clifton
|
205 |
|
|
|
206 |
|
|
PR ld/12845
|
207 |
|
|
* elf.c (_bfd_elf_init_private_section_data): Add an assertion
|
208 |
|
|
that the output section has an allocated bfd_elf_section_data
|
209 |
|
|
structure.
|
210 |
|
|
* elfxx-mips.c (mips_elf_check_symbols): Do not create a stub for
|
211 |
|
|
symbols in sections that have been removed by garbage collection.
|
212 |
|
|
|
213 |
|
|
2011-06-08 H.J. Lu
|
214 |
|
|
|
215 |
|
|
* elf64-x86-64.c (elf_x86_64_check_relocs): Allow R_X86_64_64
|
216 |
|
|
relocations in SEC_DEBUGGING sections when building shared
|
217 |
|
|
libraries.
|
218 |
|
|
|
219 |
|
|
2011-06-08 H.J. Lu
|
220 |
|
|
|
221 |
|
|
PR ld/12851
|
222 |
|
|
* elflink.c (elf_gc_sweep): Don't check SHT_NOTE sections here.
|
223 |
|
|
(bfd_elf_gc_sections): Also check SHT_NOTE sections.
|
224 |
|
|
|
225 |
|
|
2011-06-08 Tristan Gingold
|
226 |
|
|
|
227 |
|
|
* makefile.vms (OBJS): Add elfxx-ia64.obj
|
228 |
|
|
Remove vax case.
|
229 |
|
|
|
230 |
|
|
2011-06-08 Alan Modra
|
231 |
|
|
|
232 |
|
|
* aix386-core.c, * cisco-core.c, * hpux-core.c, * osf-core.c,
|
233 |
|
|
* sco5-core.c: Init match_priority field.
|
234 |
|
|
|
235 |
|
|
2011-06-08 Alan Modra
|
236 |
|
|
|
237 |
|
|
* elflink.c (_bfd_elf_archive_symbol_lookup): Follow warning and
|
238 |
|
|
indirect links here.
|
239 |
|
|
|
240 |
|
|
2011-06-07 Joel Brobecker
|
241 |
|
|
|
242 |
|
|
* irix-core.c (irix_core_vec): Add match_priority field.
|
243 |
|
|
|
244 |
|
|
2011-06-06 Alan Modra
|
245 |
|
|
|
246 |
|
|
* targets.c (bfd_target): Make ar_max_namelen an unsigned char.
|
247 |
|
|
Add match_priority.
|
248 |
|
|
* configure.in: Bump bfd version.
|
249 |
|
|
* elfcode.h (elf_object_p): Delete hacks preventing match of
|
250 |
|
|
EM_NONE and ELFOSABI_NONE targets when a better match exists.
|
251 |
|
|
* elfxx-target.h (elf_match_priority): Define and use.
|
252 |
|
|
* format.c (bfd_check_format_matches): Use target match_priority
|
253 |
|
|
to choose best of multiple matching targets. In cases with multiple
|
254 |
|
|
matches rerun _bfd_check_format if we don't choose the last match.
|
255 |
|
|
* aout-adobe.c, * aout-arm.c, * aout-target.h, * aout-tic30.c,
|
256 |
|
|
* binary.c, * bout.c, * coff-alpha.c, * coff-i386.c, * coff-i860.c,
|
257 |
|
|
* coff-i960.c, * coff-ia64.c, * coff-mips.c, * coff-or32.c,
|
258 |
|
|
* coff-ppc.c, * coff-rs6000.c, * coff-sh.c, * coff-tic30.c,
|
259 |
|
|
* coff-tic54x.c, * coff-x86_64.c, * coff64-rs6000.c, * coffcode.h,
|
260 |
|
|
* i386msdos.c, * i386os9k.c, * ieee.c, * ihex.c, * mach-o-target.c,
|
261 |
|
|
* mipsbsd.c, * mmo.c, * nlm-target.h, * oasys.c, * pdp11.c,
|
262 |
|
|
* pe-mips.c, * pef.c, * plugin.c, * ppcboot.c, * som.c, * srec.c,
|
263 |
|
|
* tekhex.c, * trad-core.c, * verilog.c, * versados.c, * vms-alpha.c,
|
264 |
|
|
* vms-lib.c, * xsym.c: Init match_priority field.
|
265 |
|
|
* configure: Regenerate.
|
266 |
|
|
* bfd-in2.h: Regenerate.
|
267 |
|
|
|
268 |
|
|
2011-06-04 H.J. Lu
|
269 |
|
|
|
270 |
|
|
PR ld/12842
|
271 |
|
|
* elfcode.h (elf_object_p): Revert the last change.
|
272 |
|
|
|
273 |
|
|
2011-06-04 Alan Modra
|
274 |
|
|
|
275 |
|
|
* archures.c (bfd_arch_get_compatible): If one arch is unknown,
|
276 |
|
|
return the other arch.
|
277 |
|
|
* elfcode.h (elf_object_p): Allow explicit match to generic ELF
|
278 |
|
|
target.
|
279 |
|
|
|
280 |
14 |
khays |
2011-06-03 Bertram Felgenhauer
|
281 |
|
|
|
282 |
|
|
PR ld/12682
|
283 |
|
|
* hash.c (higher_primer_number): Add more, small, prime numbers.
|
284 |
|
|
(bfd_hash_set_default_size): Likewise.
|
285 |
|
|
|
286 |
|
|
2011-06-02 Nick Clifton
|
287 |
|
|
|
288 |
|
|
* coff-mcore.c: Fix spelling typo.
|
289 |
|
|
* coff-stgo32.c: Likewise.
|
290 |
|
|
* elf32-arm.c: Likewise.
|
291 |
|
|
* elf32-avr.c: Likewise.
|
292 |
|
|
* elf-m68hc1x.c: Likewise.
|
293 |
|
|
* elf32-mcore.c: Likewise.
|
294 |
|
|
* elf32-mep.c: Likewise.
|
295 |
|
|
* elf32-mt.c: Likewise.
|
296 |
|
|
* elf32-ppc.c: Likewise.
|
297 |
|
|
* elf32-xtensa.c: Likewise.
|
298 |
|
|
* elf64-ppc.c: Likewise.
|
299 |
|
|
* elfxx-mips.c: Likewise.
|
300 |
|
|
* netbsd.h: Likewise.
|
301 |
|
|
* nlmcode.h: Likewise.
|
302 |
|
|
* vms-alpha.c: Likewise.
|
303 |
|
|
* po/bfd.pot: Regenerate.
|
304 |
|
|
* po/SRC-POTFILES.in: Regenerate.
|
305 |
|
|
|
306 |
|
|
2011-06-01 DJ Delorie
|
307 |
|
|
|
308 |
|
|
* config.bfd: Add bfd_elf32_rx_be_ns_vec.
|
309 |
|
|
* target.c: Likewise.
|
310 |
|
|
* configure.in: Likewise.
|
311 |
|
|
* configure.in: Regenerate.
|
312 |
|
|
* elf32-rx.c: Add elf32-rx-be-ns target.
|
313 |
|
|
(rx_elf_object_p): Never allow the be-ns target by default,
|
314 |
|
|
only allow it if the user requests it.
|
315 |
|
|
|
316 |
|
|
2011-06-01 H.J. Lu
|
317 |
|
|
|
318 |
|
|
* elf32-i386.c (elf_i386_size_dynamic_sections): Properly warn
|
319 |
|
|
relocation in readonly section in a shared object.
|
320 |
|
|
* elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
|
321 |
|
|
|
322 |
|
|
2011-05-31 Nick Clifton
|
323 |
|
|
|
324 |
|
|
* archive.c (adjust_relative_path): Fix comment to prevent it
|
325 |
|
|
corrupting the auto-generated bfd.h.
|
326 |
|
|
|
327 |
|
|
2011-05-31 Paul Brook
|
328 |
|
|
|
329 |
|
|
* elf32-arm.c (elf32_arm_final_link_relocate): Only do bl conversion
|
330 |
|
|
for known functions.
|
331 |
|
|
(elf32_arm_swap_symbol_in): Only set ST_BRANCH_TO_ARM for function
|
332 |
|
|
symbols.
|
333 |
|
|
|
334 |
|
|
2011-05-31 Paul Brook
|
335 |
|
|
|
336 |
|
|
* elf32-arm.c (arm_stub_is_thumb): Add
|
337 |
|
|
arm_stub_long_branch_v4t_thumb_tls_pic.
|
338 |
|
|
(elf32_arm_final_link_relocate): TLS stubs are always ARM.
|
339 |
|
|
Handle Thumb stubs.
|
340 |
|
|
|
341 |
|
|
2011-05-27 Nick Clifton
|
342 |
|
|
|
343 |
|
|
PR binutils/12710
|
344 |
|
|
* archive.c (_bfd_get_elt_at_filepos): Set correct error value if
|
345 |
|
|
unable to read a file pointed to by an entry in a thin archive.
|
346 |
|
|
(adjust_relative_path): Use lrealpath to canonicalize paths.
|
347 |
|
|
Handle the case where the reference path is above the current
|
348 |
|
|
path in the directory tree.
|
349 |
|
|
|
350 |
|
|
2011-05-26 H.J. Lu
|
351 |
|
|
|
352 |
|
|
PR ld/12809
|
353 |
|
|
* elf64-x86-64.c (elf_x86_64_relocate_section): Handle
|
354 |
|
|
R_X86_64_TPOFF64 in executable.
|
355 |
|
|
|
356 |
|
|
2011-05-26 Alan Modra
|
357 |
|
|
|
358 |
|
|
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Remove most of comment.
|
359 |
|
|
* elflink.c (_bfd_elf_symbol_refs_local_p): Expand
|
360 |
|
|
local_protected comment.
|
361 |
|
|
|
362 |
|
|
2011-05-25 Tristan Gingold
|
363 |
|
|
|
364 |
|
|
* configure.in (bfd_elf32_ia64_big_vec, bfd_elf32_ia64_hpux_big_vec)
|
365 |
|
|
(bfd_elf64_ia64_big_vec, bfd_elf64_ia64_hpux_big_vec)
|
366 |
|
|
(bfd_elf64_ia64_little_vec, bfd_elf64_ia64_vms_vec): Add elfxx-ia64.lo
|
367 |
|
|
* Makefile.am (BFD64_BACKENDS): Add elfxx-ia64.lo
|
368 |
|
|
(BFD64_BACKENDS_CFILES): Add elfxx-ia64.c
|
369 |
|
|
(elf32-ia64.c): Created from elfnn-ia64.c
|
370 |
|
|
(elf64-ia64.c): Likewise.
|
371 |
|
|
* elfxx-ia64.h: New file.
|
372 |
|
|
* elfxx-ia64.c: Split with elfnn-ia64.c. Keep only the following
|
373 |
|
|
functions.Includes elfxx-ia64.h.
|
374 |
|
|
(elfNN_ia64_reloc): Renames to ia64_elf_reloc. Adjust error message.
|
375 |
|
|
(IA64_HOWTO): Adjust.
|
376 |
|
|
(lookup_howto): Renames to ia64_elf_lookup_howto. Make it public.
|
377 |
|
|
(elfNN_ia64_reloc_type_lookup): Renames to
|
378 |
|
|
ia64_elf_reloc_type_lookup. Make it public. Adjust calls.
|
379 |
|
|
(elfNN_ia64_reloc_name_lookup): Renames to
|
380 |
|
|
ia64_elf_reloc_name_lookup. Make it public.
|
381 |
|
|
(elfNN_ia64_relax_br): Renames to ia64_elf_relax_br. Make it public.
|
382 |
|
|
(elfNN_ia64_relax_brl): Renames to ia64_elf_relax_brl. Make it
|
383 |
|
|
public.
|
384 |
|
|
(elfNN_ia64_relax_ldxmov): Renames to ia64_elf_relax_ldxmov.
|
385 |
|
|
Move it and make it public. Move prototype to elfxx-ia64.h
|
386 |
|
|
(elfNN_ia64_install_value): Renames to ia64_elf_install_value.
|
387 |
|
|
Move prototype to elfxx-ia64.h
|
388 |
|
|
* elfnn-ia64.c: New file, split from elfxx-ia64.c.
|
389 |
|
|
(elfNN_ia64_info_to_howto): Adjust calls.
|
390 |
|
|
(elfNN_ia64_relax_section): Adjust calls.
|
391 |
|
|
(count_dyn_reloc): Fix typo.
|
392 |
|
|
(elfNN_ia64_relocate_section): Adjust calls.
|
393 |
|
|
(elfNN_ia64_finish_dynamic_symbol): Likewise.
|
394 |
|
|
(bfd_elfNN_bfd_reloc_type_lookup)
|
395 |
|
|
(bfd_elfNN_bfd_reloc_name_lookup): Adjust macros.
|
396 |
|
|
* configure: Regenerate.
|
397 |
|
|
* Makefile.in: Regenerate.
|
398 |
|
|
|
399 |
|
|
2011-05-23 DJ Delorie
|
400 |
|
|
|
401 |
|
|
* elf32-rx.c (rx_elf_object_p): When reading an RX object in, undo
|
402 |
|
|
the vma/lma swapping done in elf32_rx_modify_program_headers.
|
403 |
|
|
|
404 |
|
|
2011-05-23 Nick Clifton
|
405 |
|
|
|
406 |
|
|
* elf-m10300.c (mn10300_elf_mkobject): New function.
|
407 |
|
|
(bfd_elf32_mkobject): Define.
|
408 |
|
|
|
409 |
|
|
2011-05-23 Alan Modra
|
410 |
|
|
|
411 |
|
|
* elf-bfd.h: Comment typo fix.
|
412 |
|
|
* elf32-ppc.c (struct ppc_elf_dyn_relocs): Delete. Replace with
|
413 |
|
|
struct elf_dyn_relocs throughout.
|
414 |
|
|
* elf64-ppc.c (struct ppc_dyn_relocs): Likewise.
|
415 |
|
|
|
416 |
|
|
2011-05-23 Alan Modra
|
417 |
|
|
|
418 |
|
|
* elf32-frv.c: Use info->callbacks->einfo throughout file in linker
|
419 |
|
|
functions rather than warning callback or _bfd_error_handler.
|
420 |
|
|
* elf32-ppc.c: Likewise.
|
421 |
|
|
* elf64-ppc.c: Likewise.
|
422 |
|
|
* elf32-ppc.c (ppc_elf_tls_optimize): Use %H in __tls_get_addr lost
|
423 |
|
|
arg error.
|
424 |
|
|
* elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
|
425 |
|
|
|
426 |
|
|
2011-05-23 Alan Modra
|
427 |
|
|
|
428 |
|
|
PR 12763
|
429 |
|
|
* elf.c (assign_file_positions_for_load_sections): Set sh_offset for
|
430 |
|
|
.tbss, and page align same for all SHT_NOBITS sections.
|
431 |
|
|
|
432 |
|
|
2011-05-21 Alan Modra
|
433 |
|
|
|
434 |
|
|
PR 12763
|
435 |
|
|
* elf.c (_bfd_elf_make_section_from_shdr): Set up TLS section LMAs
|
436 |
|
|
from PT_TLS header.
|
437 |
|
|
(_bfd_elf_map_sections_to_segments): Don't create a final PT_LOAD
|
438 |
|
|
segment if just for .tbss.
|
439 |
|
|
(assign_file_positions_for_load_sections): Don't report "can't
|
440 |
|
|
allocate in segment" errors for .tbss.
|
441 |
|
|
(assign_file_positions_for_non_load_sections): Don't set p_filesz
|
442 |
|
|
from SHT_NOBITS section filepos.
|
443 |
|
|
|
444 |
|
|
2011-05-20 Bernd Schmidt
|
445 |
|
|
|
446 |
|
|
* elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for
|
447 |
|
|
R_C6000_PCR_H16 and R_C6000_PCR_L16.
|
448 |
|
|
(elf32_tic6x_relocate_section): Handle them.
|
449 |
|
|
|
450 |
|
|
2011-05-18 Nick Clifton
|
451 |
|
|
|
452 |
|
|
PR ld/12761
|
453 |
|
|
* elflink.c (elf_link_add_object_symbols): Process .gnu.warning
|
454 |
|
|
sections when building shared libraries.
|
455 |
|
|
|
456 |
|
|
2011-05-18 Rafał Krypa
|
457 |
|
|
|
458 |
|
|
PR ld/12778
|
459 |
|
|
* elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
|
460 |
|
|
reloc pointer.
|
461 |
|
|
|
462 |
|
|
2011-05-18 Tristan Gingold
|
463 |
|
|
|
464 |
|
|
* xcofflink.c (xcoff_link_add_symbols): Handle C_DWARF symbols.
|
465 |
|
|
(xcoff_sweep): Always keep dwarf sections.
|
466 |
|
|
(xcoff_link_input_bfd): Handle dwarf symbols and sections.
|
467 |
|
|
|
468 |
|
|
2011-05-18 Tristan Gingold
|
469 |
|
|
|
470 |
|
|
* libxcoff.h (struct xcoff_dwsect_name): New type.
|
471 |
|
|
(XCOFF_DWSECT_NBR_NAMES): New macro.
|
472 |
|
|
(xcoff_dwsect_names): Declare.
|
473 |
|
|
* coffcode.h (sec_to_styp_flags): Handle xcoff dwarf sections.
|
474 |
|
|
(styp_to_sec_flags): Ditto.
|
475 |
|
|
(coff_new_section_hook): Ditto.
|
476 |
|
|
(coff_slurp_symbol_table): Handle C_DWARF and C_INFO.
|
477 |
|
|
* coff-rs6000.c (xcoff_dwsect_name): New variable.
|
478 |
|
|
|
479 |
|
|
2011-05-17 Tomohiro Kashiwada
|
480 |
|
|
|
481 |
|
|
PR ld/12759
|
482 |
|
|
* elf32-rx.c (ignore_lma): New variable.
|
483 |
|
|
(bfd_elf32_rx_set_target_flags): Add ignore_lma parameter.
|
484 |
|
|
(rx_modify_program_headers): Only copy the LMA into the VMA if
|
485 |
|
|
ignore_lma is true.
|
486 |
|
|
|
487 |
|
|
2011-05-17 Alan Modra
|
488 |
|
|
|
489 |
|
|
PR ld/12760
|
490 |
|
|
* coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call.
|
491 |
|
|
* elflink.c (elf_link_add_object_symbols): Likewise.
|
492 |
|
|
* linker.c (_bfd_generic_link_add_one_symbol): Likewise.
|
493 |
|
|
|
494 |
|
|
2011-05-16 Alan Modra
|
495 |
|
|
|
496 |
|
|
* linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.
|
497 |
|
|
|
498 |
|
|
2011-05-15 Richard Sandiford
|
499 |
|
|
|
500 |
|
|
* elfxx-mips.c (_bfd_mips_elf_check_relocs): Record both local and
|
501 |
|
|
global GOT entries for GOT_PAGE relocations against global symbols.
|
502 |
|
|
|
503 |
|
|
2011-05-13 Bernd Schmidt
|
504 |
|
|
|
505 |
|
|
* config.bfd (tic6x-*-elf, tic6x-*-uclinux): New.
|
506 |
|
|
(tic6x-*-*): Replaced by these.
|
507 |
|
|
* elf32-tic6x.c (elf32_tic6x_set_osabi): New static function.
|
508 |
|
|
(elf32_tic6x_check_relocs): Create dynamic sections if -shared.
|
509 |
|
|
(elf_backend_relocs_compatible, elf_backend_post_process_headers):
|
510 |
|
|
Define.
|
511 |
|
|
(elf32_bed, TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM,
|
512 |
|
|
TARGET_BIG_NAME, ELF_OSABI): Redefine twice, and include
|
513 |
|
|
"elf32-target.h" two more times.
|
514 |
|
|
* configure.in: Handle bfd_elf32_tic6x_linux_be_vec,
|
515 |
|
|
bfd_elf32_tic6x_linux_le_vec, bfd_elf32_tic6x_elf_be_vec and
|
516 |
|
|
bfd_elf32_tic6x_elf_le_vec.
|
517 |
|
|
* configure: Regenerate.
|
518 |
|
|
|
519 |
|
|
2011-05-13 Jan Beulich
|
520 |
|
|
|
521 |
|
|
* config.bfd: Add targets x86_64-*-pe and x86_64-*-pep.
|
522 |
|
|
|
523 |
|
|
2011-05-12 Jan Kratochvil
|
524 |
|
|
|
525 |
|
|
* config.in: Regenerated.
|
526 |
|
|
* configure: Regenerated.
|
527 |
|
|
* configure.in: New tests for HAVE_PRPSINFO_T_PR_PID,
|
528 |
|
|
HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID and
|
529 |
|
|
HAVE_PSINFO32_T_PR_PID.
|
530 |
|
|
* elf.c (elfcore_grok_psinfo): Protect reading psinfo.pr_pid by
|
531 |
|
|
HAVE_PRPSINFO_T_PR_PID, HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID
|
532 |
|
|
and HAVE_PSINFO32_T_PR_PID.
|
533 |
|
|
* hosts/x86-64linux.h (HAVE_PRPSINFO32_T_PR_PID): New redefinition.
|
534 |
|
|
|
535 |
|
|
2011-05-10 Jan Kratochvil
|
536 |
|
|
|
537 |
|
|
* elf.c (elfcore_grok_psinfo): Initialize CORE_PID for both native and
|
538 |
|
|
32bit psinfo.
|
539 |
|
|
* elf32-ppc.c (ppc_elf_grok_psinfo): Initialize core_pid.
|
540 |
|
|
* elf64-ppc.c (ppc64_elf_grok_psinfo): Likewise.
|
541 |
|
|
|
542 |
|
|
2011-05-09 Paul Brook
|
543 |
|
|
|
544 |
|
|
* bfd-in.h (elf32_tic6x_fix_exidx_coverage): Add prototype.
|
545 |
|
|
* bfd-in2.h: Regenerate.
|
546 |
|
|
* elf32-tic6x.c: Include limits.h.
|
547 |
|
|
(tic6x_unwind_edit_type, tic6x_unwind_table_edit,
|
548 |
|
|
_tic6x_elf_section_data): New.
|
549 |
|
|
(elf32_tic6x_section_data): Define.
|
550 |
|
|
(elf32_tic6x_new_section_hook): Allocate target specific data.
|
551 |
|
|
(elf32_tic6x_add_unwind_table_edit): New function.
|
552 |
|
|
(get_tic6x_elf_section_data, elf32_tic6x_adjust_exidx_size,
|
553 |
|
|
elf32_tic6x_insert_cantunwind_after, elf32_tic6x_add_low31,
|
554 |
|
|
elf32_tic6x_copy_exidx_entry): New functions.
|
555 |
|
|
(elf_backend_write_section): Define.
|
556 |
|
|
|
557 |
|
|
2011-05-09 Paul Brook
|
558 |
|
|
|
559 |
|
|
* elf32-tic6x.c (is_tic6x_elf_unwind_section_name,
|
560 |
|
|
elf32_tic6x_fake_sections): New functions.
|
561 |
|
|
(elf_backend_fake_sections): Define.
|
562 |
|
|
|
563 |
|
|
2011-05-09 Paul Brook
|
564 |
|
|
|
565 |
|
|
* elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): New function.
|
566 |
|
|
(elf_backend_gc_mark_extra_sections): Define.
|
567 |
|
|
|
568 |
|
|
2011-05-07 Dave Korn
|
569 |
|
|
|
570 |
|
|
PR ld/12365
|
571 |
|
|
* cofflink.c (bfd_coff_link_input_bfd): Check for and warn about
|
572 |
|
|
references to symbols defined in discarded sections.
|
573 |
|
|
|
574 |
|
|
2011-05-07 Dave Korn
|
575 |
|
|
|
576 |
|
|
PR ld/12365
|
577 |
|
|
* coffgen.c (coff_write_symbol): Assume input section is its own
|
578 |
|
|
output section if output_section member not set.
|
579 |
|
|
(coff_write_alien_symbol): Likewise.
|
580 |
|
|
|
581 |
|
|
2011-05-07 H.J. Lu
|
582 |
|
|
|
583 |
|
|
PR ld/12730
|
584 |
|
|
* elf.c (_bfd_elf_section_offset): Check SEC_ELF_REVERSE_COPY.
|
585 |
|
|
|
586 |
|
|
* elflink.c (elf_link_input_bfd): Reverse copy .ctors/.dtors
|
587 |
|
|
sections if needed.
|
588 |
|
|
|
589 |
|
|
* section.c (SEC_ELF_REVERSE_COPY): New.
|
590 |
|
|
* bfd-in2.h: Regenerated.
|
591 |
|
|
|
592 |
|
|
2011-05-07 Anders Kaseorg
|
593 |
|
|
|
594 |
|
|
PR 12739
|
595 |
|
|
* libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast.
|
596 |
|
|
* bfd-in2.h: Regenerate.
|
597 |
|
|
|
598 |
|
|
2011-05-06 Tristan Gingold
|
599 |
|
|
|
600 |
|
|
* vms-alpha.c (evax_section_flags): Remove SEC_IN_MEMORY.
|
601 |
|
|
(_bfd_vms_slurp_egsd): Rename old_flags to vms_flags. Handle
|
602 |
|
|
any code section. Add comments.
|
603 |
|
|
(alpha_vms_object_p): Use void * instead of PTR.
|
604 |
|
|
(alpha_vms_create_eisd_for_section): Fix test for setting DZRO.
|
605 |
|
|
(build_module_list): Guard against no DST section. Add comments.
|
606 |
|
|
(alpha_vms_link_output_symbol): Discard undefined symbols.
|
607 |
|
|
(alpha_vms_get_section_contents): Simply memcpy if the section was
|
608 |
|
|
already loaded. Fix typo.
|
609 |
|
|
(vms_new_section_hook): Use void * instead of PTR.
|
610 |
|
|
(vms_alpha_vec): Ditto.
|
611 |
|
|
|
612 |
|
|
2011-05-06 Richard Sandiford
|
613 |
|
|
|
614 |
|
|
* elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb
|
615 |
|
|
branch to a PLT entry, redirect it to the PLT's Thumb entry point.
|
616 |
|
|
|
617 |
|
|
2011-05-05 Bernd Schmidt
|
618 |
|
|
|
619 |
|
|
* elf32-tic6x.c (elf32_tic6x_final_link): New function.
|
620 |
|
|
(elf32_tic6x_merge_attributes): Do not warn for PID or PIC
|
621 |
|
|
mismatch. Choose the lower of the two values.
|
622 |
|
|
(bfd_elf32_bfd_final_link): New macro.
|
623 |
|
|
|
624 |
|
|
2011-04-28 Tristan Gingold
|
625 |
|
|
|
626 |
|
|
* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file.
|
627 |
|
|
(bfd_xcoff_swap_aux_out): Ditto.
|
628 |
|
|
* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto.
|
629 |
|
|
(bfd_xcoff64_swap_aux_out): Ditto.
|
630 |
|
|
|
631 |
|
|
2011-05-04 Alan Modra
|
632 |
|
|
|
633 |
|
|
PR ld/12727
|
634 |
|
|
* elf64-ppc.c (ppc_build_one_stub ): Clear
|
635 |
|
|
was_undefined on dot-symbols.
|
636 |
|
|
|
637 |
|
|
2011-05-03 Paul Brook
|
638 |
|
|
|
639 |
|
|
|
640 |
|
|
* elf32-tic6x.c (elf32_tic6x_howto_table,
|
641 |
|
|
elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook,
|
642 |
|
|
elf32_tic6x_relocate_section, elf32_tic6x_check_relocs):
|
643 |
|
|
Add R_C6000_EHTYPE.
|
644 |
|
|
|
645 |
|
|
2011-05-01 Alan Modra
|
646 |
|
|
|
647 |
|
|
PR ld/12718
|
648 |
|
|
* elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before
|
649 |
|
|
creating ifunc sections.
|
650 |
|
|
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
|
651 |
|
|
|
652 |
|
|
2011-04-30 H.J. Lu
|
653 |
|
|
|
654 |
|
|
* elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter
|
655 |
|
|
names.
|
656 |
|
|
|
657 |
|
|
2011-04-28 Tom Tromey
|
658 |
|
|
|
659 |
|
|
* bfdio.c (memory_bstat): Pass correct size to memset.
|
660 |
|
|
|
661 |
|
|
2011-04-28 Mike Frysinger
|
662 |
|
|
|
663 |
|
|
* dwarf2.c (dwarf_debug_sections): Mark const.
|
664 |
|
|
* elf.c (special_sections): Likewise.
|
665 |
|
|
* libbfd-in.h (dwarf_debug_sections): Likewise.
|
666 |
|
|
* libbfd.h: Regenerate.
|
667 |
|
|
|
668 |
|
|
2011-04-26 Kai Tietz
|
669 |
|
|
|
670 |
|
|
* coffcode.h (sec_to_styp_flags): Allow linkonce for
|
671 |
|
|
debugging sections.
|
672 |
|
|
|
673 |
|
|
2011-04-26 Tristan Gingold
|
674 |
|
|
|
675 |
|
|
* coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros.
|
676 |
|
|
|
677 |
|
|
2011-04-24 Alan Modra
|
678 |
|
|
|
679 |
|
|
PR ld/12365
|
680 |
|
|
PR ld/12696
|
681 |
|
|
* coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call.
|
682 |
|
|
* linker.c (_bfd_link_hash_newfunc): Clear bitfields.
|
683 |
|
|
(_bfd_generic_link_add_one_symbol): Update "notice" call.
|
684 |
|
|
* elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when
|
685 |
|
|
it is a redef of an IR symbol in a real BFD.
|
686 |
|
|
|
687 |
|
|
2011-04-22 H.J. Lu
|
688 |
|
|
|
689 |
|
|
* elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation
|
690 |
|
|
in readonly section in a shared object.
|
691 |
|
|
(elf_i386_size_dynamic_sections): Likewise.
|
692 |
|
|
* elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
|
693 |
|
|
(elf_x86_64_size_dynamic_sections): Likewise.
|
694 |
|
|
|
695 |
|
|
2011-04-21 H.J. Lu
|
696 |
|
|
|
697 |
|
|
PR ld/12694
|
698 |
|
|
* elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC
|
699 |
|
|
symbols.
|
700 |
|
|
* elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
|
701 |
|
|
|
702 |
|
|
2011-04-21 H.J. Lu
|
703 |
|
|
|
704 |
|
|
* elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false
|
705 |
|
|
on dynamic symbol error.
|
706 |
|
|
* elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
|
707 |
|
|
|
708 |
|
|
2011-04-20 Tristan Gingold
|
709 |
|
|
|
710 |
|
|
* config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs.
|
711 |
|
|
|
712 |
|
|
2011-04-20 Alan Modra
|
713 |
|
|
|
714 |
|
|
* hash.c (bfd_default_hash_table_size): Make it an unsigned long.
|
715 |
|
|
(bfd_hash_table_init_n): Overflow checking.
|
716 |
|
|
(bfd_hash_set_default_size): Return current size. Take unsigned long
|
717 |
|
|
arg. Add 65537 to hash_size primes.
|
718 |
|
|
* bfd-in.h (bfd_hash_set_default_size): Update prototype.
|
719 |
|
|
* bfd-in2.h: Regenerate.
|
720 |
|
|
|
721 |
|
|
2011-04-20 Jan Kratochvil
|
722 |
|
|
|
723 |
|
|
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
|
724 |
|
|
memmove elements.
|
725 |
|
|
|
726 |
|
|
2011-04-20 Alan Modra
|
727 |
|
|
|
728 |
|
|
* libbfd.c (bfd_log2): Do return rounded up value.
|
729 |
|
|
* elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2
|
730 |
|
|
call with expanded old round down version of the function.
|
731 |
|
|
|
732 |
|
|
* archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
|
733 |
|
|
* elflink.c (elf_link_add_object_symbols): Delete redundant code.
|
734 |
|
|
|
735 |
|
|
2011-04-20 Alan Modra
|
736 |
|
|
|
737 |
|
|
PR ld/12365
|
738 |
|
|
* elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols
|
739 |
|
|
in their own common section.
|
740 |
|
|
* elflink.c (elf_link_add_object_symbols): Likewise.
|
741 |
|
|
* linker.c (generic_link_check_archive_element): Don't lose flags
|
742 |
|
|
if common section is pre-existing.
|
743 |
|
|
(_bfd_generic_link_add_one_symbol): Likewise.
|
744 |
|
|
|
745 |
|
|
2011-04-20 Alan Modra
|
746 |
|
|
|
747 |
|
|
PR ld/12365
|
748 |
|
|
* elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls.
|
749 |
|
|
* linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call
|
750 |
|
|
multiple_definition regardless of allow_multiple_definition.
|
751 |
|
|
* simple.c (simple_dummy_multiple_definition): Update.
|
752 |
|
|
* xcofflink.c (xcoff_link_add_symbols): Update multiple_definition
|
753 |
|
|
calls.
|
754 |
|
|
|
755 |
|
|
2011-04-18 Tristan Gingold
|
756 |
|
|
|
757 |
|
|
* coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro.
|
758 |
|
|
|
759 |
|
|
2011-04-18 Alan Modra
|
760 |
|
|
|
761 |
|
|
PR ld/12365
|
762 |
|
|
PR ld/12672
|
763 |
|
|
* bfd.c (BFD_PLUGIN): Define.
|
764 |
|
|
(BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN.
|
765 |
|
|
* bfd-in2.h: Regenerate.
|
766 |
|
|
* elflink.c (elf_link_output_extsym): Strip undefined plugin syms.
|
767 |
|
|
* opncls.c (bfd_make_readable): Don't lose original bfd flags.
|
768 |
|
|
|
769 |
|
|
2011-04-17 Jan Kratochvil
|
770 |
|
|
|
771 |
|
|
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
|
772 |
|
|
SEC_LOAD.
|
773 |
|
|
|
774 |
|
|
2011-04-15 Sergio Durigan Junior
|
775 |
|
|
|
776 |
|
|
* elf-bfd.h (struct sdt_note): New struct.
|
777 |
|
|
(struct elf_obj_tdata) : New field.
|
778 |
|
|
* elf.c (elfobj_grok_stapsdt_note_1): New function.
|
779 |
|
|
(elfobj_grok_stapsdt_note): Likewise.
|
780 |
|
|
(elf_parse_notes): Added code to treat SystemTap note
|
781 |
|
|
sections.
|
782 |
|
|
|
783 |
|
|
2011-04-12 Richard Henderson
|
784 |
|
|
|
785 |
|
|
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
|
786 |
|
|
exclude empty .got sections.
|
787 |
|
|
|
788 |
|
|
2011-04-11 H.J. Lu
|
789 |
|
|
|
790 |
|
|
* elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
|
791 |
|
|
array access for BFD_RELOC_386_IRELATIVE.
|
792 |
|
|
|
793 |
|
|
2011-04-11 Bernd Schmidt
|
794 |
|
|
|
795 |
|
|
* elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
|
796 |
|
|
|
797 |
|
|
2011-04-11 Mark Wielaard
|
798 |
|
|
|
799 |
|
|
PR 10549
|
800 |
|
|
* elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols.
|
801 |
|
|
(has_gnu_symbols): Renamed from has_ifunc_symbols.
|
802 |
|
|
* elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name.
|
803 |
|
|
* elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols
|
804 |
|
|
also if STB_GNU_UNIQUE symbol binding was seen.
|
805 |
|
|
* elf32-i386.c (elf_i386_add_symbol_hook): Likewise.
|
806 |
|
|
* elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
|
807 |
|
|
* elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
|
808 |
|
|
* elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
|
809 |
|
|
* elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
|
810 |
|
|
* elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
|
811 |
|
|
|
812 |
|
|
2011-04-11 Alan Modra
|
813 |
|
|
|
814 |
|
|
* bfd-in.h (bfd_get_section_limit): Don't use rawsize with output
|
815 |
|
|
sections.
|
816 |
|
|
* libbfd.c (_bfd_generic_get_section_contents): Likewise.
|
817 |
|
|
(_bfd_generic_get_section_contents_in_window): Likewise.
|
818 |
|
|
* section.c (bfd_get_section_contents): Likewise.
|
819 |
|
|
* compress.c (bfd_get_full_section_contents): Likewise.
|
820 |
|
|
* elf32-rx.c (rx_final_link): Ignore rawsize.
|
821 |
|
|
* elf32-microblaze.c (microblaze_elf_relocate_section): Use correct
|
822 |
|
|
bfd with bfd_get_section_limit.
|
823 |
|
|
* elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use
|
824 |
|
|
os->size during final link. Update callers.
|
825 |
|
|
* bfd-in2.h: Regenerate.
|
826 |
|
|
|
827 |
|
|
2011-04-10 Richard Sandiford
|
828 |
|
|
|
829 |
|
|
PR ld/12637
|
830 |
|
|
* elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count
|
831 |
|
|
as the number of global entries when merging with the primary GOT.
|
832 |
|
|
|
833 |
|
|
2011-04-09 H.J. Lu
|
834 |
|
|
|
835 |
|
|
* elf32-i386.c: Update copyright year.
|
836 |
|
|
* elf64-x86-64.c: Likewise.
|
837 |
|
|
|
838 |
|
|
2011-04-09 Kai Tietz
|
839 |
|
|
|
840 |
|
|
* peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary
|
841 |
|
|
buffer and use rawsize for sorting.
|
842 |
|
|
* coffcode.h (coff_compute_section_file_positions): Set rawsize
|
843 |
|
|
before doing alignment.
|
844 |
|
|
|
845 |
|
|
2011-04-09 H.J. Lu
|
846 |
|
|
|
847 |
|
|
* elf32-i386.c (elf_i386_relocate_section): Return relocation
|
848 |
|
|
error on unsupported relocation.
|
849 |
|
|
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
|
850 |
|
|
|
851 |
|
|
2011-04-09 H.J. Lu
|
852 |
|
|
|
853 |
|
|
PR binutils/12657
|
854 |
|
|
* hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with
|
855 |
|
|
pid_t.
|
856 |
|
|
|
857 |
|
|
2011-04-08 H.J. Lu
|
858 |
|
|
|
859 |
|
|
PR ld/12654
|
860 |
|
|
* elf32-i386.c (elf_i386_relocate_section): Check !executable
|
861 |
|
|
instead of shared for R_386_TLS_LDO_32.
|
862 |
|
|
|
863 |
|
|
2011-04-08 Tristan Gingold
|
864 |
|
|
|
865 |
|
|
* Makefile.am (SOURCE_HFILES): Remove xcoff-target.h
|
866 |
|
|
* coff-pmac: Remove
|
867 |
|
|
* xcoff-target.h: Remove
|
868 |
|
|
* Makefile.in: Regenerate.
|
869 |
|
|
|
870 |
|
|
2011-04-07 Cary Coutant
|
871 |
|
|
|
872 |
|
|
* dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification.
|
873 |
|
|
|
874 |
|
|
2011-04-07 Paul Brook
|
875 |
|
|
|
876 |
|
|
* elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is
|
877 |
|
|
pc-relative.
|
878 |
|
|
(elf32_tic6x_howto_table_rel): Ditto.
|
879 |
|
|
(elf32_tic6x_relocate_section): Implement R_C6000_PREL31.
|
880 |
|
|
(elf32_tic6x_check_relocs): Ditto.
|
881 |
|
|
|
882 |
|
|
2011-04-06 Joseph Myers
|
883 |
|
|
|
884 |
|
|
* config.bfd (thumb-*-oabi): Don't handle in list of obsolete
|
885 |
|
|
targets.
|
886 |
|
|
(strongarm*, thumb*, xscale*): Remove architectures.
|
887 |
|
|
(strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*,
|
888 |
|
|
thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf,
|
889 |
|
|
xscale-*-coff): Remove targets.
|
890 |
|
|
|
891 |
|
|
2011-04-01 Tristan Gingold
|
892 |
|
|
|
893 |
|
|
* elfxx-ia64.c: include bfd_stdint.h
|
894 |
|
|
|
895 |
|
|
2011-03-31 Jan Kratochvil
|
896 |
|
|
|
897 |
|
|
* elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable
|
898 |
|
|
dynobj and its initialization.
|
899 |
|
|
|
900 |
|
|
2011-03-31 Tristan Gingold
|
901 |
|
|
|
902 |
|
|
* makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec.
|
903 |
|
|
* configure.com: Set BFD_HOST_64BIT_LONG_LONG and
|
904 |
|
|
BFD_HOST_LONG_LONG to 1.
|
905 |
|
|
|
906 |
|
|
2011-03-31 Tristan Gingold
|
907 |
|
|
|
908 |
|
|
* vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
|
909 |
|
|
(_bfd_vms_write_etir): Ditto.
|
910 |
|
|
(_bfd_vms_slurp_etir): Avoid to use intptr_t
|
911 |
|
|
* configure.com: Generate bfd_stdint.h
|
912 |
|
|
|
913 |
|
|
2011-03-31 Bernd Schmidt
|
914 |
|
|
|
915 |
|
|
* elf32-tic6x.h (struct elf32_tic6x_params): New.
|
916 |
|
|
(elf32_tic6x_setup): Declare.
|
917 |
|
|
* elf32-tic6x.c: Include .
|
918 |
|
|
(ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define.
|
919 |
|
|
(struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry):
|
920 |
|
|
New structures.
|
921 |
|
|
(elf32_tic6x_link_hash_table, is_tic6x_elf): New macros.
|
922 |
|
|
(tic6x_elf_scom_section, tic6x_elf_scom_symbol,
|
923 |
|
|
tic6x_elf_scom_symbol_ptr): New static variables.
|
924 |
|
|
(elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel,
|
925 |
|
|
elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE,
|
926 |
|
|
R_C6000_PCR_H16 and R_C6000_PCR_L16.
|
927 |
|
|
(elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create,
|
928 |
|
|
elf32_tic6x_link_hash_table_free, elf32_tic6x_setup,
|
929 |
|
|
elf32_tic6x_using_dsbt, elf32_tic6x_install_rela,
|
930 |
|
|
elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc,
|
931 |
|
|
elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook,
|
932 |
|
|
elf32_tic6x_adjust_dynamic_symbol): New static functions.
|
933 |
|
|
(elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches
|
934 |
|
|
to weak symbols as required by the ABI.
|
935 |
|
|
Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file
|
936 |
|
|
as needed when generating DSBT output.
|
937 |
|
|
(elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook,
|
938 |
|
|
elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section,
|
939 |
|
|
elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections,
|
940 |
|
|
elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers,
|
941 |
|
|
elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val,
|
942 |
|
|
elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym):
|
943 |
|
|
New static functions.
|
944 |
|
|
(ELF_MAXPAGESIZE): Define to 0x1000.
|
945 |
|
|
(bfd_elf32_bfd_copy_private_bfd_data,
|
946 |
|
|
bfd_elf32_bfd_link_hash_table_create,
|
947 |
|
|
bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount,
|
948 |
|
|
elf_backend_want_got_plt, elf_backend_want_dynbss,
|
949 |
|
|
elf_backend_plt_readonly, elf_backend_got_header_size,
|
950 |
|
|
elf_backend_gc_sweep_hook, elf_backend_modify_program_headers,
|
951 |
|
|
elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
|
952 |
|
|
elf_backend_check_relocs, elf_backend_add_symbol_hook,
|
953 |
|
|
elf_backend_symbol_processing, elf_backend_link_output_symbol_hook,
|
954 |
|
|
elf_backend_section_from_bfd_section,
|
955 |
|
|
elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections,
|
956 |
|
|
elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections,
|
957 |
|
|
elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define.
|
958 |
|
|
|
959 |
|
|
* bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE,
|
960 |
|
|
BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add.
|
961 |
|
|
* bfd/bfd-in2.h: Regenerate.
|
962 |
|
|
* bfd/libbfd.h: Regenerate.
|
963 |
|
|
* config.bfd: Accept tic6x-*-* instead of tic6x-*-elf.
|
964 |
|
|
|
965 |
|
|
2011-03-31 Tristan Gingold
|
966 |
|
|
|
967 |
|
|
* coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL
|
968 |
|
|
entry on xcoff when value is C_NULL_VALUE.
|
969 |
|
|
|
970 |
|
|
2011-03-31 Tristan Gingold
|
971 |
|
|
|
972 |
|
|
* libcoff-in.h (exec_hdr): Remove.
|
973 |
|
|
* libcoff.h: Regenerate.
|
974 |
|
|
|
975 |
|
|
2011-03-30 Nick Clifton
|
976 |
|
|
|
977 |
|
|
* po/da.po: Updated Danish translation.
|
978 |
|
|
|
979 |
|
|
2011-03-29 Richard Henderson
|
980 |
|
|
|
981 |
|
|
* elf64-alpha.c (elf64_alpha_gc_mark_hook): New.
|
982 |
|
|
(elf64_alpha_gc_sweep_hook): New.
|
983 |
|
|
(elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New.
|
984 |
|
|
(elf_backend_can_gc_sections): New.
|
985 |
|
|
|
986 |
|
|
2011-03-26 John Marino
|
987 |
|
|
|
988 |
|
|
* config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*.
|
989 |
|
|
* configure.in: Delete unused bfd_elf32_i386_dragonfly_vec.
|
990 |
|
|
* configure: Regenerate.
|
991 |
|
|
|
992 |
|
|
2011-03-25 Michael Snyder
|
993 |
|
|
|
994 |
|
|
* coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.
|
995 |
|
|
|
996 |
|
|
2011-03-25 Tristan Gingold
|
997 |
|
|
|
998 |
|
|
* vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use
|
999 |
|
|
of find_nearest_line on object files.
|
1000 |
|
|
|
1001 |
|
|
2011-03-25 Tristan Gingold
|
1002 |
|
|
|
1003 |
|
|
* vms-alpha.c (evax_section_flags): Make $CODE$ section read-only.
|
1004 |
|
|
Minor reordering.
|
1005 |
|
|
(alpha_vms_create_eisd_for_section): Make code sections read-only.
|
1006 |
|
|
|
1007 |
|
|
2011-03-24 Alan Modra
|
1008 |
|
|
|
1009 |
|
|
* elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where
|
1010 |
|
|
old-style __tls_get_addr calls without marker relocs don't match
|
1011 |
|
|
their arg setup insn one for one. If such mismatches are found
|
1012 |
|
|
report the reloc and don't do any tls optimization.
|
1013 |
|
|
* elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
|
1014 |
|
|
|
1015 |
|
|
2011-03-22 Eric B. Weddington
|
1016 |
|
|
|
1017 |
|
|
* bfd-in2.h: Regenerate.
|
1018 |
|
|
|
1019 |
|
|
2011-03-22 Eric B. Weddington
|
1020 |
|
|
|
1021 |
|
|
* archures.c: Add AVR XMEGA architecture information.
|
1022 |
|
|
* cpu-avr.c (arch_info_struct): Likewise.
|
1023 |
|
|
* elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
|
1024 |
|
|
(elf32_avr_object_p): Likewise.
|
1025 |
|
|
|
1026 |
|
|
2011-03-14 Richard Sandiford
|
1027 |
|
|
|
1028 |
|
|
* reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
|
1029 |
|
|
* bfd-in2.h: Regenerate.
|
1030 |
|
|
* elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
|
1031 |
|
|
to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
|
1032 |
|
|
entry.
|
1033 |
|
|
(elf32_arm_howto_from_type): Update accordingly.
|
1034 |
|
|
(elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
|
1035 |
|
|
(elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
|
1036 |
|
|
(arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
|
1037 |
|
|
with an extra noncall_refcount field.
|
1038 |
|
|
(arm_local_iplt_info): New structure.
|
1039 |
|
|
(elf_arm_obj_tdata): Add local_iplt.
|
1040 |
|
|
(elf32_arm_local_iplt): New accessor macro.
|
1041 |
|
|
(elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
|
1042 |
|
|
plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
|
1043 |
|
|
Change tls_type to a bitfield and add is_iplt.
|
1044 |
|
|
(elf32_arm_link_hash_newfunc): Update accordingly.
|
1045 |
|
|
(elf32_arm_allocate_local_sym_info): New function.
|
1046 |
|
|
(elf32_arm_create_local_iplt): Likewise.
|
1047 |
|
|
(elf32_arm_get_plt_info): Likewise.
|
1048 |
|
|
(elf32_arm_plt_needs_thumb_stub_p): Likewise.
|
1049 |
|
|
(elf32_arm_get_local_dynreloc_list): Likewise.
|
1050 |
|
|
(create_ifunc_sections): Likewise.
|
1051 |
|
|
(elf32_arm_copy_indirect_symbol): Update after the changes to
|
1052 |
|
|
elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set.
|
1053 |
|
|
(arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info
|
1054 |
|
|
to get PLT information. Assert that all STT_GNU_IFUNC references
|
1055 |
|
|
are turned into PLT references.
|
1056 |
|
|
(arm_build_one_stub): Pass the symbol type to
|
1057 |
|
|
elf32_arm_final_link_relocate.
|
1058 |
|
|
(elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
|
1059 |
|
|
(elf32_arm_allocate_irelocs): New function.
|
1060 |
|
|
(elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
|
1061 |
|
|
all R_ARM_IRELATIVE.
|
1062 |
|
|
(elf32_arm_allocate_plt_entry): New function.
|
1063 |
|
|
(elf32_arm_populate_plt_entry): Likewise.
|
1064 |
|
|
(elf32_arm_final_link_relocate): Add an st_type parameter.
|
1065 |
|
|
Set srelgot to null for static objects. Use separate variables
|
1066 |
|
|
to record which st_value and st_type should be used when generating
|
1067 |
|
|
a dynamic relocation. Use elf32_arm_get_plt_info to find the
|
1068 |
|
|
symbol's PLT information, setting has_iplt_entry, splt,
|
1069 |
|
|
plt_offset and gotplt_offset accordingly. Check whether
|
1070 |
|
|
STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
|
1071 |
|
|
the relocation target accordingly. Broaden assert to include
|
1072 |
|
|
.iplts. Don't set sreloc for static relocations. Assert that
|
1073 |
|
|
we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
|
1074 |
|
|
and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead
|
1075 |
|
|
of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
|
1076 |
|
|
symbol. Pass the symbol type to arm_type_of_stub. Conditionally
|
1077 |
|
|
resolve GOT references to the .igot.plt entry.
|
1078 |
|
|
(elf32_arm_relocate_section): Update the call to
|
1079 |
|
|
elf32_arm_final_link_relocate.
|
1080 |
|
|
(elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
|
1081 |
|
|
information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
|
1082 |
|
|
relocations in shared libraries and relocatable executables.
|
1083 |
|
|
Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list
|
1084 |
|
|
to get the list of dynamic relocations for a local symbol.
|
1085 |
|
|
(elf32_arm_check_relocs): Always create ifunc sections. Set isym
|
1086 |
|
|
at the same time as setting h. Use elf32_arm_allocate_local_sym_info
|
1087 |
|
|
to allocate local symbol information. Treat R_ARM_REL32 and
|
1088 |
|
|
R_ARM_REL32_NOI as call relocations in shared libraries and
|
1089 |
|
|
relocatable executables. Record PLT information for local
|
1090 |
|
|
STT_GNU_IFUNC functions as well as global functions. Count
|
1091 |
|
|
non-call PLT references. Use elf32_arm_get_local_dynreloc_list
|
1092 |
|
|
to get the list of dynamic relocations for a local symbol.
|
1093 |
|
|
(elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
|
1094 |
|
|
Don't remove STT_GNU_IFUNC PLTs unless all references have been
|
1095 |
|
|
removed. Update after the changes to elf32_arm_link_hash_entry.
|
1096 |
|
|
(allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
|
1097 |
|
|
entries should live in .plt or .iplt. Check whether the .igot.plt
|
1098 |
|
|
and .got entries can be combined. Use elf32_arm_allocate_plt_entry
|
1099 |
|
|
to allocate .plt and .(i)got.plt entries. Detect which .got
|
1100 |
|
|
entries will need R_ARM_IRELATIVE relocations and use
|
1101 |
|
|
elf32_arm_allocate_irelocs to allocate them. Likewise other
|
1102 |
|
|
non-.got dynamic relocations.
|
1103 |
|
|
(elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
|
1104 |
|
|
and dynamic relocations for local STT_GNU_IFUNC symbols.
|
1105 |
|
|
Check whether the .igot.plt and .got entries can be combined.
|
1106 |
|
|
Detect which .got entries will need R_ARM_IRELATIVE relocations
|
1107 |
|
|
and use elf32_arm_allocate_irelocs to allocate them. Use stashed
|
1108 |
|
|
section pointers intead of strcmp checks. Handle iplt and igotplt.
|
1109 |
|
|
(elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
|
1110 |
|
|
to fill in .plt, .got.plt and .rel(a).plt entries. Point
|
1111 |
|
|
STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
|
1112 |
|
|
resolve to it.
|
1113 |
|
|
(elf32_arm_output_plt_map_1): New function, split out from
|
1114 |
|
|
elf32_arm_output_plt_map. Handle .iplt entries. Use
|
1115 |
|
|
elf32_arm_plt_needs_thumb_stub_p.
|
1116 |
|
|
(elf32_arm_output_plt_map): Call it.
|
1117 |
|
|
(elf32_arm_output_arch_local_syms): Add mapping symbols for
|
1118 |
|
|
local .iplt entries.
|
1119 |
|
|
(elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
|
1120 |
|
|
(elf32_arm_swap_symbol_out): Likewise.
|
1121 |
|
|
(elf32_arm_add_symbol_hook): New function.
|
1122 |
|
|
(elf_backend_add_symbol_hook): Define for all targets.
|
1123 |
|
|
|
1124 |
|
|
2011-03-14 Richard Sandiford
|
1125 |
|
|
|
1126 |
|
|
* elf-bfd.h (elf_link_hash_entry): Add target_internal.
|
1127 |
|
|
* elf.c (swap_out_syms): Set st_target_internal for each
|
1128 |
|
|
Elf_Internal_Sym.
|
1129 |
|
|
* elfcode.h (elf_swap_symbol_in): Likewise.
|
1130 |
|
|
* elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
|
1131 |
|
|
* elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
|
1132 |
|
|
* elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
|
1133 |
|
|
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
|
1134 |
|
|
* elflink.c (elf_link_output_extsym): Likewise.
|
1135 |
|
|
(bfd_elf_final_link): Likewise.
|
1136 |
|
|
(elf_link_add_object_symbols): Copy st_target_internal
|
1137 |
|
|
to the hash table if we see a definition.
|
1138 |
|
|
(_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
|
1139 |
|
|
* elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
|
1140 |
|
|
a branch_type field.
|
1141 |
|
|
(a8_erratum_fix, a8_erratum_reloc): Likewise.
|
1142 |
|
|
(arm_type_of_stub): Replace actual_st_type with an
|
1143 |
|
|
actual_branch_type parameter.
|
1144 |
|
|
(arm_build_one_stub): Use branch types rather than st_types to
|
1145 |
|
|
determine the type of branch.
|
1146 |
|
|
(cortex_a8_erratum_scan): Likewise.
|
1147 |
|
|
(elf32_arm_size_stubs): Likewise.
|
1148 |
|
|
(bfd_elf32_arm_process_before_allocation): Likewise.
|
1149 |
|
|
(allocate_dynrelocs_for_symbol): Likewise.
|
1150 |
|
|
(elf32_arm_finish_dynamic_sections): Likewise.
|
1151 |
|
|
(elf32_arm_final_link_relocate): Replace sym_flags parameter with
|
1152 |
|
|
a branch_type parameter.
|
1153 |
|
|
(elf32_arm_relocate_section): Update call accordingly.
|
1154 |
|
|
(elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
|
1155 |
|
|
(elf32_arm_output_map_sym): Initialize st_target_internal.
|
1156 |
|
|
(elf32_arm_output_stub_sym): Likewise.
|
1157 |
|
|
(elf32_arm_symbol_processing): Delete.
|
1158 |
|
|
(elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
|
1159 |
|
|
Use st_target_internal to record the branch type.
|
1160 |
|
|
(elf32_arm_swap_symbol_out): Use st_target_internal to test for
|
1161 |
|
|
Thumb functions.
|
1162 |
|
|
(elf32_arm_is_function_type): Delete.
|
1163 |
|
|
(elf_backend_symbol_processing): Likewise.
|
1164 |
|
|
(elf_backend_is_function_type): Likewise.
|
1165 |
|
|
|
1166 |
|
|
2011-03-14 Richard Sandiford
|
1167 |
|
|
|
1168 |
|
|
* elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
|
1169 |
|
|
(elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
|
1170 |
|
|
into the PLT block.
|
1171 |
|
|
|
1172 |
|
|
2011-03-14 Richard Sandiford
|
1173 |
|
|
|
1174 |
|
|
* elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
|
1175 |
|
|
may_need_local_target_p and may_become_dynamic_p to classify
|
1176 |
|
|
the relocation type. Don't check info->symbolic or h->def_regular
|
1177 |
|
|
when deciding whether to record a potential dynamic reloc.
|
1178 |
|
|
Don't treat potential dynamic relocs as PLT references.
|
1179 |
|
|
(elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
|
1180 |
|
|
try to make the PLT reference count go negative.
|
1181 |
|
|
|
1182 |
|
|
2011-03-14 Richard Sandiford
|
1183 |
|
|
|
1184 |
|
|
* elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
|
1185 |
|
|
GOT entry here, rather than leaving it to finish_dynamic_symbol.
|
1186 |
|
|
Only create a dynamic relocation for local references if
|
1187 |
|
|
info->shared.
|
1188 |
|
|
(allocate_dynrelocs_for_symbol): Update dynamic relocation
|
1189 |
|
|
allocation accordingly.
|
1190 |
|
|
(elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
|
1191 |
|
|
|
1192 |
|
|
2011-03-14 Richard Sandiford
|
1193 |
|
|
|
1194 |
|
|
* elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
|
1195 |
|
|
(elf32_arm_add_dynreloc): Likewise.
|
1196 |
|
|
(elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
|
1197 |
|
|
to allocate dynamic relocations.
|
1198 |
|
|
(elf32_arm_size_dynamic_sections): Likewise.
|
1199 |
|
|
(allocate_dynrelocs): Likewise. Rename to
|
1200 |
|
|
allocate_dynrelocs_for_symbol.
|
1201 |
|
|
(elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
|
1202 |
|
|
create dynamic relocations.
|
1203 |
|
|
(elf32_arm_finish_dynamic_symbol): Likewise.
|
1204 |
|
|
|
1205 |
|
|
2011-03-12 H.J. Lu
|
1206 |
|
|
|
1207 |
|
|
* elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
|
1208 |
|
|
x32 GD->IE and GD->LE transitions.
|
1209 |
|
|
(elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
|
1210 |
|
|
and LD->LE transitions.
|
1211 |
|
|
|
1212 |
|
|
2011-03-10 Alan Modra
|
1213 |
|
|
|
1214 |
|
|
* elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
|
1215 |
|
|
for LO_DS error message and correct multiple.
|
1216 |
|
|
|
1217 |
|
|
2011-03-10 Alan Modra
|
1218 |
|
|
|
1219 |
|
|
* elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
|
1220 |
|
|
(ppc64_elf_link_just_syms): New function.
|
1221 |
|
|
(opd_entry_value): Don't assume big-endian host.
|
1222 |
|
|
(get_r2off): New function.
|
1223 |
|
|
(ppc_build_one_stub, ppc_size_one_stub): Use it here.
|
1224 |
|
|
|
1225 |
|
|
2011-03-06 Michael Snyder
|
1226 |
|
|
|
1227 |
|
|
* compress.c (bfd_compress_section_contents): Check for out of mem.
|
1228 |
|
|
|
1229 |
|
|
* elf64-x86-64.c (elf_x86_64_relocate_section): Document
|
1230 |
|
|
that case statement falls through intentionally.
|
1231 |
|
|
|
1232 |
|
|
* elf32-i386.c (elf_i386_relocate_section): Document fall through.
|
1233 |
|
|
|
1234 |
|
|
2011-03-04 Alan Modra
|
1235 |
|
|
|
1236 |
|
|
* archive.c (bsd_write_armap): Don't call stat in deterministic
|
1237 |
|
|
mode, and don't use st_mtime if stat returns error.
|
1238 |
|
|
|
1239 |
|
|
2011-03-03 Michael Snyder
|
1240 |
|
|
|
1241 |
|
|
* elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
|
1242 |
|
|
|
1243 |
|
|
* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
|
1244 |
|
|
|
1245 |
|
|
* aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
|
1246 |
|
|
(aout_link_write_other_symbol): Missing break statement.
|
1247 |
|
|
|
1248 |
|
|
* dwarf2.c (scan_unit_for_symbols): Stop memory leak.
|
1249 |
|
|
|
1250 |
|
|
* archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
|
1251 |
|
|
|
1252 |
|
|
2011-03-03 H.J. Lu
|
1253 |
|
|
|
1254 |
|
|
* elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
|
1255 |
|
|
x32 IE->LE transition.
|
1256 |
|
|
(elf_x86_64_relocate_section): Likewise.
|
1257 |
|
|
|
1258 |
|
|
2011-03-02 Bernd Schmidt
|
1259 |
|
|
|
1260 |
|
|
* elflink.c (is_reloc_section): Remove function.
|
1261 |
|
|
(get_dynamic_reloc_section_name): Construct string manually.
|
1262 |
|
|
|
1263 |
|
|
2011-02-28 Kai Tietz
|
1264 |
|
|
|
1265 |
|
|
* archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
|
1266 |
|
|
(adjust_relative_path): Likewise.
|
1267 |
|
|
(_bfd_construct_extended_name_table): Likewise.
|
1268 |
|
|
* corefile.c (generic_core_file_matches_executable_p): Likewise.
|
1269 |
|
|
* elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
|
1270 |
|
|
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
|
1271 |
|
|
* elf32-spu.c (sort_bfds): Likewise.
|
1272 |
|
|
(spu_elf_auto_overlay): Likewise.
|
1273 |
|
|
* syms.c (_bfd_stab_section_find_nearest_line): Likewise.
|
1274 |
|
|
* xcofflink.c (xcoff_set_import_path): Likewise.
|
1275 |
|
|
* xtensa-isa.c (xtensa_regfile_lookup): Likewise.
|
1276 |
|
|
(xtensa_regfile_lookup_shortname): Likewise.
|
1277 |
|
|
|
1278 |
|
|
2011-02-28 Alan Modra
|
1279 |
|
|
|
1280 |
|
|
PR 12513
|
1281 |
|
|
* archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
|
1282 |
|
|
stringsize. Properly sanity check symdef_count. Remove redundant
|
1283 |
|
|
bfd_release.
|
1284 |
|
|
|
1285 |
|
|
2011-02-25 Rafael Ávila de Espíndola
|
1286 |
|
|
|
1287 |
|
|
* plugin.c (bfd_plugin_object_p): Correctly set the filesize
|
1288 |
|
|
and handle claim_file seeking. Only try to load the plugin once.
|
1289 |
|
|
|
1290 |
|
|
2011-02-22 Andreas Schwab
|
1291 |
|
|
|
1292 |
|
|
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
|
1293 |
|
|
relocation read the value from the second GOT slot.
|
1294 |
|
|
|
1295 |
|
|
2011-02-15 Tristan Gingold
|
1296 |
|
|
|
1297 |
|
|
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
|
1298 |
|
|
|
1299 |
|
|
2011-02-15 Alan Modra
|
1300 |
|
|
|
1301 |
|
|
* elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
|
1302 |
|
|
toc relocs. Fuss over free(NULL).
|
1303 |
|
|
|
1304 |
|
|
2011-02-14 Mike Frysinger
|
1305 |
|
|
|
1306 |
|
|
* elflink.c (bfd_elf_size_dynamic_sections): Add
|
1307 |
|
|
bfd_get_symbol_leading_char to the start of newname.
|
1308 |
|
|
|
1309 |
|
|
2011-02-13 Ralf Wildenhues
|
1310 |
|
|
|
1311 |
|
|
* configure: Regenerate.
|
1312 |
|
|
|
1313 |
|
|
2011-02-09 Alan Modra
|
1314 |
|
|
|
1315 |
|
|
* elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
|
1316 |
|
|
we are done. When optimising large toc, check that a global
|
1317 |
|
|
symbol on a toc reloc is defined in a kept section.
|
1318 |
|
|
|
1319 |
|
|
2011-02-08 Nick Clifton
|
1320 |
|
|
|
1321 |
|
|
PR binutils/12467
|
1322 |
|
|
* elf.c (assign_file_positions_for_load_sections): Set the program
|
1323 |
|
|
header offset and entry size to zero if there are no program
|
1324 |
|
|
headers.
|
1325 |
|
|
|
1326 |
|
|
2011-02-08 Alan Modra
|
1327 |
|
|
|
1328 |
|
|
* elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
|
1329 |
|
|
local_syms when looking for local symbols in .toc.
|
1330 |
|
|
|
1331 |
|
|
2011-02-01 Alan Modra
|
1332 |
|
|
|
1333 |
|
|
* elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
|
1334 |
|
|
for toc pointer on any section having makes_toc_func_call set.
|
1335 |
|
|
(check_pasted_section): Ensure pasted .init/.fini fragments use
|
1336 |
|
|
the same toc if any has makes_toc_func_call set.
|
1337 |
|
|
|
1338 |
|
|
2011-01-28 Joseph Myers
|
1339 |
|
|
|
1340 |
|
|
* elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
|
1341 |
|
|
field.
|
1342 |
|
|
|
1343 |
|
|
2011-01-22 Richard Sandiford
|
1344 |
|
|
|
1345 |
|
|
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
|
1346 |
|
|
common sections too.
|
1347 |
|
|
|
1348 |
|
|
2011-01-18 H.J. Lu
|
1349 |
|
|
|
1350 |
|
|
* elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
|
1351 |
|
|
Solaris target.
|
1352 |
|
|
|
1353 |
|
|
2011-01-18 Pierre Muller
|
1354 |
|
|
|
1355 |
|
|
Fix compilation for mingw64.
|
1356 |
|
|
* coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
|
1357 |
|
|
typecast to avoid warning.
|
1358 |
|
|
* elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
|
1359 |
|
|
usage.
|
1360 |
|
|
* elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
|
1361 |
|
|
of long for pointer to avoid warning.
|
1362 |
|
|
(elfNN_ia64_relax_brl): Idem.
|
1363 |
|
|
(elfNN_ia64_install_value): Idem.
|
1364 |
|
|
* vms-alpha.c (_bfd_vms_slurp_etir): Idem.
|
1365 |
|
|
|
1366 |
|
|
2011-01-17 Richard Sandiford
|
1367 |
|
|
|
1368 |
|
|
* elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
|
1369 |
|
|
h->needs_plt when deciding whether to record a possible dynamic reloc.
|
1370 |
|
|
|
1371 |
|
|
2011-01-17 Richard Sandiford
|
1372 |
|
|
|
1373 |
|
|
* elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
|
1374 |
|
|
dynamic relocs for the removed section.
|
1375 |
|
|
|
1376 |
|
|
2011-01-15 H.J. Lu
|
1377 |
|
|
|
1378 |
|
|
* elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
|
1379 |
|
|
relocations.
|
1380 |
|
|
|
1381 |
|
|
2011-01-14 H.J. Lu
|
1382 |
|
|
|
1383 |
|
|
* elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
|
1384 |
|
|
(elf_x86_64_link_hash_table_create): Set pointer_r_type.
|
1385 |
|
|
(elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
|
1386 |
|
|
for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
|
1387 |
|
|
R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
|
1388 |
|
|
(elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
|
1389 |
|
|
for ILP32.
|
1390 |
|
|
|
1391 |
|
|
2011-01-14 Alan Modra
|
1392 |
|
|
|
1393 |
|
|
* bfd.c (bfd_perror): Flush stdout before and stderr after printing
|
1394 |
|
|
error.
|
1395 |
|
|
(_bfd_default_error_handler): Likewise.
|
1396 |
|
|
* elf.c (print_segment_map): Likewise.
|
1397 |
|
|
* libbfd.c (warn_deprecated): Likewise.
|
1398 |
|
|
* som.c (som_sizeof_headers): No need to do so here.
|
1399 |
|
|
* coff-i860.c: Replace use of printf for error messages with
|
1400 |
|
|
_bfd_error_handler.
|
1401 |
|
|
* coff-ppc.c: Likewise.
|
1402 |
|
|
* coff-sh.c: Likewise.
|
1403 |
|
|
* elf32-bfin.c: Likewise.
|
1404 |
|
|
* elf32-dlx.c: Likewise.
|
1405 |
|
|
* elf32-mep.c: Likewise.
|
1406 |
|
|
* elf32-v850.c: Likewise.
|
1407 |
|
|
* mach-o.c: Likewise.
|
1408 |
|
|
* pef.c: Likewise.
|
1409 |
|
|
|
1410 |
|
|
2011-01-13 H.J. Lu
|
1411 |
|
|
|
1412 |
|
|
* elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
|
1413 |
|
|
swap_reloca_out.
|
1414 |
|
|
(elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
|
1415 |
|
|
(elf_x86_64_check_relocs): Align relocation section to 4 byte
|
1416 |
|
|
for 32bit.
|
1417 |
|
|
(elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
|
1418 |
|
|
ELF_ST_TYPE.
|
1419 |
|
|
(elf_x86_64_finish_dynamic_symbol): Updated.
|
1420 |
|
|
(elf_x86_64_finish_dynamic_sections): Don't use
|
1421 |
|
|
Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
|
1422 |
|
|
bfd_elf64_swap_dyn_out.
|
1423 |
|
|
|
1424 |
|
|
2011-01-14 J. Park
|
1425 |
|
|
|
1426 |
|
|
PR ld/12339
|
1427 |
|
|
* elf32-arm.c (allocate_dynrelocs): Don't set up eh before
|
1428 |
|
|
following bfd_link_hash_warning symbol link.
|
1429 |
|
|
|
1430 |
|
|
2011-01-10 Nathan Sidwell
|
1431 |
|
|
Glauber de Oliveira Costa
|
1432 |
|
|
|
1433 |
|
|
* reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
|
1434 |
|
|
BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
|
1435 |
|
|
BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
|
1436 |
|
|
relocations.
|
1437 |
|
|
* libbfd.h: Rebuilt.
|
1438 |
|
|
* bfd-in2.h: Rebuilt.
|
1439 |
|
|
* elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
|
1440 |
|
|
(elf32_arm_reloc_map): Likewise.
|
1441 |
|
|
(tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
|
1442 |
|
|
(elf32_arm_stub_long_branch_any_tls_pic,
|
1443 |
|
|
elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
|
1444 |
|
|
(DEF_STUBS): Add new stubs.
|
1445 |
|
|
(struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
|
1446 |
|
|
(elf32_arm_local_tlsdesc_gotent): New.
|
1447 |
|
|
(GOT_TLS_GDESC): New mask.
|
1448 |
|
|
(GOT_TLS_GD_ANY): Define.
|
1449 |
|
|
(struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
|
1450 |
|
|
(elf32_arm_compute_jump_table_size): New.
|
1451 |
|
|
(struct elf32_arm_link_hash_table): Add next_tls_desc_index,
|
1452 |
|
|
num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
|
1453 |
|
|
sgotplt_jump_table_size fields.
|
1454 |
|
|
(elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
|
1455 |
|
|
(elf32_arm_link_hash_table_create): Initialize new fields.
|
1456 |
|
|
(arm_type_of_stub): Check TLS desc relocs too.
|
1457 |
|
|
(elf32_arm_stub_name): TLS desc relocs can be shared.
|
1458 |
|
|
(elf32_arm_tls_transition): Determine relaxation.
|
1459 |
|
|
(arm_stub_required_alignment): Add tls stubs.
|
1460 |
|
|
(elf32_arm_size_stubs): Likewise.
|
1461 |
|
|
(elf32_arm_tls_relax): Perform TLS relaxing.
|
1462 |
|
|
(elf32_arm_final_link_relocate): Process TLS DESC relocations.
|
1463 |
|
|
(IS_ARM_TLS_GNU_RELOC): New.
|
1464 |
|
|
(IS_ARM_TLS_RELOC): Use it.
|
1465 |
|
|
(elf32_arm_relocate_section): Perform TLS relaxing.
|
1466 |
|
|
(elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
|
1467 |
|
|
desc relocations.
|
1468 |
|
|
(allocate_dynrelocs): Allocate tls desc relcoations.
|
1469 |
|
|
(elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
|
1470 |
|
|
symbols.
|
1471 |
|
|
(elf32_arm_size_dynamic_sections): Allocate tls trampolines and
|
1472 |
|
|
got slots.
|
1473 |
|
|
(elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
|
1474 |
|
|
symbol.
|
1475 |
|
|
(elf32_arm_finish_dynamic_symbol): Adjust.
|
1476 |
|
|
(arm_put_trampoline): New.
|
1477 |
|
|
(elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
|
1478 |
|
|
trampolines.
|
1479 |
|
|
(elf_backend_always_size_sections): Define.
|
1480 |
|
|
|
1481 |
|
|
2011-01-06 H.J. Lu
|
1482 |
|
|
|
1483 |
|
|
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
|
1484 |
|
|
|
1485 |
|
|
2011-01-06 H.J. Lu
|
1486 |
|
|
|
1487 |
|
|
PR ld/12366
|
1488 |
|
|
PR ld/12371
|
1489 |
|
|
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
|
1490 |
|
|
handle symbols marked with regular reference, but not non-GOT
|
1491 |
|
|
reference when building shared library.
|
1492 |
|
|
|
1493 |
|
|
* elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
|
1494 |
|
|
local and global STT_GNU_IFUNC symols when building shared
|
1495 |
|
|
library.
|
1496 |
|
|
* elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
|
1497 |
|
|
|
1498 |
|
|
2011-01-05 DJ Delorie
|
1499 |
|
|
|
1500 |
|
|
* reloc.c: Add BFD_RELOC_RX_OP_NEG.
|
1501 |
|
|
* libbfd.h: Regenerate.
|
1502 |
|
|
* bfd-in2.h: Regenerate.
|
1503 |
|
|
* elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
|
1504 |
|
|
|
1505 |
|
|
2011-01-03 H.J. Lu
|
1506 |
|
|
|
1507 |
|
|
* cpu-i386.c (bfd_i386_compatible): New.
|
1508 |
|
|
(bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
|
1509 |
|
|
with bfd_i386_compatible.
|
1510 |
|
|
(bfd_x86_64_arch_intel_syntax): Likewise.
|
1511 |
|
|
(bfd_i386_arch_intel_syntax): Likewise.
|
1512 |
|
|
(i8086_arch): Likewise.
|
1513 |
|
|
(bfd_x64_32_arch): Likewise.
|
1514 |
|
|
(bfd_x86_64_arch): Likewise.
|
1515 |
|
|
(bfd_i386_arch): Likewise.
|
1516 |
|
|
|
1517 |
|
|
For older changes see ChangeLog-2010
|
1518 |
|
|
|
1519 |
|
|
Local Variables:
|
1520 |
|
|
mode: change-log
|
1521 |
|
|
left-margin: 8
|
1522 |
|
|
fill-column: 74
|
1523 |
|
|
version-control: never
|
1524 |
|
|
End:
|