]>
Commit | Line | Data |
---|---|---|
3c9b82ba NC |
1 | 2005-10-25 Arnold Metselaar <[email protected]> |
2 | ||
3 | * Makefile.am: Add rules for coff-z80 and cpu-z80. | |
4 | * Makefile.in: Regenerated. | |
5 | * archures.c: Add bfd_arch_z80 and support for it. | |
6 | * coffcode.h(coff_set_arch_mach_hook): Add case Z80MAGIC. | |
7 | (coff_set_flags): Add case bfd_arch_z80. | |
8 | * config.bfd: Add z80coff_vec. | |
9 | * configure.in: Add z80coff_vec. | |
10 | * reloc.c: Add BFD_RELOC_Z80_DISP8 | |
11 | * targets.c: Add z80coff_vec. | |
12 | * coff-z80.c: New file | |
13 | * cpu-z80.c: New file | |
14 | * configure: Regenerated. | |
15 | * libbfd.h: Regenerated. | |
16 | * bfd-in2.h: Regenerated. | |
17 | ||
fcfa13d2 AM |
18 | 2005-10-26 Alan Modra <[email protected]> |
19 | ||
20 | PR ld/1540 | |
21 | * elf-bfd.h (elf_backend_copy_indirect_symbol): Replace pointer to | |
22 | elf_backend_data with pointer to bfd_link_info. | |
23 | (_bfd_elf_link_hash_copy_indirect): Likewise. | |
24 | * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Handle | |
25 | direct and indirect symbols both having dynamic link info. | |
26 | * elf32-arm.c (elf32_arm_copy_indirect_symbol): Likewise. | |
27 | * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. | |
28 | * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. | |
29 | * elf32-m32r.c (m32r_elf_copy_indirect_symbol): Likewise. | |
30 | * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Likewise. | |
31 | * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise. | |
32 | * elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise. | |
33 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. | |
34 | * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise. | |
35 | * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise. | |
36 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise. | |
37 | * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
38 | * elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise. | |
39 | * elflink.c: Adjust all calls to bed->elf_backend_copy_indirect_symbol. | |
40 | * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Update prototype. | |
41 | * elfxx-sparc.h (_bfd_sparc_elf_copy_indirect_symbol): Likewise. | |
42 | ||
3caac5b8 AM |
43 | 2005-10-25 Alan Modra <[email protected]> |
44 | ||
45 | * po/SRC-POTFILES.in: Regenerate. | |
46 | * po/bfd.pot: Regenerate. | |
47 | ||
9ba4c445 JZ |
48 | 2005-10-24 Jie Zhang <[email protected]> |
49 | ||
50 | * elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness | |
51 | warning. | |
52 | ||
f4707595 JZ |
53 | 2005-10-24 Bernd Schmidt <[email protected]> |
54 | ||
55 | * elf32-bfin.c (bfin_howto_table): Set src_mask to 0 for all relocs. | |
56 | (bfin_imm16_reloc): Always add in the addend. Don't fetch existing | |
57 | contents from section. | |
58 | (bfin_relocate_section): Rework so as to not call special_functions. | |
59 | Handle the relocation stack here. Treat pcrel24 relocs specially. | |
60 | ||
f02571c5 AM |
61 | 2005-10-24 Alan Modra <[email protected]> |
62 | ||
63 | * elflink.c (elf_link_input_bfd): Don't use linker_mark and | |
64 | SEC_EXCLUDE to test for sections dropped from output. Instead, | |
65 | use bfd_section_removed_from_list on normal sections. Don't | |
66 | attempt to handle symbols with unknown reserved section indices. | |
67 | * linker.c (_bfd_generic_link_output_symbols): Don't use | |
68 | linker_mark to test for symbols belonging to dropped sections. | |
69 | Do allow absolute symbols. | |
70 | ||
3e45f319 AM |
71 | 2005-10-24 Alan Modra <[email protected]> |
72 | ||
73 | * elf32-i370.c (i370_elf_fake_sections): Don't set SHF_EXCLUDE on | |
74 | group sections. | |
75 | ||
6a2375c6 JB |
76 | 2005-10-24 Jan Beulich <[email protected]> |
77 | ||
78 | * cpu-ia64-opc.c (elf64_ia64_operands): Move memory operand out of | |
79 | set of indirect operands. | |
80 | ||
d30e8e7c AM |
81 | 2005-10-24 Alan Modra <[email protected]> |
82 | ||
83 | * elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on | |
84 | group sections. | |
85 | ||
60b48850 L |
86 | 2005-10-23 H.J. Lu <[email protected]> |
87 | ||
88 | * coff-rs6000.c (rs6000coff_vec): Initialize | |
89 | _bfd_init_private_section_data with | |
90 | _bfd_generic_init_private_section_data. | |
91 | (pmac_xcoff_vec): Likewise. | |
92 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
93 | (aix5coff64_vec): Likewise. | |
94 | ||
ccd2ec6a L |
95 | 2005-10-23 H.J. Lu <[email protected]> |
96 | ||
97 | PR ld/1487 | |
98 | * elf-bfd.h (_bfd_generic_init_private_section_data): New. | |
99 | (_bfd_elf_init_private_section_data): New. | |
100 | ||
101 | * elf.c (elf_fake_sections): Don't set SHF_GROUP for | |
102 | relocatable link. | |
103 | (bfd_elf_set_group_contents): Don't handle relocatable link | |
104 | specially. | |
105 | (assign_section_numbers): If it isn't called by assembler, | |
106 | use the output section of elf_linked_to_section for | |
107 | SHF_LINK_ORDER. | |
108 | (_bfd_elf_init_private_section_data): New. | |
109 | (_bfd_elf_copy_private_section_data): Call it. | |
110 | ||
111 | * libbfd-in.h (_bfd_generic_init_private_section_data): New. | |
112 | ||
113 | * libbfd.c (_bfd_generic_init_private_section_data): New. | |
114 | ||
115 | * targets.c (BFD_JUMP_TABLE_COPY): Add | |
116 | _bfd_generic_init_private_section_data. | |
117 | (bfd_init_private_section_data): Likewise. | |
118 | ||
119 | * bfd-in2.h: Regenerated. | |
120 | * libbfd.h: Likewise. | |
121 | ||
60124e18 AM |
122 | 2005-10-23 Alan Modra <[email protected]> |
123 | ||
124 | * elf64-ppc.c (dec_dynrel_count): Don't report errors for local | |
125 | syms in gc'd sections. | |
126 | (ppc64_elf_edit_opd): Don't adjust reloc counts when NO_OPD_RELOCS. | |
127 | (elf_backend_action_discarded): Define. | |
128 | (ppc64_elf_action_discarded): New function. | |
129 | ||
44444f50 NC |
130 | 2005-10-19 Paul Brook <[email protected]> |
131 | ||
132 | * elf32-arm.c (find_arm_elf_section_entry): New function. | |
133 | (get_arm_elf_section_data): Use it. | |
134 | (unrecord_section_with_arm_elf_section_data): Use it. | |
135 | ||
66b920dc L |
136 | 2005-10-15 H.J. Lu <[email protected]> |
137 | ||
138 | * coff-rs6000.c (rs6000coff_vec): Initialize | |
139 | _bfd_match_sections_by_type with | |
140 | _bfd_generic_match_sections_by_type. | |
141 | (pmac_xcoff_vec): Likewise. | |
142 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
143 | (aix5coff64_vec): Likewise. | |
144 | ||
ecca9871 L |
145 | 2005-10-15 H.J. Lu <[email protected]> |
146 | ||
147 | PR ld/1467 | |
148 | * elf-bfd.h (_bfd_elf_match_sections_by_type): New. | |
149 | (_bfd_generic_match_sections_by_type): New. Defined. | |
150 | ||
151 | * elf.c (_bfd_elf_match_sections_by_type): New. | |
152 | ||
153 | * libbfd-in.h (_bfd_generic_match_sections_by_type): New. | |
154 | ||
155 | * bfd-in2.h: Regenerated. | |
156 | * libbfd.h: Likewise. | |
157 | ||
158 | * libbfd.c (_bfd_generic_match_sections_by_type): New. | |
159 | ||
160 | * targets.c (BFD_JUMP_TABLE_LINK): Initialize | |
161 | _bfd_match_sections_by_type with | |
162 | _bfd_generic_match_sections_by_type. | |
163 | (bfd_target): Add _bfd_match_sections_by_type. | |
164 | ||
ee065d83 PB |
165 | 2005-10-08 Paul Brook <[email protected]> |
166 | ||
167 | * elf32-arm.c: Move #include "elf/arm.h" after libbfd.h. | |
168 | (NUM_KNOWN_ATTRIBUTES): Define. | |
169 | (aeabi_attribute, aeabi_attribute_list): Define. | |
170 | (elf32_arm_obj_tdata): Add known_eabi_attributes and | |
171 | other_eabi_attributes. | |
172 | (uleb128_size, is_default_attr, eabi_attr_size, | |
173 | elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute, | |
174 | elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link, | |
175 | elf32_arm_new_eabi_attr, attr_strdup, elf32_arm_add_eabi_attr_int, | |
176 | elf32_arm_add_eabi_attr_compat, copy_eabi_attributes, | |
177 | elf32_arm_merge_eabi_attributes): New functions. | |
178 | (elf32_arm_copy_private_bfd_data): Copy EABI object attributes. | |
179 | (elf32_arm_fake_sections): Handle .ARM.attributes. | |
180 | (elf32_arm_parse_attributes): New function. | |
181 | (elf32_arm_section_from_shdr): Use it. | |
182 | (bfd_elf32_bfd_final_link): Define. | |
183 | ||
6edfbbad DJ |
184 | 2005-10-06 Daniel Jacobowitz <[email protected]> |
185 | ||
186 | * elf32-arm.c (elf32_arm_check_relocs): Avoid aliasing warnings from | |
187 | GCC. | |
188 | (elf32_arm_size_dynamic_sections): Likewise. | |
189 | * ecofflink.c (bfd_ecoff_debug_one_external): Likewise. | |
190 | * elf32-hppa.c (elf32_hppa_check_relocs): Likewise. | |
191 | * elf32-m32r.c (m32r_elf_check_relocs): Likewise. | |
192 | * elf32-m68k.c (elf_m68k_check_relocs): Likewise. | |
193 | * elf32-ppc.c (ppc_elf_check_relocs): Likewise. | |
194 | * elf32-s390.c (elf_s390_check_relocs): Likewise. | |
195 | (elf_s390_size_dynamic_sections): Likewise. | |
196 | * elf32-sh.c (sh_elf_check_relocs): Likewise. | |
197 | * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count) | |
198 | (ppc64_elf_size_dynamic_sections): Likewise. | |
199 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
200 | (elf_s390_size_dynamic_sections): Likewise. | |
201 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise. | |
202 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. | |
203 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
204 | * ieee.c (ieee_slurp_section_data): Likewise. | |
205 | * oasys.c (oasys_slurp_section_data): Likewise. | |
206 | ||
1b74d094 BW |
207 | 2005-10-04 Bob Wilson <[email protected]> |
208 | ||
209 | * archive.c: Add missing SUBSECTION for documentation. | |
210 | * bfd.c: Likewise. | |
211 | * cache.c: Likewise. | |
212 | * corefile.c: Likewise. | |
213 | * format.c: Likewise. | |
214 | * init.c: Likewise. | |
215 | * libbfd.c: Likewise. | |
216 | * opncls.c: Likewise. | |
217 | * elf.c: Remove blank line after SECTION heading. | |
218 | * reloc.c: Change "howto manager" SECTION to a SUBSECTION. | |
219 | ||
bd4aae00 NC |
220 | 2005-10-04 Nick Clifton <[email protected]> |
221 | ||
222 | * elf32-arm.c (get_arm_elf_section_data): Cache the last pointer | |
223 | matched so that the typical case of scanning for the previous | |
224 | section to last one can be handled quickly. | |
225 | ||
d638e0ac BW |
226 | 2005-10-03 David Heine <[email protected]> |
227 | ||
228 | * elf32-xtensa.c (relocations_reach): Skip range check for | |
229 | absolute literals. | |
230 | ||
65a7a66f AM |
231 | 2005-10-03 Alan Modra <[email protected]> |
232 | ||
233 | * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on | |
234 | synthetic syms. | |
235 | ||
5d038dee L |
236 | 2005-09-30 H.J. Lu <[email protected]> |
237 | ||
238 | * Makefile.am: Run "make dep-am". | |
239 | * Makefile.in: Regenerated. | |
240 | * aclocal.m4: Likewise. | |
241 | ||
0f64bb02 CM |
242 | 2005-09-30 Catherine Moore <[email protected]> |
243 | ||
244 | * Makefile.am: Bfin support. | |
245 | * Makefile.in: Regenerated. | |
246 | * aclocal.m4: Regenerated. | |
247 | * archures.c (bfd_mach_bfin): New. | |
248 | (bfd_arch_bfin): New. | |
249 | bfd-in.h (bfd_bfin_elf32_create_embedded_relocs): New. | |
250 | * bfd-in2.h: Regenerated. | |
251 | * config.bfd: Bfin support. | |
252 | * configure: Regenerated. | |
253 | * configure.in: Bfin support. | |
254 | * libbfd.h: Regenerated. | |
255 | * reloc.c: Add BFD relocations for Bfin. | |
256 | * targets.c (bfd_elf32_bfin_vec): New. | |
257 | * cpu-bfin.c: New file. | |
258 | * elf32-bfin.c: New file. | |
259 | ||
7fe2b9a6 AM |
260 | 2005-09-30 Alan Modra <[email protected]> |
261 | ||
262 | * elf64-ppc.c (ppc_type_of_stub): Check both func desc and func | |
263 | entry sym before deciding no stub is needed. | |
264 | (ppc64_elf_size_stubs): When calculating branch destination, | |
265 | don't use func desc sym for old ABI objects unless func entry | |
266 | is undefined. | |
267 | ||
dd863624 L |
268 | 2005-09-28 H.J. Lu <[email protected]> |
269 | ||
270 | PR binutils/1321 | |
271 | * elf-bfd.h (_bfd_elf_setup_group_pointers): Renamed to ... | |
272 | (_bfd_elf_setup_sections): This. | |
273 | * elf.c: Likewise. | |
274 | * elfcode.h (elf_object_p): Likewise. | |
275 | ||
276 | * elf.c (_bfd_elf_setup_sections): Process SHF_LINK_ORDER. | |
277 | (_bfd_elf_copy_private_section_data): Likewise. | |
278 | ||
d33cdfe3 L |
279 | 2005-09-28 H.J. Lu <[email protected]> |
280 | ||
281 | * elflink.c (elf_fixup_link_order): Report locations for mixed | |
282 | ordered and unordered input sections. | |
283 | ||
c955f9cd JW |
284 | 2005-09-22 James E. Wilson <[email protected]> |
285 | ||
286 | * dwarf2.c (struct funcinfo): Delete nesting_level field. | |
287 | (lookup_address_in_function_table): Delete code to set funcinfo | |
288 | caller_func field. Delete local curr_func. | |
289 | (scan_unit_for_symbols): New locals nested_funcs, nested_funcs_size. | |
290 | Delete code setting funcinfo nesting_level field. Add code to set | |
291 | funcinfo caller_func field. | |
292 | ||
d5cbaa15 JW |
293 | 2005-09-20 James E. Wilson <[email protected]> |
294 | ||
295 | * dwarf2.c (find_abstract_instance_name): Don't early exit when name | |
296 | set. For DW_AT_name case, only set name if not already set. Handle | |
297 | DW_AT_MIPS_linkage_name. | |
298 | ||
707bba77 AM |
299 | 2005-09-20 Alan Modra <[email protected]> |
300 | ||
301 | * elflink.c (_bfd_elf_merge_symbol): Simplify. | |
302 | ||
5c3dead3 AM |
303 | 2005-09-19 Alan Modra <[email protected]> |
304 | ||
305 | * elf64-ppc.c (ppc_build_one_stub): Replace assertion that long | |
306 | branch offset is in range with an error. Print full stub name on | |
307 | errors. | |
308 | (ppc_size_one_stub): Print full stub name on errors. | |
309 | (group_sections): Warn if section size exceeds group size. | |
310 | (ppc64_elf_size_stubs): Continue relaxing when stub types change. | |
311 | ||
6cfda947 KB |
312 | 2005-09-09 Kevin Buettner <[email protected]> |
313 | ||
314 | * elf32-am33lin.c (bfd.h, sysdep.h, elf-bfd.h, elf/mn10300.h): | |
315 | Include. | |
316 | (elf32_am33lin_grok_prstatus, elf32_am33lin_grok_psinfo): New | |
317 | functions. | |
318 | (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define. | |
319 | ||
0951f019 RE |
320 | 2005-09-09 Richard Earnshaw <[email protected]> |
321 | ||
322 | * elf32-arm.c (elf32_arm_section_from_shdr): Accept SHT_ARM_PREEMPTMAP | |
323 | and SHT_ARM_ATTRIBUTES. | |
324 | ||
e04bcc6d L |
325 | 2005-09-08 H.J. Lu <[email protected]> |
326 | ||
327 | * elflink.c (elf_get_linked_section_vma): Fix a typo in comment. | |
328 | * elfxx-ia64.c (elf_backend_link_order_error_handler): Likewise. | |
329 | ||
92fd189d L |
330 | 2005-09-08 H.J. Lu <[email protected]> |
331 | ||
332 | PR ld/1263 | |
333 | * elflink.c (elf_link_add_object_symbols): Abort for | |
334 | --just-symbols on DSO. | |
335 | ||
3eb17e6b PB |
336 | 2005-09-08 Paul Brook <[email protected]> |
337 | ||
338 | * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC. | |
339 | * bfd-in2.h: Regenerate. | |
340 | * libbfd.h: Regenerate. | |
341 | ||
68f49ba3 L |
342 | 2005-09-06 H.J. Lu <[email protected]> |
343 | ||
344 | PR ld/1301 | |
345 | * elflink.c (_bfd_elf_merge_symbol): Don't check undefined | |
346 | symbol introduced by "ld -u" for TLS. | |
347 | ||
8f06b2d8 PB |
348 | 2005-09-02 Paul Brook <[email protected]> |
349 | ||
350 | * libbdf.h: Regenerate. | |
351 | * bfd-in2.h: Regenerate. | |
352 | * reloc.c: Add BFD_RELOC_ARM_T32_CP_OFF_IMM and | |
353 | BFD_RELOC_ARM_T32_CP_OFF_IMM_S2. | |
354 | ||
046aeb74 DD |
355 | 2005-09-01 Dmitry Diky <[email protected]> |
356 | ||
357 | * elf32-msp430.c (msp430_elf_relax_delete_bytes): Do not adjust | |
358 | local symbols and move it to | |
359 | (msp430_elf_relax_adjust_locals): New function - walk over the | |
360 | sections in the bfd and adjust relocations as necessary. | |
361 | ||
e81d3500 DD |
362 | 2005-08-31 DJ Delorie <[email protected]> |
363 | ||
364 | * elf32-i386.c (elf_i386_check_relocs): Don't cast a unary & | |
365 | address operator, as that breaks GCC's strict aliasing rules. | |
366 | (elf_i386_size_dynamic_sections): Avoid the need for type | |
367 | punning. | |
368 | * elf64-x86-64.c (elf_x86_64_check_relocs): Don't cast a unary | |
369 | & address operator, as that breaks GCC's strict aliasing | |
370 | rules. | |
371 | (elf_x86_64_size_dynamic_sections): Avoid the need for type | |
372 | punning. | |
373 | ||
e26f8bd9 NC |
374 | 2005-08-30 Phil Edwards <[email protected]> |
375 | ||
376 | * config.bfd (i[3-7]86-*-vxworks): Match vxworks* instead. | |
377 | ||
1faab634 L |
378 | 2005-08-29 H.J. Lu <[email protected]> |
379 | ||
380 | PR ld/1247 | |
381 | * elfxx-ia64.c (allocate_fptr): Check undefined symbol. | |
382 | ||
c9adbffe NC |
383 | 2005-08-29 Steven J. Hill <[email protected]> |
384 | ||
385 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Initialise | |
386 | 'value' to avoid compile time warning message. | |
387 | ||
c0524131 NC |
388 | 2005-08-26 Christian Groessler <[email protected]> |
389 | ||
390 | * coff-z8k.c: (r_jr, r_disp7, r_callr): Fix src_mask and dst_mask | |
391 | of HOWTO. | |
392 | (coff_z8k_select_reloc): Remove. | |
393 | (SELECT_RELOC): Remove. | |
394 | (coff_z8k_reloc_type_lookup): New function. | |
395 | (coff_bfd_reloc_type_lookup): Define. | |
396 | * configure.in: Add cofflink.lo to z8kcoff_vec. | |
397 | * configure: Regenerate. | |
398 | * reloc.c: (bfd_reloc_code_type): Add z8k relocations. | |
399 | (bfd_install_relocation): Don't clear reloc_entry->addend for | |
400 | coff-z8k target. | |
401 | * bfd-in2.h: Regenerate. | |
402 | * libbfd.h: Regenerate. | |
403 | ||
4195f552 KK |
404 | 2005-08-25 Kaz Kojima <[email protected]> |
405 | ||
406 | * elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error. | |
407 | ||
843fe662 L |
408 | 2005-08-24 H.J. Lu <[email protected]> |
409 | ||
410 | PR ld/1208 | |
411 | * elf-hppa.h (elf_hppa_relocate_section): Print out the name | |
412 | of unresolvable relocation. | |
413 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
414 | * elf32-arm.c (elf32_arm_relocate_section): Likewise. | |
415 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
416 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
417 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
418 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
419 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
420 | * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. | |
421 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
422 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
423 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
424 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
425 | ||
1cddf136 KK |
426 | 2005-08-18 Kaz Kojima <[email protected]> |
427 | ||
428 | * config.bfd: Add bfd_elf32_shnbsd_vec and bfd_elf32_shlnbsd_vec | |
429 | to targ_selvecs for sh5*-*-netbsd* and sh64*-*-netbsd*. | |
430 | ||
c17ae8a2 AM |
431 | 2005-08-18 Alan Modra <[email protected]> |
432 | ||
848cf006 AM |
433 | * coff-a29k.c: Delete. |
434 | * cpu-a29k.c: Delete. | |
c17ae8a2 AM |
435 | * Makefile.am: Remove mention of a29k files. |
436 | * aoutf1.h: Remove a29k support. | |
437 | * aoutx.h: Likewise. | |
438 | * archures.c: Likewise. | |
439 | * coffcode.h: Likewise. | |
440 | * config.bfd: Likewise. | |
441 | * configure.in: Likewise. | |
442 | * ieee.c: Likewise. | |
443 | * mipsbsd.c: Likewise. | |
444 | * pdp11.c: Likewise. | |
445 | * sparclynx.c: Likewise. | |
446 | * targets.c: Likewise. | |
447 | * Makefile.in: Regenerate. | |
448 | * configure: Regenerate. | |
449 | * bfd-in2.h: Regenerate. | |
450 | * po/SRC-POTFILES.in: Regenerate. | |
451 | ||
909272ee AM |
452 | 2005-08-18 Alan Modra <[email protected]> |
453 | ||
454 | * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Warn on | |
455 | zero size dynamic variables. | |
456 | * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise. | |
457 | * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise. | |
458 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
459 | * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise. | |
460 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise. | |
461 | * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise. | |
462 | * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. | |
463 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. | |
464 | * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
465 | * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise. | |
466 | * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise. | |
467 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
468 | * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
469 | * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise. | |
470 | * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
471 | * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. | |
472 | ||
bc79cded L |
473 | 2005-08-17 H.J. Lu <[email protected]> |
474 | ||
475 | PR binutils/1179 | |
476 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma | |
477 | instead of vma. | |
478 | (_bfd_dwarf2_find_line): Likewise. | |
479 | ||
46fda84e AM |
480 | 2005-08-17 Alan Modra <[email protected]> |
481 | ||
482 | * elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section | |
483 | SEC_LINKER_CREATED. | |
484 | (mmix_elf_final_link): Check that section hasn't already been | |
485 | removed before removing. | |
486 | * mmo.c (mmo_scan): Mark reg contents section SEC_LINKER_CREATED. | |
487 | (mmo_canonicalize_symtab): Likewise for reg section. | |
488 | ||
8d1d654f AM |
489 | 2005-08-17 Alan Modra <[email protected]> |
490 | ||
491 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later. | |
492 | * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called | |
493 | without any got section. | |
494 | ||
27198fa9 DS |
495 | 2005-08-17 Danny Smith <[email protected]> |
496 | ||
497 | * cofflink.c (_bfd_coff_generic_relocate_section): Correct | |
498 | comment. | |
499 | ||
ccabcbe5 AM |
500 | 2005-08-17 Alan Modra <[email protected]> |
501 | ||
502 | * elflink.c (_bfd_elf_define_linkage_sym): Don't call | |
503 | bfd_elf_link_record_dynamic_symbol. Call elf_backend_hide_symbol. | |
504 | (_bfd_elf_link_renumber_dynsyms): Formatting. | |
505 | (struct elf_gc_sweep_symbol_info): New. | |
506 | (elf_gc_sweep_symbol): Rewrite. | |
507 | (elf_gc_sweep): Adjust params and elf_gc_sweep_symbol call. | |
508 | Call _bfd_elf_link_renumber_dynsyms. | |
509 | (bfd_elf_gc_sections): Adjust elf_gc_sweep call. | |
510 | ||
18d944df AM |
511 | 2005-08-16 Alan Modra <[email protected]> |
512 | ||
513 | * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count | |
514 | when relocatable. | |
515 | ||
4af0a1d8 BW |
516 | 2005-08-15 Bob Wilson <[email protected]> |
517 | ||
518 | * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values | |
519 | of EM_XTENSA and EM_XTENSA_OLD. | |
520 | ||
d98685ac AM |
521 | 2005-08-16 Alan Modra <[email protected]> |
522 | ||
523 | * elf-bfd.h (_bfd_elf_define_linkage_sym): Declare. | |
524 | * elflink.c (_bfd_elf_define_linkage_sym): New function, extracted | |
525 | from.. | |
526 | (_bfd_elf_create_got_section): ..here. | |
527 | (_bfd_elf_link_create_dynamic_sections): Call it for _DYNAMIC. | |
528 | (_bfd_elf_create_dynamic_sections): ..and _PROCEDURE_LINKAGE_TABLE_. | |
529 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Use | |
530 | _bfd_elf_define_linkage_sym. | |
531 | * elf32-frv.c (_frv_create_got_section): Likewise. | |
532 | * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise. | |
533 | ||
ce490eda PB |
534 | 2005-08-15 Paul Brook <[email protected]> |
535 | ||
536 | * elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as | |
537 | R_ARM_PC24. | |
538 | ||
4fc35ca9 DA |
539 | 2005-08-13 John David Anglin <[email protected]> |
540 | ||
541 | PR ld/1135 | |
542 | * elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for | |
543 | .plt, .dlt, .sdata, .sbss and .tbss. | |
544 | ||
fa9ee72b DD |
545 | 2005-08-12 Dmitry Diky <[email protected]> |
546 | ||
547 | * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations | |
548 | referenced by .section + DISPLACEMENT. | |
549 | ||
98b880f4 JW |
550 | 2005-08-10 James E. Wilson <[email protected]> |
551 | ||
552 | * dwarf2.c (scan_unit_for_symbols, case DT_AT_location): Verify that | |
553 | DW_OP_addr is only opcode in location before using it. | |
554 | ||
a38a2e96 L |
555 | 2005-08-09 H.J. Lu <[email protected]> |
556 | ||
557 | * elfxx-ia64.c (elfNN_ia64_final_link): Reset gp. | |
558 | ||
fd6212e6 NC |
559 | 2005-08-09 Rodney Brown <[email protected]> |
560 | Nick Clifton <[email protected]> | |
561 | ||
562 | * aix5ppc-core.c (xcoff64_core_p): Constify return_value | |
563 | variable. Also, do not use core_hdr macro as it evaluates to a | |
564 | cast of an lvalue which is no longer supported by GCC 4.0. | |
565 | ||
44c86e8c NC |
566 | 2005-08-08 Eric Dönges <[email protected]> |
567 | ||
568 | * archures.c (bfd_mach_msp21): New MSP430 machine number. | |
569 | * bfd-in2.h: Regenerate. | |
570 | * cpu-msp430.c (arch_info_struct): Add support for msp430x21xx | |
571 | variants. | |
572 | ||
957c6e41 NC |
573 | 2005-08-07 Nick Clifton <[email protected]> |
574 | Paul Brook <[email protected]> | |
575 | ||
576 | PR 1147 | |
577 | * elf32-arm.c (bfd_elf32_close_and_cleanup): Define. | |
578 | (elf32_arm_close_and_cleanup): New function - walk over the | |
579 | sections in the bfd that is being closed removing them from the | |
580 | list of recorded sections. | |
581 | (unrecord_section_via_map_over_sections): New helper function. | |
582 | (record_section_with_arm_elf_section_data): Call bfd_malloc | |
583 | instead of bfd_alloc. Remove unneeded abfd parameter. | |
584 | (elf32_arm_new_section_hook): Do not pass bfd to | |
585 | record_section_with_arm_elf_section_data. | |
586 | ||
587 | * elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not | |
588 | already defined by the target. | |
589 | ||
a29b7e88 FF |
590 | 2005-08-05 Fred Fish <[email protected]> |
591 | ||
592 | * dwarf2.c (read_rangelist): Use addr_size instead of offset_size | |
593 | to determine how many bytes to read from each rangelist entry. | |
594 | ||
7af8e998 L |
595 | 2005-08-05 H.J. Lu <[email protected]> |
596 | ||
597 | * bfd.c (bfd_hide_symbol): New. | |
598 | * bfd-in2.h: Regenerated. | |
599 | ||
00492999 L |
600 | 2005-08-04 H.J. Lu <[email protected]> |
601 | ||
602 | * elf64-x86-64.c (elf64_x86_64_merge_symbol): When mixing a | |
603 | large common symbol and a normal common symbol, always turn | |
604 | the large common symbol into a normal one. | |
605 | ||
046183de AM |
606 | 2005-08-04 Alan Modra <[email protected]> |
607 | ||
608 | * elf32-ppc.c (struct elf_linker_section): Replace sym_val field | |
609 | with sym. | |
610 | (ppc_elf_relocate_section): Adjust for above. | |
611 | (create_sdata_sym): New function. | |
612 | (ppc_elf_create_linker_section): Call it. | |
613 | (ppc_elf_check_relocs): Correct has_sda_refs and non_got_refs. | |
614 | Create sdata syms for all SDA relocs. | |
615 | (ppc_elf_adjust_dynamic_symbol): Don't special case _SDA_BASE_ | |
616 | and _SDA2_BASE_. | |
617 | (ppc_elf_set_sdata_syms): Delete. | |
618 | * elflink.c (bfd_elf_size_dynamic_sections): Don't create DT_INIT | |
619 | and DT_FINI tags unless associated section has input. | |
620 | (bfd_elf_set_symbol, _bfd_elf_provide_symbol): Delete. | |
621 | (_bfd_elf_provide_section_bound_symbols): Delete. | |
622 | * bfd-in.h (_bfd_elf_provide_symbol): Delete. | |
623 | (_bfd_elf_provide_section_bound_symbols): Delete. | |
624 | * bfd-in2.h: Regenerate. | |
625 | ||
1e035701 AM |
626 | 2005-08-04 Alan Modra <[email protected]> |
627 | ||
628 | * elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to.. | |
629 | * linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here. | |
630 | * bfd-in.h (_bfd_fix_excluded_sec_syms): Rename. | |
631 | * bfd-in2.h: Regenerate. | |
632 | ||
90b263f3 L |
633 | 2005-08-03 H.J. Lu <[email protected]> |
634 | ||
635 | * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got | |
636 | only if it isn't NULL. | |
637 | ||
b0360d8c L |
638 | 2005-08-03 H.J. Lu <[email protected]> |
639 | ||
640 | * elf32-i386.c (elf_howto_table): Undo the overflow change for | |
641 | R_386_PC16 made on 2005-07-18. | |
642 | ||
643 | * elf64-x86-64.c (x86_64_elf_howto_table): Undo the overflow | |
644 | change for R_X86_64_PC16 made on 2005-07-18. | |
645 | ||
636ce3f5 AM |
646 | 2005-08-03 Alan Modra <[email protected]> |
647 | ||
648 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. Use | |
649 | elf.hgot throughout file. | |
650 | ||
4d962050 AM |
651 | 2005-08-03 Alan Modra <[email protected]> |
652 | ||
653 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value of | |
654 | _GLOBAL_OFFSET_TABLE_ for > 32k GOT. | |
655 | ||
4a78a1f4 AS |
656 | 2005-08-02 Andreas Schwab <[email protected]> |
657 | ||
658 | * elfxx-ia64.c (struct elfNN_ia64_allocate_data): Add only_got. | |
659 | (elfNN_ia64_relax_section): Reallocate .rela.got when .got has | |
660 | changed. | |
661 | (allocate_dynrel_entries): Look only at GOT relocations when | |
662 | only_got is true. | |
663 | (elfNN_ia64_size_dynamic_sections): Set only_got to false before | |
664 | calling allocate_dynrel_entries. | |
665 | ||
8e3de13a NC |
666 | 2005-08-02 Nick Clifton <[email protected]> |
667 | ||
668 | PR 1147 | |
669 | * elf32-arm.c (struct _arm_elf_section_data): Turn into a typedef | |
670 | and make the mapcount field unsigned. | |
671 | (struct section_list): New: Used to keep track of which sections | |
672 | have an _arm_elf_section_data structure. | |
673 | (record_section_with_arm_elf_section_data): New function. | |
674 | (get_arm_elf_section_data): New function. | |
675 | (unrecord_section_with_arm_elf_section_data): New function. | |
676 | (elf32_arm_output_symbol_hook): Use get_arm_elf_section_data. | |
677 | (elf32_arm_new_section_hook): Call | |
678 | record_section_with_arm_elf_section_data. | |
679 | (elf32_arm_write_section): Use get_arm_elf_section_data and | |
680 | unrecord_section_with_arm_elf_section_data. | |
681 | ||
c5211a54 RS |
682 | 2005-08-01 Richard Sandiford <[email protected]> |
683 | ||
684 | * elfxx-mips.c (mips_mach_extends_p): Treat MIPS64 as an extension | |
685 | of MIPS32 and MIPS64r2 as an extension of MIPS32r2. | |
686 | ||
1b9ee6a2 DD |
687 | 2005-07-30 David Daney <[email protected]> |
688 | ||
689 | * elflink.c (elf_gc_sweep): Set dynsymcount to correct value. | |
690 | ||
eedecc07 DD |
691 | 2005-07-29 David Daney <[email protected]> |
692 | ||
693 | * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_disp | |
694 | if it is in the *ABS* section. | |
695 | ||
e9f89963 PB |
696 | 2005-07-29 Paul Brook <[email protected]> |
697 | ||
698 | * reloc.c: Add BFD_RELOC_ARM_T32_ADD_PC12. | |
699 | * bfd-in2.h: Regenerate. | |
700 | * libbfd.h: Regenerate. | |
701 | ||
92e90b6e PB |
702 | 2005-07-29 Paul Brook <[email protected]> |
703 | ||
704 | * reloc.c (BFD_RELOC_ARM_T32_IMM12): Add. | |
705 | * bfd-in2.h: Regeenrate. | |
706 | * libbfd.h: Regenerate. | |
707 | ||
0facbdf5 NC |
708 | 2005-07-29 Pavel Kankovsky <[email protected]> |
709 | ||
710 | * peXXigen.c (pe_print_edata): Compute the size of the export | |
711 | table from the size field in the DataDictionary and not the size | |
712 | of the section. Some linkers embed the export table inside a | |
713 | larger section. | |
714 | ||
8a696751 AM |
715 | 2005-07-29 Alan Modra <[email protected]> |
716 | ||
717 | * elf-bfd.h (struct elf_backend_data): Add action_discarded. | |
718 | (enum action_discarded): Move from.. | |
719 | * elflink.c (enum action_discarded): ..here. | |
720 | (_bfd_elf_default_action_discarded): Rename from elf_action_discarded. | |
721 | Remove target specific section checks. | |
722 | (elf_link_input_bfd): Adjust. | |
723 | * elfxx-target.h (elf_backend_action_discarded): Define. | |
724 | (elfNN_bed): Init new field. | |
725 | * bfd-in.h (_bfd_elf_default_action_discarded): Declare. | |
726 | * bfd-in2.h: Regenerate. | |
727 | * elf-hppa.h (elf_hppa_action_discarded): New function. | |
728 | * elf32-hppa.c (elf_backend_action_discarded): Define. | |
729 | * elf64-hppa.c (elf_backend_action_discarded): Define. | |
730 | * elf32-ppc.c (ppc_elf_action_discarded): New function. | |
731 | (elf_backend_action_discarded): Define. | |
732 | ||
2f5028a7 AM |
733 | 2005-07-27 Alan Modra <[email protected]> |
734 | ||
735 | * elflink.c (fix_syms): Handle symbols defined in input sections. | |
736 | ||
a33d77bc JB |
737 | 2005-07-27 Jan Beulich <[email protected]> |
738 | ||
739 | * elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New. | |
740 | (elf64_x86_64_info_to_howto): Use them. | |
741 | ||
f41d945b AM |
742 | 2005-07-27 Alan Modra <[email protected]> |
743 | ||
744 | * elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition | |
745 | regardless of strength of previous definition. | |
746 | ||
87538722 AM |
747 | 2005-07-26 Alan Modra <[email protected]> |
748 | ||
749 | * elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared. | |
750 | (bfd_elf_gc_sections): Allow -gc-sections when -shared. | |
751 | * elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared. | |
752 | ||
9e8cc8b4 AM |
753 | 2005-07-26 Alan Modra <[email protected]> |
754 | ||
755 | * elflink.c (elf_gc_sweep): Move gcc_except_table code.. | |
756 | (bfd_elf_gc_sections): ..to here. | |
757 | ||
fd54057a DD |
758 | 2005-07-25 DJ Delorie <[email protected]> |
759 | ||
760 | * reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8. | |
761 | * libbfd.h: Regenerate. | |
762 | * bfd-in2.h: Regenerate. | |
763 | ||
764 | * elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16, | |
765 | R_M32C_HI8, R_M32C_HI16. | |
766 | (m32c_reloc_map): Likewise. | |
767 | (m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16. | |
768 | ||
3b22753a L |
769 | 2005-07-25 Jan Hubicka <[email protected]> |
770 | H.J. Lu <[email protected]> | |
771 | ||
772 | * elf-bfd.h (_bfd_elf_large_com_section): New. | |
773 | * elf.c (_bfd_elf_large_com_section): New. Defined. | |
774 | ||
775 | * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New. | |
776 | (elf64_x86_64_elf_section_from_bfd_section): New. | |
777 | (elf64_x86_64_symbol_processing): New. | |
778 | (elf64_x86_64_common_definition): New. | |
779 | (elf64_x86_64_common_section_index): New. | |
780 | (elf64_x86_64_common_section): New. | |
781 | (elf64_x86_64_merge_symbol): New. | |
782 | (elf64_x86_64_additional_program_headers): New. | |
783 | (elf64_x86_64_special_sections): New. | |
784 | (elf_backend_section_from_bfd_section): New. Defined. | |
785 | (elf_backend_add_symbol_hook): Likewise. | |
786 | (elf_backend_common_section_index): Likewise. | |
787 | (elf_backend_common_section): Likewise. | |
788 | (elf_backend_common_definition): Likewise. | |
789 | (elf_backend_merge_symbol): Likewise. | |
790 | (elf_backend_special_sections): Likewise. | |
791 | (elf_backend_additional_program_headers): Likewise. | |
792 | ||
a4d8e49b L |
793 | 2005-07-25 H.J. Lu <[email protected]> |
794 | ||
795 | * elf-bfd.h (elf_backend_data): Add common_definition, | |
796 | common_section_index, common_section, and merge_symbol. | |
797 | (_bfd_elf_common_definition): New. | |
798 | (_bfd_elf_common_section_index): New. | |
799 | (_bfd_elf_common_section): New. | |
800 | ||
801 | * elf.c (elf_fake_sections): Don't clear sh_flags. | |
802 | ||
803 | * elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol | |
804 | if it is available. | |
805 | (is_global_data_symbol_definition): Call backend | |
806 | common_definition instead of checking SHN_COMMON. | |
807 | (elf_link_add_object_symbols): Likewise. | |
808 | (elf_link_output_extsym): Call backend common_section_index | |
809 | for common section index. | |
810 | (_bfd_elf_common_definition): New. | |
811 | (_bfd_elf_common_section_index): New. | |
812 | (_bfd_elf_common_section): New. | |
813 | ||
814 | * elfxx-target.h (elf_backend_common_definition): New. | |
815 | (elf_backend_common_section_index): New. | |
816 | (elf_backend_common_section): New. | |
817 | (elf_backend_merge_symbol): New. | |
818 | (elfNN_bed): Initialize common_definition, common_section_index, | |
819 | common_section, and merge_symbol. | |
820 | ||
821 | * section.c (BFD_FAKE_SECTION): New. | |
822 | (STD_SECTION): Use it. | |
823 | * bfd-in2.h: Regenerated. | |
824 | ||
58ac56d0 L |
825 | 2005-07-23 Olaf Hering <[email protected]> |
826 | ||
827 | * elflink.c (elf_link_input_bfd): Add '\n' for linker einfo | |
828 | callback. | |
829 | ||
9f971fcb NC |
830 | 2005-07-21 Ralf Corsepius <[email protected]> |
831 | ||
832 | * config.bfd: Remove i[3-7]86-*-rtemself*. | |
833 | Remove sparc-*-rtemself*. | |
834 | ||
a9b7b174 NC |
835 | 2005-07-22 Kazuhiro Inaoka <[email protected]> |
836 | ||
837 | * elf32-m32r.c (m32r_elf_check_relocs): Fix pc count for | |
838 | R_M32R_REL32. | |
839 | ||
240a3425 BE |
840 | 2005-07-21 Ben Elliston <[email protected]> |
841 | ||
842 | * Makefile.am (BFD32_BACKENDS): Remove cf-m68klynx.lo. | |
843 | (BFD32_BACKENDS): Likewise, remove m68klynx.lo. | |
844 | (BFD32_BACKENDS_CFILES): Remove cf-m68klynx.c, m68klynx.c. | |
845 | (cf-m68klynx.lo, m68klynx.lo): Remove targets. | |
846 | * Makefile.in: Regenerate. | |
847 | * cf-m68klynx.c: Remove. | |
848 | * m68klynx.c: Likewise. | |
849 | * configure.in (m68klynx_aout_vec): Remove vector. | |
850 | (m68klynx_coff_vec): Likewise. | |
851 | * configure: Regenerate. | |
852 | * targets.c (m68klynx_aout_vec): Remove extern. | |
853 | (m68klynx_coff_vec): Likewise. | |
854 | (_bfd_target_vector): Remove m68klynx_{aout,coff}_vec. | |
855 | * po/SRC-POTFILES.in: Remove cf-m68klynx.c, m68klynx.c. | |
856 | ||
157e7bd1 NC |
857 | 2005-07-20 Kazuhiro Inaoka <[email protected]> |
858 | ||
859 | * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_REL32. | |
860 | (m32r_reloc_map): Likewise. | |
861 | (m32r_elf_relocate_section): Likewise. | |
862 | (m32r_elf_gc_sweep_hook): Likewise. | |
863 | (m32r_elf_check_relocs): Likewise. | |
864 | ||
85da3a56 NC |
865 | 2005-07-18 Nick Clifton <[email protected]> |
866 | ||
867 | * reloc.c: Add M32C and MS1 relocs. | |
868 | * bfd-in2.h: Regenerate. | |
869 | * libbfd.h: Regenerate. | |
870 | ||
871 | 2005-07-18 Nick Clifton <[email protected]> | |
872 | ||
873 | * config.bfd: Move m32c entry to correct location. | |
9e8cc8b4 AM |
874 | * archures.c: Likewise. |
875 | * configure.in: Likewise. | |
876 | * configure: Regenerate. | |
877 | * targets.c: Move ms1 vector to correct location. | |
85da3a56 | 878 | |
ac2aa337 JB |
879 | 2005-07-18 Jan Beulich <[email protected]> |
880 | ||
881 | * elf32-i386.c (elf_howto_table): Adjust overflow complaint handler | |
882 | for R_386_PC16. | |
883 | * elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint | |
884 | handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF. | |
885 | ||
9a20ed6e | 886 | 2005-07-16 Eric Botcazou <[email protected]> |
cc86ff91 EB |
887 | |
888 | PR ld/1021 | |
889 | PR ld/1031 | |
890 | * elflink.c (elf_link_add_object_symbols): Also append the version | |
891 | name to non-hidden absolute symbols that are functions. | |
892 | ||
42fa7765 AM |
893 | 2005-07-16 Alan Modra <[email protected]> |
894 | ||
895 | * elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack | |
896 | for zero size sections. Don't set .sbss syms here. | |
897 | * elf32-ppc.h (ppc_elf_set_sdata_syms): Adjust prototype. | |
898 | ||
0f82ff91 AM |
899 | 2005-07-16 Alan Modra <[email protected]> |
900 | ||
901 | * Makefile.am: Run "make dep-am". | |
902 | * Makefile.in: Regenerate. | |
903 | ||
2db662be BW |
904 | 2005-07-15 Bob Wilson <[email protected]> |
905 | ||
906 | * elf32-xtensa.c (vsprint_msg): Add prototype. | |
907 | (build_encoding_error_message): Delete. Code moved into.... | |
908 | (elf_xtensa_do_reloc): ....here, and changed to give better | |
909 | error messages for out of range literals. | |
910 | ||
eaae8ded AM |
911 | 2005-07-15 Alan Modra <[email protected]> |
912 | ||
913 | * elflink.c (bfd_elf_record_link_assignment): Remove output_bfd param. | |
914 | (_bfd_elf_provide_symbol): Allow redefinition of weak syms and those | |
915 | defined in output sections. Call bfd_elf_record_link_assignment. | |
916 | * bfd-in.h (bfd_elf_record_link_assignment): Update prototype. | |
917 | * bfd-in2.h: Regenerate. | |
918 | ||
49f58d10 JB |
919 | 2005-07-14 Jim Blandy <[email protected]> |
920 | ||
921 | Add support for m32c-*-elf (Renesas m32c and m16c). | |
922 | * Makefile.am (ALL_MACHINES): Add cpu-m32c.lo. | |
923 | (ALL_MACHINES_CFILES): Add cpu-m32c.c. | |
924 | (BFD32_BACKENDS): Add elf32-m32c.lo. | |
925 | (BFD32_BACKENDS_CFILES): Add elf32-m32c.c. | |
926 | (cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'. | |
927 | * Makefile.in: Regenerated. | |
928 | * archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New | |
929 | arch and mach codes. | |
930 | (bfd_m32c_arch): New arch info object. | |
931 | (bfd_archures_list): List bfd_m32c_arch. | |
932 | * bfd-in2.h: Regenerated. | |
933 | * config.bfd: Add case for the m32c. | |
934 | * configure.in: Add case for the m32c. | |
935 | * configure: Regenerated. | |
936 | * cpu-m32c.c, elf32-m32c.c: New files. | |
937 | * libbfd.h: Regenerated. | |
938 | * targets.c (bfd_elf32_m32c_vec): Declare. | |
939 | (_bfd_target_vector): List bfd_elf32_m32c_vec. | |
940 | ||
a3c2b96a AM |
941 | 2005-07-14 Alan Modra <[email protected]> |
942 | ||
943 | * bfd-in.h (_bfd_elf_fix_excluded_sec_syms): Declare. | |
944 | (_bfd_elf_provide_section_bound_symbols): Remove param name. | |
945 | Formatting. | |
946 | * bfd-in2.h: Regenerate. | |
947 | * elflink.c (bfd_elf_gc_sections): Don't call generic function. | |
948 | (_bfd_elf_provide_symbol): Formatting. | |
949 | (_bfd_elf_provide_section_bound_symbols): Remove all hacks, just | |
950 | create section relative syms. | |
951 | (fix_syms, _bfd_elf_fix_excluded_sec_syms): New functions. | |
952 | * elf32-ppc.c (ppc_elf_set_sdata_syms): Use | |
953 | _bfd_elf_provide_section_bound_symbols. | |
954 | * reloc.c (bfd_mark_used_section): Delete. | |
955 | (bfd_generic_gc_sections): Don't call the above. | |
956 | ||
1787c340 NC |
957 | 2005-07-14 Paul Woegerer <[email protected]> |
958 | ||
cb4aa473 | 959 | PR 1063 |
1787c340 NC |
960 | * cache.c (bfd_last_cache): Initialise to NULL. |
961 | ||
15ac1d4f NC |
962 | 2005-07-14 Daniel Marques <[email protected]> |
963 | Nick Clifton <[email protected]> | |
964 | ||
965 | * coff-alpha.c (alpha_ecoff_bad_format_hook): Detect compressed | |
966 | Alpha binaries and issue a helpful error message. | |
967 | (alpha_ecoff_swap_reloc_out): Increase maximum allowed internal | |
968 | symbol index to 15 to allow for binaries produced by DEC | |
a3c2b96a | 969 | compilers. |
15ac1d4f | 970 | |
d4909375 SE |
971 | 2005-07-13 Steve Ellcey <[email protected]> |
972 | ||
973 | * bfd.m4 (BFD_NEED_DECLARATION): Remove. | |
974 | ||
15b552e9 AM |
975 | 2005-07-12 Alan Modra <[email protected]> |
976 | ||
977 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub | |
978 | when !can_plt_call. | |
979 | ||
70961b9d AM |
980 | 2005-07-12 Alan Modra <[email protected]> |
981 | ||
982 | * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix. | |
983 | ||
632a56fd AM |
984 | 2005-07-12 Alan Modra <[email protected]> |
985 | ||
986 | * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value. | |
987 | ||
49ff44d6 L |
988 | 2005-07-11 H.J. Lu <[email protected]> |
989 | ||
990 | * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last | |
991 | change. | |
992 | ||
0af4cd7c PK |
993 | 2005-07-08 Paul Koning <[email protected]> |
994 | ||
995 | * dwarf2.c (read_address): Check sign_extend_vma to handle targets | |
996 | where addresses are sign extended. | |
997 | ||
7e4e2059 NC |
998 | 2005-07-08 Ralf Corsepius <[email protected]> |
999 | ||
1000 | * config.bfd: Mark i960-*-rtems*, or32-*-rtems* as obsolete. | |
a3c2b96a | 1001 | Mark a29k-*rtems*, hppa*-*-rtems*, *-go32-rtems*, |
7e4e2059 NC |
1002 | i[3-7]86*-*-rtemscoff*, mips*el-*-rtems*, powerpcle-*-rtems*, |
1003 | sparc*-*-rtemsaout* as removed | |
1004 | ||
c456f082 AM |
1005 | 2005-07-08 Alan Modra <[email protected]> |
1006 | ||
1007 | * elf-hppa.h (elf_hppa_final_link): Use gp val of zero when none | |
1008 | of the usual sections are found. | |
1009 | * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Tidy. | |
1010 | Strip .dynbss if it is zero size. | |
1011 | * elf32-arm.c (elf32_arm_size_dynamic_sections): Likewise. | |
1012 | * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise. | |
1013 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise. | |
1014 | * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise, and | |
1015 | .dynsbss. | |
1016 | (i370_elf_finish_dynamic_sections): Don't attempt to write .got | |
1017 | when it is zero size. | |
1018 | * elf32-i386.c (elf_i386_size_dynamic_sections): Correct handling | |
1019 | of .dynbss and zero size sections. | |
1020 | * elf32-m32r.c (m32r_elf_size_dynamic_sections): Strip .dynbss if | |
1021 | it is zero size. | |
1022 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Tidy. Strip | |
1023 | .dynbss if zero size. | |
1024 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise, .dynsbss | |
1025 | too. | |
1026 | * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise. | |
1027 | * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise. | |
1028 | * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise. | |
1029 | * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Tidy. Strip | |
1030 | .plt.* and .got.plt.* if zero size. | |
1031 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Tidy. Strip | |
1032 | .got* and .dynbss if zero size. | |
1033 | * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Tidy. Strip | |
1034 | * elf64-ppc.c (create_linkage_sections): Create branch lookup table | |
1035 | in .data.rel.ro.brlt or .rodata.brlt, and similarly for associated | |
1036 | reloc section. | |
1037 | (create_got_section): Always create new .got and .rela.got sections. | |
1038 | (ppc64_elf_size_dynamic_sections): Tidy. Strip .dynbss if zero size. | |
1039 | * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise. | |
1040 | * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise. | |
1041 | * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Handle | |
1042 | dynamic bss sections correctly. | |
1043 | * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Tidy. | |
1044 | * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Tidy. Strip | |
1045 | .dynbss if zero size. | |
1046 | ||
6c98dd1e BE |
1047 | 2005-07-08 Ben Elliston <[email protected]> |
1048 | ||
1049 | * elf32-xtensa.c: Include <stdarg.h> unconditionally, not only | |
1050 | when ANSI_PROTOTYPES is defined. Remove #ifdef logic. | |
1051 | ||
29ef7005 L |
1052 | 2005-07-07 H.J. Lu <[email protected]> |
1053 | ||
1054 | * elf-bfd.h (elf_backend_data): Add special_sections. | |
1055 | ||
1056 | * elf.c (_bfd_elf_get_sec_type_attr): Check special_sections | |
1057 | first. | |
1058 | ||
1059 | * elf32-arm.c (elf_backend_get_sec_type_attr): Removed. | |
1060 | (elf_backend_special_sections): New. Defined. | |
1061 | * elf32-m32r.c: Likewise. | |
1062 | * elf32-m68hc11.c: Likewise. | |
1063 | * elf32-m68hc12.c: Likewise. | |
1064 | * elf32-mcore.c: Likewise. | |
1065 | * elf32-sh64.c: Likewise. | |
1066 | * elf32-v850.c: Likewise. | |
1067 | * elf32-xtensa.c: Likewise. | |
1068 | * elf64-alpha.c: Likewise. | |
1069 | * elf64-hppa.c: Likewise. | |
1070 | * elf64-ppc.c: Likewise. | |
1071 | * elf64-sh64.c: Likewise. | |
1072 | * elfxx-ia64.c: Likewise. | |
1073 | * elfxx-mips.c: Likewise. | |
1074 | * elfxx-mips.h: Likewise. | |
1075 | ||
1076 | * elfxx-target.h (elf_backend_special_sections): New. | |
1077 | (elfNN_bed): Initialize special_sections. | |
1078 | ||
074f5109 BW |
1079 | 2005-07-07 Bob Wilson <[email protected]> |
1080 | ||
1081 | * xtensa-modules.c: Update tables with Xtensa MMU features. | |
1082 | ||
0fd3a477 JW |
1083 | 2005-07-07 Kaveh R. Ghazi <[email protected]> |
1084 | ||
1085 | * elf32-xtensa.c (vsprint_msg): Add format attribute. Fix | |
1086 | format bugs. | |
1087 | * vms.h (_bfd_vms_debug): Add format attribute. | |
1088 | (_bfd_vms_debug, _bfd_hexdump): Fix typos. | |
1089 | ||
9968d831 L |
1090 | 2005-07-07 H.J. Lu <[email protected]> |
1091 | ||
1092 | PR 975 | |
1093 | * elflink.c (_bfd_elf_symbol_refs_local_p): Only undefined | |
1094 | symbol with default visibility is local. | |
1095 | ||
3b1fcf96 BE |
1096 | 2005-07-07 Ben Elliston <[email protected]> |
1097 | ||
1098 | * config.bfd: Mark m68*-*-rtemscoff as obsolete. | |
1099 | ||
5cf2e3f0 L |
1100 | 2005-07-06 H.J. Lu <[email protected]> |
1101 | ||
1102 | * dwarf2.c (varinfo): Add addr. | |
1103 | (lookup_symbol_in_variable_table): Also check addr. | |
1104 | (scan_unit_for_symbols): Set addr for variable. | |
1105 | (comp_unit_find_line): Updated. | |
1106 | ||
0adc9281 NC |
1107 | 2005-07-06 Nick Clifton <[email protected]> |
1108 | ||
1109 | * coff-alpha.c (alpha_adjust_reloc_in): Issue an informative error | |
1110 | message if an unknown reloc is encountered. | |
1111 | (alpha_relocate_section): Likewise. | |
1112 | ||
1113 | * ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc | |
1114 | with a missing howto field. | |
1115 | ||
cfbe541f AM |
1116 | 2005-07-06 Alan Modra <[email protected]> |
1117 | ||
1118 | * po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c, | |
1119 | elfxx-sparc.c. | |
1120 | ||
d5e3d971 PB |
1121 | 2005-07-05 Paul Brook <[email protected]> |
1122 | ||
1123 | * elf32-ppc.c (ppc_elf_vxworks_special_sections): Remove. | |
1124 | (ppc_elf_vxworks_get_sec_type_attr): New function. | |
1125 | (elf_backend_special_sections): Remove vxwords definition. | |
1126 | (elf_backend_get_sec_type_attr): Define for vxworks. | |
1127 | ||
3ec2b351 NC |
1128 | 2005-07-05 Nick Clifton <[email protected]> |
1129 | ||
1130 | * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo. | |
1131 | ||
d5e3d971 | 1132 | 2005-07-05 Paul Brook <[email protected]> |
9d8504b1 PB |
1133 | |
1134 | * config.bfd: Add separate case for ppc-vxworks. | |
1135 | * configure: Regenerate. | |
1136 | * configure.in: Include elf-vxworks.lo on ppc targets. | |
1137 | * elf-vxworks.c (elf_vxworks_final_write_processing): Handle | |
1138 | .rela.plt.unloaded. | |
1139 | * elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h. | |
1140 | (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove. | |
1141 | (VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry, | |
1142 | ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE, | |
1143 | ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry, | |
1144 | VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS, | |
1145 | VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New. | |
1146 | (ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt, | |
1147 | is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size. | |
1148 | (ppc_elf_link_hash_table_create): Initialize hadtab plt fields. | |
1149 | (ppc_elf_create_got): Create .got.plt for VxWorks. | |
1150 | (ppc_elf_create_dynamic_sections): Create unloaded plt relocation | |
1151 | section for VxWorks. | |
1152 | (ppc_elf_select_plt_layout): Handle VxWorks plt format. | |
1153 | (allocate_got): VxWorks does not need a got header. | |
1154 | (allocate_dynrelocs): Handle VxWorks plt format. | |
1155 | (ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for | |
1156 | VxWorks. Handle VxWorks plt/got. | |
1157 | (ppc_elf_finish_dynamic_sections): Fill in VxWorks plt. | |
1158 | (ppc_elf_vxworks_special_sections): New. | |
1159 | (ppc_elf_vxworks_link_hash_table_create, | |
1160 | ppc_elf_vxworks_add_symbol_hook, | |
1161 | elf_i386_vxworks_link_output_symbol_hook, | |
1162 | ppc_elf_vxworks_final_write_processing): New functions. | |
1163 | * targets.c (bfd_elf32_powerpc_vxworks_vec): Declare. | |
1164 | (_bfd_target_vector): Use it. | |
1165 | ||
c6c60d09 JJ |
1166 | 2005-07-05 Jakub Jelinek <[email protected]> |
1167 | ||
9e492e05 JJ |
1168 | * libbfd-in.h (struct artdata): Add extended_names_size field. |
1169 | * libbfd.h: Rebuilt. | |
1170 | * coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly | |
1171 | allocated object by bfd_zalloc. | |
1172 | * coff64-rs6000.c (xcoff64_archive_p): Likewise. | |
1173 | * ecoff.c (_bfd_ecoff_archive_p): Likewise. | |
1174 | * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise. | |
1175 | (get_extended_arelt_filename): Fail if index is bigger or equal to | |
1176 | extended_names_size. | |
1177 | (_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive, | |
1178 | get_extended_arelt_filename already did that. | |
1179 | (_bfd_slurp_extended_name_table): Initialize extended_names_size field. | |
1180 | Allocate one extra byte and clear it, in case extended names table | |
1181 | is not terminated. | |
1182 | ||
d0fb9a8d JJ |
1183 | * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2, |
1184 | bfd_zalloc2): New prototypes. | |
1185 | * bfd-in.h (HALF_BFD_SIZE_TYPE): Define. | |
1186 | * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions. | |
1187 | * opncls.c (bfd_alloc2, bfd_zalloc2): New functions. | |
1188 | * elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers, | |
1189 | elf_map_symbols, map_sections_to_segments, | |
1190 | assign_file_positions_for_segments, copy_private_bfd_data, | |
1191 | swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2 | |
1192 | where appropriate. | |
1193 | * bfd-in2.h: Rebuilt. | |
1194 | * libbfd.h: Rebuilt. | |
1195 | ||
1196 | * elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus | |
1197 | verdef or verneed section. | |
1198 | (_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or | |
1199 | verneed sections gracefully. | |
1200 | * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on | |
1201 | bogus relocation values. | |
1202 | * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise. | |
1203 | * elf64-s390.c (elf_s390_info_to_howto): Likewise. | |
1204 | * elf32-s390.c (elf_s390_info_to_howto): Likewise. | |
1205 | * elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise. | |
1206 | * elfxx-ia64.c (lookup_howto): Likewise. | |
1207 | ||
c6c60d09 JJ |
1208 | * elf.c (bfd_elf_get_str_section): Allocate an extra byte after |
1209 | the end of strtab and clear it. | |
1210 | (elf_read): Remove. | |
1211 | ||
dcd4b381 NC |
1212 | 2005-07-05 Nick Clifton <[email protected]> |
1213 | ||
1214 | * po/vi.po: New Vietnamese translation. | |
1215 | * configure.in (ALL_LINGUAS): Add vi. | |
1216 | * configure: Regenerate. | |
1217 | ||
8532796c NC |
1218 | 2005-07-05 Peter S. Mazinger <[email protected]> |
1219 | ||
1220 | * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and | |
1221 | touchup logic like i386/ppc. | |
1222 | ||
b35d266b AM |
1223 | 2005-07-05 Alan Modra <[email protected]> |
1224 | ||
1225 | * elf.c (special_sections): Move const qualifier. | |
1226 | (special_sections_b..special_sections_t): Likewise. | |
1227 | * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate | |
1228 | const. | |
1229 | (elf32_arm_symbian_special_sections): Move const qualifier. | |
1230 | * elf32-m32r.c: Similarly. | |
1231 | * elf32-m68hc11.c: Similarly. | |
1232 | * elf32-m68hc12.c: Similarly. | |
1233 | * elf32-mcore.c: Similarly. | |
1234 | * elf32-ppc.c: Similarly. | |
1235 | * elf32-sh64.c: Similarly. | |
1236 | * elf32-v850.c: Similarly. | |
1237 | * elf32-xtensa.c: Similarly. | |
1238 | * elf64-alpha.c: Similarly. | |
1239 | * elf64-hppa.c: Similarly. | |
1240 | * elf64-ppc.c: Similarly. | |
1241 | * elf64-sh64.c: Similarly. | |
1242 | * elfxx-ia64.c: Similarly. | |
1243 | * elfxx-mips.c: Similarly. | |
1244 | ||
80447b21 NC |
1245 | 2005-07-04 Kazuhiro Inaoka <[email protected]> |
1246 | ||
1247 | * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use | |
1248 | info->executable instead of !info->shared where appropriate. | |
1249 | ||
540b09cb AM |
1250 | 2005-07-04 Alan Modra <[email protected]> |
1251 | ||
1252 | PR 1042 | |
1253 | * elf.c (assign_file_positions_for_segments): Remove excluded | |
1254 | sections from the segment map. | |
1255 | ||
551b43fd AM |
1256 | 2005-07-04 Alan Modra <[email protected]> |
1257 | ||
1258 | PR 1004 | |
1259 | * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete | |
1260 | special_sections. | |
1261 | (_bfd_elf_get_special_section): Declare. | |
1262 | (bfd_elf_special_section): Update prototype. | |
1263 | * elf.c (special_sections): Remove unused outer entries. | |
1264 | (get_special_section): Delete. | |
1265 | (_bfd_elf_get_special_section): New function. | |
1266 | (_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update | |
1267 | special_sections indexing. | |
1268 | (_bfd_elf_new_section_hook): Call backend get_sec_type_attr. | |
1269 | * elf32-arm.c (symbian_special_sections_d): Delete. | |
1270 | (symbian_special_sections_g, symbian_special_sections_h): Delete. | |
1271 | (symbian_special_sections_i, symbian_special_sections_f): Delete. | |
1272 | (symbian_special_sections_p): Delete. | |
1273 | (elf32_arm_symbian_special_sections): Merge above to here. | |
1274 | (elf32_arm_symbian_get_sec_type_attr): New function. | |
1275 | (elf_backend_special_sections): Don't define. | |
1276 | (elf_backend_get_sec_type_attr): Define. | |
1277 | * elf32-m32r.c: Similarly to elf32-arm.c. | |
1278 | * elf32-m68hc11.c: Likewise. | |
1279 | * elf32-m68hc12.c: Likewise. | |
1280 | * elf32-mcore.c: Likewise. | |
1281 | * elf32-sh64.c: Likewise. | |
1282 | * elf32-v850.c: Likewise. | |
1283 | * elf32-xtensa.c: Likewise. | |
1284 | * elf64-alpha.c: Likewise. | |
1285 | * elf64-hppa.c: Likewise. | |
1286 | * elf64-ppc.c: Likewise. | |
1287 | * elf64-sh64.c: Likewise. | |
1288 | * elfxx-ia64.c: Likewise. | |
1289 | * elfxx-mips.c: Likewise. | |
1290 | * elf32-ppc.c: Likewise. | |
1291 | (bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable. | |
1292 | * elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare. | |
1293 | (_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete. | |
1294 | (elf_backend_get_sec_type_attr): Define. | |
1295 | * elfxx-target.h (elf_backend_get_sec_type_attr): Define. | |
1296 | (elf_backend_special_sections): Don't define. | |
1297 | (elfNN_bed): Update. | |
1298 | ||
47b0e7ad NC |
1299 | 2005-07-01 Nick Clifton <[email protected]> |
1300 | ||
1301 | * cpu-d10v.c: Update to ISO C90 style function declarations and | |
1302 | fix formatting. | |
1303 | * cpu-d30v.c: Likewsie. | |
1304 | * cpu-i370.c: Likewsie. | |
1305 | * cpu-xstormy16.c: Likewsie. | |
1306 | * elf32-arc.c: Likewsie. | |
1307 | * elf32-d10v.c: Likewsie. | |
1308 | * elf32-d30v.c: Likewsie. | |
1309 | * elf32-dlx.c: Likewsie. | |
1310 | * elf32-i370.c: Likewsie. | |
1311 | * elf32-i960.c: Likewsie. | |
1312 | * elf32-ip2k.c: Likewsie. | |
1313 | * elf32-m32r.c: Likewsie. | |
1314 | * elf32-mcore.c: Likewsie. | |
1315 | * elf32-openrisc.c: Likewsie. | |
1316 | * elf32-or32.c: Likewsie. | |
1317 | * elf32-pj.c: Likewsie. | |
1318 | * elf32-v850.c: Likewsie. | |
1319 | * elf32-xstormy16.c: Likewsie. | |
1320 | ||
85d162e6 AM |
1321 | 2005-07-01 Alan Modra <[email protected]> |
1322 | ||
1323 | * elf64-alpha.c (elf64_alpha_create_got_section): Always create | |
1324 | a new .got section. | |
1325 | (elf64_alpha_create_dynamic_sections): Always make new sections | |
1326 | by using bfd_make_section_anyway_with_flags. Check that .got not | |
1327 | already created. | |
1328 | (elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj | |
1329 | instead. | |
1330 | ||
b116d4a7 AM |
1331 | 2005-06-30 Alan Modra <[email protected]> |
1332 | ||
1333 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic | |
1334 | _SDA_BASE_ and _SDA2_BASE_ symbols. | |
1335 | * elflink.c (_bfd_elf_provide_symbol): Correct comment. Define | |
1336 | sym if not def_regular. | |
1337 | (_bfd_elf_provide_section_bound_symbols): Similarly. | |
1338 | ||
7f41b278 BE |
1339 | 2005-06-30 Ben Elliston <[email protected]> |
1340 | ||
1341 | * config.bfd: Mark as obsolete: | |
1342 | m68*-apollo-* | |
1343 | m68*-apple-aux* | |
1344 | m68*-bull-sysv* | |
1345 | ||
39c2f51b AM |
1346 | 2005-06-29 Alan Modra <[email protected]> |
1347 | ||
1348 | * elflink.c (_bfd_elf_gc_mark): Mark sections referenced by | |
1349 | .eh_frame specially.. | |
1350 | (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame. | |
1351 | Don't recheck sections we have already marked. | |
1352 | (elf_gc_sweep): Keep non-code sections referenced from .eh_frame. | |
1353 | * section.c (struct bfd_section): Add gc_mark_from_eh. | |
1354 | (STD_SECTION): Adjust. | |
1355 | * ecoff.c (bfd_debug_section): Adjust. | |
1356 | * bfd-in2.h: Regenerate. | |
1357 | ||
e8aaee2a AM |
1358 | 2005-06-29 Alan Modra <[email protected]> |
1359 | ||
1360 | * elflink.c (elf_gc_sweep): Do not refcount on sections that have | |
1361 | not been processed by check_relocs. | |
1362 | ||
3b2175db PB |
1363 | 2005-06-29 Paul Brook <[email protected]> |
1364 | ||
1365 | * bfd-in.h (_bfd_elf_provide_symbol): Update prototype. | |
1366 | * bfd-in2.h: Regenerate. | |
1367 | * elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section | |
1368 | relative. | |
1369 | * elflink.c (bfd_elf_set_symbol): Add section argument. | |
1370 | (_bfd_elf_provide_symbol): Ditto. | |
1371 | (_bfd_elf_provide_section_bound_symbols): Pass NULL section argument. | |
1372 | ||
a63e02c7 DA |
1373 | 2005-06-27 Carlos O'Donell <[email protected]> |
1374 | ||
c456f082 | 1375 | * bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry): |
a63e02c7 DA |
1376 | Use bh_root, and hh. |
1377 | (struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache. | |
1378 | (struct elf32_hppa_dyn_reloc_entry): Use hdh_next. | |
1379 | (struct elf32_hppa_link_hash_table): Use etab and bstab. | |
1380 | (stub_hash_newfunc): Use hh. | |
1381 | (hppa_link_hash_newfunc): Use hsh_cache. | |
1382 | (elf32_hppa_link_hash_table_create): Use etab, and bstab. | |
1383 | (elf32_hppa_link_hash_table_free): Use bstab. | |
1384 | (hppa_stub_name): Use eh. | |
1385 | (hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache. | |
1386 | (hppa_add_stub): Use bstab. | |
1387 | (hppa_type_of_stub): Use eh. | |
1388 | (hppa_build_one_stub): Use hh and bh_root. | |
1389 | (elf32_hppa_copy_indirect_symbol): Use hdh_next. | |
1390 | (elf32_hppa_check_relocs): Use eh, etab, and hdh_next. | |
1391 | (elf32_hppa_gc_sweep_hook): Use hdh_next. | |
1392 | (elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab. | |
1393 | (allocate_plt_static): Use etab. | |
1394 | (allocate_dynrelocs): Use etab, and hdh_next. | |
1395 | (readonly_dynrelocs): Use hdh_next. | |
1396 | (elf32_hppa_size_dynamic_sections): Use etab, and hdh_next. | |
1397 | (get_local_syms): Use eh, bstab, and hh. | |
1398 | (elf32_hppa_size_stubs): Use eh, bstab, and hh. | |
1399 | (elf32_hppa_set_gp): Use etab. | |
1400 | (elf32_hppa_build_stubs): Use bstab. | |
1401 | (final_link_relocate): Use eh, bh_root. | |
1402 | (elf32_hppa_relocate_section): Use elf, etab. | |
1403 | (elf32_hppa_finish_dynamic_sections): Use etab. | |
1404 | ||
5f1cb353 L |
1405 | 2005-06-27 H.J. Lu <[email protected]> |
1406 | ||
1407 | * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove | |
1408 | the extra `;'. | |
1409 | ||
875c0872 DA |
1410 | 2005-06-21 Carlos O'Donell <[email protected]> |
1411 | ||
1412 | * bfd/elf32-hppa.c (hppa_elf_hash_entry): Define. | |
1413 | (hppa_stub_hash_entry): Define. | |
1414 | (stub_hash_newfunc): Rename variables. | |
1415 | (hppa_link_hash_newfunc): Likewise. | |
1416 | (elf32_hppa_link_hash_table_free): Likewise. | |
1417 | (hppa_stub_name): Likewise. | |
1418 | (hppa_get_stub_entry): Likewise. | |
1419 | (hppa_add_stub): Likewise. | |
1420 | (hppa_type_of_stub): Likewise. | |
1421 | (hppa_build_one_stub): Likewise. | |
1422 | (hppa_size_one_stub): Likewise. | |
1423 | (elf32_hppa_create_dynamic_sections): Likewise. | |
1424 | (elf32_hppa_copy_indirect_symbol): Likewise. | |
1425 | (elf32_hppa_check_relocs): Likewise. | |
1426 | (elf32_hppa_gc_mark_hook): Likewise. | |
1427 | (elf32_hppa_gc_sweep_hook): Likewise. | |
1428 | (elf32_hppa_grok_psinfo): Likewise. | |
1429 | (elf32_hppa_hide_symbol): Likewise. | |
1430 | (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
1431 | (allocate_dynrelocs): Likewise. | |
1432 | (clobber_millicode_symbols): Likewise. | |
1433 | (readonly_dynrelocs): Likewise. | |
1434 | (elf32_hppa_size_dynamic_sections): Likewise. | |
1435 | (get_local_syms): Likewise. | |
1436 | (elf32_hppa_size_stubs): Likewise. | |
1437 | (hppa_record_segment_addr): Likewise. | |
1438 | (final_link_relocate): Likewise. | |
1439 | (elf32_hppa_relocate_section): Likewise. | |
1440 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
1441 | ||
973a3492 L |
1442 | 2005-06-20 H.J. Lu <[email protected]> |
1443 | ||
1444 | PR 1025 | |
1445 | * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect | |
1446 | symbol. | |
1447 | * elf32-arm.c (elf32_arm_check_relocs): Likewise. | |
1448 | * elf32-avr.c (elf32_avr_check_relocs): Likewise. | |
1449 | * elf32-cris.c (cris_elf_check_relocs): Likewise. | |
1450 | * elf32-d10v.c (elf32_d10v_check_relocs): Likewise. | |
1451 | * elf32-dlx.c (elf32_dlx_check_relocs): Likewise. | |
1452 | * elf32-fr30.c (fr30_elf_check_relocs): Likewise. | |
1453 | * elf32-frv.c (elf32_frv_check_relocs): Likewise. | |
1454 | * elf32-i370.c (i370_elf_check_relocs): Likewise. | |
1455 | * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise. | |
1456 | * elf32-m32r.c (m32r_elf_check_relocs): Likewise. | |
1457 | * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise. | |
1458 | * elf32-m68k.c (elf_m68k_check_relocs): Likewise. | |
1459 | * elf32-mcore.c (mcore_elf_check_relocs): Likewise. | |
1460 | * elf32-ms1.c (ms1_elf_check_relocs): Likewise. | |
1461 | * elf32-msp430.c (elf32_msp430_check_relocs): Likewise. | |
1462 | * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise. | |
1463 | * elf32-ppc.c (ppc_elf_check_relocs): Likewise. | |
1464 | * elf32-s390.c (elf_s390_check_relocs): Likewise. | |
1465 | * elf32-sh.c (sh_elf_check_relocs): Likewise. | |
1466 | * elf32-v850.c (v850_elf_check_relocs): Likewise. | |
1467 | * elf32-vax.c (elf_vax_check_relocs): Likewise. | |
1468 | * elf64-mmix.c (mmix_elf_check_relocs): Likewise. | |
1469 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
1470 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
1471 | * elf64-sh64.c (sh_elf64_check_relocs): Likewise. | |
1472 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
1473 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. | |
1474 | ||
71cb9464 L |
1475 | 2005-06-20 H.J. Lu <[email protected]> |
1476 | ||
f7c5057a L |
1477 | PR 1022 |
1478 | * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect | |
1479 | symbol. | |
1480 | ||
1481 | 2005-06-20 H.J. Lu <[email protected]> | |
1482 | ||
1483 | PR 1025 | |
71cb9464 L |
1484 | * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol. |
1485 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
1486 | ||
73d147dc L |
1487 | 2005-06-18 H.J. Lu <[email protected]> |
1488 | ||
1489 | * reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and | |
1490 | BFD_RELOC_X86_64_GOTPC32. | |
1491 | * bfd-in2.h: Regenerated. | |
1492 | ||
a50b2160 JJ |
1493 | 2005-06-17 Jakub Jelinek <[email protected]> |
1494 | ||
aa2ca951 JJ |
1495 | * elf.c (bfd_section_from_shdr): Kill bogus warning. |
1496 | ||
a50b2160 JJ |
1497 | * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for |
1498 | symbol, relocation, group or versym sections. | |
1499 | ||
1500 | * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs | |
1501 | is NULL. | |
1502 | * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address | |
1503 | doesn't point into the section. | |
1504 | ||
d6ab8113 JB |
1505 | 2005-06-17 Jan Beulich <[email protected]> |
1506 | ||
1507 | * bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64 | |
1508 | and BFD_RELOC_X86_64_GOTPC32. | |
1509 | * libbfd.h (bfd_reloc_code_real_names): Likewise. | |
1510 | * elf64-x86-64.c (x86_64_elf_howto_table): Add entries for | |
1511 | R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32. | |
1512 | (x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64, | |
1513 | and R_X86_64_GOTPC32. | |
1514 | (elf64_x86_64_info_to_howto): Adjust bounding relocation type. | |
1515 | (elf64_x86_64_check_relocs): Also handle R_X86_64_PC64, | |
1516 | R_X86_64_GOTOFF64, and R_X86_64_GOTPC32. | |
1517 | (elf64_x86_64_relocate_section): Likewise. | |
1518 | (elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64. | |
1519 | ||
b820f1e4 MK |
1520 | 2005-06-15 Mark Kettenis <[email protected]> |
1521 | ||
1522 | * archive.c: Include "libiberty.h". | |
1523 | ||
46767561 NC |
1524 | 2005-06-15 Nick Clifton <[email protected]> |
1525 | ||
1526 | * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries | |
1527 | produced by the GreenHills toolchain can be assimilated. | |
1528 | ||
580a09db DA |
1529 | 2005-06-14 Steve Ellcey <[email protected]> |
1530 | ||
1531 | * som.c (som_find_inliner_info): New. | |
1532 | ||
91134c82 L |
1533 | 2005-06-14 H.J. Lu <[email protected]> |
1534 | ||
1535 | * elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment. | |
1536 | ||
933d961a JJ |
1537 | 2005-06-14 Jakub Jelinek <[email protected]> |
1538 | ||
1539 | * elf.c (bfd_section_from_shdr): Fail if name is NULL. | |
1540 | Prevent endless recursion on broken objects. | |
1541 | ||
1542 | * archive.c (do_slurp_coff_armap): Check for overflows. | |
1543 | ||
9a44bbd9 DJ |
1544 | 2005-06-10 Daniel Jacobowitz <[email protected]> |
1545 | ||
1546 | * elfcode.h (elf_write_relocs): Do nothing if there are no | |
1547 | relocations. | |
1548 | ||
75758e9d AM |
1549 | 2005-06-10 Alan Modra <[email protected]> |
1550 | ||
1551 | * dwarf2.c (decode_line_info): Revert last change. Instead set | |
1552 | initial low_pc to -1 to avoid need to test whether loc_pc has | |
1553 | been set. | |
1554 | ||
2ae0844c CF |
1555 | 2005-06-09 Christopher Faylor <[email protected]> |
1556 | ||
1557 | * coffcode.h (sec_to_styp_flags): Set appropriate section flags when | |
1558 | either SEC_ALLOC OR SEC_LOAD. | |
1559 | ||
3b137b9a CF |
1560 | 2005-06-09 Christopher Faylor <[email protected]> |
1561 | ||
1562 | * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload | |
1563 | section header. Do not add STYP_NOLOAD since it does not appear to be | |
1564 | a valid PE flag. | |
1565 | ||
6bd00c5d L |
1566 | 2005-06-09 H.J. Lu <[email protected]> |
1567 | ||
1568 | PR 1000 | |
1569 | * dwarf2.c (lookup_address_in_line_info_table): Restore code | |
1570 | handling NULL function info, removed with 2005-04-03 change. | |
1571 | ||
a366f4ff MM |
1572 | 2005-06-08 Mark Mitchell <[email protected]> |
1573 | ||
1574 | * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1. | |
1575 | ||
0e58fcf3 AM |
1576 | 2005-06-09 Alan Modra <[email protected]> |
1577 | ||
1578 | * elflink.c (elf_mark_used_section): Delete. | |
1579 | (bfd_elf_gc_sections): Call bfd_generic_gc_sections. | |
1580 | * reloc.c (bfd_mark_used_section): New function. | |
1581 | (bfd_generic_gc_sections): Call bfd_mark_used_section. | |
1582 | ||
92a7c1b8 AM |
1583 | 2005-06-08 Alan Modra <[email protected]> |
1584 | ||
1585 | * opncls.c (bfd_fopen): Don't set bfd_error unconditionally. | |
d83747fa | 1586 | (bfd_fdopenr): Same. |
92a7c1b8 | 1587 | |
dfab97d6 MM |
1588 | 2005-06-07 Mark Mitchell <[email protected]> |
1589 | ||
1590 | * opncls.c (bfd_fdopenr): Add missing break statements. | |
1591 | ||
2d0123b7 MM |
1592 | 2005-06-07 Mark Mitchell <[email protected]> |
1593 | ||
1594 | * opncls.c (bfd_fopen): New API. | |
1595 | (bfd_openr): Use it. | |
1596 | (bfd_fdopenr): Likewise. | |
1597 | * bfd-in2.h: Regenerated. | |
1598 | ||
de33e640 AH |
1599 | 2005-06-07 Aldy Hernandez <[email protected]> |
1600 | Michael Snyder <[email protected]> | |
1601 | Stan Cox <[email protected]> | |
1602 | ||
1603 | * Makefile.am (ALL_MACHINES): Add ms1 support. | |
1604 | (ALL_MACHINES_CFILES): Same. | |
1605 | (BFD32_BACKENDS): Same. | |
1606 | (BFD32_BACKENDS_CFILES): Same. | |
1607 | ||
1608 | * Makefile.in: Regenerate. | |
1609 | ||
1610 | * archures.c (bfd_architecture): Add ms1 entries. | |
1611 | Externalize bfd_ms1_arch. | |
1612 | (bfd_archures_list): Add bfd_ms1_arch. | |
1613 | ||
1614 | * bfd-in2.h: Regenerate. | |
1615 | ||
1616 | * cpu-ms1.c: New file. | |
1617 | ||
1618 | * elf32-ms1.c: New file. | |
1619 | ||
1620 | * targets.c: Define extern of bfd_elf32_ms1_vec. | |
1621 | Add bfd_elf32_ms1_vec to _bfd_target_vector. | |
1622 | ||
1623 | * configure.in: Add bfd_elf32_ms1_vec case. | |
1624 | ||
1625 | * configure: Regenerate. | |
1626 | ||
1627 | * config.bfd: Add ms1-*-elf to table. | |
1628 | ||
55cf6793 ZW |
1629 | 2005-06-07 Zack Weinberg <[email protected]> |
1630 | ||
1631 | * coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment. | |
1632 | ||
4575b1b5 AM |
1633 | 2005-06-07 Alan Modra <[email protected]> |
1634 | ||
1635 | * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line. | |
1636 | * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. | |
1637 | ||
5420f73d L |
1638 | 2005-06-06 H.J. Lu <[email protected]> |
1639 | ||
1640 | PR 990 | |
1641 | * bfd.c (bfd_find_line): New. | |
1642 | ||
1643 | * dwarf2.c (comp_unit): Add variable_table. | |
1644 | (funcinfo): Add file, line, and sec. | |
1645 | (varinfo): New. | |
1646 | (lookup_symbol_in_function_table): New. | |
1647 | (lookup_symbol_in_variable_table): New. | |
1648 | (scan_unit_for_functions): Renamed to ... | |
1649 | (scan_unit_for_symbols): This. Handle DW_TAG_entry_point and | |
1650 | DW_TAG_variable. | |
1651 | (comp_unit_find_nearest_line): Updated. | |
1652 | (comp_unit_find_line): New. | |
1653 | (_bfd_dwarf2_find_line): New. | |
1654 | ||
1655 | * elf-bfd.h (_bfd_elf_find_line): New. | |
1656 | (_bfd_generic_find_line): New. Defined. | |
1657 | ||
1658 | * elf.c (_bfd_elf_find_line): New. | |
1659 | ||
1660 | * libbfd-in.h (_bfd_dwarf2_find_line): New. | |
1661 | (_bfd_generic_find_line): New. | |
1662 | ||
1663 | * bfd-in2.h: Regenerated. | |
1664 | * libbfd.h: Likewise. | |
1665 | ||
1666 | * libbfd.c (_bfd_generic_find_line): New. | |
1667 | ||
1668 | * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line | |
1669 | with _bfd_generic_find_line. | |
1670 | (bfd_target): Add _bfd_find_line. | |
1671 | ||
b42f9a05 L |
1672 | 2005-06-06 H.J. Lu <[email protected]> |
1673 | ||
1674 | * dwarf2.c (decode_line_info): Properly set low_pc. | |
1675 | ||
b4f4e59f AM |
1676 | 2005-06-06 Alan Modra <[email protected]> |
1677 | ||
1678 | * elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd | |
1679 | case, include addend when indexing .opd section map. | |
1680 | (ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides | |
1681 | clear opd_adjust array if no_opd_opt set. Tidy code. | |
46de2a7c AM |
1682 | Ignore zero size .opd. Check bfd_alloc return value. |
1683 | (ppc_stub_name): Return immediately on bfd_malloc fail. | |
b4f4e59f AM |
1684 | * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. |
1685 | ||
2ae727ad L |
1686 | 2005-06-04 H.J. Lu <[email protected]> |
1687 | ||
1688 | * dwarf2.c (comp_unit): Fix a typo in comment. | |
1689 | ||
ce71b576 NC |
1690 | 2005-06-03 Jan-Benedict Glaw <[email protected]> |
1691 | ||
1692 | * elf32-vax.c (rtype_to_howto): Remove PARAMS. | |
1693 | (reloc_type_lookup): Dito. | |
1694 | (elf_vax_discard_copies): Dito. | |
1695 | (elf_vax_instantiate_got_entries): Dito. | |
1696 | (elf_vax_link_hash_traverse): Dito. | |
1697 | (elf_vax_link_hash_newfunc): Dito. | |
1698 | (elf_vax_link_hash_table_create): Dito. | |
1699 | (elf32_vax_set_private_flags): Dito. | |
1700 | (elf32_vax_merge_private_bfd_data): Dito. | |
1701 | (elf32_vax_print_private_bfd_data): Dito. | |
1702 | (elf_vax_check_relocs): Dito. | |
1703 | (elf_vax_gc_mark_hook): Dito. | |
1704 | (elf_vax_gc_sweep_hook): Dito. | |
1705 | (elf_vax_size_dynamic_sections): Dito. | |
1706 | (elf_vax_discard_copies): Dito. | |
1707 | (elf_vax_instantiate_got_entries): Dito. | |
1708 | (elf_vax_relocate_section): Dito. | |
1709 | (elf_vax_finish_dynamic_symbol): Dito. | |
1710 | (elf_vax_finish_dynamic_sections): Dito. | |
1711 | (elf_vax_hash_table): Break-up of line isn't needed. | |
1712 | (elf_vax_check_relocs): Remove leading whitespace | |
1713 | (elf_vax_relocate_section): Remove redundant whitespace | |
1714 | (elf_vax_link_hash_newfunc): Don't cast NULL. | |
1715 | (elf_vax_link_hash_table_create): Dito. | |
1716 | * cpu-vax.c (bfd_vax_arch) Remove a trailing space. | |
1717 | ||
9635fe29 AM |
1718 | 2005-06-03 Alan Modra <[email protected]> |
1719 | ||
e1fffbe6 AM |
1720 | PR 568 |
1721 | * configure.in: Bump version | |
1722 | * configure: Regenerate. | |
1723 | * elflink.c (elf_link_input_bfd): Use einfo linker callback to print | |
1724 | discarded section sym refs and kill linker output. | |
1725 | * simple.c (simple_dummy_einfo): New function. | |
1726 | (bfd_simple_get_relocated_section_contents): Init callbacks.einfo. | |
1727 | ||
9635fe29 AM |
1728 | * elf32-i386.c (elf_i386_relocate_section): Handle zero symndx |
1729 | for all reloc types. | |
1730 | ||
e87d886e AM |
1731 | 2005-06-02 Alan Modra <[email protected]> |
1732 | ||
1733 | * elf64-ppc.c (add_symbol_adjust): Set sym visibility to most | |
1734 | restrictive of func code and func descr for undefined syms as well | |
1735 | as defined. | |
1736 | ||
b2b09913 JB |
1737 | 2005-05-31 Jim Blandy <[email protected]> |
1738 | ||
1739 | * Makefile.am: Regenerate dependencies with 'make dep-am'. | |
1740 | * Makefile.in: Regenerate. | |
1741 | ||
8288a39e RH |
1742 | 2005-05-31 Richard Henderson <[email protected]> |
1743 | ||
1744 | * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New. | |
1745 | (ALPHA_ELF_LINK_HASH_TLS_IE): Renumber to 0x80. | |
1746 | (ALPHA_ELF_LINK_HASH_LU_PLT): Rename from ALPHA_ELF_LINK_HASH_LU_FUNC. | |
1747 | (elf64_alpha_want_plt): Update to match. | |
1748 | (elf64_alpha_check_relocs): Collect JSRDIRECT in gotent_flags. | |
1749 | (elf64_alpha_relax_with_lituse): Likewise. Handle JSRDIRECT. | |
1750 | ||
f1c71a59 ZW |
1751 | 2005-05-31 Zack Weinberg <[email protected]> |
1752 | ||
1753 | * elf32-arm.c (elf32_arm_reloc_type_lookup) | |
1754 | (elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo): | |
1755 | Use ISO C90 function declaration style. | |
1756 | ||
653bb2de JW |
1757 | 2005-05-31 James E Wilson <[email protected]> |
1758 | ||
1759 | * elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program | |
1760 | header PF_R flag on PT_LOAD segments. | |
1761 | ||
f915360b RH |
1762 | 2005-05-30 Richard Henderson <[email protected]> |
1763 | ||
1764 | * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for | |
1765 | the zero index relocs produced by elf64_alpha_relax_tls_get_addr. | |
1766 | ||
6ec7057a RH |
1767 | 2005-05-29 Richard Henderson <[email protected]> |
1768 | ||
1769 | * configure.in (--enable-secureplt): New. | |
1770 | * elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New. | |
1771 | (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New. | |
1772 | (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New. | |
1773 | (elf64_alpha_use_secureplt): New. | |
1774 | (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New. | |
1775 | (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New. | |
1776 | (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt. | |
1777 | (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove. | |
1778 | (struct alpha_elf_link_hash_entry): Add plt_offset. | |
1779 | (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove. | |
1780 | (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove. | |
1781 | (PLT_ENTRY_WORD3): Remove. | |
1782 | (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY | |
1783 | on .plt and create .got.plt. | |
1784 | (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values. | |
1785 | (get_got_entry): Initialize plt_offset. | |
1786 | (elf64_alpha_want_plt): New. | |
1787 | (elf64_alpha_check_relocs): Use it. | |
1788 | (elf64_alpha_adjust_dynamic_symbol): Likewise. Don't allocate | |
1789 | plt entries here. | |
1790 | (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal | |
1791 | error as user error. | |
1792 | (elf64_alpha_size_plt_section_1): Allocate one plt entry per | |
1793 | got subsection. | |
1794 | (elf64_alpha_size_plt_section): Size .got.plt section. | |
1795 | (elf64_alpha_size_rela_got_1): Don't allocate relocations if | |
1796 | plt entries used. | |
1797 | (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section. | |
1798 | Add PLTRO DYNAMIC entry. | |
1799 | (elf64_alpha_finish_dynamic_symbol): Generate secureplt format. | |
1800 | (elf64_alpha_finish_dynamic_sections): Likewise. | |
1801 | ||
3133ddbf DJ |
1802 | 2005-05-28 David Daney <[email protected]> |
1803 | ||
1804 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move | |
1805 | calculation of DT_RELSZ to occur after all dynamic relocations | |
1806 | are created. | |
1807 | ||
36527912 AJ |
1808 | 2005-05-28 Eli Zaretskii <[email protected]> |
1809 | ||
1810 | * configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS. | |
1811 | * config.in, configure: Regenerate. | |
1812 | ||
1bc8074d | 1813 | 2005-05-26 Mark Kettenis <[email protected]> |
6ec7057a | 1814 | Maciej W. Rozycki <[email protected]> |
1bc8074d MR |
1815 | |
1816 | * elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and | |
1817 | stop processing of options if one of invalid size is | |
1818 | encountered. | |
1819 | (_bfd_mips_elf_section_from_shdr): Likewise. | |
1820 | (_bfd_mips_elf_fake_sections): Reset the type of empty special | |
1821 | sections. | |
1822 | ||
75fed80d RH |
1823 | 2005-05-26 Richard Henderson <[email protected]> |
1824 | ||
36527912 | 1825 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove |
75fed80d RH |
1826 | plt_old_section, plt_old_value. |
1827 | (elf64_alpha_adjust_dynamic_symbol): Don't set it. | |
1828 | (elf64_alpha_size_plt_section_1): Don't use it. | |
1829 | ||
24639c7d JJ |
1830 | 2005-05-26 Jakub Jelinek <[email protected]> |
1831 | ||
1832 | * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and | |
1833 | first shdr has sh_size == 0. Fail if e_shnum is large to cause | |
1834 | arithmetic overflow when allocating the i_shdr array. | |
1835 | Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check. | |
1836 | ||
a7519a3c RH |
1837 | 2005-05-25 Richard Henderson <[email protected]> |
1838 | ||
1839 | * elf64-alpha.c: Update all function definitions to ISO C. Remove | |
1840 | all function prototypes; rearrange functions into def-use order. | |
1841 | ||
308da68f RH |
1842 | 2005-05-25 Richard Henderson <[email protected]> |
1843 | ||
1844 | * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iteration | |
1845 | in the presence of deleting elements. | |
1846 | (elf64_alpha_size_got_sections): Zero dead got section size. | |
1847 | ||
4ab527b0 FF |
1848 | 2005-05-23 Fred Fish <[email protected]> |
1849 | ||
1850 | * dwarf2.c (struct dwarf2_debug): Add inliner_chain member. | |
1851 | (struct funcinfo): Add caller_func, caller_file, caller_line. | |
1852 | tag, and nesting_level members. | |
1853 | (lookup_address_in_function_table): Change first passed parameter | |
1854 | from "struct funcinfo *" to "struct comp_unit *". | |
1855 | (lookup_address_in_function_table): Dereference unit to find function | |
1856 | table. | |
1857 | (lookup_address_in_function_table): Traverse the function list to | |
1858 | create a chain of inlined functions back to the first non inlined | |
1859 | function. | |
1860 | (scan_unit_for_functions): Remember tag and nesting level. Handle | |
1861 | DW_AT_call_file and DW_AT_call_line. | |
1862 | (comp_unit_find_nearest_line): Adjust lookup_address_in_function_table | |
1863 | call to pass unit pointer instead of function table pointer. For | |
1864 | inlined functions, save pointer to the inliner chain. | |
1865 | (_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL. | |
1866 | (_bfd_dwarf2_find_inliner_info): New function that returns information | |
1867 | from the inliner chain after a call to bfd_find_nearest_line. | |
1868 | ||
1869 | * bfd.c (bfd_find_inliner_info): Define using BFD_SEND. | |
1870 | * targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for | |
1871 | NAME##_find_inliner_info. | |
1872 | (bfd_target): Add _bfd_find_inliner_info. | |
1873 | * bfd-in2.h: Regenerate. | |
1874 | ||
1875 | * libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as | |
1876 | macro that always returns bfd_false. | |
1877 | (_bfd_dwarf2_find_inliner_info): Declare. | |
1878 | * libbfd.h: Regenerate. | |
36527912 | 1879 | |
4ab527b0 FF |
1880 | * elf32-arm.c (elf32_arm_find_inliner_info): New function |
1881 | that calls _bfd_dwarf2_find_inliner_info. | |
1882 | (bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info. | |
1883 | ||
1884 | * elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function | |
1885 | that calls _bfd_dwarf2_find_inliner_info. | |
1886 | * elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare. | |
1887 | * elfn32-mips.c (bfd_elf32_find_inliner_info): Define to | |
1888 | _bfd_mips_elf_find_inliner_info. | |
1889 | * elf64-mips.c (bfd_elf64_find_inliner_info): Ditto. | |
1890 | * elf32-mips.c (bfd_elf32_find_inliner_info): Ditto. | |
1891 | ||
1892 | * elf.c (_bfd_elf_find_inliner_info): New function that calls | |
1893 | _bfd_dwarf2_find_inliner_info. | |
1894 | * elf-bfd.h (_bfd_elf_find_inliner_info): Declare. | |
1895 | * elfxx-target.h (bfd_elfNN_find_inliner_info): Define to | |
1896 | _bfd_elf_find_inliner_info. | |
1897 | ||
1898 | * coffgen.c (coff_find_inliner_info): New function that | |
1899 | calls _bfd_dwarf2_find_inliner_info. | |
1900 | * libcoff-in.h (coff_find_inliner_info): Declare. | |
1901 | * libcoff.h: Regenerate. | |
1902 | * coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info. | |
1903 | (pmac_xcoff_vec) Ditto. | |
1904 | * coff64-rs6000.c (rs6000coff64_vec): Ditto. | |
1905 | (aix5coff64_vec): Ditto. | |
36527912 | 1906 | |
4ab527b0 FF |
1907 | * aout-target.h (MY_find_inliner_info): Define as |
1908 | _bfd_nosymbols_find_inliner_info. | |
1909 | * aout-tic30.c (MY_find_inliner_info): Ditto. | |
1910 | * binary.c (binary_find_inliner_info): Ditto. | |
1911 | * i386msdos.c (msdos_find_inliner_info): Ditto. | |
1912 | * ihex.c (ihex_find_inliner_info): Ditto. | |
1913 | * libaout.h (aout_32_find_inliner_info): Ditto. | |
1914 | * libecoff.h (_bfd_ecoff_find_inliner_info): Ditto. | |
1915 | * mach-o.c (bfd_mach_o_find_inliner_info): Ditto. | |
1916 | * mmo.c (mmo_find_inliner_info): Ditto. | |
1917 | * nlm-target.h (nlm_find_inliner_info): Ditto. | |
1918 | * pef.c (bfd_pef_find_inliner_info): Ditto. | |
1919 | * ppcboot.c (ppcboot_find_inliner_info): Ditto. | |
1920 | * srec.c (srec_find_inliner_info): Ditto. | |
1921 | * tekhex.c (tekhex_find_inliner_info): Ditto. | |
1922 | * versados.c (versados_find_inliner_info): Ditto. | |
1923 | * xsym.c (bfd_sym_find_inliner_info): Ditto. | |
1924 | ||
1925 | * ieee.c (ieee_find_inliner_info): New function that always | |
1926 | returns FALSE. | |
1927 | * oasys.c (oasys_find_inliner_info): Ditto. | |
1928 | * vms.c (vms_find_inliner_info): Ditto. | |
1929 | ||
9edfd1af AM |
1930 | 2005-05-24 Alan Modra <[email protected]> |
1931 | ||
1932 | * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code | |
1933 | force old plt layout. | |
1934 | ||
3241278a RH |
1935 | 2005-05-22 Richard Henderson <[email protected]> |
1936 | ||
1937 | * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated | |
1938 | sections. | |
1939 | (elf64_alpha_check_relocs): Likewise. | |
1940 | (elf64_alpha_relocate_section): Don't emit dynamic relocations to | |
1941 | non-allocated sections. | |
1942 | ||
d6ad34f6 RH |
1943 | 2005-05-22 Richard Henderson <[email protected]> |
1944 | ||
36527912 | 1945 | * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to |
d6ad34f6 RH |
1946 | undefweak to use zero register. Call elf64_alpha_relax_got_load |
1947 | if not all uses removed. | |
1948 | (elf64_alpha_relax_got_load): Relax undefweak to lda zero. | |
1949 | (elf64_alpha_relax_section): Handle undefweak symbols. | |
1950 | (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak. | |
1951 | (elf64_alpha_size_rela_got_1): Likewise. | |
1952 | (elf64_alpha_relocate_section): Likewise. | |
1953 | ||
487c4353 RH |
1954 | 2005-05-22 Richard Henderson <[email protected]> |
1955 | ||
1956 | * elf64-alpha.c (elf64_alpha_relax_section): Only operate | |
1957 | on SEC_CODE sections. | |
1958 | ||
a96afa0f DA |
1959 | 2005-05-22 John David Anglin <[email protected]> |
1960 | ||
1961 | * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to | |
1962 | unsigned int *. | |
1963 | (som_write_space_strings): Change type of tmp_space and p to char *. | |
1964 | (som_write_symbol_strings): Likewise. Also change type of comp to | |
1965 | char *comp[4]. | |
1966 | (som_begin_writing): Change type of strings_size to unsigned int. | |
1967 | (som_finish_writing): Likewise. | |
1968 | (som_slurp_reloc_table): Change type of external_relocs to unsigned | |
1969 | char *. | |
1970 | * som.h (struct som_section_data_struct): Change type of reloc_stream | |
1971 | field to unsigned char *. | |
1972 | ||
643796e3 DJ |
1973 | 2005-05-20 Daniel Jacobowitz <[email protected]> |
1974 | ||
1975 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate | |
1976 | copy relocations for VxWorks. | |
1977 | ||
4dc4a9a5 DJ |
1978 | 2005-05-20 Daniel Jacobowitz <[email protected]> |
1979 | ||
1980 | * bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field | |
1981 | has_sda_refs. | |
1982 | (ppc_elf_copy_indirect_symbol): Copy has_sda_refs. | |
1983 | (ppc_elf_check_relocs): Set has_sda_refs. | |
1984 | (ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating | |
1985 | copy relocations. Use has_sda_refs to place variables in .sbss. | |
1986 | (ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in | |
1987 | .sbss. | |
1988 | ||
dd1a320b BW |
1989 | 2005-05-20 Bob Wilson <[email protected]> |
1990 | ||
1991 | * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that | |
1992 | xtensa_default_isa is initialized. | |
1993 | ||
28e99bb6 AM |
1994 | 2005-05-20 Alan Modra <[email protected]> |
1995 | ||
1996 | * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned | |
1997 | for second and subsequent list entries. Only allocate multiple | |
1998 | glink stubs when shared or pie. | |
1999 | (ppc_elf_finish_dynamic_symbol): Break out early when only one | |
2000 | glink stub is needed. | |
2001 | ||
e3e71e27 ZW |
2002 | 2005-05-19 Zack Weinberg <[email protected]> |
2003 | ||
2004 | * Makefile.am: Have 'all' depend on 'info'. | |
2005 | * Makefile.in: Regenerate. | |
2006 | ||
a6aa5195 AM |
2007 | 2005-05-19 Alan Modra <[email protected]> |
2008 | ||
2009 | * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and | |
2010 | init_offset. Add init_got_refcount, init_plt_refcount, | |
2011 | init_got_offset and init_plt_offset. | |
2012 | * elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change. | |
2013 | (_bfd_elf_link_hash_hide_symbol): Likewise. | |
2014 | (_bfd_elf_link_hash_table_init): Likewise. | |
2015 | * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. | |
2016 | * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise. | |
2017 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise. | |
2018 | (bfd_elf_size_dynamic_sections): Likewise. | |
2019 | * elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns. | |
2020 | (LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30, | |
2021 | LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete. | |
2022 | (ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30, | |
2023 | LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define. | |
2024 | (struct plt_entry): New. | |
2025 | (ppc_elf_link_hash_table_create): Set new init_plt fields. | |
2026 | (ppc_elf_copy_indirect_symbol): Handle merge of plt plist. Don't | |
2027 | use _bfd_elf_link_hash_copy_indirect. | |
2028 | (update_plt_info, find_plt_ent): New functions. | |
2029 | (ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend | |
2030 | and adjust for use of plt list rather than refcount. | |
2031 | (ppc_elf_gc_sweep_hook): Likewise. | |
2032 | (ppc_elf_tls_optimize): Likewise. | |
2033 | (ppc_elf_adjust_dynamic_symbol): Likewise. | |
2034 | (allocate_dynrelocs): Likewise. | |
2035 | (ppc_elf_relax_section): Likewise. | |
2036 | (ppc_elf_relocate_section): Likewise. Adjust R_PPC_PLTREL24 addends | |
2037 | when performing a relocatable link. | |
2038 | (ppc_elf_finish_dynamic_symbol): Likewise. Write .glink stubs here.. | |
2039 | (ppc_elf_finish_dynamic_sections): ..rather than here. Use new | |
2040 | pic resolver stub. | |
2041 | ||
a49e53ed AM |
2042 | 2005-05-19 Alan Modra <[email protected]> |
2043 | ||
2044 | * elf.c (assign_file_positions_for_segments): Use maximum of | |
2045 | maxpagesize and section alignment when adjusting initial | |
2046 | segment offset and section offsets. | |
2047 | ||
cb1afa5c ZW |
2048 | 2005-05-18 Zack Weinberg <[email protected]> |
2049 | ||
2050 | * elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks | |
2051 | unconditional. | |
2052 | ||
13792e9d L |
2053 | 2005-05-18 H.J. Lu <[email protected]> |
2054 | ||
2055 | * elf.c (group_signature): Undo the last change. Check if the | |
2056 | symbol table section is correct. | |
2057 | ||
c19d1205 ZW |
2058 | 2005-05-17 Zack Weinberg <[email protected]> |
2059 | ||
2060 | * elf32-arm.c: Wherever possible, use official reloc names | |
2061 | from AAELF. | |
2062 | (elf32_arm_howto_table, elf32_arm_tls_gd32_howto) | |
2063 | (elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto) | |
2064 | (elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto) | |
2065 | (elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto) | |
2066 | (elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel) | |
2067 | (elf32_arm_r_howto): Replace with elf32_arm_howto_table_1, | |
2068 | elf32_arm_howto_table_2, and elf32_arm_howto_table_3. | |
2069 | Add many new relocations from AAELF. | |
2070 | (elf32_arm_howto_from_type): Update to match. | |
2071 | (elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24, | |
2072 | R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8, | |
2073 | R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY. | |
2074 | (elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type. | |
2075 | (elf32_arm_final_link_relocate): Add support for | |
2076 | R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove | |
2077 | case entries redundant with default. | |
2078 | ||
2079 | * reloc.c: Reorganize ARM relocations. Add Thumb | |
2080 | assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8, | |
2081 | BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE. | |
2082 | Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7, | |
2083 | BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25. | |
2084 | Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY. | |
2085 | * bfd-in2.h, libbfd.h: Regenerate. | |
2086 | ||
26ae6d5e DJ |
2087 | 2005-05-17 Daniel Jacobowitz <[email protected]> |
2088 | ||
2089 | * elf.c (_bfd_elf_write_object_contents): Check for non-NULL | |
2090 | elf_shstrtab. | |
2091 | * format.c (bfd_check_format_matches): Set output_has_begun | |
2092 | for both_direction. | |
2093 | * section.c (bfd_set_section_contents): Use bfd_write_p. Remove | |
2094 | special case for both_direction. | |
2095 | ||
5982e3c7 NC |
2096 | 2005-05-17 Nick Clifton <[email protected]> |
2097 | ||
2098 | * elf.c (group_signature): Check for a group section which is | |
2099 | actually a (corrupt) symbol table section in disguise and prevent | |
2100 | an infinite loop from occurring. | |
2101 | ||
fc3ab699 L |
2102 | 2005-05-17 H.J. Lu <[email protected]> |
2103 | ||
2104 | * elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on | |
2105 | 2005-02-16. | |
2106 | ||
5e27d427 L |
2107 | 2005-05-17 H.J. Lu <[email protected]> |
2108 | ||
2109 | * elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original | |
2110 | predicate on slot 0 only if slot 0 isn't br. | |
2111 | ||
75ff4589 L |
2112 | 2005-05-17 H.J. Lu <[email protected]> |
2113 | ||
2114 | PR 797 | |
2115 | * elf32-i386.c (elf_i386_size_dynamic_sections): Also remove | |
2116 | empty sdynbss section. | |
2117 | * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise. | |
2118 | ||
8e0ed13f NC |
2119 | 2005-05-17 Tavis Ormandy <[email protected]> |
2120 | ||
2121 | * elf.c (bfd_section_from_shdr): Add sanity check when parsing | |
2122 | dynamic sections. | |
2123 | ||
7e8aeb9a AM |
2124 | 2005-05-17 Alan Modra <[email protected]> |
2125 | ||
2126 | * elf32-ppc.c (LIS_11. LIS_12): Define. | |
2127 | (LWZU_0_X_12, LWZ_0_X_12, LWZ_12_4_12, LWZ_12_X_12): Define. | |
2128 | (ppc_elf_finish_dynamic_sections): Provide non-pic plt call stub | |
2129 | for --data-plt when building non-pie executables. | |
2130 | ||
641bd093 NC |
2131 | 2005-05-17 Nick Clifton <[email protected]> |
2132 | ||
10dbd1f3 NC |
2133 | * elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle |
2134 | the situation where a symbols's section is not known but a section | |
2135 | relative R_ARM_RELATIVE reloc has to be generated for the Symbian | |
2136 | OS. | |
2137 | ||
641bd093 NC |
2138 | * elf32-v850.c (v850_elf_relocate_section): Move code to test for |
2139 | the presence of a symbol table to just before the symbol table is | |
2140 | actually used. | |
2141 | ||
83b6bd86 L |
2142 | 2005-05-16 H.J. Lu <[email protected]> |
2143 | ||
2144 | PR 834 | |
2145 | * elfxx-ia64.c (elfNN_ia64_relax_br): New. | |
2146 | (elfNN_ia64_relax_section): Use it. | |
2147 | ||
06084812 MK |
2148 | 2005-05-14 Mark Kettenis <[email protected]> |
2149 | ||
2150 | * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead | |
2151 | of basename. | |
2152 | ||
1fe44d79 AM |
2153 | 2005-05-14 Alan Modra <[email protected]> |
2154 | ||
2155 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT, | |
2156 | not DT_PPC_GLINK. | |
2157 | (ppc_elf_finish_dynamic_sections): Likewise. | |
2158 | ||
2db3311b FF |
2159 | 2005-05-13 Fred Fish <[email protected]> |
2160 | ||
2161 | * libbfd-in.h: Fix a comment typo, 'neaderst' -> 'nearest' | |
2162 | * libbfd.h: Rebuilt. | |
2163 | ||
7db48a12 BW |
2164 | 2005-05-13 Bob Wilson <[email protected]> |
2165 | ||
2166 | * elf32-xtensa.c (xtensa_get_property_section_name): Add missing | |
2167 | periods in linkonce_kind values. | |
2168 | ||
8fe76924 L |
2169 | 2005-05-12 H.J. Lu <[email protected]> |
2170 | ||
2171 | * elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF | |
2172 | against protected function when building executable. | |
2173 | ||
86b9da88 AM |
2174 | 2005-05-12 Alan Modra <[email protected]> |
2175 | ||
2176 | * elf32-ppc.c (LWZU_0_X_11): Delete. | |
2177 | (B, LWZ_11_X_11, LWZ_11_X_30, MTCTR_11): Define. | |
2178 | (ppc_elf_select_plt_layout): Set .got flags too. Formatting. | |
2179 | (ppc_elf_size_dynamic_sections): Allocate space for .glink branch | |
2180 | table. | |
2181 | (ppc_elf_finish_dynamic_symbol): Point .plt entries into the branch | |
2182 | table. | |
2183 | (ppc_elf_finish_dynamic_sections): Adjust DT_PPC_GLINK value. | |
2184 | Generate .glink branch table and updated stubs. | |
2185 | ||
d7128ce4 AM |
2186 | 2005-05-11 Alan Modra <[email protected]> |
2187 | ||
2188 | * reloc.c (BFD_RELOC_HI16_PCREL): Define. | |
2189 | (BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL): Define. | |
2190 | * elf32-ppc.c (GLINK_PLTRESOLVE, GLINK_ENTRY_SIZE): Define. | |
2191 | (CROR_151515, CROR_313131): Delete. | |
2192 | (ADDIS_11_11, ADDI_11_11, SUB_11_11_30, ADD_0_11_11, ADD_11_0_11, | |
2193 | LWZ_0_4_30, MTCTR_0, LWZ_12_8_30, BCTR, ADDIS_11_30, | |
2194 | LWZU_0_X_11): Define. | |
2195 | (ppc_elf_howto_raw): Add R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI | |
2196 | and R_PPC_REL16_HA entries. | |
2197 | (ppc_elf_reloc_type_lookup): Convert new bfd reloc types. | |
2198 | (ppc_elf_addr16_ha_reloc): Also handle R_PPC_REL16_HA. | |
2199 | (struct ppc_elf_link_hash_table): Add glink, glink_pltresolve, | |
2200 | new_plt, and old_plt. | |
2201 | (ppc_elf_create_dynamic_sections): Create .glink section. | |
2202 | (ppc_elf_check_relocs): Set new_plt and old_plt. | |
2203 | (ppc_elf_select_plt_layout): New function. | |
2204 | (ppc_elf_tls_setup): Set plt output section elf type and flags. | |
2205 | (allocate_got): Handle differences between old and new got layout. | |
2206 | (allocate_dynrelocs): Likewise for plt. | |
2207 | (ppc_elf_size_dynamic_sections): Likewise. Allocate memory for | |
2208 | .glink. Don't allocate memory for old bss .plt. Emit DT_PPC_GLINK. | |
2209 | (ppc_elf_relax_section): Rename ppc_info to htab. Handle .glink | |
2210 | destination of R_PPC_PLTREL24 relocs. | |
2211 | (ppc_elf_relocate_section): Handle new relocs and changed destination | |
2212 | of R_PPC_PLTREL24. | |
2213 | (ppc_elf_finish_dynamic_symbol): Init new style plt and handle | |
2214 | differences in layout. | |
2215 | (ppc_elf_finish_dynamic_sections): Set DT_PPC_GLINK value. Don't | |
2216 | put a blrl in new got. Write glink contents. | |
2217 | * elf32-ppc.h (ppc_elf_select_plt_layout): Declare. | |
2218 | * libbfd.h: Regenerate. | |
2219 | * bfd-in2.h: Regenerate. | |
2220 | ||
4c9b0de6 AS |
2221 | 2005-05-11 Andreas Schwab <[email protected]> |
2222 | ||
2223 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness | |
2224 | warning. | |
2225 | ||
3d2b39cf L |
2226 | 2005-05-10 H.J. Lu <[email protected]> |
2227 | ||
2228 | * elf.c (_bfd_elf_make_section_from_shdr): Only check debug | |
2229 | section if SEC_ALLOC isn't set. | |
2230 | ||
2ba49b59 KC |
2231 | 2005-05-09 Kelley Cook <[email protected]> |
2232 | ||
2233 | * configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF. | |
2234 | * acinclude.m4: Don't sinclude accross.m4. | |
2235 | * config.in, configure, Makefile.in, doc/Makefile.in: Regenerate. | |
2236 | ||
433817dd AM |
2237 | 2005-05-09 Alan Modra <[email protected]> |
2238 | ||
2239 | * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym. | |
2240 | (ppc64_elf_add_symbol_hook): Set has_dotsym. | |
2241 | (ppc64_elf_check_directives): Only process syms when has_dotsym. | |
2242 | (func_desc_adjust): Hide fake function descriptors when function | |
2243 | code entry is defined. | |
2244 | (adjust_opd_syms): Adjust for deleted_section becoming union field. | |
2245 | ||
0560d0f7 AM |
2246 | 2005-05-09 Alan Modra <[email protected]> |
2247 | ||
2248 | * elfcode.h (elf_object_p): Add more sanity checks on elf header. | |
2249 | ||
74cc7600 DK |
2250 | 2005-05-08 Dave Korn <[email protected]> |
2251 | ||
2252 | * coff-tic80.c: Undefine _CONST after system headers to prevent | |
2253 | clash with tic80-specific definition in include/coff/tic80.h | |
2254 | ||
cfca085c L |
2255 | 2005-05-08 H.J. Lu <[email protected]> |
2256 | ||
2257 | PR 939 | |
2258 | * elflink.c (elf_link_output_extsym): Use output_bfd if | |
2259 | h->root.u.def.section is bfd_abs_section_ptr when reporting | |
2260 | error. | |
2261 | ||
7f4d3958 L |
2262 | 2005-05-07 H.J. Lu <[email protected]> |
2263 | ||
2264 | * elf-bfd.h (elf_backend_data): Update special_sections to | |
2265 | array of pointer to bfd_elf_special_section. | |
2266 | * elf.c (special_sections): Likewise. | |
2267 | * elf32-arm.c (elf32_arm_symbian_special_sections): Likewise. | |
2268 | * elf32-m32r.c (m32r_elf_special_sections): Likewise. | |
2269 | * elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise. | |
2270 | * elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise. | |
2271 | * elf32-mcore.c (mcore_elf_special_sections): Likewise. | |
2272 | * elf32-ppc.c (ppc_elf_special_sections): Likewise. | |
2273 | * elf32-sh64.c (sh64_elf_special_sections): Likewise. | |
2274 | * elf32-v850.c (v850_elf_special_sections): Likewise. | |
2275 | * elf32-xtensa.c (elf_xtensa_special_sections): Likewise. | |
2276 | * elf64-alpha.c (elf64_alpha_special_sections): Likewise. | |
2277 | * elf64-hppa.c (elf64_hppa_special_sections): Likewise. | |
2278 | * elf64-ppc.c (ppc64_elf_special_sections): Likewise. | |
2279 | * elf64-sh64.c (sh64_elf64_special_sections): Likewise. | |
2280 | * elfxx-ia64.c (elfNN_ia64_special_sections): Likewise. | |
2281 | * elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise. | |
2282 | * elfxx-mips.h (_bfd_mips_elf_special_sections): Likewise. | |
2283 | ||
2284 | * elf.c (get_special_section): Updated. | |
2285 | ||
3b36f7e6 AM |
2286 | 2005-05-07 Alan Modra <[email protected]> |
2287 | ||
2288 | * elf-bfd.h (struct elf_backend_data): Remove got_symbol_offset. | |
2289 | * elfxx-target.h (elf_backend_got_symbol_offset): Delete. | |
2290 | * elflink.c (_bfd_elf_create_got_section): Use zero in place of | |
2291 | got_symbol_offset. | |
2292 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise. | |
2293 | * elf32-frv.c (_frv_create_got_section): Likewise. | |
2294 | * elf32-i370.c (i370_elf_finish_dynamic_sections): Delete ppc code. | |
2295 | (elf_backend_got_symbol_offset): Don't define. | |
2296 | * elf64-ppc.c (elf_backend_got_symbol_offset): Don't define. | |
2297 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add got_header_size | |
2298 | and got_gap. | |
2299 | (ppc_elf_create_got): Tidy. | |
2300 | (ppc_elf_create_dynamic_sections): Don't set SEC_IN_MEMORY for .plt. | |
2301 | (ppc_elf_check_relocs): Reduce string comparisons by using elf.hgot. | |
2302 | (ppc_elf_gc_sweep_hook): Likewise. | |
2303 | (ppc_elf_relocate_section): Likewise. | |
2304 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
2305 | (allocate_got): New function. | |
2306 | (allocate_dynrelocs): Use allocate_got. | |
2307 | (ppc_elf_size_dynamic_sections): Likewise. Delay tlsld_got allocation | |
2308 | so that local got can refcount it. Set got_header_size. | |
2309 | (ppc_elf_relocate_section): Use value of elf.hgot rather than hard- | |
2310 | coded 4. | |
2311 | (ppc_elf_finish_dynamic_sections): Likewise. | |
2312 | (elf_backend_got_symbol_offset): Don't define. | |
2313 | (elf_backend_got_header_size): Ditto. | |
2314 | ||
2e0fbf77 JW |
2315 | 2005-05-05 Steve Ellcey <[email protected]> |
2316 | ||
2317 | * configure.in (ACX_HEADER_STRING): New. | |
2318 | * configure: Regenerate. | |
2319 | * config.in: Regenerate. | |
2320 | * sysdep.h (STRING_WITH_STRINGS): Use. | |
2321 | ||
6f140a15 L |
2322 | 2005-05-05 H.J. Lu <[email protected]> |
2323 | ||
2324 | * elf.c (_bfd_elf_close_and_cleanup): Only call | |
2325 | _bfd_dwarf2_cleanup_debug_info on bfd_object. | |
2326 | ||
01d9ad14 L |
2327 | 2005-05-05 H.J. Lu <[email protected]> |
2328 | ||
2329 | * elflink.c (_bfd_elf_provide_section_bound_symbols): Use | |
2330 | "__bss_start" instead of "_edata" as fallback. | |
2331 | ||
b36b76cb L |
2332 | 2005-05-05 H.J. Lu <[email protected]> |
2333 | ||
2334 | * bfd-in2.h: Regenerated. | |
2335 | ||
eac338cf PB |
2336 | 2005-05-05 Paul Brook <[email protected]> |
2337 | ||
2338 | * config.bfd: Use bfd_elf32_i386_vxworks_vec for i?86-*-vxworks. | |
2339 | * configure.in: Add bfd_elf32_i386_vxworks_vec. i386 targets need | |
2340 | elf-vxworks.lo. | |
2341 | * configure: Regenerate. | |
2342 | * Makefile.am (BFD32_BACKENDS): Add elf-vxworks.lo. | |
2343 | (BFD32_BACKENDS_CFILES): Add elf-vxworks.c. | |
2344 | (elf32-i386.lo): Depend on elf-vxworks.h. | |
2345 | (elf-vxworks.lo): New rule. | |
2346 | * Makefile.in: Regenerate. | |
2347 | * elf-bfd.h (elf_backend_data): Update type of | |
2348 | elf_backend_emit_relocs. | |
2349 | (_bfd_elf_link_output_relocs): Update prototype. | |
2350 | * elflink.c (_bfd_elf_link_output_relocs): Always use | |
2351 | bed->elf_backend_emit_relocs when outputting relocations. | |
2352 | * elfxx-target.h (elf_backend_emit_relocs): Default to | |
2353 | _bfd_elf_link_output_relocs. | |
2354 | * targets.c (bfd_elf32_i386_vxworks_vec): Declare. | |
2355 | (_bfd_target_vector): Add bfd_elf32_i386_vxworks_vec. | |
2356 | * elf32-i386.c: Add elf32-i386-vxworks target BFD. | |
2357 | (elf_i386_plt0_entry): Remove padding. | |
2358 | (elf_i386_pic_plt0_entry): Ditto. | |
2359 | (PLTRESOLVE_RELOCS_SHLIB, PLTRESOLVE_RELOCS): Define. | |
2360 | (PLT_NON_JUMP_SLOT_RELOCS): Define. | |
2361 | (elf_i386_link_hash_table): Add srelplt2, hgot, hplt, is_vxworks and | |
2362 | plt0_pad_byte fields. | |
2363 | (elf_i386_link_hash_table_create): Zero them. | |
2364 | (elf_i386_create_dynamic_sections): Create static relocation section. | |
2365 | (allocate_dynrelocs): Allocate space for static PLT relocations. | |
2366 | (elf_i386_size_dynamic_sections): Save shortcuts to PLT and GOT | |
2367 | symbols. Give PLT symbols function type. Don't strip PLT sections | |
d7128ce4 | 2368 | if we have exported symbols from them. |
eac338cf PB |
2369 | (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static |
2370 | relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on | |
2371 | VxWorks. | |
2372 | (elf_i386_finish_dynamic_sections): Allow different pad bytes. | |
2373 | Add relocation for GOT location. Fill in PLT static relocations. | |
2374 | (elf_i386_vxworks_link_hash_table_create): New function. | |
2375 | (elf_i386_vxworks_link_output_symbol_hook): New function. | |
2376 | * elf-vxworks.h: New file. | |
2377 | ||
3496cb2a L |
2378 | 2005-05-05 H.J. Lu <[email protected]> |
2379 | ||
2380 | * section.c (bfd_make_section_anyway_with_flags): New. | |
2381 | (bfd_make_section_anyway): Call bfd_make_section_anyway_with_flags, | |
2382 | (bfd_make_section_with_flags): New. | |
2383 | (bfd_make_section): Call bfd_make_section_with_flags. | |
2384 | ||
2385 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Call | |
2386 | bfd_make_section_with_flags/bfd_make_section_anyway_with_flags | |
2387 | instead of bfd_make_section/bfd_make_section and don't call | |
2388 | bfd_set_section_flags. | |
2389 | (mn10300_elf_check_relocs): Likewise. | |
2390 | (_bfd_mn10300_elf_create_dynamic_sections): Likewise. | |
2391 | * elf32-arm.c (create_got_section): Likewise. | |
2392 | (bfd_elf32_arm_add_glue_sections_to_bfd): Likewise. | |
2393 | (elf32_arm_check_relocs): Likewise. | |
2394 | * elf32-cris.c (cris_elf_check_relocs): Likewise. | |
2395 | * elf32-frv.c (elf32_frv_add_symbol_hook): Likewise. | |
2396 | (_frv_create_got_section): Likewise. | |
2397 | (elf32_frvfdpic_create_dynamic_sections): Likewise. | |
2398 | * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise. | |
2399 | (elf32_hppa_check_relocs): Likewise. | |
2400 | * elf32-i370.c (i370_elf_create_dynamic_sections): Likewise. | |
2401 | (i370_elf_check_relocs): Likewise. | |
2402 | * elf32-i386.c (create_got_section): Likewise. | |
2403 | (elf_i386_check_relocs): Likewise. | |
2404 | * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise. | |
2405 | (create_got_section): Likewise. | |
2406 | (m32r_elf_create_dynamic_sections): Likewise. | |
2407 | (m32r_elf_check_relocs): Likewise. | |
2408 | * elf32-m68k.c (elf_m68k_check_relocs): Likewise. | |
2409 | * elf32-ppc.c (ppc_elf_create_got): Likewise. | |
2410 | (ppc_elf_create_dynamic_sections): Likewise. | |
2411 | (ppc_elf_add_symbol_hook): Likewise. | |
2412 | (ppc_elf_check_relocs): Likewise. | |
2413 | * elf32-s390.c (create_got_section): Likewise. | |
2414 | (elf_s390_check_relocs): Likewise. | |
2415 | * elf32-sh.c (create_got_section): Likewise. | |
2416 | (sh_elf_create_dynamic_sections): Likewise. | |
2417 | (sh_elf_check_relocs): Likewise. | |
2418 | * elf32-vax.c (elf_vax_check_relocs): Likewise. | |
2419 | * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise. | |
2420 | * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise. | |
2421 | (add_extra_plt_sections): Likewise. | |
2422 | * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. | |
2423 | (elf64_alpha_create_got_section): Likewise. | |
2424 | (elf64_alpha_create_dynamic_sections): Likewise. | |
2425 | (elf64_alpha_check_relocs): Likewise. | |
2426 | * elf64-hppa.c (get_reloc_section): Likewise. | |
2427 | (get_opd): Likewise. | |
2428 | (get_plt): Likewise. | |
2429 | (get_dlt): Likewise. | |
2430 | (get_stub): Likewise. | |
2431 | (elf64_hppa_create_dynamic_sectionso): Likewise. | |
2432 | * elf64-mmix.c (mmix_elf_check_common_relocs): Likewise. | |
2433 | * elf64-ppc.c (create_linkage_sections): Likewise. | |
2434 | (ppc64_elf_check_relocs): Likewise. | |
2435 | * elf64-s390.c (create_got_section): Likewise. | |
2436 | (elf_s390_check_relocs): Likewise. | |
2437 | * elf64-sh64.c (sh_elf64_check_relocs): Likewise. | |
2438 | (sh64_elf64_create_dynamic_sections): Likewise. | |
2439 | * elf64-x86-64.c (create_got_section): Likewise. | |
2440 | (elf64_x86_64_check_relocs): Likewise. | |
2441 | * elflink.c (_bfd_elf_create_got_section): Likewise. | |
2442 | (_bfd_elf_link_create_dynamic_sections): Likewise. | |
2443 | (elf_link_add_object_symbols): Likewise. | |
2444 | * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise. | |
2445 | (elfNN_ia64_create_dynamic_sections): Likewise. | |
2446 | (get_fptr): Likewise. | |
2447 | (get_pltoff): Likewise. | |
2448 | (get_reloc_section): Likewise. | |
2449 | (elfNN_ia64_object_p): Likewise. | |
2450 | * elfxx-mips.c (mips_elf_rel_dyn_section): Likewise. | |
2451 | (mips_elf_create_compact_rel_section): Likewise. | |
2452 | (mips_elf_create_got_section): Likewise. | |
2453 | (_bfd_mips_elf_create_dynamic_sections): Likewise. | |
2454 | * elfxx-sparc.c (create_got_section): Likewise. | |
2455 | (_bfd_sparc_elf_check_relocs): Likewise. | |
2456 | ||
2457 | * elf.c (_bfd_elf_new_section_hook): Call _bfd_elf_get_sec_type_attr | |
2458 | on linker created sections. | |
2459 | ||
59fef9e7 L |
2460 | 2005-05-05 H.J. Lu <[email protected]> |
2461 | ||
2462 | PR 882 | |
2463 | * elflink.c (_bfd_elf_link_assign_sym_version): Allow version | |
2464 | script on executable. | |
2465 | ||
35330cce NC |
2466 | 2005-05-05 John Levon <[email protected]> |
2467 | ||
2468 | * dwarf2.c (read_abbrevs): If bfd_realloc fails, free currently | |
2469 | allocated memory before returning. | |
2470 | (decode_line_info): Likewise. | |
2471 | (_bfd_dwarf2_cleanup_debug_info): New function: Frees memory | |
2472 | allocated by functions in this file. | |
2473 | * elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype. | |
6f140a15 | 2474 | * elf.c (_bfd_elf_close_and_cleanup): Call |
35330cce NC |
2475 | _bfd_dwarf2_cleanup_debug_info. |
2476 | ||
4a2a2686 HPN |
2477 | 2005-05-05 Hans-Peter Nilsson <[email protected]> |
2478 | ||
2479 | * Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here. | |
2480 | * configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC. | |
2481 | * configure, config.in, Makefile.in: Regenerate. | |
2482 | * sysdep.h (stpcpy): Revert last change. | |
2483 | ||
0baace35 HPN |
2484 | 2005-05-05 Hans-Peter Nilsson <[email protected]> |
2485 | ||
2486 | * sysdep.h (stpcpy): Wrap declaration in parentheses. | |
2487 | ||
5a260b66 L |
2488 | 2005-05-04 H.J. Lu <[email protected]> |
2489 | ||
2490 | * elfxx-ia64.c (ARCH_SIZE): New. | |
2491 | (LOG_SECTION_ALIGN): Likewise. | |
2492 | (elfNN_ia64_create_dynamic_sections): Use LOG_SECTION_ALIGN to | |
2493 | align relocation sections. | |
2494 | (get_fptr): Likewise. | |
2495 | (get_reloc_section): Likewise. | |
2496 | (elfNN_ia64_tprel_base): Likewise. | |
2497 | (elfNN_ia64_check_relocs): Support 32bit relocations. | |
2498 | (allocate_global_fptr_got): Likewise. | |
2499 | (allocate_dynrel_entries): Likewise. | |
2500 | (set_got_entry): Likewise. | |
2501 | (set_pltoff_entry): Likewise. | |
2502 | (elfNN_ia64_relocate_section): Likewise. | |
2503 | ||
2504 | 2005-05-04 H.J. Lu <[email protected]> | |
2505 | ||
2506 | * configure.in: Add AC_CHECK_DECLS(stpcpy). | |
2507 | * configure: Regenerate. | |
2508 | * config.in: Likewise. | |
2509 | ||
2510 | * sysdep.h (stpcpy): New. | |
2511 | ||
3e110533 NC |
2512 | 2005-05-04 Nick Clifton <[email protected]> |
2513 | ||
2514 | * Update the address and phone number of the FSF organization in | |
2515 | the GPL notices in the following files: | |
2516 | aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c, | |
2517 | aout-cris.c, aout-ns32k.c, aout-sparcle.c, aout-target.h, | |
2518 | aout-tic30.c, aout0.c, aout32.c, aout64.c, aoutf1.h, aoutx.h, | |
2519 | archive.c, archive64.c, archures.c, armnetbsd.c, bfd-in.h, | |
2520 | bfd-in2.h, bfd.c, bfdio.c, bfdwin.c, binary.c, bout.c, cache.c, | |
2521 | cf-i386lynx.c, cf-m68klynx.c, cf-sparclynx.c, cisco-core.c, | |
2522 | coff-a29k.c, coff-alpha.c, coff-apollo.c, coff-arm.c, coff-aux.c, | |
2523 | coff-go32.c, coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c, | |
2524 | coff-i960.c, coff-ia64.c, coff-m68k.c, coff-m88k.c, coff-maxq.c, | |
2525 | coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c, | |
2526 | coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c, | |
2527 | coff-svm68k.c, coff-tic30.c, coff-tic4x.c, coff-tic54x.c, | |
2528 | coff-tic80.c, coff-u68k.c, coff-w65.c, coff-we32k.c, coff-z8k.c, | |
2529 | coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c, coffswap.h, | |
2530 | corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c, | |
2531 | cpu-avr.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c, | |
2532 | cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c, | |
2533 | cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c, | |
2534 | cpu-i960.c, cpu-ia64-opc.c, cpu-ia64.c, cpu-ip2k.c, cpu-iq2000.c, | |
2535 | cpu-m10200.c, cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c, | |
2536 | cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c, | |
2537 | cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-ns32k.c, cpu-openrisc.c, | |
2538 | cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c, cpu-rs6000.c, | |
2539 | cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c, cpu-tic4x.c, | |
2540 | cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c, | |
2541 | cpu-we32k.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z8k.c, demo64.c, | |
2542 | dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c, ecoffswap.h, | |
2543 | efi-app-ia32.c, efi-app-ia64.c, elf-bfd.h, elf-eh-frame.c, | |
2544 | elf-hppa.h, elf-m10200.c, elf-m10300.c, elf-strtab.c, elf.c, | |
2545 | elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c, | |
2546 | elf32-cr16c.c, elf32-cris.c, elf32-crx.c, elf32-d10v.c, | |
2547 | elf32-d30v.c, elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c, | |
2548 | elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c, | |
2549 | elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c, | |
2550 | elf32-iq2000.c, elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c, | |
2551 | elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c, elf32-m88k.c, | |
2552 | elf32-mcore.c, elf32-mips.c, elf32-msp430.c, elf32-openrisc.c, | |
2553 | elf32-or32.c, elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c, | |
2554 | elf32-sh-symbian.c, elf32-sh.c, elf32-sh64-com.c, elf32-sh64.c, | |
2555 | elf32-sh64.h, elf32-sparc.c, elf32-v850.c, elf32-vax.c, | |
2556 | elf32-xstormy16.c, elf32-xtensa.c, elf32.c, elf64-alpha.c, | |
2557 | elf64-gen.c, elf64-hppa.c, elf64-hppa.h, elf64-mips.c, | |
2558 | elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c, | |
2559 | elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elf64.c, elfcode.h, | |
2560 | elfcore.h, elflink.c, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c, | |
2561 | elfxx-mips.h, elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h, | |
2562 | epoc-pe-arm.c, epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c, | |
2563 | genlink.h, hash.c, host-aout.c, hp300bsd.c, hp300hpux.c, | |
2564 | hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c, | |
2565 | i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c, | |
2566 | i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c, | |
2567 | libaout.h, libbfd-in.h, libbfd.c, libbfd.h, libcoff-in.h, | |
2568 | libcoff.h, libecoff.h, libhppa.h, libieee.h, libnlm.h, liboasys.h, | |
2569 | libpei.h, libxcoff.h, linker.c, lynx-core.c, m68k4knetbsd.c, | |
2570 | m68klinux.c, m68klynx.c, m68knetbsd.c, m88kmach3.c, m88kopenbsd.c, | |
2571 | mach-o-target.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c, mmo.c, | |
2572 | netbsd-core.c, netbsd.h, newsos3.c, nlm-target.h, nlm.c, | |
2573 | nlm32-alpha.c, nlm32-i386.c, nlm32-ppc.c, nlm32-sparc.c, nlm32.c, | |
2574 | nlm64.c, nlmcode.h, nlmswap.h, ns32k.h, ns32knetbsd.c, oasys.c, | |
2575 | opncls.c, osf-core.c, pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c, | |
2576 | pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c, peXXigen.c, | |
2577 | pef-traceback.h, pef.c, pef.h, pei-arm.c, pei-i386.c, pei-mcore.c, | |
2578 | pei-mips.c, pei-ppc.c, pei-sh.c, peicode.h, ppcboot.c, | |
2579 | ptrace-core.c, reloc.c, reloc16.c, riscix.c, rs6000-core.c, | |
2580 | sco5-core.c, section.c, simple.c, som.c, som.h, sparclinux.c, | |
2581 | sparclynx.c, sparcnetbsd.c, srec.c, stab-syms.c, stabs.c, sunos.c, | |
2582 | syms.c, sysdep.h, targets.c, tekhex.c, ticoff.h, trad-core.c, | |
2583 | vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c, vms-gsd.c, | |
2584 | vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h, xcoff-target.h, | |
2585 | xcofflink.c, xsym.c, xsym.h, xtensa-isa.c, xtensa-modules.c, | |
11d02c41 | 2586 | hosts/alphavms.h |
3e110533 | 2587 | |
f652615e L |
2588 | 2005-05-04 H.J. Lu <[email protected]> |
2589 | ||
2590 | * bfd-in.h (_bfd_elf_provide_section_bound_symbols): New. | |
2591 | * bfd-in2.h: Regenerated. | |
2592 | ||
2593 | * elflink.c (bfd_elf_set_symbol): New. | |
2594 | (_bfd_elf_provide_symbol): Call it. | |
2595 | (_bfd_elf_provide_section_bound_symbols): New. | |
2596 | ||
c5e2cead L |
2597 | 2005-05-04 H.J. Lu <[email protected]> |
2598 | ||
2599 | * elflink.c (_bfd_elf_merge_symbol): Only skip weak definitions | |
2600 | at the end, if a strong definition has already been seen. | |
2601 | ||
8423293d AM |
2602 | 2005-05-04 Alan Modra <[email protected]> |
2603 | ||
2604 | * section.c (struct bfd_section): Replace link_order_head and | |
2605 | link_order_tail with map_head and map_tail union. | |
2606 | (STD_SECTION): Update. | |
2607 | (_bfd_strip_section_from_output): Delete. | |
2608 | * aoutx.h: Update throughout for above changes. | |
2609 | * coff-ppc.c: Likewise. | |
2610 | * cofflink.c: Likewise. | |
2611 | * ecoff.c: Likewise. | |
2612 | * elf-eh-frame.c: Likewise. | |
2613 | * elf-m10300.c: Likewise. | |
2614 | * elf.c: Likewise. | |
2615 | * elf32-arm.c: Likewise. | |
2616 | * elf32-cris.c: Likewise. | |
2617 | * elf32-hppa.c: Likewise. | |
2618 | * elf32-i386.c: Likewise. | |
2619 | * elf32-m32r.c: Likewise. | |
2620 | * elf32-m68hc1x.c: Likewise. | |
2621 | * elf32-m68k.c: Likewise. | |
2622 | * elf32-ppc.c: Likewise. | |
2623 | * elf32-s390.c: Likewise. | |
2624 | * elf32-sh.c: Likewise. | |
2625 | * elf32-vax.c: Likewise. | |
2626 | * elf32-xtensa.c: Likewise. | |
2627 | * elf64-alpha.c: Likewise. | |
2628 | * elf64-hppa.c: Likewise. | |
2629 | * elf64-ppc.c: Likewise. | |
2630 | * elf64-s390.c: Likewise. | |
2631 | * elf64-sh64.c: Likewise. | |
2632 | * elf64-x86-64.c: Likewise. | |
2633 | * elflink.c: Likewise. | |
2634 | * elfxx-ia64.c: Likewise. | |
2635 | * elfxx-mips.c: Likewise. | |
2636 | * elfxx-sparc.c: Likewise. | |
2637 | * linker.c: Likewise. | |
2638 | * merge.c: Likewise. | |
2639 | * pdp11.c: Likewise. | |
2640 | * xcofflink.c: Likewise. | |
2641 | * elflink.c (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Split | |
2642 | out from bfd_elf_size_dynamic_sections. | |
2643 | * bfd-in.h (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Declare. | |
2644 | * bfd-in2.h: Regenerate. | |
2645 | ||
04dd1667 AM |
2646 | 2005-05-04 Alan Modra <[email protected]> |
2647 | ||
2648 | * section.c (bfd_section_list_remove): Don't clear s->next. | |
2649 | (bfd_section_list_append): Always init s->prev. | |
2650 | (bfd_section_list_prepend): Define. | |
2651 | (bfd_section_list_insert_after): Minor optimization. | |
2652 | (bfd_section_removed_from_list): Rewrite. | |
2653 | * elf.c (assign_section_numbers): Simplify list traversal now that | |
2654 | bfd_section_list_remove doesn't destroy removed section next ptr. | |
2655 | * sunos.c (sunos_add_dynamic_symbols): Likewise. | |
2656 | * elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend. | |
2657 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal. | |
2658 | * bfd-in2.h: Regenerate. | |
2659 | ||
5daa8fe7 L |
2660 | 2005-05-02 H.J. Lu <[email protected]> |
2661 | ||
2662 | * bfd.c (bfd): Remove section_tail and add section_last. | |
2663 | (bfd_preserve): Likewise. | |
2664 | (bfd_preserve_save): Likewise. | |
2665 | (bfd_preserve_restore): Likewise. | |
2666 | * opncls.c (_bfd_new_bfd): Likewise. | |
2667 | ||
2668 | * coffcode.h (coff_compute_section_file_positions): Updated. | |
2669 | (coff_compute_section_file_positions): Likewise. | |
2670 | * elf.c (assign_section_numbers): Likewise. | |
2671 | * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. | |
2672 | * elf64-mmix.c (mmix_elf_final_link): Likewise. | |
2673 | * elfxx-ia64.c (elfNN_ia64_object_p): Likewise. | |
2674 | * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise. | |
2675 | * sunos.c (sunos_add_dynamic_symbols): Likewise. | |
2676 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise. | |
2677 | ||
2678 | * ecoff.c (bfd_debug_section): Initialize prev. | |
2679 | ||
2680 | * section.c (bfd_section): Add prev. | |
2681 | (bfd_section_list_remove): Updated. | |
2682 | (bfd_section_list_append): New. | |
2683 | (bfd_section_list_insert_after): New. | |
2684 | (bfd_section_list_insert_before): New. | |
2685 | (bfd_section_list_insert): Removed. | |
2686 | (bfd_section_removed_from_list): Updated. | |
2687 | (STD_SECTION): Initialize prev. | |
2688 | (bfd_section_init): Updated. | |
2689 | (bfd_section_list_clear): Updated. | |
2690 | ||
2691 | * bfd-in2.h: Regenerated. | |
2692 | ||
a31501e9 L |
2693 | 2005-05-02 H.J. Lu <[email protected]> |
2694 | ||
2695 | * elf.c (_bfd_elf_new_section_hook): Don't call | |
2696 | _bfd_elf_get_sec_type_attr on sections from input files. | |
2697 | ||
d05da6a8 L |
2698 | 2005-05-02 H.J. Lu <[email protected]> |
2699 | ||
2700 | * merge.c (sec_merge_init): Call bfd_hash_table_init_n with | |
2701 | hash table size 16699 instead of bfd_hash_table_init. | |
2702 | ||
a67b080b PB |
2703 | 2005-05-01 Paul Brook <[email protected]> |
2704 | ||
2705 | * elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong | |
2706 | definition has already been seen. | |
2707 | ||
c6596c5e PB |
2708 | 2005-05-01 Paul Brook <[email protected]> |
2709 | ||
2710 | * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Treat | |
2711 | R_ARM_PLT32 the same as R_ARM_PC24. | |
2712 | (arm_add_to_rel): Ditto. | |
2713 | ||
9a813b7a DJ |
2714 | 2005-04-29 Ralf Corsepius <[email protected]> |
2715 | ||
2716 | * config.bfd: Add h8300*-*-rtemscoff. | |
2717 | Switch h8300*-*-rtems* to elf. | |
2718 | ||
aa7eb06d DJ |
2719 | 2005-04-29 Daniel Jacobowitz <[email protected]> |
2720 | ||
2721 | * aclocal.m4, Makefile.in: Regnerated. | |
2722 | ||
fa0d1cab PB |
2723 | 2005-04-28 Paul Brook <[email protected]> |
2724 | ||
2725 | Merge changes only applied to Makefile.in. | |
2726 | * Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo | |
2727 | (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c | |
2728 | (elfxx-sparc.lo): New rule. | |
2729 | (elf32-sparc.lo): Add elfxx-sparc.h dependency. | |
2730 | (elf64-sparc.lo): Likewise. | |
2731 | ||
0291d291 NC |
2732 | 2005-04-28 Julian Brown <[email protected]> |
2733 | ||
2734 | * elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak | |
2735 | import. | |
2736 | ||
26c61ae5 L |
2737 | 2005-04-27 H.J. Lu <[email protected]> |
2738 | ||
2739 | * elf-bfd.h (bfd_elf_sym_name): Also take "asection *". | |
2740 | ||
2741 | * elf.c (bfd_elf_sym_name): Updated. | |
2742 | (group_signature): Likewise. | |
2743 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
2744 | * elf64-ppc.c (ppc64_elf_edit_opd): Likewise. | |
2745 | (ppc64_elf_edit_toc): Likewise. | |
2746 | (ppc64_elf_relocate_section): Likewise. | |
2747 | * elfcode.h (elf_slurp_symbol_table): Likewise. | |
2748 | * elflink.c (elf_link_input_bfd): Likewise. | |
2749 | ||
2750 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Call | |
2751 | bfd_elf_sym_name to get local symbol name when reporting errors. | |
2752 | ||
8c19749a NC |
2753 | 2005-04-27 Nick Clifton <[email protected]> |
2754 | ||
2755 | * elflink.c (elf_link_input_bfd): Handle the case where a badly | |
2756 | formatted input file results in a reloc which has no associated | |
2757 | global symbol. | |
2758 | ||
8e5b6e16 JG |
2759 | 2005-04-26 Jerome Guitton <[email protected]> |
2760 | ||
2761 | * bfd.m4 (BFD_NEED_DECLARATION): Restore. | |
2762 | ||
e459dc7b DM |
2763 | 2005-04-25 David S. Miller <[email protected]> |
2764 | ||
2765 | * elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection. | |
2766 | (sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol, | |
2767 | sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections): | |
2768 | Likewise. | |
2769 | ||
6d633fd2 L |
2770 | 2005-04-25 H.J. Lu <[email protected]> |
2771 | ||
2772 | PR 858 | |
2773 | * elflink.c (elf_link_input_bfd): Make non-debugging reference | |
2774 | to discarded section an error. | |
2775 | ||
d34a2b1d JG |
2776 | 2005-04-21 Jerome Guitton <[email protected]> |
2777 | ||
2778 | * configure.in: Replace BFD_NEED_DECLARATION checks by the | |
2779 | corresponding AC_CHECK_DECLS. | |
2780 | * sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding | |
2781 | HAVE_DECL_*. | |
2782 | * bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete. | |
2783 | * configure: Regenerate. | |
2784 | * config.in: Ditto. | |
2785 | ||
ff01938b AS |
2786 | 2005-04-21 Andreas Schwab <[email protected]> |
2787 | ||
c2e70a82 AS |
2788 | * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove |
2789 | unsigned from type of dynamic_interpreter. | |
2790 | * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create): Remove | |
2791 | casts again. | |
2792 | ||
ff01938b AS |
2793 | * elf.c (assign_section_numbers): Fix comment. |
2794 | ||
0858d3ec JG |
2795 | 2005-04-21 Jerome Guitton <[email protected]> |
2796 | ||
2797 | * som.c (som_bfd_print_private_bfd_data): Add explicit cast to long | |
2798 | for struct som_exec_auxhdr fields. | |
2799 | ||
7920ce38 NC |
2800 | 2005-04-21 Nick Clifton <[email protected]> |
2801 | ||
2802 | * aout-adobe.c: Convert to ISO C and fix formatting. | |
2803 | * aout-arm.c: Convert to ISO C and fix formatting. | |
2804 | * aout-cris.c: Convert to ISO C and fix formatting. | |
2805 | * aout-ns32k.c: Convert to ISO C and fix formatting. | |
2806 | * aout-tic30.c: Convert to ISO C and fix formatting. | |
2807 | * coffcode.h: Convert to ISO C and fix formatting. | |
2808 | * coffswap.h: Convert to ISO C and fix formatting. | |
2809 | * i386aout.c: Convert to ISO C and fix formatting. | |
2810 | * libaout.h: Convert to ISO C and fix formatting. | |
2811 | * libcoff-in.h: Convert to ISO C and fix formatting. | |
2812 | * libcoff.h: Convert to ISO C and fix formatting. | |
2813 | * libecoff.h: Convert to ISO C and fix formatting. | |
2814 | * libnlm.h: Convert to ISO C and fix formatting. | |
2815 | * libpei.h: Convert to ISO C and fix formatting. | |
2816 | * libxcoff.h: Convert to ISO C and fix formatting. | |
2817 | * nlm-target.h: Convert to ISO C and fix formatting. | |
2818 | * nlm.c: Convert to ISO C and fix formatting. | |
2819 | * nlm32-alpha.c: Convert to ISO C and fix formatting. | |
2820 | * nlm32-i386.c: Convert to ISO C and fix formatting. | |
2821 | * nlm32-ppc.c: Convert to ISO C and fix formatting. | |
2822 | * nlm32-sparc.c: Convert to ISO C and fix formatting. | |
2823 | * nlmcode.h: Convert to ISO C and fix formatting. | |
2824 | * nlmswap.h: Convert to ISO C and fix formatting. | |
2825 | * pe-mips.c: Convert to ISO C and fix formatting. | |
2826 | * peXXigen.c: Convert to ISO C and fix formatting. | |
2827 | * peicode.h: Convert to ISO C and fix formatting. | |
2828 | * vms-gsd.c: Convert to ISO C and fix formatting. | |
2829 | * vms-hdr.c: Convert to ISO C and fix formatting. | |
2830 | * vms-misc.c: Convert to ISO C and fix formatting. | |
2831 | * vms-tir.c: Convert to ISO C and fix formatting. | |
2832 | * vms.c: Convert to ISO C and fix formatting. | |
2833 | * vms.h: Convert to ISO C and fix formatting. | |
2834 | ||
2835 | * coffgen.c (coff_print_symbol): Restore correct formatting of | |
2836 | output. | |
2837 | ||
e8be8da4 DM |
2838 | 2005-04-20 David S. Miller <[email protected]> |
2839 | ||
2840 | * elfxx-sparc.c (sparc_elf_r_symndx_64): Fix compiler warning. | |
2841 | (_bfd_sparc_elf_link_hash_table_create): Likewise. | |
2842 | (allocate_dynrelocs): Likewise. | |
2843 | ||
ec7b76fe JG |
2844 | 2005-04-20 Jerome Guitton <[email protected]> |
2845 | ||
2846 | * configure.in: Fix the check for basename declaration. Add check | |
2847 | for declarations of ftello, ftello64, fseeko, fseeko64. | |
2848 | * configure: Regenerate. | |
2849 | * config.in: Ditto. | |
2850 | * sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64. | |
2851 | ||
22b75d0a DM |
2852 | 2005-04-19 David S. Miller <[email protected]> |
2853 | ||
2854 | * elfxx-sparc.c: New file. | |
2855 | * elfxx-sparc.h: New file. | |
2856 | * Makefile.in (BFD32_BACKENDS): Add elfxx-sparc.lo | |
2857 | (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c | |
2858 | (elfxx-sparc.lo): New rule. | |
2859 | (elf32-sparc.lo): Add elfxx-sparc.h dependency. | |
2860 | (elf64-sparc.lo): Likewise. | |
2861 | * configure.in (bfd_elf32_sparc_vec): Add elfxx-sparc.lo | |
2862 | (bfd_elf64_sparc_vec): Likewise. | |
2863 | * configure: Regenerate. | |
2864 | * elf32-sparc.c: Remove common code now in elfxx-sparc.c | |
2865 | * elf64-sparc.c: Likewise, also use elf64_sparc_*() naming | |
2866 | which is more consistent with elf32-sparc.c | |
2867 | ||
a008ac03 DJ |
2868 | 2005-04-19 Daniel Jacobowitz <[email protected]> |
2869 | ||
2870 | * elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment. | |
2871 | (mips_elf_create_local_got_entry): Check h->root.forced_local. | |
2872 | ||
c87b5a93 AM |
2873 | 2005-04-19 Alan Modra <[email protected]> |
2874 | ||
2875 | * elf32-ppc.c (ppc_elf_check_relocs): Don't bother with | |
2876 | dynamic relocs in non-SEC_ALLOC sections. | |
2877 | (ppc_elf_gc_sweep_hook): Likewise. | |
2878 | (ppc_elf_relax_section): Likewise. | |
2879 | (ppc_elf_relocate_section): Likewise. | |
2880 | ||
7cefacd3 NC |
2881 | 2005-04-18 Nick Clifton <[email protected]> |
2882 | ||
2883 | * aix5ppc-core.c (xcoff64_core_p): Fix compile time warning | |
2884 | assigning a value to return_value. | |
2885 | ||
278d8f37 L |
2886 | 2005-04-17 H.J. Lu <[email protected]> |
2887 | ||
2888 | PR 855 | |
2889 | * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker | |
2890 | created group data. | |
2891 | ||
20dbb49d L |
2892 | 2005-04-17 H.J. Lu <[email protected]> |
2893 | ||
2894 | PR 855 | |
2895 | * elf.c (setup_group): Properly handle zero group count. | |
2896 | ||
6a808a40 MK |
2897 | 2005-04-17 Mark Kettenis <[email protected]> |
2898 | ||
2899 | * som.c (hppa_som_reloc, som_mkobject, som_is_space) | |
2900 | (som_is_subspace, compare_subspaces, som_compute_checksum) | |
2901 | (som_build_and_write_symbol_table, som_slurp_symbol_table): New | |
2902 | protoypes. | |
2903 | (hppa_som_reloc, compare_syms, compare_subspaces) | |
2904 | (som_print_symbol, som_get_section_contents) | |
2905 | (som_set_section_contents): Remove space after 'void *'. | |
2906 | (som_bfd_print_private_bfd_data): Use %lx to print longs. | |
2907 | (som_bfd_merge_private_bfd_data) | |
2908 | (som_bfd_copy_private_header_data, som_bfd_set_private_flags): New | |
2909 | defines. | |
2910 | ||
33bfe774 JB |
2911 | 2004-04-15 Julian Brown <[email protected]> |
2912 | ||
2913 | * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype. | |
2914 | * bfd-in2.h: Regenerate. | |
2915 | * elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'. | |
2916 | (elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx. | |
2917 | (bfd_elf32_arm_set_target_relocs): Handle use_blx. | |
2918 | (elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22 | |
2919 | relocations if requested to. | |
2920 | (allocate_dynrelocs): Don't count size of omitted Thumb stubs based on | |
2921 | use_blx rather than symbian_p. | |
2922 | (elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if | |
2923 | use_blx is in effect. | |
2924 | (elf32_arm_symbian_link_hash_table_create): Enable use_blx by default | |
2925 | for SymbianOS. | |
2926 | ||
745c12f8 NC |
2927 | 2005-04-15 Nick Clifton <[email protected]> |
2928 | ||
2929 | * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma | |
2930 | values. | |
2931 | ||
2e8b3a61 AM |
2932 | 2005-04-15 Alan Modra <[email protected]> |
2933 | ||
2934 | PR ld/815 | |
2935 | * elflink.c (elf_smash_syms): Clear undef.next if it's not being | |
2936 | used as a list pointer. | |
2937 | ||
9e9b66a9 AM |
2938 | 2005-04-14 Alan Modra <[email protected]> |
2939 | ||
2940 | * Makefile.am (NO_WERROR): Define. | |
2941 | * warning.m4: New file | |
2942 | * acinclude.m4: Include warning.m4. | |
2943 | * configure.in: Invoke AM_BINUTILS_WARNINGS. | |
2944 | * Makefile.in: Regenerate. | |
2945 | * configure: Regenerate. | |
2946 | ||
8699aa54 AM |
2947 | 2005-04-14 Alan Modra <[email protected]> |
2948 | ||
92ceba1e AM |
2949 | * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors. |
2950 | Write trailing padding. | |
2951 | ||
8699aa54 AM |
2952 | * merge.c (merge_strings): Round up section size for alignment. |
2953 | ||
40937810 JJ |
2954 | 2005-04-14 David S. Miller <[email protected]> |
2955 | ||
2956 | Add TLS support for 64-bit Sparc ELF. | |
2957 | * elf64-sparc.c (sparc64_elf_dyn_relocs, | |
2958 | sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs. | |
2959 | (GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE, | |
2960 | sparc64_elf_hash_entry, sparc64_elf_tdata, | |
2961 | sparc64_elf_local_got_tls_type): New defines. | |
2962 | (sparc64_elf_mkobject): New function. | |
2963 | (sparc64_elf_link_hash_table): Add members for dynamic linker | |
2964 | sections PLT, RELPLT, DYNBSS, and RELBSS. Add tls_ldm_got | |
2965 | uion to track TLS GOT references. Add sym_sec to cache | |
2966 | mappings from local sym to section. | |
2967 | (link_hash_newfunc): New function. | |
2968 | (sparc64_elf_bfd_link_hash_table_create): Rename to | |
2969 | sparc64_elf_link_hash_table_create for consistency. | |
2970 | Pass link_hash_newfunc to _bfd_elf_link_hash_table_init. | |
2971 | (sparc64_elf_create_dynamic_sections): Initialize new section | |
2972 | members of sparc64_elf_link_hash_table. Only init srelbss | |
2973 | if not-shared. | |
2974 | (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition): | |
2975 | New functions. | |
2976 | (SPARC_NOP): Define. | |
2977 | (sparc64_elf_build_plt, sparc64_elf_plt_entry_offset, | |
2978 | sparc64_elf_plt_ptr_offset): Delete. | |
2979 | (sparc64_plt_entry_build): New function to build PLT entries | |
2980 | gradually instread of all at once at the end of linking. | |
2981 | (sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot | |
2982 | local vars. Get them from sparc64_elf_hash_table instead. | |
2983 | Check early on if r_symndx is in bounds. Handle TLS transitions. | |
2984 | Account for TLS GOT references and DF_STATIC_TLS, as needed. | |
2985 | For TLS relocs, record the tls_type in either | |
2986 | sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as | |
2987 | appropriate. For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference | |
2988 | to the __tls_get_addr symbol. For PLT relocs, track references | |
2989 | via h->plt.refcount. When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10, | |
2990 | PC_LM22} and h not-NULL, set h->non_got_ref. For global data | |
2991 | symbol references, count the number of relocations needed for | |
2992 | that symbol. For default switch case, don't error, this lets | |
2993 | the TLS relocs not explicitly handled by this function get | |
2994 | accepted. | |
2995 | (sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions. | |
2996 | (sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get | |
2997 | it from sparc64_elf_hash_table. Store the real PLT offset | |
2998 | in h->plt.offset, and build PLT entries one at a time. Also | |
2999 | get .dynbss section pointer from htab. | |
3000 | (allocate_dynrelocs, readonly_dynrelocs, | |
3001 | sparc64_omit_section_dynsym): New functions. | |
3002 | (sparc64_elf_omit_section_dynsym): Use these new functions as | |
3003 | helpers. | |
3004 | (dtpoff_base, tpoff): New functions. | |
3005 | (sparc64_elf_relocate_section): Kill dynobj, sgot, and splt | |
3006 | locals, get them from sparc64_elf_hash_table. Handle TLS | |
3007 | relocations and refcounting in main relocation loop. | |
3008 | (sparc64_elf_finish_dynamic_symbol): Use | |
3009 | sparc64_elf_link_hash_table. Build PLT entries as we see | |
3010 | them. Handle TLS GOT relocations. | |
3011 | (sparc64_elf_finish_dynamic_sections): Get sgot and dynobj | |
3012 | from sparc64_elf_hash_table. Initialize only PLT header | |
3013 | not all entries since we not build PLT entries one by one. | |
3014 | (elf_backend_copy_indirect_symbol, bfd_elf64_mkobject, | |
3015 | elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook, | |
3016 | elf_backend_can_gc_sections, elf_backend_can_refcount): Define. | |
3017 | ||
e75a280b L |
3018 | 2005-04-13 Daniel Jacobowitz <[email protected]> |
3019 | ||
3020 | * elflink.c (elf_link_input_bfd): Update check for removed | |
3021 | sections. | |
3022 | ||
ceae3e33 AM |
3023 | 2005-04-12 Alan Modra <[email protected]> |
3024 | ||
3025 | * Makefile.am: Run "make dep-am". | |
3026 | * Makefile.in: Regenerate. | |
3027 | * aclocal.m4: Regenerate. | |
3028 | * libcoff.h: Regenerate. | |
3029 | ||
ab82c5b9 L |
3030 | 2005-04-11 H.J. Lu <[email protected]> |
3031 | ||
3032 | * linker.c (_bfd_generic_link_output_symbols): Also check if | |
3033 | the output section of an input section has been removed from | |
3034 | the output file. | |
3035 | ||
3036 | * section.c (bfd_section_list_remove): Clear the next field | |
3037 | of the removed section. | |
3038 | (bfd_section_removed_from_list): New. | |
3039 | * bfd-in2.h: Regenerated. | |
3040 | ||
bd695bcc JJ |
3041 | 2005-04-11 David S. Miller <[email protected]> |
3042 | ||
3043 | * elf32-sparc.c (elf32_sparc_relocate_section, | |
3044 | R_SPARC_TLS_LDO_{HIX22,LOX10}): When not shared, transition to | |
3045 | R_SPARC_TLS_LE_{HIX22,LOX10}. | |
3046 | (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_HIX22): Only | |
3047 | xor relocation with 0xffffffff if R_SPARC_TLS_LE_HIX22. | |
3048 | (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_LOX10): Only | |
3049 | or 0x1c00 into relocation if R_SPARC_TLS_LE_HIX22. | |
3050 | ||
b5b2699c L |
3051 | 2005-04-11 H.J. Lu <[email protected]> |
3052 | ||
3053 | * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h. | |
3054 | ||
116c20d2 | 3055 | 2005-04-11 Nick Clifton <[email protected]> |
d7128ce4 | 3056 | |
116c20d2 NC |
3057 | * aout-target.h: Convert to ISO C. |
3058 | * aoutf1.h: Convert to ISO C. | |
3059 | * aoutx.h: Convert to ISO C. | |
3060 | * bout.c: Convert to ISO C. | |
3061 | * dwarf1.c: Convert to ISO C. | |
3062 | * ecoffswap.h: Convert to ISO C. | |
3063 | * freebsd.h: Convert to ISO C. | |
3064 | * genlink.h: Convert to ISO C. | |
3065 | * ieee.c: Convert to ISO C. | |
3066 | * ihex.c: Convert to ISO C. | |
3067 | * libcoff-in.h: Convert to ISO C. | |
3068 | * mach-o.c: Convert to ISO C. | |
3069 | * mach-o.h: Convert to ISO C. | |
3070 | * netbsd.h: Convert to ISO C. | |
3071 | * ns32k.h: Convert to ISO C. | |
3072 | * ns32knetbsd.c: Convert to ISO C. | |
3073 | * oasys.c: Convert to ISO C. | |
3074 | * pdp11.c: Convert to ISO C. | |
3075 | * pef-traceback.h: Convert to ISO C. | |
3076 | * pef.c: Convert to ISO C. | |
3077 | * pef.h: Convert to ISO C. | |
3078 | * riscix.c: Convert to ISO C. | |
3079 | * som.c: Convert to ISO C. | |
3080 | * som.h: Convert to ISO C. | |
3081 | * srec.c: Convert to ISO C. | |
3082 | * stabs.c: Convert to ISO C. | |
3083 | * sunos.c: Convert to ISO C. | |
3084 | * tekhex.c: Convert to ISO C. | |
3085 | * versados.c: Convert to ISO C. | |
3086 | * version.h: Convert to ISO C. | |
3087 | * xcoff-target.h: Convert to ISO C. | |
3088 | * xcofflink.c: Convert to ISO C. | |
3089 | * xsym.c: Convert to ISO C. | |
3090 | * xsym.h: Convert to ISO C. | |
3091 | ||
8f6277f5 PB |
3092 | 2005-04-08 Paul Brook <[email protected]> |
3093 | ||
3094 | * elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename... | |
3095 | (ARM2THUMB_STATIC_GLUE_SIZE): ... to this. | |
3096 | (ARM2THUMB_PIC_GLUE_SIZE): Define. | |
3097 | (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add. | |
3098 | (elf32_arm_to_thumb_stub): Create PIC stubs. | |
3099 | (record_arm_to_thumb_glue): Use different stub size for relocatable | |
3100 | images. | |
3101 | ||
8c1d1bb8 AM |
3102 | 2005-04-05 Alan Modra <[email protected]> |
3103 | ||
3104 | * elf64-ppc.c (dec_dynrel_count): New function split out from | |
3105 | ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd. | |
3106 | (ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it. | |
3107 | (ppc64_elf_tls_optimize): Likewise. | |
3108 | ||
8c101720 NC |
3109 | 2005-04-05 Mark Kettenis <[email protected]> |
3110 | ||
3111 | * netbsd-core.c (SPARC_WCOOKIE_OFFSET): Renamed from | |
3112 | CORE_WCOOKIE_OFFSET. | |
3113 | (SPARC64_WCOOKIE_OFFSET): New. | |
3114 | (netbsd_core_file_p): Provide .wcookie section for OpenBSD/sparc64. | |
3115 | ||
429cc0ae NC |
3116 | 2005-04-05 Nick Clifton <[email protected]> |
3117 | ||
3118 | * po/rw.po: New translation: Kinyarwanda | |
3119 | * configure.in (ALL_LINGUAS): Add rw | |
3120 | * configure: Regenerate. | |
3121 | ||
cc2e31b9 RS |
3122 | 2005-04-05 Richard Sandiford <[email protected]> |
3123 | ||
3124 | * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro. | |
3125 | (_bfd_mips_elf_section_from_shdr): Use it to check for recognized | |
3126 | SHT_MIPS_OPTIONS names. Allow all sections with unrecognised | |
3127 | section flags. | |
3128 | (_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P | |
3129 | to check for SHT_MIPS_OPTIONS sections. | |
3130 | (_bfd_mips_elf_set_section_contents): Likewise. | |
3131 | ||
8236346f EC |
3132 | 2005-04-04 Eric Christopher <[email protected]> |
3133 | ||
3134 | * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): | |
3135 | Clean up gp handling code. | |
3136 | ||
7e4111ad L |
3137 | 2005-04-04 H.J. Lu <[email protected]> |
3138 | ||
3139 | * elf.c (bfd_elf_set_group_contents): Ignore linker created | |
d7128ce4 | 3140 | group section. |
da9f89d4 L |
3141 | (assign_section_numbers): Accept link_info. Check SHT_GROUP |
3142 | sections for relocatable files only. Remove the linker created | |
3143 | group sections. | |
3144 | (_bfd_elf_compute_section_file_positions): Pass link_info to | |
3145 | assign_section_numbers. | |
3146 | ||
3147 | * elfxx-ia64.c (elfNN_ia64_object_p): New. | |
3148 | (elf_backend_object_p): Defined. | |
7e4111ad | 3149 | |
96982dc9 L |
3150 | 2005-04-04 H.J. Lu <[email protected]> |
3151 | ||
3152 | * elf-bfd.h (elf_section_data): Use (sec) instead of sec. | |
3153 | ||
a13afe8e FF |
3154 | 2005-04-03 Fred Fish <[email protected]> |
3155 | ||
3156 | * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and | |
3157 | dwarf_ranges_size members. | |
3158 | (struct comp_unit): Add base_address member. | |
3159 | (struct funcinfo): Replace low/high members with an arange. | |
3160 | (arange_add): Replace incoming "unit" parameter with "abfd" and | |
3161 | "first_arange" pointers. Reorganize/rewrite function body. | |
3162 | (decode_line_info): Change arange_add call to pass bfd and arange | |
3163 | pointers. | |
3164 | (lookup_address_in_line_info_table): Use arange list instead of | |
3165 | individual low/high members. Walk function's arange list to find | |
3166 | lowest PC in list, to test for overlapping functions. | |
3167 | (read_debug_ranges): New function, reads the debug_ranges section. | |
3168 | (lookup_address_in_function_table): Use arange list instead of | |
3169 | individual low/high members. Rewrite to find smallest range that | |
3170 | matches. | |
3171 | (read_rangelist): Read a given rangelist from debug_ranges. | |
3172 | (scan_unit_for_functions): Use arange list instead of individual | |
3173 | low/high members. Handle a DW_AT_ranges attribute. | |
3174 | (parse_comp_unit): Use arange list instead of individual low/high | |
3175 | members. Save comp unit base address. Handle a DW_AT_ranges | |
3176 | attribute. | |
3177 | ||
2796fd96 L |
3178 | 2005-04-01 H.J. Lu <[email protected]> |
3179 | ||
3180 | * elf.c (assign_section_numbers): Really use the kept section. | |
3181 | ||
01b3c8ab L |
3182 | 2005-03-31 H.J. Lu <[email protected]> |
3183 | ||
3184 | * elf-bfd.h (_bfd_elf_check_kept_section): New. | |
3185 | ||
3186 | * elf.c (assign_section_numbers): When sh_link points to a | |
3187 | discarded section, call _bfd_elf_check_kept_section to see if | |
3188 | the kept section can be used. Otherwise reject sh_link | |
3189 | pointing to discarded section. | |
3190 | ||
3191 | * elflink.c (_bfd_elf_check_kept_section): New. | |
3192 | (elf_link_input_bfd): Use it. | |
3193 | ||
35090471 AM |
3194 | 2005-04-01 Alan Modra <[email protected]> |
3195 | ||
3196 | * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs | |
3197 | that we no longer need. | |
3198 | ||
7356fed5 AM |
3199 | 2005-04-01 Alan Modra <[email protected]> |
3200 | ||
3201 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors | |
3202 | rather than 0. | |
77623a34 | 3203 | (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check. |
7356fed5 | 3204 | |
28b13744 L |
3205 | 2005-03-31 H.J. Lu <[email protected]> |
3206 | ||
3207 | * elf.c (assign_section_numbers): Fix a typo. | |
3208 | ||
c93625e2 L |
3209 | 2005-03-31 H.J. Lu <[email protected]> |
3210 | ||
3211 | * elflink.c (elf_link_input_bfd): Remove the extra `\n' in | |
3212 | error message. | |
3213 | (_bfd_elf_section_already_linked): Likewise. | |
3214 | ||
fddc4048 JG |
3215 | 2005-03-31 Jerome Guitton <[email protected]> |
3216 | ||
3217 | * config.in: Regenerate. | |
3218 | ||
2e9ebff5 JG |
3219 | 2005-03-31 Jerome Guitton <[email protected]> |
3220 | ||
c93625e2 L |
3221 | * config.in (HAVE_DECL_BASENAME): New configure macro. |
3222 | * configure.in: Check for basename. | |
3223 | * configure: Regenerate. | |
2e9ebff5 | 3224 | |
05ea83ed JB |
3225 | 2005-03-30 Julian Brown <[email protected]> |
3226 | ||
3227 | * bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from | |
3228 | bfd_elf32_is_arm_mapping_symbol_name. | |
3229 | * bfd-in2.h: Regenerate. | |
3230 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from | |
3231 | bfd_elf32_is_arm_mapping_symbol_name. | |
3232 | * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename | |
3233 | bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name. | |
3234 | (arm_elf_find_function): Likewise. | |
3235 | (elf32_arm_output_symbol_hook): Likewise. | |
3236 | ||
9d2da7ca JB |
3237 | 2005-03-30 Julian Brown <[email protected]> |
3238 | ||
3239 | * bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype. | |
3240 | * bfd-in2.h: Regenerate. | |
3241 | * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to | |
3242 | bfd_elf32_is_arm_mapping_symbol_name. | |
3243 | (elf32_arm_output_symbol_hook): Likewise. | |
3244 | (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for | |
3245 | mapping symbols. | |
3246 | (is_arm_mapping_symbol_name): Function moved from here... | |
3247 | * cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed | |
3248 | and made global. | |
3249 | ||
efa9bda4 AL |
3250 | 2005-03-29 Aaron W. LaFramboise <[email protected]> |
3251 | ||
3252 | * configure.in: Check for ffs decl and alphabetize. | |
3253 | * config.in: Regenerate. | |
3254 | * configure: Regenerate. | |
d7128ce4 | 3255 | * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize. |
efa9bda4 | 3256 | |
09a9d560 FF |
3257 | 2005-03-29 Fred Fish <[email protected]> |
3258 | ||
3259 | * dwarf2.c (struct comp_unit): Fix typo. | |
3260 | (scan_unit_for_functions): Remove unused local variable "name" | |
3261 | and dead code that set it. | |
3262 | ||
ba93b8ac DJ |
3263 | 2005-03-29 Daniel Jacobowitz <[email protected]> |
3264 | Phil Blundell <[email protected]> | |
3265 | ||
3266 | * bfd-in2.h, libbfd.h: Regenerated. | |
3267 | * reloc.c: Add ARM TLS relocations. | |
3268 | * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS | |
3269 | relocations. | |
3270 | (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto) | |
3271 | (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto) | |
3272 | (elf32_arm_tls_ie32_howto): New. | |
3273 | (elf32_arm_howto_from_type): Support TLS relocations. | |
3274 | (elf32_arm_reloc_map): Likewise. | |
3275 | (elf32_arm_reloc_type_lookup): Likewise. | |
3276 | (TCB_SIZE): Define. | |
3277 | (struct elf32_arm_obj_tdata): New. | |
3278 | (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define. | |
3279 | (elf32_arm_mkobject): New function. | |
3280 | (struct elf32_arm_relocs_copied): Add pc_count. | |
3281 | (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD) | |
3282 | (GOT_TLS_IE): Define. | |
3283 | (struct elf32_arm_link_hash_table): Add tls_ldm_got. | |
3284 | (elf32_arm_link_hash_newfunc): Initialize tls_type. | |
3285 | (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type. | |
3286 | (elf32_arm_link_hash_table_create): Initialize tls_ldm_got. | |
3287 | (dtpoff_base, tpoff): New functions. | |
3288 | (elf32_arm_final_link_relocate): Handle TLS relocations. | |
3289 | (IS_ARM_TLS_RELOC): Define. | |
3290 | (elf32_arm_relocate_section): Warn about TLS mismatches. | |
3291 | (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count. | |
3292 | (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle | |
3293 | TLS relocations and pc_count. | |
3294 | (elf32_arm_adjust_dynamic_symbol): Check non_got_ref. | |
3295 | (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local | |
3296 | calls. | |
3297 | (elf32_arm_size_dynamic_sections): Handle TLS. | |
3298 | (elf32_arm_finish_dynamic_symbol): Likewise. | |
3299 | (bfd_elf32_mkobject): Define. | |
3300 | ||
71a976dd DJ |
3301 | 2005-03-29 Daniel Jacobowitz <[email protected]> |
3302 | ||
3303 | * elf32-arm.c (elf32_arm_check_relocs): Increment count for all | |
3304 | relocation types. Don't count relocations which will use a PLT. | |
3305 | ||
7e7353ed JB |
3306 | 2005-03-29 Joel Brobecker <[email protected]> |
3307 | ||
3308 | * elf.c (elfcore_grok_nto_status): Print tid as long. | |
3309 | (elfcore_grok_nto_regs): Likewise. | |
3310 | ||
166856d7 JB |
3311 | 2005-03-29 Joel Brobecker <[email protected]> |
3312 | ||
40937810 | 3313 | * irix-core.c: Remove some unnecessary prototypes. |
166856d7 | 3314 | |
40f85900 JB |
3315 | 2005-03-28 Joel Brobecker <[email protected]> |
3316 | ||
3317 | * irix-core.c: Convert to ISO C. | |
3318 | ||
aa2e06ba JB |
3319 | 2005-03-28 Joel Brobecker <[email protected]> |
3320 | ||
3321 | * irix-core.c (do_sections): Replace + by | in expression. | |
3322 | (irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED | |
3323 | to unused parameters to avoid a compiler warning. | |
3324 | ||
832bc186 MK |
3325 | 2005-03-28 Mark Kettenis <[email protected]> |
3326 | ||
3327 | * netbsd-core.c: Convert to ISO C. Fix formatting. | |
3328 | ||
82f0cfbd EC |
3329 | 2005-03-24 Eric Christopher <[email protected]> |
3330 | ||
3331 | * elfxx-mips.c: Revert previous patch. | |
3332 | ||
d7b9976f NC |
3333 | 2005-03-24 Nick Clifton <[email protected]> |
3334 | ||
3335 | * targets.c (_bfd_target_vector): Only include the | |
3336 | bfd_elf32_ia64_hpux_big_vec vector when building a 64-bit BFD with | |
3337 | all targets enabled. | |
3338 | ||
074d327a NC |
3339 | 2005-03-24 James E Wilson <[email protected]> |
3340 | ||
3341 | * Makefile.am (BFD32_BACKENDS): Delete elf32-ia64.lo. | |
3342 | (BFD64_BACKENDS): Add elf32-ia64.lo. | |
3343 | * Makefile.in: Regenerate. | |
3344 | ||
cc27e1dc EC |
3345 | 2005-03-23 Eric Christopher <[email protected]> |
3346 | ||
3347 | * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New. | |
3348 | (mips_elf_calculate_relocation): Use. Define DF_TEXTREL | |
3349 | after emitting relocation. | |
3350 | (_bfd_mips_elf_adjust_dynamic_symbol): Ditto. | |
3351 | (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL | |
3352 | and readonly_reloc. | |
3353 | ||
ed84e695 NC |
3354 | 2005-03-23 Mike Frysinger <[email protected]> |
3355 | Nick Clifton <[email protected]> | |
3356 | ||
3357 | * config.bfd: Accept any C library to accompany a GNU Linux | |
3358 | implementation, not just the GNU C library. | |
3359 | * configure.in: Likewise. | |
3360 | * configure: Regenerate. | |
3361 | ||
81e1b023 L |
3362 | 2005-03-22 H.J. Lu <[email protected]> |
3363 | ||
3364 | * bfd-in.h (_bfd_elf_provide_symbol): New. | |
3365 | * bfd-in2.h: Regenerated. | |
3366 | ||
3367 | * elf32-ppc.c (set_linker_sym): Moved to elflink.c. | |
3368 | (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead | |
3369 | of set_linker_sym. | |
3370 | ||
3371 | * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed | |
3372 | from elf32-ppc.c. | |
3373 | ||
672c2d7e HPN |
3374 | 2005-03-22 Hans-Peter Nilsson <[email protected]> |
3375 | ||
3376 | * hash.c (strtab_hash_newfunc): Fix typo in allocated size. | |
3377 | ||
1fbc7e7a BW |
3378 | 2005-03-22 Bob Wilson <[email protected]> |
3379 | ||
3380 | * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup, | |
3381 | xtensa_sysreg_lookup_name, xtensa_interface_lookup, | |
3382 | xtensa_funcUnit_lookup): Skip bsearch call if count is zero. | |
3383 | (xtensa_opcode_decode): Rearrange code. | |
3384 | ||
c8e7bf0d NC |
3385 | 2005-03-22 Nick Clifton <[email protected]> |
3386 | ||
3387 | * binary.c: Convert to ISO C90 formatting. | |
3388 | * coff-arm.c: Convert to ISO C90 formatting. | |
3389 | * coffgen.c: Convert to ISO C90 formatting. | |
3390 | * elf32-gen.c: Convert to ISO C90 formatting. | |
3391 | * elf64-gen.c: Convert to ISO C90 formatting. | |
3392 | * hash.c: Convert to ISO C90 formatting. | |
3393 | * ieee.c: Convert to ISO C90 formatting. | |
3394 | ||
28a094c2 DJ |
3395 | 2005-03-22 Daniel Jacobowitz <[email protected]> |
3396 | ||
3397 | * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for | |
3398 | unresolved symbols in R_ARM_NONE relocations. | |
3399 | ||
0945cdfd DJ |
3400 | 2005-03-22 Daniel Jacobowitz <[email protected]> |
3401 | ||
3402 | * elf32-arm.c (elf32_arm_final_link_relocate): Add | |
3403 | UNRESOLVED_RELOC_P argument. Set it appropriately. | |
3404 | (elf32_arm_relocate_section): Update call to | |
3405 | elf32_arm_final_link_relocate. Don't clobber RELOCATION; use | |
3406 | unresolved_reloc instead. | |
3407 | ||
11d2f718 AM |
3408 | 2005-03-23 Alan Modra <[email protected]> |
3409 | ||
3410 | * elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on | |
3411 | .gnu.warning.* sections. | |
3412 | ||
76750a2f AM |
3413 | 2005-03-22 Alan Modra <[email protected]> |
3414 | ||
3415 | * elf32-ppc.c (elf_linker_section_pointers_t): Remove | |
3416 | written_address_p. | |
3417 | (ppc_elf_create_linker_section): Don't try to reuse existing section. | |
3418 | (elf_create_pointer_linker_section): Delete info parm. Don't make | |
3419 | h dynamic. Don't set written_address_p. | |
3420 | (ppc_elf_check_relocs): Adjust ppc_elf_create_linker_section calls. | |
3421 | (bfd_put_ptr): Delete. | |
3422 | (elf_finish_pointer_linker_section): Remove output_bfd and info parms. | |
3423 | Always write section contents. Assert global sym is def_regular. | |
3424 | Use offset bottom bit as a written flag. | |
3425 | (ppc_elf_relocate_section): Adjust elf_finish_pointer_linker_section | |
3426 | calls. | |
3427 | ||
f85f57ad AM |
3428 | 2005-03-22 Alan Modra <[email protected]> |
3429 | ||
3430 | * elf32-ppc.c (ppc_elf_set_sdata_syms): New function, extracted from.. | |
3431 | (ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start | |
3432 | and end syms. | |
3433 | ||
2dc773a0 NC |
3434 | 2005-03-21 Nick Clifton <[email protected]> |
3435 | ||
3436 | * coff-arm.c (coff_link_hash_entry): Only define for non WINCE | |
3437 | targets. | |
3438 | (t2a1_bx_pc_insn): Likewise. | |
3439 | (t2a2_noop_insn): Likewise. | |
3440 | (t2a3_b_insn): Likewise. | |
3441 | (t2a1_push_insn): Likewise. | |
3442 | (t2a2_ldr_insn): Likewise. | |
3443 | (t2a3_mov_insn): Likewise. | |
3444 | (t2a4_bx_insn): Likewise. | |
3445 | (t2a5_pop_insn): Likewise. | |
3446 | (t2a6_bx_insn): Likewise. | |
3447 | (coff_arm_relocate_section): Only declare the high_address | |
3448 | variable for non WINCE targets. | |
3449 | ||
644285ef AM |
3450 | 2005-03-22 Alan Modra <[email protected]> |
3451 | ||
3452 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss | |
3453 | SEC_LINKER_CREATED. Attach to dynobj. | |
3454 | (ppc_elf_size_dynamic_sections): Strip htab->sbss if zero size. | |
3455 | ||
c9a2f333 AM |
3456 | 2005-03-21 Alan Modra <[email protected]> |
3457 | ||
3458 | * elf32-ppc.c (struct elf_linker_section): Remove sym_hash and | |
3459 | sym_offset. Add name, bss_name, sym_name, sym_val. | |
3460 | (struct ppc_elf_link_hash_table): Remove sdata and sdata2 pointers. | |
3461 | Add sdata array of elf_linker_section_t. | |
3462 | (ppc_elf_link_hash_table_create): Set name, sym_name, and bss_name. | |
3463 | (enum elf_linker_section_enum): Delete. | |
3464 | (ppc_elf_create_linker_section): Rewrite. Don't create syms here. | |
3465 | (ppc_elf_check_relocs): Delay ppc_elf_create_linker_section until | |
3466 | the special sections are needed. Adjust htab->sdata refs. | |
3467 | Ensure dynobj is set in sreloc code. | |
3468 | (ppc_elf_size_dynamic_sections): Strip sdata sections. | |
3469 | (ppc_elf_set_sdata_syms): New function. | |
3470 | (elf_finish_pointer_linker_section): Use 0x8000 for sym_offset. | |
3471 | (ppc_elf_relocate_section): Adjust references to htab->sdata. Use | |
3472 | sym_val instead of sym_hash. | |
3473 | * elf32-ppc.h (ppc_elf_set_sdata_syms): Declare. | |
3474 | ||
8853c3d3 AM |
3475 | 2005-03-21 Alan Modra <[email protected]> |
3476 | ||
3477 | * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file. | |
3478 | (ppc_elf_merge_private_bfd_data): Likewise. | |
3479 | ||
2bb04cf2 AM |
3480 | 2005-03-21 Alan Modra <[email protected]> |
3481 | ||
3482 | * elf32-ppc.c (struct elf_linker_section): Remove rel_section. | |
3483 | (ppc_elf_create_linker_section): Don't create rel_section. | |
3484 | (elf_create_pointer_linker_section): Don't size relocs. | |
3485 | (elf_finish_pointer_linker_section): Remove relative_reloc parm. | |
3486 | Don't generate relocs. | |
3487 | (ppc_elf_relocate_section): Adjust calls to | |
3488 | elf_finish_pointer_linker_section. | |
3489 | ||
d2663f46 AM |
3490 | 2005-03-21 Alan Modra <[email protected]> |
3491 | ||
3492 | * elf32-ppc.c (is_ppc_elf_target): New function. | |
3493 | (ppc_elf_merge_private_bfd_data): Use it rather than just testing | |
3494 | for bfd_target_elf_flavour. Do this test before endian check. | |
3495 | (ppc_elf_add_symbol_hook): Use is_pcc_elf_target. | |
3496 | (ppc_elf_size_dynamic_sections): Likewise. | |
3497 | ||
6dc132d9 L |
3498 | 2005-03-20 H.J. Lu <[email protected]> |
3499 | ||
3500 | * elf-bfd.h (elf_backend_data): Add int to | |
3501 | elf_backend_section_from_shdr. | |
3502 | (bfd_elf_section_data): Update comment for this_idx. | |
3503 | (_bfd_elf_make_section_from_shdr): Add int. | |
3504 | * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise. | |
3505 | ||
3506 | * elf.c (_bfd_elf_make_section_from_shdr): Take section index | |
3507 | and use it to set this_idx in bfd_elf_section_data. | |
3508 | (bfd_section_from_shdr): Pass shindex to | |
3509 | _bfd_elf_make_section_from_shdr. | |
3510 | (_bfd_elf_section_from_bfd_section): Use this_idx in | |
3511 | bfd_elf_section_data to find section index. | |
3512 | ||
3513 | * elf32-arm.c (elf32_arm_section_from_shdr): Take section | |
3514 | index and pass it to _bfd_elf_make_section_from_shdr. | |
3515 | * elf32-i370.c(i370_elf_section_from_shdr): Likewise. | |
3516 | * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise. | |
3517 | * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise. | |
3518 | * elf32-v850.c (v850_elf_section_from_shdr): Likewise. | |
3519 | * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise. | |
3520 | * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise. | |
3521 | * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise. | |
3522 | * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise. | |
3523 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise. | |
3524 | ||
cabd4ccc DS |
3525 | 2005-03-19 Danny Smith <[email protected]> |
3526 | Ross Ridge <[email protected]> | |
3527 | ||
3528 | * peicode.h (pe_ILF_build_a_bfd): Strip only one prefix | |
3529 | character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX | |
3530 | cases. Add comment. | |
3531 | ||
7451fd89 L |
3532 | 2005-03-18 H.J. Lu <[email protected]> |
3533 | ||
3534 | * elflink.c (elf_mark_used_section): Remove check for special | |
3535 | sections. | |
3536 | ||
b4677f03 AS |
3537 | 2005-03-18 Andreas Schwab <[email protected]> |
3538 | ||
3539 | * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn | |
3540 | from bfd_vma to ia64_insn, remove broken cast. | |
3541 | ||
238d258f NC |
3542 | 2005-03-18 C Jaiprakash <[email protected]> |
3543 | ||
8853c3d3 | 3544 | * elf32-m68k.c (elf_cfv4e_plt0_entry): plt entry for coldfire v4e. |
238d258f NC |
3545 | (elf_m68k_adjust_dynamic_symbol,elf_m68k_finish_dynamic_symbol, |
3546 | elf_m68k_finish_dynamic_sections): Use it. | |
3547 | ||
b294bdf8 MM |
3548 | 2005-03-17 Paul Brook <[email protected]> |
3549 | Dan Jacobowitz <[email protected]> | |
3550 | Mark Mitchell <[email protected]> | |
3551 | ||
3552 | * elf32-arm.c (elf32_arm_modify_segment_map): New function. | |
3553 | (elf32_arm_additional_program_headers): Likewise. | |
3554 | (elf_backend_modify_segment_map): Define. | |
3555 | (elf_backend_additional_program_headers): Likewise. | |
3556 | (elf32_arm_symbian_modify_segment_map): Use | |
3557 | elf32_arm_modify_segment_map. | |
3558 | ||
257a4820 L |
3559 | 2005-03-18 H.J. Lu <[email protected]> |
3560 | ||
3561 | * elflink.c (elf_mark_used_section): Check bfd_is_const_section | |
3562 | for special sections. | |
3563 | ||
554220db AM |
3564 | 2005-03-18 Alan Modra <[email protected]> |
3565 | ||
3566 | * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete. | |
3567 | * elflink.c (_bfd_elf_link_renumber_dynsyms): Make static, add | |
3568 | section_sym_count param, and return number of section symbols. | |
3569 | (bfd_elf_size_dynamic_sections): Clear section symbol area of | |
3570 | .dynsym contents. Don't bother calling swap_symbol_out on the | |
3571 | first all-zero dynsym. | |
3572 | (elf_mark_used_section): Formatting. Avoid twiddling flags in | |
3573 | special sections like bfd_abs_section. | |
3574 | (bfd_elf_gc_sections): Spelling fix. | |
3575 | ||
36868d45 NC |
3576 | 2005-03-16 Fred Fish <[email protected]> |
3577 | ||
3578 | PR binutils/790 | |
3579 | * dwarf2.c (read_indirect_string): Fix apparent typo, check | |
3580 | dwarf_str_buffer allocation, not dwarf_abbrev_buffer. | |
3581 | ||
57316bff L |
3582 | 2005-03-16 H.J. Lu <[email protected]> |
3583 | ||
3584 | * elflink.c (elf_mark_used_section): New. | |
3585 | (bfd_elf_gc_sections): Call elf_gc_mark_section for | |
3586 | non-relocatable link if we don't do GC. | |
3587 | ||
1ad12f97 NC |
3588 | 2005-03-16 Nick Clifton <[email protected]> |
3589 | Ben Elliston <[email protected]> | |
3590 | ||
569acd2c | 3591 | * configure.in (werror): New switch: Add -Werror to the |
1ad12f97 | 3592 | compiler command line. Enabled by default. Disable via |
569acd2c | 3593 | --disable-werror. |
1ad12f97 NC |
3594 | * configure: Regenerate. |
3595 | ||
3b5d3310 NC |
3596 | 2005-03-16 Nick Clifton <[email protected]> |
3597 | ||
3598 | * ecoff.c: Convert to ISO C90 formatting. | |
3599 | ||
25dbc73a AM |
3600 | 2005-03-16 Alan Modra <[email protected]> |
3601 | ||
3602 | * elf32-ppc.c: Divide file into general and linker specific | |
3603 | functions. Sort linker functions into roughly the order in which | |
3604 | they are called by the ELF linker code. | |
3605 | ||
cb2d1ef2 AM |
3606 | 2005-03-16 Alan Modra <[email protected]> |
3607 | ||
3608 | * elf32-ppc.c (ppc_elf_create_linker_section): Set SEC_LINKER_CREATED | |
3609 | on section. Correct comment, and add FIXME. | |
3610 | (ppc_elf_additional_program_headers): Don't bump header count for | |
3611 | interp. Test SEC_ALLOC, not SEC_LOAD, and don't test size. | |
3612 | (ppc_elf_size_dynamic_sections): Don't strip sdata and sdata2, but | |
3613 | do allocate memory if they need it. | |
3614 | ||
34723071 NC |
3615 | 2005-03-15 Mikkel Krautz <[email protected]> |
3616 | ||
3617 | * config.bfd (x86_64-elf): Add target. | |
3618 | ||
729ae8d2 AM |
3619 | 2005-03-15 Alan Modra <[email protected]> |
3620 | ||
3621 | * po/es.po: Commit new Spanish translation. | |
3622 | ||
f0581930 L |
3623 | 2005-03-14 H.J. Lu <[email protected]> |
3624 | ||
3625 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Set symbo name | |
3626 | for global symbol when reporting overflow. | |
3627 | ||
390c0e42 JJ |
3628 | 2005-03-11 Jakub Jelinek <[email protected]> |
3629 | ||
3630 | * libbfd-in.h (_bfd_ar_spacepad): New prototype. | |
3631 | * libbfd.h: Rebuilt. | |
3632 | * archive.c (_bfd_ar_spacepad): New function. | |
3633 | (_bfd_construct_extended_name_table, _bfd_write_archive_contents, | |
3634 | bsd_write_armap, _bfd_archive_bsd_update_armap_timestamp, | |
3635 | coff_write_armap): Use it. | |
3636 | (bfd_ar_hdr_from_filesystem): Likewise. Fix HP-UX large | |
3637 | uid/gid support. | |
3638 | * archive64.c (bfd_elf64_archive_write_armap): Use _bfd_ar_spacepad. | |
3639 | ||
a2633f4e MK |
3640 | 2005-03-10 Mark Kettenis <[email protected]> |
3641 | ||
3642 | * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of | |
3643 | has_table to the start of the function. | |
3644 | ||
109f7096 BE |
3645 | 2005-03-10 Ben Elliston <[email protected]> |
3646 | ||
3647 | * archive.c: Include hashtab.h. | |
3648 | (struct ar_cache): Rename `arelt' to `arbfd' and remove `next'. | |
3649 | (_bfd_look_for_bfd_in_cache): Reimplement using htab_find. | |
3650 | (hash_file_ptr): New function. | |
3651 | (eq_file_ptr): Likewise. | |
3652 | (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table. | |
3653 | * libbfd-in.h: Include hashtab.h. | |
3654 | (struct artdata): Change `cache' member type to htab_t. | |
3655 | * libbfd.h: Rebuild. | |
3656 | ||
664fe1be DJ |
3657 | 2005-03-08 Daniel Jacobowitz <[email protected]> |
3658 | ||
3659 | * configure.in: Bump version to 2.16.90. | |
3660 | * configure: Regenerated. | |
3661 | ||
0709bb22 JJ |
3662 | 2005-03-07 Jakub Jelinek <[email protected]> |
3663 | ||
3664 | * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp. | |
3665 | close is a function like macro in system headers. | |
3666 | ||
b18e2ae5 AM |
3667 | 2005-03-07 Alan Modra <[email protected]> |
3668 | ||
3669 | PR ld/778 | |
3670 | * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate | |
3671 | _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol. | |
3672 | ||
1f170678 AM |
3673 | 2005-03-06 Alan Modra <[email protected]> |
3674 | ||
3675 | * elf.c (elfcore_grok_win32pstatus): Warning fixes. | |
3676 | ||
06647dfd AM |
3677 | 2005-03-05 Alan Modra <[email protected]> |
3678 | ||
3679 | * po/bfd.pot: Regenerate. | |
3680 | ||
93f3fa99 AM |
3681 | 2005-03-05 Alan Modra <[email protected]> |
3682 | ||
3683 | * elf64-ppc.c (update_plt_info): Don't mark new ABI call syms | |
3684 | with is_func. | |
3685 | (func_desc_adjust): Force dot-syms local in executables as well | |
3686 | as shared libs. | |
3687 | ||
bbe506e8 TS |
3688 | 2005-03-04 David Daney <[email protected]> |
3689 | ||
3690 | * elfxx-mips.c (mips_elf_calculate_relocation): Handle special | |
3691 | '__gnu_local_gp' symbol used by gas -mno-shared. | |
3692 | ||
d27f5fa1 L |
3693 | 2005-03-03 H.J. Lu <[email protected]> |
3694 | ||
3695 | * elf-bfd.h (elf_backend_data): Add "const char *" to | |
3696 | elf_backend_section_from_phdr. | |
3697 | ||
3698 | * elf.c (bfd_section_from_phdr): Pass "proc" to the | |
3699 | elf_backend_section_from_phdr hook. | |
3700 | ||
0f20cc35 DJ |
3701 | 2005-03-02 Daniel Jacobowitz <[email protected]> |
3702 | Joseph Myers <[email protected]> | |
3703 | ||
3704 | * elfxx-mips.c (struct mips_got_entry): Add tls_type. | |
3705 | (struct mips_got_info): Add tls_gotno, tls_assigned_gotno, | |
3706 | and tls_ldm_offset. | |
3707 | (struct mips_elf_got_per_bfd_arg): Add global_count. | |
3708 | (struct mips_elf_count_tls_arg): New. | |
3709 | (struct mips_elf_hash_sort_data): Update comment for min_got_dynindx. | |
3710 | (struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset. | |
3711 | (GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE) | |
3712 | (GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define. | |
3713 | (TLS_RELOC_P): Define. | |
3714 | (TP_OFFSET, DTP_OFFSET): Define. | |
3715 | (dtprel_base, tprel_base): New functions. | |
3716 | (mips_elf_link_hash_newfunc): Initialize tls_type. | |
3717 | (mips_elf_got_entry_hash, mips_elf_got_entry_eq) | |
3718 | (mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle | |
3719 | TLS entries. | |
3720 | (mips_tls_got_relocs, mips_elf_count_local_tls_relocs) | |
3721 | (mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs) | |
3722 | (mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots) | |
3723 | (mips_tls_got_index): New functions. | |
3724 | (mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE | |
3725 | arguments. Pass them to mips_elf_create_local_got_entry. Use | |
3726 | mips_tls_got_index. | |
3727 | (mips_elf_global_got_index): Add new R_TYPE and INFO arguments. | |
3728 | Handle TLS entries. | |
3729 | (mips_elf_got_page, mips_elf_got16_entry): Update calls to | |
3730 | mips_elf_create_local_got_entry. | |
3731 | (mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE | |
3732 | arguments. Handle TLS entries. | |
3733 | (mips_elf_sort_hash_table_f): Add non-TLS assertions. | |
3734 | (mips_elf_record_local_got_symbol): Add new TLS_FLAG argument. Handle | |
3735 | TLS entries. | |
3736 | (mips_elf_record_global_got_symbol): Likewise. | |
3737 | (mips_elf_make_got_per_bfd): Initialize new mips_got_info members. | |
3738 | Count TLS entries. | |
3739 | (mips_elf_merge_gots): Handle TLS entries when merging. | |
3740 | (mips_elf_initialize_tls_index): New function. | |
3741 | (mips_elf_set_global_got_offset): Handle TLS entries. | |
3742 | (mips_elf_adjust_gp): Handle TLS. | |
3743 | (mips_elf_multi_got): Remove redundant call to | |
3744 | mips_elf_resolve_final_got_entries. Initialize global_count. | |
3745 | Correct a comment. Initialize new TLS members of mips_got_info. | |
3746 | Assign TLS GOT indexes for new GOTs. | |
3747 | (mips_elf_create_got_section): Initialize new TLS members of | |
3748 | mips_got_info. | |
3749 | (mips_elf_calculate_relocation): Handle TLS relocs. | |
3750 | (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed | |
3751 | functions. | |
3752 | (_bfd_mips_elf_always_size_sections): Handle TLS. | |
3753 | (_bfd_mips_elf_size_dynamic_sections): Likewise. | |
3754 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Update calls to | |
3755 | changed functions. | |
3756 | (_bfd_mips_elf_copy_indirect_symbol): Copy tls_type. | |
3757 | (_bfd_mips_elf_hide_symbol): Handle TLS. | |
3758 | * elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela) | |
3759 | (mips_reloc_map): Add TLS relocs. | |
3760 | * elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise. | |
3761 | * elf64-mips.c (mips_elf64_howto_table_rel) | |
3762 | (mips_elf64_howto_table_rela, mips_reloc_map): Likewise. | |
3763 | * reloc.c: Define new MIPS TLS relocations. | |
3764 | * libbfd.h, bfd-in2.h: Regenerated. | |
3765 | ||
bb14f524 JB |
3766 | 2005-03-02 Jan Beulich <[email protected]> |
3767 | ||
3768 | * Makefile.am: Add dependency of cache.o on libiberty.h. | |
3769 | * cache.c: Include libiberty.h. | |
3770 | (bfd_open_file): Use unlink_if_ordinary instead of unlink. | |
3771 | ||
8c1acd09 ZW |
3772 | 2005-03-01 Zack Weinberg <[email protected]> |
3773 | ||
3774 | * elf.c (bfd_section_from_shdr <default case>): Call | |
3775 | elf_backend_section_from_shdr hook unconditionally, and return | |
3776 | what it returns. | |
3777 | (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr. | |
3778 | * elfxx-target.h (elf_backend_section_from_shdr) | |
3779 | (elf_backend_section_from_phdr): Default to | |
3780 | _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr | |
3781 | respectively. | |
3782 | ||
70bfecec AM |
3783 | 2005-03-01 Alan Modra <[email protected]> |
3784 | ||
a67a7b8b AM |
3785 | * targets.h: Typo fix. |
3786 | * bfd-in2.h: Regenerate. | |
3787 | ||
70bfecec AM |
3788 | * bout.c (b_out_write_object_contents): Don't use sizeof on host |
3789 | structs to size on-disk structures. | |
3790 | (b_out_set_section_contents): Size the external struct, not the | |
3791 | internal one for on-disk size. | |
3792 | (b_out_sizeof_headers): Likewise. | |
3793 | ||
ceb1f1ef AM |
3794 | 2005-03-01 Alan Modra <[email protected]> |
3795 | ||
3796 | * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym | |
3797 | entry points with the func descriptor as well as undefweak. | |
3798 | ||
f67e617a NC |
3799 | 2005-02-28 Ross Ridge <[email protected]> |
3800 | ||
3801 | * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be | |
3802 | present when IMPORT_NAME_UNDOECRATE is used. | |
3803 | ||
af44c138 L |
3804 | 2005-02-28 H.J. Lu <[email protected]> |
3805 | ||
3806 | PR 757 | |
3807 | * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned | |
3808 | int. | |
3809 | ||
3810 | * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL | |
3811 | to _bfd_elf_merge_symbol. | |
3812 | ||
3813 | * elflink.c (_bfd_elf_merge_symbol): Use the pointer to | |
3814 | unsigned int to return the alignment of the old common symbol | |
3815 | in the dynamic object. | |
3816 | (_bfd_elf_add_default_symbol): Pass NULL to | |
3817 | _bfd_elf_merge_symbol. | |
3818 | (elf_link_add_object_symbols): Pass &old_alignment to | |
3819 | _bfd_elf_merge_symbol. Get the alignment of the new common | |
3820 | symbol in the dynamic object. | |
3821 | ||
10adf131 BE |
3822 | 2005-02-24 Ben Elliston <[email protected]> |
3823 | ||
3824 | * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code. | |
3825 | * format.c (bfd_check_format_matches): Likewise. | |
3826 | * archive.c (BFD_GNU960_ARMAG): Likewise. | |
3827 | (bfd_generic_archive_p): Likewise. | |
3828 | (_bfd_write_archive_contents): Likewise. | |
3829 | ||
60b779bf L |
3830 | 2005-02-24 H.J. Lu <[email protected]> |
3831 | ||
3832 | * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95. | |
3833 | * configure: Regenerate. | |
3834 | ||
1f02cbd9 JB |
3835 | 2005-02-24 Julian Brown <[email protected]> |
3836 | ||
3837 | * elflink.c (elf_link_add_object_symbols): Force symbols in discarded | |
3838 | COMDAT group sections to have default visibility. | |
3839 | ||
f60ca5e3 AM |
3840 | 2005-02-24 Alan Modra <[email protected]> |
3841 | ||
3842 | * coffcode.h (coff_print_aux): Warning fix. | |
3843 | * elf-m10300.c (mn10300_elf_relax_section): Use section->id | |
3844 | instead of section pointer to identify. | |
3845 | * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate | |
3846 | the correct size buffer for local sym mangling too. | |
3847 | (h8300_bfd_link_add_symbols): Likewise. | |
3848 | * elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix | |
3849 | warning. | |
3850 | * elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message | |
3851 | * elf32-xtensa.c (literal_value_hash): Warning fix. | |
3852 | * versados.c (process_otr): Warning fix. | |
3853 | (versados_canonicalize_reloc): Likewise. | |
3854 | * vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix. | |
3855 | * vms.c (fill_section_ptr): Warning fix. | |
3856 | ||
9a5d8e72 L |
3857 | 2005-02-23 H.J. Lu <[email protected]> |
3858 | ||
3859 | * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined. | |
3860 | * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise. | |
3861 | ||
4b6c0f2f NC |
3862 | 2005-02-23 Nick Clifton <[email protected]> |
3863 | ||
abc0f8d0 NC |
3864 | * elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise |
3865 | the relvaddr field of the Elf32_crinfo structure. | |
3866 | ||
9b69b847 NC |
3867 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Initialise |
3868 | variables that are passed by reference to | |
3869 | m68hc11_get_relocation_value in case that function does not | |
3870 | initialise them. | |
3871 | ||
90e868ac NC |
3872 | * elf32-cr16c.c (cr16c_elf_final_link_relocate): Remove duplicated |
3873 | return statements and replace with a single return at the end of | |
3874 | the function. This helps pacify the flow analysis code in gcc 4.0. | |
3875 | ||
4b6c0f2f NC |
3876 | * elf.c (_bfd_elf_compute_section_file_positions): Initialise |
3877 | strtab to avoid compile time warning. | |
3878 | ||
c3e8c140 BE |
3879 | 2005-02-23 Ben Elliston <[email protected]> |
3880 | ||
3881 | * opncls.c (bfd_zalloc): Document this function. | |
3882 | ||
ebe372c1 L |
3883 | 2005-02-21 H.J. Lu <[email protected]> |
3884 | ||
3885 | * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with | |
3886 | SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK. | |
3887 | Replace SEC_SHARED with SEC_COFF_SHARED. | |
3888 | (styp_to_sec_flags): Likewise. | |
3889 | ||
3890 | * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0. | |
3891 | (TARGET_LITTLE_SYM): Likewise. | |
3892 | ||
3893 | * section.c (SEC_ARCH_BIT_0): Removed. | |
3894 | (SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with | |
3895 | SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE. | |
3896 | (SEC_SHARED): Renamed to ... | |
3897 | (SEC_COFF_SHARED): This. | |
3898 | (SEC_BLOCK): Renamed to ... | |
3899 | (SEC_TIC54X_BLOCK): This. | |
3900 | (SEC_CLINK): Renamed to ... | |
3901 | (SEC_TIC54X_CLINK): This. | |
3902 | (SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY, | |
3903 | SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the | |
3904 | end. | |
3905 | * bfd-in2.h: Regenerated. | |
3906 | ||
26bf4e33 FF |
3907 | 2005-02-21 Fred Fish <[email protected]> |
3908 | ||
3909 | * dwarf2.c (find_abstract_instance_name): Call recursively | |
3910 | to handle a DW_AT_specification. | |
3911 | ||
e6daada3 TS |
3912 | 2005-02-21 Thiemo Seufer <[email protected]> |
3913 | ||
3914 | * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym, | |
3915 | mips_elf_create_dynamic_relocation, | |
3916 | _bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link): | |
3917 | Remove #if 0'd code. | |
3918 | ||
d25604af AM |
3919 | 2005-02-21 Alan Modra <[email protected]> |
3920 | ||
3921 | * Makefile.am: Run "make dep-am" | |
3922 | * Makefile.in: Regenerate. | |
3923 | ||
fedf8d51 AM |
3924 | 2005-02-21 Alan Modra <[email protected]> |
3925 | ||
3926 | * coffgen.c (bfd_coff_get_comdat_section): Check that | |
3927 | coff_section_data isn't NULL. | |
3928 | ||
f075ee0c AM |
3929 | 2005-02-21 Alan Modra <[email protected]> |
3930 | ||
3931 | * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix. | |
3932 | * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise. | |
3933 | * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove | |
3934 | useless assignments. | |
3935 | (xcoff_write_archive_contents_big): Likewise. | |
3936 | (_bfd_xcoff_put_ldsymbol_name): Likewise. | |
3937 | * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise. | |
3938 | * coffgen.c (coff_write_symbols): Make "written" a bfd_vma. | |
3939 | * cofflink.c (process_embedded_commands): Warning fixes. | |
3940 | * cpu-arm.c: Delete unnecessary prototypes. Convert to C90. | |
3941 | Warning fixes. | |
3942 | * dwarf2.c: Warning fixes. | |
3943 | * elf-bfd.h: Likewise. | |
3944 | * elf-eh-frame.c: Likewise. | |
3945 | * elf-strtab.c: Likewise. | |
3946 | * elf.c: Likewise. | |
3947 | * elf32-m68k.c: Likewise. | |
3948 | * elf32-ppc.c: Likewise. | |
3949 | * elf32-sh-symbian.c: Likewise. | |
3950 | * elf32-sh.c: Delete unnecessary prototypes. Warning fixes. | |
3951 | * elf64-sh64.c: Likewise. | |
3952 | * peicode.h: Likewise. | |
3953 | * elf64-mmix.c: Warning fixes. | |
3954 | * elfcode.h: Likewise. | |
3955 | * elfxx-mips.c: Likewise. | |
3956 | * libbfd-in.h: Likewise. | |
3957 | * libbfd.c: Likewise. | |
3958 | * mach-o.c: Likewise. | |
3959 | * merge.c: Likewise. | |
3960 | * mmo.c: Likewise. | |
3961 | * opncls.c: Likewise. | |
3962 | * pef.c: Likewise. | |
3963 | * srec.c: Likewise. | |
3964 | * vms-hdr.c: Likewise. | |
3965 | * vms-tir.c: Likewise. | |
3966 | * xtensa-isa.c: Likewise. | |
3967 | * xtensa-modules.c: Likewise. | |
3968 | * xsym.c: Likewise. | |
3969 | (pstrcmp): Use correct choice of string lengths. Fix return value. | |
3970 | (bfd_sym_module_name): Correct string length. | |
3971 | * bfd-in2.h: Regenerate. | |
3972 | * libbfd.h: Regenerate. | |
3973 | ||
68320ddb AO |
3974 | 2005-02-17 Alexandre Oliva <[email protected]> |
3975 | ||
3976 | * elf32-frv.c (elf32_frv_relocate_section): Remove warning from | |
fedf8d51 | 3977 | uninitialized check_segment[1] in TLSMOFF case. |
68320ddb AO |
3978 | Reported by Alan Modra. |
3979 | (elf32_frv_relocate_section): Improve errors and warnings. | |
3980 | ||
1808e341 AM |
3981 | 2005-02-17 Alan Modra <[email protected]> |
3982 | ||
3983 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning. | |
3984 | ||
5ff625e9 AM |
3985 | 2005-02-16 Alan Modra <[email protected]> |
3986 | ||
3987 | * coff-arm.c (coff_arm_is_local_label_name): Warning fix. | |
3988 | * elf32-frv.c (frvfdpic_relocs_info_hash): Likewise. | |
3989 | * pef.c (bfd_pef_scan): Don't ignore return value of | |
3990 | bfd_pef_scan_start_address. | |
7e3102a7 AM |
3991 | * mach-o.c (bfd_mach_o_scan): Don't ignore return value of |
3992 | bfd_mach_o_scan_start_address. | |
3993 | * elfxx-ia64.c (elfNN_ia64_relax_brl): Rewrite for 32-bit bfd_vma. | |
3994 | * elfxx-mips.c: Remove unnecessary prototypes. | |
3995 | (sort_dynamic_relocs_64): Abort if not BFD64. | |
5ff625e9 | 3996 | |
92b7a70f AM |
3997 | 2005-02-16 Alan Modra <[email protected]> |
3998 | ||
3999 | * elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero. | |
4000 | Skip toc reloc adjust if reloc_count is zero. | |
4001 | ||
d6f16593 | 4002 | 2005-02-15 Nigel Stephens <[email protected]> |
fedf8d51 | 4003 | Maciej W. Rozycki <[email protected]> |
d6f16593 MR |
4004 | |
4005 | * elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16 | |
4006 | reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and | |
4007 | R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders. | |
4008 | (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel. | |
4009 | (elf_mips16_gprel_howto): Likewise. Redefine src_mask and | |
4010 | dst_mask. | |
4011 | (mips16_gprel_reloc): Remove bit shuffling; call | |
4012 | _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp() | |
4013 | and _bfd_mips16_elf_reloc_shuffle() instead. | |
4014 | (mips16_reloc_map): New reloc map for MIPS16 relocs. | |
4015 | (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16 | |
4016 | relocs. | |
4017 | (mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from | |
4018 | elf_mips16_howto_table_rel. | |
4019 | * elf64-mips.c (mips16_elf64_howto_table_rel): New array for | |
4020 | MIPS16 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 | |
4021 | relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders. | |
4022 | (elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel. | |
4023 | (elf_mips16_gprel_howto): Likewise. Redefine src_mask and | |
4024 | dst_mask. | |
4025 | (mips16_elf64_howto_table_rela): New array for MIPS16 RELA | |
4026 | reloc howtos. Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and | |
4027 | R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 | |
4028 | placeholders. | |
4029 | (mips16_gprel_reloc): Remove bit shuffling; call | |
4030 | _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp() | |
4031 | and _bfd_mips16_elf_reloc_shuffle() instead. | |
4032 | (mips16_reloc_map): New reloc map for MIPS16 relocs. | |
4033 | (bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16 | |
4034 | relocs. | |
4035 | (mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from | |
4036 | mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel. | |
4037 | * elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16 | |
4038 | REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and | |
4039 | R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders. | |
4040 | (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel. | |
4041 | (elf_mips16_gprel_howto): Likewise. Redefine src_mask and | |
4042 | dst_mask. | |
4043 | (mips16_gprel_reloc): Remove bit shuffling; call | |
4044 | _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp() | |
4045 | and _bfd_mips16_elf_reloc_shuffle() instead. | |
4046 | (mips16_reloc_map): New reloc map for MIPS16 relocs. | |
4047 | (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16 | |
4048 | relocs. | |
4049 | (mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from | |
4050 | elf_mips16_howto_table_rela or elf_mips16_howto_table_rel. | |
4051 | * elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to | |
4052 | handle bit shuffling for MIPS16 relocs. | |
4053 | (_bfd_mips16_elf_reloc_shuffle): Likewise. | |
4054 | (_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle() | |
4055 | and _bfd_mips16_elf_reloc_shuffle(). | |
4056 | (_bfd_mips_elf_generic_reloc): Likewise. | |
4057 | (mips_elf_calculate_relocation): Likewise. Handle R_MIPS16_HI16 | |
4058 | and R_MIPS16_LO16. | |
4059 | (mips_elf_obtain_contents): Remove bit shuffling. | |
4060 | (mips_elf_perform_relocation): Likewise; call | |
4061 | _bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle() | |
4062 | instead. | |
4063 | (_bfd_mips_elf_relocate_section): Likewise. Handle R_MIPS16_HI16 | |
4064 | and R_MIPS16_LO16. | |
4065 | * elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare. | |
4066 | (_bfd_mips16_elf_reloc_shuffle): Likewise. | |
4067 | * reloc.c (BFD_RELOC_MIPS16_HI16): New reloc. | |
4068 | (BFD_RELOC_MIPS16_HI16_S): Likewise. | |
4069 | (BFD_RELOC_MIPS16_LO16): Likewise. | |
4070 | * bfd-in2.h: Regenerate. | |
4071 | * libbfd.h: Regenerate. | |
4072 | ||
0ca3e455 JB |
4073 | 2005-02-15 Jan Beulich <[email protected]> |
4074 | ||
4075 | * elfxx-ia64.c (ia64_howto_table): Correct strings for | |
4076 | R_IA64_DTPMOD64[LM]SB. | |
4077 | ||
c5509b92 L |
4078 | 2005-02-14 H.J. Lu <[email protected]> |
4079 | ||
4080 | * elfxx-ia64.c (elfNN_ia64_relax_section): Allow relax | |
4081 | backward branch in the same section. | |
4082 | (elfNN_ia64_relocate_section): Inform users that the input | |
4083 | section is too big to relax br instruction when overflow | |
4084 | happens to R_IA64_PCREL21B, R_IA64_PCREL21BI, R_IA64_PCREL21M | |
4085 | and R_IA64_PCREL21F. | |
4086 | ||
5cba516c NC |
4087 | 2005-02-14 Orjan Friberg <[email protected]> |
4088 | ||
4089 | * elfcore.h (elf_core_file_p): Move the call to | |
4090 | elf_backend_object_p to allow the correct machine to be set before | |
4091 | processing the program headers. | |
4092 | ||
b59a68e1 NC |
4093 | 2005-02-14 Nick Clifton <[email protected]> |
4094 | ||
4095 | PR binutils/716 | |
4096 | * peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address | |
4097 | aware flag from the input bfd to the output bfd. | |
4098 | ||
254f0426 MR |
4099 | 2005-02-11 Maciej W. Rozycki <[email protected]> |
4100 | ||
4101 | * elf32-mips.c (_bfd_mips_elf32_gprel16_reloc): Reject | |
4102 | R_MIPS_LITERAL relocations for external symbols. | |
4103 | * elf64-mips.c (mips_elf64_literal_reloc): Likewise. | |
4104 | * elfn32-mips.c (mips_elf_literal_reloc): Likewise. | |
4105 | ||
e91cdea7 L |
4106 | 2005-02-11 H.J. Lu <[email protected]> |
4107 | ||
4108 | * bfd-in2.h: Rebuilt. | |
4109 | ||
67687978 PB |
4110 | 2005-02-11 Paul Brook <[email protected]> |
4111 | ||
4112 | * elf-bfd.h (struct elf_link_hash_table): Add | |
4113 | is_relocatable_executable. | |
4114 | * elf.c (_bfd_elf_link_hash_table_init): Initialize it. | |
4115 | * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic | |
4116 | symbols in relocatable executables. | |
4117 | (bfd_elf_record_link_assignment): Create dynamic section symbols in | |
4118 | relocatable executables. | |
4119 | (_bfd_elf_link_renumber_dynsyms): Ditto. | |
4120 | (bfd_elf_final_link): Ditto. | |
4121 | * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute | |
4122 | relocations into relocatable executables. | |
4123 | (elf32_arm_check_relocs): Crate dynamic sections for relocatable | |
4124 | executables. Also copy absolute relocations. | |
4125 | (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations | |
4126 | in relocatable executables. | |
4127 | (allocate_dynrelocs): Copy relocations for relocatable executables. | |
4128 | Output dynamic symbols for symbols defined in linker scripts. | |
4129 | ||
ca724bf2 NC |
4130 | 2005-02-11 Nick Clifton <[email protected]> |
4131 | ||
4b74b983 NC |
4132 | * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift' |
4133 | to avoid a compile time warning. | |
4134 | ||
ca724bf2 NC |
4135 | * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from |
4136 | BFD_ASSERT. | |
4137 | ||
3e25964f NC |
4138 | * coff-tic4x.c (coff_rtype_to_howto): Move definition before |
4139 | inclusion of coffcode.h so that it is actually picked up. | |
4140 | ||
cb7a88a4 NC |
4141 | * coffcode.h (coff_std_swap_table): Add an unused attribute in |
4142 | case it is not used. | |
4143 | ||
596c83ec NC |
4144 | * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused |
4145 | structure and macro. | |
4146 | ||
6c408f53 NC |
4147 | * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and |
4148 | array. | |
4149 | ||
d5b2f13b NC |
4150 | * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC |
4151 | to protect the declaration of this array. | |
4152 | ||
169a6afd NC |
4153 | * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32): |
4154 | Avoid call to memcpy with a size of 0. | |
4155 | ||
2917689a AM |
4156 | 2005-02-12 Alan Modra <[email protected]> |
4157 | ||
4158 | * elf64-ppc.c (toc_adjusting_stub_needed): Return true for | |
4159 | old-style branches to undefined dot-symbols which will be | |
4160 | satisfied by a plt call. | |
4161 | ||
40d16e0b AM |
4162 | 2005-02-11 Alan Modra <[email protected]> |
4163 | ||
4164 | * elf64-ppc.c (move_plt_plist): New function, extracted from.. | |
4165 | (ppc64_elf_copy_indirect_symbol): ..here. | |
4166 | (func_desc_adjust): Use move_plt_plist. | |
4167 | ||
e37c699c PB |
4168 | 2005-02-10 Paul Brook <[email protected]> |
4169 | ||
4170 | * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9. | |
4171 | ||
6fa3860b PB |
4172 | 2005-02-10 Paul Brook <[email protected]> |
4173 | ||
4174 | * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal | |
4175 | symbols local. | |
4176 | (elf_link_renumber_hash_table_dynsyms): Ignore local symbols. | |
4177 | (elf_link_renumber_local_hash_table_dynsyms): New function. | |
4178 | (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols. | |
4179 | ||
d457dcf6 JJ |
4180 | 2005-02-10 Jakub Jelinek <[email protected]> |
4181 | ||
4182 | * bfd-in.h (BFD_LINKER_CREATED): Define. | |
4183 | * bfd-in2.h: Rebuilt. | |
4184 | * elflink.c (bfd_elf_size_dynamic_sections): Disregard | |
4185 | BFD_LINKER_CREATED bfds when determining input bfds without | |
4186 | .note.GNU-stack section. | |
4187 | ||
7f05722e MR |
4188 | 2005-02-10 Maciej W. Rozycki <[email protected]> |
4189 | ||
4190 | * elf64-mips.c (mips16_gprel_reloc): Update a comment. | |
4191 | * elfn32-mips.c (mips16_gprel_reloc): Keep R_MIPS16_GPREL | |
4192 | relocations against external symbols unchanged. | |
4193 | ||
ccf5f610 PB |
4194 | 2005-02-08 Paul Brook <[email protected]> |
4195 | ||
4196 | * elflink.c (elf_link_input_bfd): Ignore symbols from null input | |
4197 | sections. | |
4198 | ||
370a0e1b HPN |
4199 | 2005-02-08 Hans-Peter Nilsson <[email protected]> |
4200 | ||
4201 | * elflink.c (elf_link_add_object_symbols): Don't add "warning: " | |
4202 | prefix here. | |
4203 | ||
99277196 MR |
4204 | 2005-02-07 Maciej W. Rozycki <[email protected]> |
4205 | ||
4206 | * elf64-mips.c: Fix formatting throughout. | |
4207 | ||
6422fbef MR |
4208 | 2005-02-07 Maciej W. Rozycki <[email protected]> |
4209 | ||
4210 | * elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo. | |
4211 | ||
303e4c21 AO |
4212 | 2005-02-07 Alexandre Oliva <[email protected]> |
4213 | ||
4214 | * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove special handling for | |
4215 | *ABS*/*UND* sections. | |
4216 | (elf32_frv_relocate_section): Move zero-addend-required error... | |
4217 | (_frv_emit_got_relocs_plt_entries): ... here. Report error for | |
4218 | missing needed TLS section. | |
4219 | ||
c3864421 HPN |
4220 | 2005-02-07 Hans-Peter Nilsson <[email protected]> |
4221 | ||
4222 | * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO | |
4223 | being the last symbol. | |
9f400ee9 HPN |
4224 | (aout_link_add_symbols): Just return TRUE if a warning |
4225 | symbol was last. | |
c3864421 | 4226 | |
765f2ef6 MR |
4227 | 2005-02-07 Maciej W. Rozycki <[email protected]> |
4228 | ||
4229 | * elf32-mips.c (mips_elf_gprel32_reloc): Reject | |
4230 | R_MIPS_GPREL32 relocations against external symbols. | |
4231 | * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect | |
4232 | comment. | |
4233 | ||
1b3a8575 AM |
4234 | 2005-02-07 Alan Modra <[email protected]> |
4235 | ||
4236 | * elf-bfd.h (elf_string_from_elf_strtab): Delete macro. | |
4237 | * elf.c (bfd_elf_string_from_elf_section): Expand occurrence of | |
4238 | elf_string_from_elf_strtab. | |
4239 | (_bfd_elf_setup_group_pointers, bfd_section_from_shdr): Likewise. | |
4240 | (bfd_section_from_shdr): For SHT_SYMTAB, load SHT_SYMTAB_SHNDX too | |
4241 | if it exists. Don't do the reverse for SHT_SYMTAB_SHNDX. For | |
4242 | SHT_STRTAB, check whether the strtab is for symtab or dynsymtab by | |
4243 | looking at cached symtab info first, before iterating over headers. | |
4244 | For SHT_REL and SHT_RELA, load dynsymtab if needed. | |
4245 | * elfcode.h (elf_object_p): Don't load section header stringtab | |
4246 | specially. | |
4247 | ||
90f487df L |
4248 | 2005-02-06 H.J. Lu <[email protected]> |
4249 | ||
4250 | * elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF | |
4251 | against protected function when building shared library. | |
4252 | ||
4253 | PR 584 | |
4254 | * elf64-x86-64.c (is_32bit_relative_branch): New. | |
4255 | (elf64_x86_64_relocate_section): Alllow R_X86_64_PC32 on a | |
4256 | protected function symbol when building shared library for | |
4257 | 32bit relative branch instruction. | |
4258 | ||
c4f68ce3 AM |
4259 | 2005-02-06 Alan Modra <[email protected]> |
4260 | ||
4261 | * elf64-ppc.c (add_symbol_adjust): Don't create fake descriptor | |
4262 | syms when doing a relocatable link. | |
4263 | (ppc64_elf_gc_mark_hook): Check that syms are defined before looking | |
4264 | at u.def.section. | |
4265 | (ppc64_elf_tls_setup): Likewise. | |
4266 | (ppc64_elf_edit_opd): Don't use an undefined func desc sym. | |
4267 | ||
908b32fc AM |
4268 | 2005-02-04 Alan Modra <[email protected]> |
4269 | ||
4270 | * elf64-ppc.c (struct ppc_link_hash_entry): Add "fake". | |
4271 | (link_hash_newfunc): Clear all locals using memset. | |
4272 | (make_fdh): Remove flags param. Always create fake func desc | |
4273 | weak. Link the descriptor with the code entry sym. | |
4274 | (ppc64_elf_archive_symbol_lookup): Don't return fake syms. | |
4275 | (add_symbol_adjust): Adjust make_fdh call. | |
4276 | (func_desc_adjust): Likewise. Twiddle any pre-existing fake | |
4277 | descriptor to strong undefined if code entry is strong. | |
4278 | ||
4ea42fb7 AM |
4279 | 2005-02-04 Alan Modra <[email protected]> |
4280 | ||
4281 | * elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol | |
4282 | lookup here. Set to new before calling bfd_link_repair_undef_list. | |
4283 | (elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd. | |
4284 | ||
10d86c8a AM |
4285 | 2005-02-03 Alan Modra <[email protected]> |
4286 | ||
4287 | * linker.c (_bfd_link_hash_newfunc): Set all local fields. | |
4288 | ||
11f25ea6 AM |
4289 | 2005-02-03 Alan Modra <[email protected]> |
4290 | ||
4291 | * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak. | |
4292 | * elflink.c (elf_smash_syms): Restore symbols that were undefweak | |
4293 | before the as-needed lib was loaded. Abort on unexpected refs. | |
4294 | ||
4f40114d AM |
4295 | 2005-02-02 Alan Modra <[email protected]> |
4296 | ||
ec13b3bb AM |
4297 | * elflink.c (elf_smash_syms): Expand comments. |
4298 | (elf_link_add_object_symbols): Only call elf_smash_syms for | |
4299 | as-needed dynamic objects. | |
4300 | ||
4f40114d AM |
4301 | * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear |
4302 | everything, just the field specific to ia64. | |
336549c1 | 4303 | * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise. |
4f40114d | 4304 | |
bb700d78 AM |
4305 | 2005-02-01 Alan Modra <[email protected]> |
4306 | ||
4307 | * elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to.. | |
4308 | (make_fdh): ..here. New function. Don't set BSF_OBJECT for | |
4309 | undefined syms. | |
4310 | (struct add_symbol_adjust_data): New. | |
4311 | (add_symbol_adjust): Make an undefweak func desc for old ABI | |
4312 | objects to link with --as-needed shared libs. Return fail status. | |
4313 | Don't adjust old ABI func entry sym to weak if func desc syms | |
4314 | isn't defined. | |
4315 | (ppc64_elf_check_directives): Adjust call to add_symbol_adjust, | |
4316 | and return status. | |
4317 | ||
1ffd1c2f HPN |
4318 | 2005-02-01 Hans-Peter Nilsson <[email protected]> |
4319 | ||
4320 | * cpu-cris.c (get_compatible): Rearrange disabled code and comment | |
4321 | for clarity. | |
4322 | ||
77cfaee6 AM |
4323 | 2005-02-01 Alan Modra <[email protected]> |
4324 | ||
4325 | * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup.. | |
4326 | * linker.c (bfd_link_repair_undef_list): ..to new function, but don't | |
4327 | remove anything but new and undefweak. | |
4328 | * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any | |
4329 | existing _DYNAMIC. | |
4330 | (_bfd_elf_create_dynamic_sections): Formatting. | |
4331 | (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list. | |
4332 | (_bfd_elf_merge_symbol): Don't handle as-needed syms here. | |
4333 | (struct elf_smash_data): New. | |
4334 | (elf_smash_syms): New function. | |
4335 | (elf_link_add_object_symbols): Call elf_smash_syms. Don't add | |
4336 | unneeded dynamic objects to loaded list. | |
4337 | (elf_link_output_extsym): Don't handle as-needed here. Strip | |
4338 | bfd_link_hash_new symbols. | |
4339 | * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't | |
4340 | delref when dynindx is already -1. | |
4341 | * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new | |
4342 | symbols. | |
4343 | * elfxx-mips.c (mips_elf_output_extsym): Likewise. | |
4344 | ||
b15c48d1 BE |
4345 | 2005-02-01 Ben Elliston <[email protected]> |
4346 | ||
4347 | * elfxx-target.h (bfd_elfNN_bfd_discard_group): Redefine. | |
4348 | ||
0983f4eb | 4349 | 2005-02-01 Ben Elliston <[email protected]> |
0e71e495 BE |
4350 | |
4351 | * aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c, | |
4352 | bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c, | |
4353 | coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c, | |
4354 | coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c, | |
4355 | cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c, | |
4356 | elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c, | |
4357 | elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c, | |
4358 | elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c, | |
4359 | i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c, | |
4360 | nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c, | |
4361 | pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c, | |
11d02c41 | 4362 | sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c, |
0e71e495 BE |
4363 | hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code |
4364 | throughout. Similarly, collapse #if 1'd code. | |
4365 | ||
4366 | 2005-02-01 Ben Elliston <[email protected]> | |
4367 | ||
0983f4eb BE |
4368 | * elf-bfd.h (bfd_elf_discard_group): Remove. |
4369 | * elf.c (bfd_elf_discard_group): Likewise. | |
4370 | * elfxx-target.h (bfd_elfNN_bfd_discard_group): Remove macro. | |
4371 | ||
8c946ed5 RS |
4372 | 2005-01-31 Richard Sandiford <[email protected]> |
4373 | ||
4374 | * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size. | |
4375 | (_bfd_elf_eh_frame_address_size): Declare. | |
4376 | * elfxx-target.h (elf_backend_eh_frame_address_size): Define a default. | |
4377 | (elfNN_bed): Initialize elf_backend_eh_frame_address_size. | |
4378 | * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Declare. | |
4379 | (elf_backend_eh_frame_address_size): Define. | |
4380 | * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): New function. | |
4381 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Get the address | |
4382 | size from the new backend hook. | |
4383 | (_bfd_elf_write_section_eh_frame): Likewise. | |
4384 | (_bfd_elf_eh_frame_address_size): New function. | |
4385 | ||
c46f8c51 AC |
4386 | 2005-01-31 Andrew Cagney <[email protected]> |
4387 | ||
4388 | * configure: Regenerate to track ../gettext.m4. | |
4389 | ||
5cd3778d MM |
4390 | 2005-01-31 Mark Mitchell <[email protected]> |
4391 | ||
4392 | * elf32-arm.c (elf32_arm_symbian_special_sections): Do not set | |
4393 | SHF_WRITE for .init_array, .fini_array, and .preinit_array. | |
ec13b3bb | 4394 | |
d6486796 NC |
4395 | 2005-01-31 Nick Clifton <[email protected]> |
4396 | ||
4397 | * confg.bfd: Make targets scheduled for obsoletion (m68k-lynxos, | |
4398 | sparc-lynxos, vax-vms) be obsolete. | |
4399 | ||
b1342370 DJ |
4400 | 2005-01-28 Daniel Jacobowitz <[email protected]> |
4401 | ||
4402 | * elf-bfd.h (struct elf_backend_data): Add minpagesize. | |
4403 | * elf32-arm.c (ELF_MINPAGESIZE): Define. | |
4404 | * elf32-ppc.c (ELF_MINPAGESIZE): Define. | |
4405 | * elfcode.h (elf_object_p): Use minpagesize instead of | |
4406 | maxpagesize. | |
4407 | * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE. | |
4408 | (elfNN_bed): Include ELF_MINPAGESIZE. | |
4409 | ||
319850b4 JB |
4410 | 2005-01-28 Julian Brown <[email protected]> |
4411 | ||
4412 | * bin-in.h (bfd_elf32_arm_set_target_relocs): Update prototype. | |
4413 | * bin-in2.h (bfd_elf32_arm_set_target_relocs): Update prototype. | |
4414 | * elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx flag. | |
4415 | (bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx for | |
ec13b3bb | 4416 | passing flag value from ld. Set flag value in global hash table entry. |
319850b4 | 4417 | (elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX |
ec13b3bb | 4418 | relocation. |
319850b4 | 4419 | |
a53bf506 AC |
4420 | 2005-01-27 Andrew Cagney <[email protected]> |
4421 | ||
4422 | * configure: Regenerate to track ../gettext.m4 change. | |
4423 | ||
dc4c9c19 MM |
4424 | 2005-01-25 Mark Mitchell <[email protected]> |
4425 | ||
4426 | * elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for | |
ec13b3bb | 4427 | SymbianOS. |
dc4c9c19 | 4428 | |
90219bd0 AO |
4429 | 2005-01-25 Alexandre Oliva <[email protected]> |
4430 | ||
4431 | 2004-12-10 Alexandre Oliva <[email protected]> | |
4432 | * elf32-frv.c (elf32_frv_relocate_section): Force local binding | |
4433 | for TLSMOFF. | |
4434 | * reloc.c: Add R_FRV_TLSMOFF. | |
4435 | * elf32-frv.c (elf32_frv_howto_table): Likewise. | |
4436 | (frv_reloc_map, frv_reloc_type_lookup): Map it. | |
4437 | (elf32_frv_relocate_section): Handle it. | |
4438 | (elf32_frv_check_relocs): Likewise. | |
4439 | * libbfd.h, bfd-in2.h: Rebuilt. | |
4440 | 2004-11-26 Alexandre Oliva <[email protected]> | |
4441 | * elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash | |
4442 | when given an undefweak TLS symbol. Fix constant TLS PLT entries | |
4443 | such that they return the constant in gr9. | |
4444 | (_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS | |
4445 | symbols. | |
4446 | (_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections. | |
4447 | too, such that they shrink on relaxation. | |
4448 | (elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as | |
4449 | marking the position right past the _GLOBAL_OFFSET_TABLE_ value. | |
4450 | (_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries | |
4451 | if we can guarantee the use of 16-bit constants. | |
4452 | 2004-11-10 Alexandre Oliva <[email protected]> | |
4453 | Introduce TLS support for FR-V FDPIC. | |
4454 | * reloc.c: Add TLS relocations. | |
4455 | * elf32-frv.c (elf32_frv_howto_table): Add TLS relocations. | |
4456 | (elf32_frv_rel_tlsdesc_value_howto): New. | |
4457 | (elf32_frv_rel_tlsoff_howto): New. | |
4458 | (frv_reloc_map): Add new mappings. | |
4459 | (struct frvfdpic_elf_link_hash_table): Add pointer to summary | |
4460 | reloc information. | |
4461 | (frvfdpic_dynamic_got_plt_info): New. | |
4462 | (frvfdpic_plt_tls_ret_offset): New. | |
4463 | (ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier. | |
4464 | (struct _frvfdpic_dynamic_got_info): Likewise. Add TLS members. | |
4465 | (struct _frvfdpic_dynamic_got_plt_info): Likewise. | |
4466 | (FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute | |
4467 | section as local. | |
4468 | (struct frvfdpic_relocs_info): Add TLS fields. | |
4469 | (frvfdpic_relocs_info_hash): Warning clean up. | |
4470 | (frvfdpic_relocs_info_find): Initialize tlsplt_entry. | |
4471 | (frvfdpic_pic_merge_early_relocs_info): Merge TLS fields. | |
4472 | (FRVFDPIC_TLS_BIAS): Define. | |
4473 | (tls_biased_base): New. | |
4474 | (_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS | |
4475 | relocations. | |
4476 | (frv_reloc_type_lookup): Likewise. | |
4477 | (frvfdpic_info_to_howto_rel): Likewise. | |
4478 | (elf32_frv_relocate_section): Likewise. | |
4479 | (_frv_create_got_section): Create the PLT section here. | |
4480 | (elf32_frvfdpic_create_dynamic_sections): Not here. | |
4481 | (_frvfdpic_count_nontls_entries): Move out of... | |
4482 | (_frvfdpic_count_got_plt_entries): ... here. | |
4483 | (_frvfdpic_count_tls_entries): Likewise. Add TLS support. | |
4484 | (_frvfdpic_count_relocs_fixups): Likewise. Add relaxation | |
4485 | support. | |
4486 | (_frvfdpic_relax_tls_entries): New. | |
4487 | (_frvfdpic_compute_got_alloc_data): Add TLS support. | |
4488 | (_frvfdpic_get_tlsdesc_entry): New. | |
4489 | (_frvfdpic_assign_got_entries): Add TLS support. | |
4490 | (_frvfdpic_assign_plt_entries): Likewise. | |
4491 | (_frvfdpic_reset_got_plt_entries): New. | |
4492 | (_frvfdpic_size_got_plt): Move out of... | |
4493 | (elf32_frvfdpic_size_dynamic_sections): ... here. | |
4494 | (_frvfdpic_relax_got_plt_entries): New. | |
4495 | (elf32_frvfdpic_relax_section): New. | |
4496 | (elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check. | |
4497 | (elf32_frv_check_relocs): Add TLS support. | |
4498 | (bfd_elf32_bfd_relax_section): Define for FDPIC. | |
4499 | * libbfd.h, bfd-in2.h: Rebuilt. | |
4500 | ||
8615f3f2 AM |
4501 | 2005-01-25 Alan Modra <[email protected]> |
4502 | ||
4503 | * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound): Only include | |
4504 | loadable reloc sections. | |
4505 | (_bfd_elf_canonicalize_dynamic_reloc): Likewise. | |
4506 | (_bfd_elf_get_synthetic_symtab): Return 0 if no dynamic syms. | |
4507 | ||
7e9f0867 AM |
4508 | 2005-01-25 Alan Modra <[email protected]> |
4509 | ||
4510 | * elflink.c (elf_link_add_object_symbols): Don't create link dynamic | |
4511 | sections immediately when linking shared libs. Instead, wait until | |
4512 | we know a lib is needed. | |
4513 | (_bfd_elf_link_create_dynstrtab): Extract from.. | |
4514 | (_bfd_elf_link_create_dynamic_sections_): ..here. | |
4515 | (elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and | |
4516 | _bfd_elf_link_create_dynamic_sections. Add abfd param. Allow | |
4517 | for non-existent .dynamic. | |
4518 | (elf_link_output_extsym): Don't complain about undefined symbols | |
4519 | in as-needed dynamic libs that aren't actually linked. | |
4520 | ||
45181ed1 AC |
4521 | 2005-01-24 Andrew Cagney <[email protected]> |
4522 | ||
4523 | * configure: Regenerate, ../gettext.m4 was updated. | |
4524 | ||
753e3eb6 BE |
4525 | 2005-01-21 Ben Elliston <[email protected]> |
4526 | ||
4527 | * aout-encap.c: Remove unused file. | |
4528 | ||
1c16dfa5 L |
4529 | 2005-01-19 H.J. Lu <[email protected]> |
4530 | ||
4531 | PR 679 | |
4532 | * elflink.c (_bfd_elf_dynamic_symbol_p): Only protected | |
4533 | non-function symbols are local. | |
4534 | (_bfd_elf_symbol_refs_local_p): Likewise. | |
4535 | ||
1449d79b AM |
4536 | 2005-01-18 Alan Modra <[email protected]> |
4537 | ||
4538 | * bfd.c (bfd_link_just_syms): Add abfd param. | |
4539 | * bfd-in2.h: Regenerate. | |
4540 | ||
dcf507a6 RS |
4541 | 2005-01-17 Richard Sandiford <[email protected]> |
4542 | ||
4543 | * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions. | |
4544 | (_bfd_elf_discard_section_eh_frame): Use them to interpret the CFA | |
4545 | instructions. If the amount of padding is known, reduce the size | |
4546 | of the CIE or FDE by that amount. | |
4547 | ||
2c42be65 RS |
4548 | 2005-01-17 Richard Sandiford <[email protected]> |
4549 | ||
4550 | * elf-bfd.h (struct cie): Use bfd_vmas for code_align, ra_column and | |
4551 | augmentation_size. Use bfd_signed_vmas for data_align. | |
4552 | * elf-eh-frame.c (read_uleb128, read_sleb128): Delete in favor of... | |
4553 | (read_byte, skip_leb128, read_uleb128, read_sleb128): ...these new | |
4554 | functions. Don't read past the end of the enclosing CIE or FDE. | |
4555 | (skip_bytes): New utility function. | |
4556 | (_bfd_elf_discard_section_eh_frame): Use new functions, adding more | |
4557 | sanity checking. | |
4558 | (_bfd_elf_write_section_eh_frame): Use new functions. | |
4559 | ||
acfe5567 RS |
4560 | 2005-01-17 Richard Sandiford <[email protected]> |
4561 | ||
4562 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an | |
4563 | assert-style REQUIRE() macro to handle sanity checks. | |
4564 | ||
c0c28ab8 L |
4565 | 2005-01-17 H.J. Lu <[email protected]> |
4566 | ||
4567 | * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ... | |
4568 | (comp_unit): Here. | |
4569 | (read_unsigned_leb128): Removed. | |
4570 | (read_signed_leb128): Removed. | |
4571 | (find_abstract_instance_name): Updated. | |
4572 | (parse_comp_unit): Accept info_ptr_unit. | |
4573 | (_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each | |
4574 | comp unit and pass it to parse_comp_unit. | |
4575 | ||
4576 | * elf-eh-frame.c (read_unsigned_leb128): Moved to ... | |
4577 | (read_signed_leb128): Moved to ... | |
4578 | * libbfd.c: Here. | |
4579 | ||
4580 | * libbfd-in.h (read_unsigned_leb128): New prototype. | |
4581 | (read_signed_leb128): Likewise. | |
4582 | * libbfd.h: Regenerated. | |
4583 | ||
e38bc3b5 NC |
4584 | 2005-01-17 Andrew Stubbs <[email protected]> |
4585 | Nick Clifton <[email protected]> | |
4586 | ||
4587 | * cpu-sh.c (bfd_to_arch_table): Change arch_sh1_up to arch_sh_up, | |
4588 | arch__sh4_nofp_up to arch_sh4_nofpu_up and arch_sh4a_nofp_up to | |
4589 | arch_sh4a_nofpu_up in order to match the external names and make the | |
4590 | testsuite's job easier. | |
4591 | * archuires.c: Rename bfd_mach_sh2a_fake? to more meaningful | |
4592 | names. | |
4593 | * bfd-in2.h: Regenerate. | |
4594 | ||
8fb84ecc AC |
4595 | 2005-01-15 Andrew Cagney <[email protected]> |
4596 | ||
4597 | * bfd.m4: New file. | |
4598 | * acinclude.m4: Move BFD_NEED_DECLARATION, | |
4599 | BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to | |
4600 | the new file bfd.m4. Include ../bfd/bfd.m4. | |
4601 | * configure: Re-generate. | |
8615f3f2 | 4602 | |
b4a38de6 AM |
4603 | 2005-01-12 Alan Modra <[email protected]> |
4604 | ||
4605 | * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries. | |
4606 | (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for | |
4607 | reaching PLT. | |
4608 | (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and | |
4609 | R_PPC_RELAX32PC_PLT. | |
4610 | ||
3eb128b2 AM |
4611 | 2005-01-11 Alan Modra <[email protected]> |
4612 | ||
4613 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning | |
4614 | symbols. | |
4615 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise. | |
4616 | * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise. | |
4617 | * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise. | |
4618 | * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise. | |
4619 | * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise. | |
4620 | * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise. | |
4621 | * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise. | |
4622 | * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
4623 | * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise. | |
4624 | * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise. | |
4625 | * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. | |
4626 | * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise. | |
4627 | * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
4628 | * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise. | |
4629 | ||
264a1fe0 AM |
4630 | 2005-01-11 Alan Modra <[email protected]> |
4631 | ||
4632 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct | |
4633 | .dynsbss flags. | |
4634 | ||
5c4504f7 NC |
4635 | 2005-01-10 Inderpreet Singh <[email protected]> |
4636 | ||
4637 | * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20. | |
4638 | * bfd-in2.h: Regenerate. | |
4639 | * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Add code | |
4640 | to support these new machine values. | |
4641 | * cpu-maxq.c (bfd_maxq10_arch): New architecture definition for | |
4642 | the maxq10. | |
4643 | (bfd_maxq_arch): Update values for the maxq20. | |
4644 | ||
669460c7 EB |
4645 | 2005-01-10 Eric Botcazou <[email protected]> |
4646 | ||
4647 | * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a | |
4648 | non-shared object, do not reserve space in .plt and .rela.plt for | |
4649 | regular symbols neither defined nor referenced in shared objects. | |
4650 | ||
a51a7930 EB |
4651 | 2005-01-09 Eric Botcazou <[email protected]> |
4652 | ||
01aac484 EB |
4653 | * elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc |
4654 | to zero the structure. | |
4655 | (create_got_section): Use BFD_ASSERT instead of abort. | |
a51a7930 EB |
4656 | * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and |
4657 | 'srelgot' fields. | |
4658 | (create_got_section): New function. | |
4659 | (sparc64_elf_create_dynamic_sections): Likewise. | |
4660 | (sparc64_elf_check_relocs): Invoke create_got_section instead of | |
4661 | _bfd_elf_create_got_section. Use the sgot and srelgot shortcuts. | |
4662 | (sparc64_elf_size_dynamic_sections): Use the srelgot shortcut. | |
4663 | (sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts. | |
4664 | (sparc64_elf_finish_dynamic_symbol): Likewise. | |
4665 | (sparc64_elf_finish_dynamic_sections): Use the sgot shortcut. | |
4666 | (elf_backend_create_dynamic_sections): Define to | |
4667 | sparc64_elf_create_dynamic_sections. | |
4668 | ||
151e5294 EB |
4669 | 2005-01-09 Eric Botcazou <[email protected]> |
4670 | ||
4671 | * elf32-sparc.c (elf32_sparc_omit_section_dynsym): New function. | |
4672 | (elf_backend_omit_section_dynsym): Define to it. | |
4673 | * elf64-sparc.c (sparc64_elf_omit_section_dynsym): New function. | |
4674 | (elf_backend_omit_section_dynsym): Define to it. | |
4675 | ||
6f79b219 JJ |
4676 | 2005-01-07 Jakub Jelinek <[email protected]> |
4677 | ||
4678 | * bfd/elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into | |
4679 | PT_DYNAMIC segment, unless .dynamic. | |
4680 | ||
4e7fd91e PB |
4681 | 2005-01-06 Paul Brook <[email protected]> |
4682 | ||
4683 | * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss. | |
4684 | * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec. | |
4685 | * configure: Regenerate. | |
4686 | * elf32-arm.c: Add VxWorks target bfd. | |
4687 | (USE_REL): Remove. | |
4688 | (elf32_arm_link_hash_table): Add use_rel. | |
4689 | (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate, | |
4690 | elf32_arm_relocate_section): Replace USE_REL with runtime check. | |
4691 | Correct offset calculation for RELA case. | |
4692 | (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p, | |
4693 | elf_backend_default_use_rela_p, elf_backend_rela_normal): Define. | |
4694 | (elf32_arm_vxworks_link_hash_table_create): New function. | |
4695 | * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration. | |
4696 | (bfd_elf32_littlearm_vxworks_vec): Ditto. | |
4697 | (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec. | |
4698 | ||
4c52953f AM |
4699 | 2005-01-06 Alan Modra <[email protected]> |
4700 | ||
4701 | * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and | |
4702 | multi_toc_needed. | |
4703 | (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Define. | |
4704 | (ppc64_elf_check_relocs): Update references to has_gp_reloc. | |
4705 | (ppc64_elf_setup_section_lists): Add no_multi_toc parm, set htab bit. | |
4706 | (ppc64_elf_next_toc_section): Heed no_multi_toc. | |
4707 | (ppc64_elf_reinit_toc): Set multi_toc_needed. | |
4708 | (toc_adjusting_stub_needed): Rewrite. | |
4709 | (ppc64_elf_next_input_section): Use multi_toc_needed to shortcut | |
4710 | toc tests. Adjust for toc_adjusting_stub_needed changes. | |
4711 | (ppc64_elf_size_stubs): Update references to has_gp_reloc. | |
4712 | * elf64-ppc.h (ppc64_elf_setup_section_lists): Update prototype. | |
4713 | * section.c: Expand comment on backend bits. | |
4714 | * bfd-in2.h: Regenerate. | |
4715 | * libbfd.h: Regenerate. | |
4716 | ||
f03d65b4 AM |
4717 | 2005-01-06 Alan Modra <[email protected]> |
4718 | ||
4719 | * elf64-ppc.c (ppc64_elf_size_stubs): When determining need for | |
4720 | toc adjusting stub, do not test source section flags. | |
4721 | ||
8af139b3 EB |
4722 | 2005-01-05 Eric Botcazou <[email protected]> |
4723 | ||
4724 | * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows | |
4725 | from STABS debugging sections again. | |
4726 | ||
06f22d7e FF |
4727 | 2005-01-05 Fred Fish <[email protected]> |
4728 | ||
4729 | * dwarf2.c (struct dwarf2_debug): Add info_ptr_unit member. | |
4730 | (find_abstract_instance_name): New function. | |
4731 | (scan_unit_for_functions): Handle DW_TAG_inlined_subroutine. | |
4732 | (scan_unit_for_functions): Handle DW_AT_abstract_origin. | |
4733 | (_bfd_dwarf2_find_nearest_line): Initialize info_ptr_unit. | |
4734 | ||
83a358aa PB |
4735 | 2004-12-31 Paul Brook <[email protected]> |
4736 | ||
4737 | * elf32-arm.c (elf32_arm_symbian_plt_entry): Fix comment typo. | |
4738 | ||
b996922c AM |
4739 | 2004-12-31 Alan Modra <[email protected]> |
4740 | ||
4741 | * reloc.c (BFD_RELOC_AVR_LDI, BFD_RELOC_AVR_6, BFD_RELOC_AVR_6_ADIW): | |
4742 | Commit missing changes from 2004-12-22. | |
4743 | * bfd-in2.h: Regenerate. | |
4744 | ||
17a83432 TL |
4745 | 2004-12-23 Tomer Levi <[email protected]> |
4746 | ||
4747 | * elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation. | |
4748 | ||
d69f560c KW |
4749 | 2004-12-21 Kris Warkentin <[email protected]> |
4750 | ||
4751 | * elf.c (elfcore_grok_nto_gregs): Change name to elfcore_grok_nto_regs. | |
4752 | Add 'base' argument for constructing register sections. Reformat. | |
4753 | (elfcore_grok_nto_note): Call elfcore_grok_nto_regs for both | |
4754 | gp and fp regs. Reformat. | |
4c52953f | 4755 | |
750bce0e NC |
4756 | 2004-12-22 Klaus Rudolph <[email protected]> |
4757 | ||
4758 | * reloc.c: Add new relocs R_AVR_LDI, R_AVR_6, R_AVR_6_ADIW. | |
4759 | * bfd-in2.h: Regenerate. | |
4760 | * elf32-avr.c (elf_avr_nowto_table): Add the new relocs. | |
4761 | (avr_reloc_map): Likewise. | |
4762 | (avr_final_link_relocate): Likewise. | |
4763 | ||
a5db907e AM |
4764 | 2004-12-22 Alan Modra <[email protected]> |
4765 | ||
4766 | * elflink.c (_bfd_elf_merge_symbol): Treat old definitions from | |
4767 | as-needed dynamic libs as undefined. | |
4768 | (elf_link_add_object_symbols): Remove DYN_AS_NEEDED from as-needed | |
4769 | libs when finding they are needed. | |
4770 | ||
8860955f AM |
4771 | 2004-12-20 Alan Modra <[email protected]> |
4772 | ||
4773 | * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add opd_relocs. | |
4774 | (opd_entry_value): Use opd_relocs if available. | |
4775 | (ppc64_elf_relocate_section): Don't set reloc_done. Instead | |
4776 | copy .opd relocations to opd_relocs. | |
4777 | (ppc64_elf_edit_toc): Set rel_hdr.sh_size after editing relocs. | |
4778 | ||
1e50d24d RS |
4779 | 2004-12-16 Richard Sandiford <[email protected]> |
4780 | ||
4781 | * reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type. | |
4782 | * elf32-v850.c (v850_elf_howto_table): Add entry for | |
4783 | R_V850_LO16_SPLIT_OFFSET. | |
4784 | (v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET. | |
4785 | (v850_elf_perform_lo16_relocation): New function, extracted from... | |
4786 | (v850_elf_perform_relocation): ...here. Use it to handle | |
4787 | R_V850_LO16_SPLIT_OFFSET. | |
4788 | (v850_elf_check_relocs, v850_elf_final_link_relocate): Handle | |
4789 | R_V850_LO16_SPLIT_OFFSET. | |
4790 | * libbfd.h, bfd-in2.h: Regenerate. | |
4791 | ||
2fbd2a87 NC |
4792 | 2004-12-14 P.J. Darcy <[email protected]> |
4793 | ||
4794 | * config.bfd: Add s390x-ibm-tpf support. | |
4795 | ||
06302770 TL |
4796 | 2004-12-14 Tomer Levi <[email protected]> |
4797 | ||
8860955f | 4798 | * elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *' |
06302770 TL |
4799 | to prototype, to make hash info available. |
4800 | Prevent wrapped symbols from being adjusted twice. | |
4801 | ||
c314987d RS |
4802 | 2004-12-14 Richard Sandiford <[email protected]> |
4803 | ||
4804 | * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an | |
4805 | overflow for calls to undefined weak symbols. | |
4806 | ||
5c799c07 AM |
4807 | 2004-12-11 Alan Modra <[email protected]> |
4808 | ||
4809 | * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that | |
4810 | canonical sections syms have a name. | |
4811 | ||
645ea6a9 AM |
4812 | 2004-12-11 Alan Modra <[email protected]> |
4813 | ||
4814 | * elf64-ppc.c (opd_entry_value): Don't use cached relocs if they | |
4815 | have been adjusted for output. | |
4816 | (ppc64_elf_relocate_section): Mark sections with reloc_done. | |
4817 | ||
0e2cfdce AM |
4818 | 2004-12-10 Alan Modra <[email protected]> |
4819 | ||
be8dd2ca AM |
4820 | * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name and |
4821 | add symtab_hdr param. | |
0e2cfdce AM |
4822 | (group_signature): Update calls. |
4823 | * elf-bfd.h (bfd_elf_sym_name): Update. | |
4824 | * elf32-ppc.c (ppc_elf_relocate_section): Update. | |
8860955f AM |
4825 | * elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Update. |
4826 | (ppc64_elf_relocate_section): Update. | |
0e2cfdce AM |
4827 | * elflink.c (elf_link_input_bfd): Update. |
4828 | ||
138f35cc JJ |
4829 | 2004-12-10 Jakub Jelinek <[email protected]> |
4830 | ||
4831 | * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid | |
4832 | st_shndx on STT_SECTION sections. | |
4833 | ||
f9cfae62 DJ |
4834 | 2004-12-09 Daniel Jacobowitz <[email protected]> |
4835 | ||
4836 | * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize | |
4837 | ELF section symbols. | |
4838 | ||
0d2e43ed ILT |
4839 | 2004-12-09 Ian Lance Taylor <[email protected]> |
4840 | ||
1367d393 ILT |
4841 | * elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR, |
4842 | return a real value, unless it is a PLT symbol. | |
4843 | (mips_elf_perform_relocation): On the RM9000, turn a jal into a | |
4844 | bal if possible. | |
4845 | ||
74f79d8d ILT |
4846 | * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask of |
4847 | R_MIPS_JALR entry to 0. | |
4848 | ||
0d2e43ed ILT |
4849 | * archures.c: Define bfd_mach_mips9000. |
4850 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000. | |
4851 | (mips_set_isa_flags): Handle bfd_mach_mips9000. | |
4852 | * cpu-mips.c (I_mips9000): Define. | |
4853 | (arch_info_struct): Add case for bfd_mach_mips9000. | |
4854 | * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000. | |
4855 | * bfd-in2.h: Regenerate. | |
4856 | ||
728b2f21 ILT |
4857 | 2004-12-08 Ian Lance Taylor <[email protected]> |
4858 | ||
4859 | * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26 | |
4860 | overflow. | |
4861 | ||
45ab555d BE |
4862 | 2004-12-07 Ben Elliston <[email protected]> |
4863 | ||
4864 | * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned. | |
4865 | ||
1511ddaf DJ |
4866 | 2004-12-06 Daniel Jacobowitz <[email protected]> |
4867 | ||
4868 | Suggested by Fergal Daly <[email protected]>: | |
4869 | * simple.c (simple_dummy_multiple_definition): New function. | |
4870 | (bfd_simple_get_relocated_section_contents): Use it. | |
4871 | ||
4872 | 2004-12-03 Jan Beulich <[email protected]> | |
57426232 JB |
4873 | |
4874 | * elf.c (elf_find_function): Don't use the last file symbol ever, | |
4875 | seen, but the last one seen prior to the symbol being reported. | |
4876 | Don't report a filename at all for global symbols when that might | |
4877 | be ambiguous/wrong. | |
4878 | ||
94a3258f PB |
4879 | 2004-12-01 Paul Brook <[email protected]> |
4880 | ||
4881 | * elf32-arm.c (elf32_arm_copy_private_bfd_data): Set EI_OSABI. | |
4882 | (elf32_arm_post_process_headers): Set EI_OSABI depending on ABI | |
4883 | version. | |
4884 | ||
529fcb95 PB |
4885 | 2004-12-01 Paul Brook <[email protected]> |
4886 | ||
4887 | * elflink.c (elf_link_add_object_symbols): Make symbols from discarded | |
4888 | sections undefined. | |
4889 | ||
dea514f5 PB |
4890 | 2004-11-30 Paul Brook <[email protected]> |
4891 | ||
4892 | * elf32-arm.c (struct elf32_arm_link_hash_table): Remove | |
4893 | no_pipeline_knowledge | |
4894 | (elf32_arm_link_hash_table_create): Ditto. | |
4895 | (bfd_elf32_arm_process_before_allocation): Ditto. | |
4896 | (elf32_arm_final_link_relocate): Ditto. Remove oabi relocation | |
4897 | handling. | |
4898 | * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update | |
4899 | prototype. | |
4900 | * bfd-in2.h: Regenerate. | |
4901 | ||
edfc032f AM |
4902 | 2004-11-30 Randolph Chung <[email protected]> |
4903 | ||
4904 | * elf32-hppa.c (elf32_hppa_grok_prstatus): New function. | |
4905 | (elf32_hppa_grok_psinfo): New function. | |
4906 | (elf_backend_grok_prstatus): Define. | |
4907 | (elf_backend_grok_psinfo): Define. | |
4908 | ||
0be9069d L |
4909 | 2004-11-24 H.J. Lu <[email protected]> |
4910 | ||
4911 | PR 574: | |
4912 | * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS. | |
4913 | ||
47cc2cf5 PB |
4914 | 2004-11-24 Paul Brook <[email protected]> |
4915 | ||
4916 | * elf.c (assign_section_numbers): Number SHT_GROUP sections first. | |
4917 | ||
0beaef2b PB |
4918 | 2004-11-24 Paul Brook <[email protected]> |
4919 | ||
4920 | * elf32-arm.c (elf32_arm_swap_symbol_in): New function. | |
4921 | (elf32_arm_swap_symbol_out): New function. | |
4922 | (elf32_arm_size_info): Add. | |
4923 | (elf_backend_size_info): Define. | |
4924 | ||
3dd2fcf0 DA |
4925 | 2004-11-20 John David Anglin <[email protected]> |
4926 | ||
4927 | * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to | |
4928 | make_bfd_asection. | |
4929 | ||
de52dba4 AM |
4930 | 2004-11-19 Alan Modra <[email protected]> |
4931 | ||
4932 | * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix. | |
4933 | * elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl. | |
4934 | * nlmcode.h (nlm_write_object_contents): Warning fix. | |
4935 | ||
288f74fa BW |
4936 | 2004-11-18 Bob Wilson <[email protected]> |
4937 | ||
4938 | * elf32-xtensa.c (ebb_propose_action): Fix argument order. | |
4939 | ||
b7693d02 DJ |
4940 | 2004-11-17 Daniel Jacobowitz <[email protected]> |
4941 | ||
4942 | * elf32-arm.c (PLT_THUMB_STUB_SIZE): Define. | |
4943 | (elf32_arm_plt_thumb_stub): New. | |
4944 | (struct elf32_arm_link_hash_entry): Add plt_thumb_refcount | |
4945 | and plt_got_offset. | |
4946 | (elf32_arm_link_hash_traverse): Fix typo. | |
4947 | (elf32_arm_link_hash_table): Add obfd. | |
4948 | (elf32_arm_link_hash_newfunc): Initialize new fields. | |
4949 | (elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount. | |
4950 | (elf32_arm_link_hash_table_create): Initialize obfd. | |
4951 | (record_arm_to_thumb_glue): Mark the glue as a local ARM function. | |
4952 | (record_thumb_to_arm_glue): Mark the glue as a local Thumb function. | |
4953 | (bfd_elf32_arm_get_bfd_for_interworking): Verify that the | |
4954 | interworking BFD is not dynamic. | |
4955 | (bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do | |
4956 | not emit glue for PLT references. | |
4957 | (elf32_arm_final_link_relocate): Handle Thumb functions. Do not | |
4958 | emit glue for PLT references. Support the Thumb PLT prefix. | |
4959 | (elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and | |
4960 | plt_thumb_refcount. | |
4961 | (elf32_arm_check_relocs): Likewise. | |
4962 | (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and | |
4963 | plt_thumb_refcount. | |
4964 | (allocate_dynrelocs): Handle Thumb PLT references. | |
4965 | (elf32_arm_finish_dynamic_symbol): Likewise. | |
4966 | (elf32_arm_symbol_processing): New function. | |
4967 | (elf_backend_symbol_processing): Define. | |
4968 | ||
353057a5 RS |
4969 | 2004-11-16 Richard Sandiford <[email protected]> |
4970 | ||
4971 | * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size and | |
4972 | add_fde_encoding. Remove need_relative. | |
4973 | * elf-eh-frame.c (extra_augmentation_string_bytes) | |
4974 | (extra_augmentation_data_bytes, size_of_output_cie_fde): New functions. | |
4975 | (_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding | |
4976 | in cases where the CIE has no existing 'R' augmentation. Use | |
4977 | size_of_output_cie_fde when assigning offsets. Use the final offset | |
4978 | as the new section size. | |
4979 | (_bfd_elf_eh_frame_section_offset): Remove need_relative handling. | |
4980 | Account for any extra augmentation bytes in the returned offset. | |
4981 | (_bfd_elf_write_section_eh_frame): Rework so that the entries are | |
4982 | moved before being modified. Pad growing entries with DW_CFA_nops. | |
4983 | Add 'z' and 'R' augmentations as directed by add_augmentation_size | |
4984 | and add_fde_encoding. | |
4985 | ||
b32d3aa2 MM |
4986 | 2004-11-15 Mark Mitchell <[email protected]> |
4987 | ||
4988 | * elf32-arm.c (elf32_arm_relocate_section): Use | |
4989 | arm_real_reloc_type. | |
4990 | ||
5d41f0b6 RS |
4991 | 2004-11-16 Richard Sandiford <[email protected]> |
4992 | ||
4993 | * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early | |
4994 | for discard relocations; don't add an R_MIPS_NONE to the main body | |
4995 | of .rel.dyn. | |
4996 | ||
fc0e6df6 PB |
4997 | 2004-11-04 Paul Brook <[email protected]> |
4998 | ||
4999 | * elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype. | |
5000 | * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument. | |
5001 | (_bfd_elf_slurp_version_tables): Add extra argument. Create extra | |
5002 | default version definition for unversioned symbols. | |
5003 | * elfcode.h (elf_slurp_symbol_table): Pass extra argument. | |
5004 | * elflink.c (elf_link_add_object_symbols): Pass extra argument to | |
5005 | _bfd_elf_slurp_version_tables. Set default version for unversioned | |
5006 | imported symbols. | |
5007 | ||
b23e50e2 PB |
5008 | 2004-11-15 Paul Brook <[email protected]> |
5009 | ||
5010 | * elflink.c (elf_link_add_object_symbols): Don't assume version | |
5011 | indices are consecutive. | |
5012 | ||
f4a6705c RS |
5013 | 2004-11-14 Richard Sandiford <[email protected]> |
5014 | ||
5015 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with | |
5016 | composite relocations against the personality data. | |
5017 | ||
ee06dc07 PB |
5018 | 2004-11-13 Paul Brook <[email protected]> |
5019 | ||
5020 | * bfd/elf32-arm.c (elf32_arm_final_link_relocate): Resolve | |
5021 | R_ARM_PREL31 relocations to PLT entries. | |
5022 | (elf32_arm_relocate_section, elf32_arm_gc_sweep_hook): Ditto. | |
5023 | (elf32_arm_check_relocs): Ditto. | |
5024 | ||
a1ace8d8 BW |
5025 | 2004-11-12 Bob Wilson <[email protected]> |
5026 | ||
5027 | * xtensa-isa.c (xtensa_interface_class_id): New. | |
5028 | ||
e4115460 BW |
5029 | 2004-11-11 Bob Wilson <[email protected]> |
5030 | ||
5031 | * elf32-xtensa.c (property_table_compare): Remove assertion about | |
5032 | entries with the same address and non-zero size. | |
5033 | (xtensa_read_table_entries): Report such entries as errors. | |
5034 | ||
6366ff1e MM |
5035 | 2004-11-11 Mark Mitchell <[email protected]> |
5036 | ||
5037 | * elf32-arm.c (elf32_arm_final_link_relocate): Correct logic for | |
5038 | R_ARM_RELATIVE on Symbian OS. | |
5039 | ||
b34af79c MM |
5040 | 2004-11-09 Mark Mitchell <[email protected]> |
5041 | ||
e6dc21b6 MM |
5042 | * som.c (som_bfd_print_private_bfd_data): New function. |
5043 | (som_object_setup): Save the auxiliary header. Don't assume that | |
5044 | zero is an invalid entry point for a shared library. | |
5045 | (som_object_p): Allocate the auxiliary header on the heap. | |
5046 | ||
b34af79c MM |
5047 | * elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&R |
5048 | declaration. | |
5049 | (elf32_arm_symbian_modify_segment_map): Likewise. | |
5050 | ||
08d1f311 DJ |
5051 | 2004-11-09 Daniel Jacobowitz <[email protected]> |
5052 | ||
5053 | From David Poole <[email protected]>: | |
5054 | * elf32-arm.c (elf32_arm_readonly_dynrelocs): New function. | |
5055 | (elf32_arm_size_dynamic_sections): Call it. | |
5056 | ||
0306b3bf AM |
5057 | 2004-11-09 Alan Modra <[email protected]> |
5058 | ||
5059 | * Makefile.am (SOURCE_HFILES): Remove elf32-arm.h. | |
5060 | (ALL_MACHINES_CFILES): Fix typo. | |
5061 | * Makefile.in: Regenerate. | |
5062 | * po/SRC-POTFILES.in: Regenerate. | |
5063 | ||
a16385dc MM |
5064 | 2004-11-08 Mark Mitchell <[email protected]> |
5065 | ||
5066 | * elf32-arm.c (elf32_arm_final_link_relocate): When generating an | |
5067 | R_ARM_RELATIVE relocation for Symbian OS, mention the section | |
5068 | symbol in the relocation. | |
5069 | ||
0306b3bf AM |
5070 | 2004-11-08 Inderpreet Singh <[email protected]> |
5071 | Vineet Sharma <[email protected]> | |
7499d566 NC |
5072 | |
5073 | * coff-maxq.c: New File. | |
0306b3bf AM |
5074 | * cpu-maxq.c: New File. |
5075 | * coffcode.h: Likewise. | |
5076 | * config.bfd: Likewise. | |
5077 | * configure.in (maxqcoff_vec): New target vector. | |
7499d566 NC |
5078 | * Makefile.am: Add support for maxq target. |
5079 | * configure.in: Likewise. | |
0306b3bf AM |
5080 | * archures.c:. Likewise. |
5081 | * targets.c: Likewise. | |
5082 | * bfd_in2.h : Regenerated. | |
7499d566 NC |
5083 | * Makefile.in: Regenerated. |
5084 | * configure: Regenerated. | |
5085 | * doc/Makefile.in: Regenerated. | |
5086 | ||
977cdf5a NC |
5087 | 2004-11-08 Aaron W. LaFramboise <[email protected]> |
5088 | ||
5089 | * coff-i386.c (coff_i386_reloc): Fix weak symbols. | |
5090 | * cofflink.c (_bfd_coff_link_input_bfd): Don't process | |
5091 | C_NT_WEAK aux entries. | |
5092 | (_bfd_coff_generic_relocate_section): Handle undefined | |
5093 | aliases. | |
5094 | ||
9dfe8738 AS |
5095 | 2004-11-07 Andreas Schwab <[email protected]> |
5096 | ||
5097 | * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Use | |
5098 | SYMBOL_CALLS_LOCAL and check for undefweak symbols with | |
5099 | non-default visibility. | |
5100 | ||
c3c76620 MM |
5101 | 2004-11-01 Mark Mitchell <[email protected]> |
5102 | ||
5103 | * elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear | |
0306b3bf | 5104 | D_PAGED. |
c3c76620 MM |
5105 | (elf32_arm_symbian_modify_segment_map): Don't |
5106 | reset includes_filehdr and includes_phdrs here. | |
5107 | ||
7f266840 DJ |
5108 | 2004-11-04 Daniel Jacobowitz <[email protected]> |
5109 | ||
5110 | * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace | |
5111 | elfarm-nabi with elf32-arm. Remove elfarm-oabi. | |
5112 | (elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h | |
5113 | dependency. | |
5114 | * config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list | |
5115 | to a new removed list. Remove normal configuration stanzas. | |
5116 | * configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec) | |
5117 | (bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace | |
5118 | elfarm-nabi.lo with elf32-arm.lo. | |
5119 | (bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove. | |
5120 | * elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h. | |
5121 | * elf32-arm.h: Remove. | |
5122 | * elfarm-oabi.c: Remove. | |
5123 | * targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec | |
5124 | and bfd_elf32_littlearm_oabi_vec. | |
5125 | * aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated. | |
5126 | ||
bac23f82 HPN |
5127 | 2004-11-04 Hans-Peter Nilsson <[email protected]> |
5128 | ||
5129 | * config.bfd: Support crisv32-*-* like cris-*-*. | |
5130 | * archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32) | |
5131 | (bfd_mach_cris_v10_v32): New macros. | |
5132 | * cpu-cris.c: Tweak formatting. | |
5133 | (get_compatible): New function. | |
5134 | (N): New macro. | |
5135 | (bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New | |
5136 | bfd_arch_info_type:s. | |
5137 | (bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach, | |
5138 | get_compatible for member compatible and link bfd_cris_arch_v32 as | |
5139 | next. | |
5140 | * elf32-cris.c (cris_elf_pcrel_reloc) | |
5141 | (cris_elf_set_mach_from_flags): New functions. | |
5142 | (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL> | |
5143 | <R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc. | |
5144 | (cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct | |
5145 | numbers for bfd_mach_cris_v32. | |
5146 | (PLT_ENTRY_SIZE_V32): New macro. | |
5147 | (elf_cris_plt0_entry): Drop last comma in initializer. | |
5148 | (elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32) | |
5149 | (elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New | |
5150 | PLT initializers. | |
5151 | (cris_elf_relocate_section): Change all "%B(%A)" messages to | |
5152 | "%B, section %A". | |
5153 | (elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries. | |
5154 | (elf_cris_finish_dynamic_sections): Similar. | |
5155 | (elf_cris_adjust_dynamic_symbol): Similar. | |
5156 | (cris_elf_check_relocs): Change all "%B(%A)" messages to "%B, | |
5157 | section %A". | |
5158 | <switch with PIC relocs>: Emit error and return FALSE for | |
5159 | bfd_mach_cris_v10_v32. | |
5160 | <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>: | |
5161 | Emit warning when generating textrel reloc. | |
5162 | (cris_elf_object_p): Call cris_elf_set_mach_from_flags. | |
5163 | (cris_elf_final_write_processing): Set flags according to mach. | |
5164 | (cris_elf_print_private_bfd_data): Display | |
5165 | EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32. | |
5166 | (cris_elf_merge_private_bfd_data): Drop variables old_flags, | |
5167 | new_flags. Don't call cris_elf_final_write_processing. Don't | |
5168 | look at the actual elf header flags at all; use | |
5169 | bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference | |
5170 | in bfd_get_mach for ibfd and obfd and handle merging of compatible | |
5171 | objects. | |
5172 | (bfd_elf32_bfd_copy_private_bfd_data): Define. | |
5173 | * reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8) | |
5174 | (BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16) | |
5175 | (BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs. | |
5176 | * bfd-in2.h, libbfd.h: Regenerate. | |
5177 | ||
c5614fa4 AM |
5178 | 2004-11-04 Alan Modra <[email protected]> |
5179 | ||
5180 | * elf64-ppc.h (ppc64_elf_edit_toc): Declare. | |
5181 | * elf64-ppc.c (struct ppc_link_hash_entry <adjust_done>): Update | |
5182 | comment. | |
5183 | (struct adjust_toc_info): New. | |
5184 | (adjust_toc_syms, ppc64_elf_edit_toc): New functions. | |
5185 | ||
0ebdbb83 BW |
5186 | 2004-11-03 Bob Wilson <[email protected]> |
5187 | ||
5188 | * elf.c (assign_file_positions_for_segments): Set next_file_pos even | |
5189 | if there are no segments. | |
5190 | ||
675b2ace DJ |
5191 | 2004-11-02 Daniel Jacobowitz <[email protected]> |
5192 | ||
5193 | * config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete. | |
5194 | ||
58852c27 NC |
5195 | 2004-11-02 Nick Clifton <[email protected]> |
5196 | ||
5197 | * elf32-iq2000.c: Convert to ISO C90 formatting. | |
5198 | ||
e6857c0c HPN |
5199 | 2004-11-02 Hans-Peter Nilsson <[email protected]> |
5200 | ||
20288ed6 | 5201 | * elflink.c (_bfd_elf_create_got_section): Hide _GLOBAL_OFFSET_TABLE_. |
e6857c0c | 5202 | |
bf718458 L |
5203 | 2004-10-28 H.J. Lu <[email protected]> |
5204 | ||
5205 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak | |
5206 | undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, | |
5207 | R_IA64_SECREL64MSB and R_IA64_SECREL64LSB. | |
5208 | ||
044ad7e3 KK |
5209 | 2004-10-28 Kaz Kojima <[email protected]> |
5210 | ||
5211 | * elf32-sh.c (tpoff): Take alignment into account. | |
5212 | ||
d5cb4bb8 NC |
5213 | 2004-10-28 Nick Clifton <[email protected]> |
5214 | ||
5215 | * elf32-iq2000.c (iq2000_elf_relocate_section): Do nothing when | |
0d48eab6 | 5216 | performing a relocatable link. |
d5cb4bb8 NC |
5217 | (iq2000_elf_object_p): Do not set elf_bad_symtab. This is only |
5218 | for MIPS ports under Irix. | |
5219 | ||
5b5bb741 PB |
5220 | 2004-10-27 Richard Earnshaw <[email protected]> |
5221 | ||
5222 | * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle | |
5223 | R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24. | |
5224 | (elf32_arm_final_link_relocate): Ditto. | |
5225 | (arm_add_to_rel, elf32_arm_relocate_section): Ditto. | |
5226 | (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto | |
5227 | (elf32_arm_adjust_dynamic_symbol): Ditto. | |
5228 | * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and | |
5229 | R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}... | |
5230 | (elf32_arm_r_howto): ... To here. | |
5231 | (elf32_arm_howto_from_type): Use elf32_arm_r_howto. | |
5232 | ||
97ecf322 L |
5233 | 2004-10-26 H.J. Lu <[email protected]> |
5234 | ||
5235 | PR 475 | |
5236 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Correct | |
5237 | R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB | |
5238 | and R_IA64_SECREL64LSB. | |
5239 | ||
3e3b46e5 PB |
5240 | 2004-10-26 Paul Brook <[email protected]> |
5241 | ||
5242 | * elflink.c (elf_finalize_dynstr): Skip shared aux structure. | |
5243 | (bfd_elf_size_dynamic_sections): Create default version definition. | |
5244 | (elf_link_output_extsym): Adjust for default symbol version. | |
5245 | ||
aa69fe43 HPN |
5246 | 2004-10-24 Hans-Peter Nilsson <[email protected]> |
5247 | ||
278b4623 HPN |
5248 | * mmo.c: Adjust to ISO C. |
5249 | ||
aa69fe43 HPN |
5250 | * mmo.c (mmo_write_section_description): New function broken out |
5251 | of mmo_internal_write_section. | |
5252 | (mmo_internal_write_section): For each of .text and .data, call | |
5253 | mmo_write_section_description before outputting contents if it has | |
5254 | nontrivially deducible vma or contents. | |
5255 | (mmo_has_leading_or_trailing_zero_tetra_p): New function. | |
5256 | (mmo_canonicalize_symtab): Adjust absolute symbols to .data | |
5257 | symbols if found within the .data address range. | |
5258 | ||
ed040321 DJ |
5259 | 2004-10-24 Daniel Jacobowitz <[email protected]> |
5260 | ||
5261 | * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY. | |
5262 | ||
830866af HPN |
5263 | 2004-10-24 Hans-Peter Nilsson <[email protected]> |
5264 | ||
5265 | * mmo.c (File Layout): Correct place of misplaced blurb about | |
5266 | special data. | |
5267 | ||
5f417ca3 MK |
5268 | 2004-10-22 Mark Kettenis <[email protected]> |
5269 | ||
5270 | * config.bfd: Add mips64*-*-openbsd. | |
5271 | ||
823fc61f BW |
5272 | 2004-10-21 Bob Wilson <[email protected]> |
5273 | ||
5274 | * elf32-xtensa.c (ebb_propose_action): Put declarations before | |
5275 | statements. | |
5276 | ||
8697aafb L |
5277 | 2004-10-21 H.J. Lu <[email protected]> |
5278 | ||
5279 | * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94. | |
5280 | * configure: Regenerate. | |
5281 | ||
dfeffb9f L |
5282 | 2004-10-21 H.J. Lu <[email protected]> |
5283 | ||
5284 | PR 463 | |
5285 | * aoutx.h (aout_link_input_section_std): Pass proper hash entry | |
5286 | to linker reloc_overflow callback. | |
5287 | (aout_link_input_section_ext): Likewise. | |
5288 | (aout_link_reloc_link_order): Likewise. | |
5289 | * coff-a29k.c (coff_a29k_relocate_section): Likewise. | |
5290 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): | |
5291 | Likewise. | |
5292 | (alpha_relocate_section): Likewise. | |
5293 | * coff-arm.c (coff_arm_relocate_section): Likewise. | |
5294 | * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. | |
5295 | * coff-h8500.c (extra_case): Likewise. | |
5296 | * coff-i960.c (coff_i960_relocate_section): Likewise. | |
5297 | * coff-mcore.c (coff_mcore_relocate_section): Likewise. | |
5298 | * coff-mips.c (mips_relocate_section): Likewise. | |
5299 | * coff-or32.c (coff_or32_relocate_section): Likewise. | |
5300 | * coff-ppc.c (coff_ppc_relocate_section): Likewise. | |
5301 | * coff-rs6000.c (xcoff_ppc_relocate_section): Likewise. | |
5302 | * coff-sh.c (sh_relocate_section): Likewise. | |
5303 | * coff-tic80.c (coff_tic80_relocate_section): Likewise. | |
5304 | * coff-w65.c (w65_reloc16_extra_cases): Likewise. | |
5305 | * coff-z8k.c (extra_case): Likewise. | |
5306 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise. | |
5307 | * cofflink.c (_bfd_coff_reloc_link_order): Likewise. | |
5308 | (_bfd_coff_generic_relocate_section): Likewise. | |
5309 | * ecoff.c (ecoff_reloc_link_order): Likewise. | |
5310 | * elf-hppa.h (elf_hppa_relocate_section): Likewise. | |
5311 | * elf-m10200.c (mn10200_elf_relocate_section): Likewise. | |
5312 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
5313 | * elf32-arm.h (elf32_arm_relocate_section): Likewise. | |
5314 | * elf32-avr.c (elf32_avr_relocate_section): Likewise. | |
5315 | * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise. | |
5316 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
5317 | * elf32-crx.c (elf32_crx_relocate_section): Likewise. | |
5318 | * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. | |
5319 | * elf32-fr30.c (fr30_elf_relocate_section): Likewise. | |
5320 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. | |
5321 | * elf32-h8300.c (elf32_h8_relocate_section): Likewise. | |
5322 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
5323 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
5324 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
5325 | * elf32-i860.c (elf32_i860_relocate_section): Likewise. | |
5326 | * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise. | |
5327 | * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise. | |
5328 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
5329 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. | |
5330 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
5331 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
5332 | * elf32-msp430.c (elf32_msp430_relocate_section): Likewise. | |
5333 | * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. | |
5334 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
5335 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
5336 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
5337 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
5338 | * elf32-v850.c (v850_elf_relocate_section): Likewise. | |
5339 | * elf32-vax.c (elf_vax_relocate_section): Likewise. | |
5340 | * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. | |
5341 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
5342 | * elf64-mmix.c (mmix_elf_relocate_section): Likewise. | |
5343 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
5344 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
5345 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
5346 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
5347 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
5348 | * elflink.c (elf_reloc_link_order): Likewise. | |
5349 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
5350 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise. | |
5351 | (_bfd_elf_mips_get_relocated_section_contents): Likewise. | |
5352 | * linker.c (_bfd_generic_reloc_link_order): Likewise. | |
5353 | * pdp11.c (pdp11_aout_link_input_section): Likewise. | |
5354 | (aout_link_reloc_link_order): Likewise. | |
5355 | * reloc.c (bfd_generic_get_relocated_section_contents): | |
5356 | Likewise. | |
5357 | * xcofflink.c (xcoff_reloc_link_order): Likewise. | |
5358 | * simple.c (simple_dummy_reloc_overflow): Updated. | |
5359 | ||
1715e0e3 AS |
5360 | 2004-10-20 Andreas Schwab <[email protected]> |
5361 | ||
5362 | * elf32-m68k.c (elf_m68k_plt_sym_val): New function. | |
5363 | (elf_backend_plt_sym_val): Define. | |
5364 | ||
db3d41a8 DS |
5365 | 2004-10-19 Danny Smith <[email protected]> |
5366 | ||
5367 | * config.bfd: Set targ_underscore=yes for PE COFF targets | |
5368 | ||
4b85d634 AM |
5369 | 2004-10-19 Alan Modra <[email protected]> |
5370 | ||
5371 | * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects. | |
5372 | (ppc64_elf_edit_opd): Likewise. | |
5373 | ||
6df4d94c MM |
5374 | 2004-10-18 Mark Mitchell <[email protected]> |
5375 | ||
5376 | * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment. | |
5377 | * elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT, | |
5378 | set SEC_ALLOC and SEC_LOAD. | |
5379 | ||
00d962d1 NC |
5380 | 2004-10-18 Nick Clifton <[email protected]> |
5381 | ||
5382 | * elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute | |
5383 | 'name' for relocs against both local and global symbols. | |
5384 | ||
b58f81ae DJ |
5385 | 2004-10-16 Daniel Jacobowitz <[email protected]> |
5386 | ||
5387 | * bfd-in2.h: Regenerate. | |
5388 | * bfd.c (struct bfd): Add no_export. | |
5389 | * elflink.c (elf_link_add_object_symbols): Handle no_export. | |
5390 | ||
7d3f158f AM |
5391 | 2004-10-15 Alan Modra <[email protected]> |
5392 | ||
5393 | * config.bfd: Whitespace cleanup. | |
5394 | * Makefile.am: Run "make dep-am" | |
5395 | * Makefile.in: Regenerate. | |
5396 | ||
6d2cd210 JJ |
5397 | 2004-10-15 Jakub Jelinek <[email protected]> |
5398 | ||
5399 | * elflink.c (struct already_linked_section): Removed. | |
5400 | (try_match_symbols_in_sections, already_linked): Removed. | |
5401 | (_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\. | |
5402 | prefix of section names when finding already_linked_table | |
5403 | chain. Compare section names. Instead of calling already_linked, | |
5404 | do it inline and only for sections in the same already_linked_list. | |
5405 | ||
92e4ec35 AM |
5406 | 2004-10-15 Alan Modra <[email protected]> |
5407 | ||
5408 | * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info" | |
5409 | parameter. If called after _bfd_elf_write_section_eh_frame, | |
5410 | don't allow a -2 return unless need_* bit is already set, and | |
5411 | handle offsets adjusted for output_offset. | |
5412 | * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype. | |
5413 | * elf.c (_bfd_elf_section_offset): Update call. | |
5414 | ||
7bf6dede L |
5415 | 2004-10-13 H.J. Lu <[email protected]> |
5416 | ||
5417 | PR 440 | |
5418 | * coffcode.h (coff_compute_section_file_positions): Cast to | |
5419 | bfd_vma when computing page alignment. | |
5420 | ||
c0042f5d MM |
5421 | 2004-10-13 Mark Mitchell <[email protected]> |
5422 | ||
5423 | * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file | |
5424 | offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED. | |
5425 | ||
2a1b9a48 MM |
5426 | 2004-10-12 Mark Mitchell <[email protected]> |
5427 | ||
5428 | * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt | |
5429 | relocations use a virtual address, not a section offset. | |
5430 | ||
b08b5071 BW |
5431 | 2004-10-12 Bob Wilson <[email protected]> |
5432 | ||
5433 | * elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete. | |
5434 | (narrow_instruction, widen_instruction): Remove unnecessary calls to | |
5435 | xtensa_format_encode. | |
5436 | (ebb_propose_action): Inline call to ebb_add_proposed_action. | |
5437 | (ebb_add_proposed_action): Delete. | |
5438 | ||
7fa3d080 BW |
5439 | 2004-10-12 Bob Wilson <[email protected]> |
5440 | ||
5441 | * elf32-xtensa.c: Use ISO C90 formatting. | |
5442 | ||
3656d5e3 PB |
5443 | 2004-10-12 Paul Brook <[email protected]> |
5444 | ||
5445 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error | |
5446 | message. | |
5447 | ||
8cb51566 PB |
5448 | 2004-10-12 Paul Brook <[email protected]> |
5449 | ||
5450 | * elf32-arm.h: Support EABI version 4 objects. | |
5451 | ||
1abc8597 AM |
5452 | 2004-10-12 Alan Modra <[email protected]> |
5453 | ||
5454 | PR 325 | |
5455 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Place last in chain. | |
5456 | Don't mark as default. | |
5457 | (bfd_x86_64_arch): Don't mark as default. | |
5458 | ||
9e66c942 AM |
5459 | 2004-10-12 Alan Modra <[email protected]> |
5460 | ||
5461 | * elflink.c (enum action_discarded): New. | |
5462 | (elf_section_complain_discarded): Delete. | |
5463 | (elf_action_discarded): New function subsuming the above and also | |
5464 | controlling reloc behaviour. | |
1abc8597 | 5465 | (elf_link_input_bfd): Use it. |
9e66c942 | 5466 | |
7f1204bb JJ |
5467 | 2004-10-11 Jakub Jelinek <[email protected]> |
5468 | ||
5469 | * elf.c (bfd_section_from_shdr): Handle SHT_GNU_LIBLIST. | |
5470 | (special_sections): Add .gnu.liblist and .gnu.conflict. | |
5471 | (assign_section_numbers): Handle SHT_GNU_LIBLIST. | |
5472 | ||
87e5235d AM |
5473 | 2004-10-11 Alan Modra <[email protected]> |
5474 | ||
5475 | PR 233 | |
5476 | * elflink.c (elf_link_input_bfd): Try harder to support | |
5477 | relocations against symbols in removed linkonce sections. | |
5478 | ||
2ad770c3 AM |
5479 | 2004-10-11 Alan Modra <[email protected]> |
5480 | ||
029446c4 AM |
5481 | * elflink.c (elf_link_input_bfd): Revert PR 354 change. |
5482 | ||
2ad770c3 AM |
5483 | PR 354 |
5484 | * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC | |
5485 | sections do not reference symbols in non-SEC_ALLOC sections. | |
5486 | ||
1da212d6 AM |
5487 | 2004-10-11 Alan Modra <[email protected]> |
5488 | ||
5489 | PR 437 | |
5490 | * elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections. | |
5491 | (_bfd_elf_link_omit_section_dynsym): Formatting. | |
5492 | ||
f12123c0 AM |
5493 | 2004-10-10 Alan Modra <[email protected]> |
5494 | ||
5495 | * libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while. | |
5496 | * libbfd.h: Regnerate. | |
5497 | * elf32-cris.c: Add missing semicolon to BFD_ASSERTs. | |
5498 | * elf32-frv.c: Likewise. | |
5499 | * elf32-m32r.c: Likewise. | |
5500 | * elf32-ppc.c: Likewise. | |
5501 | * elf64-hppa.c: Likewise. | |
5502 | * elfxx-ia64.c: Likewise. | |
5503 | * opncls.c: Likewise. | |
5504 | ||
fda3ecf2 AM |
5505 | 2004-10-10 Alan Modra <[email protected]> |
5506 | ||
3472e2e9 AM |
5507 | * elf-bfd.h (struct eh_frame_hdr_info): Add offsets_adjusted. |
5508 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust | |
5509 | offsets stored in struct eh_cie_fde entries before doing other | |
5510 | work. | |
5511 | ||
fda3ecf2 AM |
5512 | * elf-bfd.h (struct eh_cie_fde): Add cie_inf, remove sec. |
5513 | (struct eh_frame_hdr_info): Add last_cie_inf, remove last_cie_offset. | |
5514 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete code | |
5515 | setting offsets for removed CIEs. Don't set "sec", instead set | |
5516 | cie_inf for FDEs. Keep a pointer to last struct eh_cie_fde for a | |
5517 | CIE in hdr_info. Only set make_relative and make_lsda_relative | |
5518 | for CIEs. Use pointers rather than array indices. | |
5519 | (_bfd_elf_eh_frame_section_offset): Test/set make_relative, | |
5520 | make_lsda_relative, need_* on cie_inf for FDEs. | |
5521 | (_bfd_elf_write_section_eh_frame): Adjust offset and new_offset for | |
5522 | section output_offset. Delete cie_offset, instead use cie_inf | |
5523 | pointer to CIE entry. Use need_relative and need_lsda_relative on | |
5524 | CIE entry for FDEs. Use pointers rather than array indices. | |
5525 | ||
7db6994f AM |
5526 | 2004-10-09 Alan Modra <[email protected]> |
5527 | ||
5528 | * coff-rs6000.c (rs6000coff_vec): Add initializer for | |
5529 | bfd_is_target_special_symbol. | |
5530 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
5531 | * som.c (som_bfd_is_target_special_symbol): Define. | |
5532 | ||
3c9458e9 NC |
5533 | 2004-10-08 Nick Clifton <[email protected]> |
5534 | ||
5535 | * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.93. | |
5536 | * configure: Regenerate. | |
5537 | * bfd-in2.h: Regenerate. | |
5538 | * syms.c (bfd_is_target_special_symbol): New interface function. | |
5539 | Returns true when a symbol should be considered to be special. | |
7db6994f | 5540 | * targets.c (bfd_target): Include bfd_is_target_special_symbol in |
3c9458e9 NC |
5541 | the symbol jump table. |
5542 | * elf32-arm.h (elf32_arm_is_target_special_symbol): New function. | |
5543 | Return true iff the symbol is a mapping symbol. | |
5544 | (bfd_elf32_bfd_is_target_special_symbol): Define. | |
5545 | * elfxx-target.h: Provide a default definition for | |
5546 | bfd_is_target_special_symbol. | |
5547 | * aout-target.h: Likewise. | |
5548 | * aout-tic30.c: Likewise. | |
873d03ee | 5549 | * binary.c: Likewise. |
3c9458e9 NC |
5550 | * coffcode.h: Likewise. |
5551 | * i386msdos.c: Likewise. | |
5552 | * ieee.c: Likewise. | |
873d03ee | 5553 | * ihex.c: Likewise. |
3c9458e9 NC |
5554 | * libaout.h: Likewise. |
5555 | * libbfd-in.h: Likewise | |
5556 | * libecoff.h: Likewise. | |
5557 | * mach-o.c: Likewise. | |
5558 | * mmo.c: Likewise. | |
5559 | * nlm-target.h: Likewise. | |
5560 | * oasys.c: Likewise. | |
5561 | * pef.c: Likewise. | |
5562 | * ppcboot.c: Likewise. | |
5563 | * srec.c: Likewise. | |
5564 | * tekhex.c: Likewise. | |
5565 | * versados.c: Likewise. | |
5566 | * vms.c: Likewise. | |
5567 | * xcoff-target.h: Likewise. | |
5568 | * xsym.c: Likewise. | |
5569 | * libbfd.h: Regenerate. | |
5570 | ||
d2b2c203 DJ |
5571 | 2004-10-08 Daniel Jacobowitz <[email protected]> |
5572 | ||
5573 | * config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*. | |
5574 | * elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function. | |
5575 | (elf_backend_section_from_shdr): Define. | |
5576 | ||
864274b0 AM |
5577 | 2004-10-08 Alan Modra <[email protected]> |
5578 | ||
5579 | * syms.c (bfd_is_local_label): Return false for file symbols. | |
5580 | ||
43cd72b9 | 5581 | 2004-10-07 Bob Wilson <[email protected]> |
85a5ac80 | 5582 | David Heine <[email protected]> |
43cd72b9 BW |
5583 | |
5584 | * elf32-xtensa.c (elf32xtensa_size_opt): New global variable. | |
5585 | (xtensa_default_isa): Global variable moved here from xtensa-isa.c. | |
5586 | (elf32xtensa_no_literal_movement): New global variable. | |
5587 | (elf_howto_table): Add entries for new relocations. | |
5588 | (elf_xtensa_reloc_type_lookup): Handle new relocations. | |
5589 | (property_table_compare): When addresses are equal, compare sizes and | |
5590 | various property flags. | |
5591 | (property_table_matches): New. | |
5592 | (xtensa_read_table_entries): Extend to read new property tables. Add | |
5593 | output_addr parameter to indicate that output addresses should be used. | |
5594 | Use bfd_get_section_limit. | |
5595 | (elf_xtensa_find_property_entry): New. | |
5596 | (elf_xtensa_in_literal_pool): Use elf_xtensa_find_property_entry. | |
5597 | (elf_xtensa_check_relocs): Handle new relocations. | |
5598 | (elf_xtensa_do_reloc): Use bfd_get_section_limit. Handle new | |
5599 | relocations. Use new xtensa-isa.h functions. | |
5600 | (build_encoding_error_message): Remove encode_result parameter. Add | |
5601 | new target_address parameter used to detect alignment errors. | |
5602 | (elf_xtensa_relocate_section): Use bfd_get_section_limit. Clean up | |
5603 | error handling. Use new is_operand_relocation function. | |
5604 | (elf_xtensa_combine_prop_entries, elf_xtensa_merge_private_bfd_data): | |
5605 | Use underbar macro for error messages. Formatting. | |
5606 | (get_const16_opcode): New. | |
5607 | (get_l32r_opcode): Add a separate flag for initialization. | |
5608 | (get_relocation_opnd): Operand number is no longer explicit in the | |
5609 | relocation. Change to decode the opcode and analyze its operands. | |
5610 | (get_relocation_slot): New. | |
5611 | (get_relocation_opcode): Add bfd parameter. Use bfd_get_section_limit. | |
5612 | Use new xtensa-isa.h functions to handle multislot instructions. | |
5613 | (is_l32r_relocation): Add bfd parameter. Use is_operand_relocation. | |
5614 | (get_asm_simplify_size, is_alt_relocation, is_operand_relocation, | |
5615 | insn_decode_len, insn_decode_opcode, check_branch_target_aligned, | |
5616 | check_loop_aligned, check_branch_target_aligned_address, narrowable, | |
5617 | widenable, narrow_instruction, widen_instruction, op_single_fmt_table, | |
5618 | get_single_format, init_op_single_format_table): New. | |
5619 | (elf_xtensa_do_asm_simplify): Add error_message parameter and use it | |
5620 | instead of calling _bfd_error_handler. Use new xtensa-isa.h functions. | |
5621 | (contract_asm_expansion): Add error_message parameter and pass it to | |
5622 | elf_xtensa_do_asm_simplify. Replace use of R_XTENSA_OP0 relocation | |
5623 | with R_XTENSA_SLOT0_OP. | |
5624 | (get_expanded_call_opcode): Extend to handle either L32R or CONST16 | |
5625 | instructions. Use new xtensa-isa.h functions. | |
5626 | (r_reloc struct): Add new virtual_offset field. | |
5627 | (r_reloc_init): Add contents and content_length parameters. Set | |
5628 | virtual_offset field to zero. Add contents to target_offset field for | |
5629 | partial_inplace relocations. | |
5630 | (r_reloc_is_defined): Check for null. | |
5631 | (print_r_reloc): New debug function. | |
5632 | (source_reloc struct): Replace xtensa_operand field with pair of the | |
5633 | opcode and the operand position. Add is_abs_literal field. | |
5634 | (init_source_reloc): Specify operand by opcode/position pair. Set | |
5635 | is_abs_literal field. | |
5636 | (source_reloc_compare): When target_offsets are equal, compare other | |
5637 | fields to make sorting predictable. | |
5638 | (literal_value struct): Add is_abs_literal field. | |
5639 | (value_map_hash_table struct): Add has_last_loc and last_loc fields. | |
5640 | (init_literal_value): New. | |
5641 | (is_same_value): Replace with ... | |
5642 | (literal_value_equal): ... this function. Add comparisons of | |
5643 | virtual_offset and is_abs_literal fields. | |
5644 | (value_map_hash_table_init): Use bfd_zmalloc. Check for allocation | |
5645 | failure. Initialize has_last_loc field. | |
5646 | (value_map_hash_table_delete): New. | |
5647 | (hash_literal_value): Rename to ... | |
5648 | (literal_value_hash): ... this. Include is_abs_literal flag and | |
5649 | virtual_offset field in the hash value. | |
5650 | (get_cached_value): Rename to ... | |
5651 | (value_map_get_cached_value): ... this. Update calls to | |
5652 | literal_value_hash and literal_value_equal. | |
5653 | (add_value_map): Check for allocation failure. Update calls to | |
5654 | value_map_get_cached_value and literal_value_hash. | |
5655 | (text_action, text_action_list, text_action_t): New types. | |
5656 | (find_fill_action, compute_removed_action_diff, adjust_fill_action, | |
5657 | text_action_add, text_action_add_literal, offset_with_removed_text, | |
5658 | offset_with_removed_text_before_fill, find_insn_action, | |
5659 | print_action_list, print_removed_literals): New. | |
5660 | (offset_with_removed_literals): Delete. | |
5661 | (xtensa_relax_info struct): Add is_relaxable_asm_section, action_list, | |
5662 | fix_array, fix_array_count, allocated_relocs, relocs_count, and | |
5663 | allocated_relocs_count fields. | |
5664 | (init_xtensa_relax_info): Initialize new fields. | |
5665 | (reloc_bfd_fix struct): Add new translated field. | |
5666 | (reloc_bfd_fix_init): Add translated parameter and use it to set the | |
5667 | translated field. | |
5668 | (fix_compare, cache_fix_array): New. | |
5669 | (get_bfd_fix): Remove fix_list parameter and get all relax_info for the | |
5670 | section via get_xtensa_relax_info. Use cache_fix_array to set up | |
5671 | sorted fix_array and use bsearch instead of linear search. | |
5672 | (section_cache_t): New struct. | |
5673 | (init_section_cache, section_cache_section, clear_section_cache): New. | |
5674 | (ebb_t, ebb_target_enum, proposed_action, ebb_constraint): New types. | |
5675 | (init_ebb_constraint, free_ebb_constraint, init_ebb, extend_ebb_bounds, | |
5676 | extend_ebb_bounds_forward, extend_ebb_bounds_backward, | |
5677 | insn_block_decodable_len, ebb_propose_action, ebb_add_proposed_action): | |
5678 | New. | |
5679 | (retrieve_contents): Use bfd_get_section_limit. | |
5680 | (elf_xtensa_relax_section): Add relocations_analyzed flag. Update call | |
5681 | to compute_removed_literals. Free value_map_hash_table when no longer | |
5682 | needed. | |
5683 | (analyze_relocations): Check is_relaxable_asm_section flag. Call | |
5684 | compute_text_actions for all sections. | |
5685 | (find_relaxable_sections): Mark sections as relaxable if they contain | |
5686 | ASM_EXPAND relocations that can be optimized. Adjust r_reloc_init | |
5687 | call. Increment relax_info src_count field only for appropriate | |
5688 | relocation types. Remove is_literal_section check. | |
5689 | (collect_source_relocs): Use bfd_get_section_limit. Adjust calls to | |
5690 | r_reloc_init and find_associated_l32r_irel. Check | |
5691 | is_relaxable_asm_section flag. Handle L32R instructions with absolute | |
5692 | literals. Pass is_abs_literal flag to init_source_reloc. | |
5693 | (is_resolvable_asm_expansion): Use bfd_get_section_limit. Check for | |
5694 | CONST16 instructions. Adjust calls to r_reloc_init and | |
fda3ecf2 | 5695 | pcrel_reloc_fits. Handle weak symbols conservatively. |
43cd72b9 BW |
5696 | (find_associated_l32r_irel): Add bfd parameter and pass it to |
5697 | is_l32r_relocation. | |
5698 | (compute_text_actions, compute_ebb_proposed_actions, | |
5699 | compute_ebb_actions, check_section_ebb_pcrels_fit, | |
5700 | check_section_ebb_reduces, text_action_add_proposed, | |
5701 | compute_fill_extra_space): New. | |
5702 | (remove_literals): Replace with ... | |
5703 | (compute_removed_literals): ... this function. Call | |
5704 | init_section_cache. Use bfd_get_section_limit. Sort internal_relocs. | |
5705 | Call xtensa_read_table_entries to get the property table. Skip | |
5706 | relocations other than R_XTENSA_32 and R_XTENSA_PLT. Use new | |
5707 | is_removable_literal, remove_dead_literal, and | |
fda3ecf2 | 5708 | identify_literal_placement functions. |
43cd72b9 BW |
5709 | (get_irel_at_offset): Rewrite to use bsearch on sorted relocations |
5710 | instead of linear search. | |
5711 | (is_removable_literal, remove_dead_literal, | |
5712 | identify_literal_placement): New. | |
5713 | (relocations_reach): Update check for literal not referenced by any | |
5714 | PC-relative relocations. Adjust call to pcrel_reloc_fits. | |
5715 | (coalesce_shared_literal, move_shared_literal): New. | |
5716 | (relax_section): Use bfd_get_section_limit. Call | |
5717 | translate_section_fixes. Update calls to r_reloc_init and | |
5718 | offset_with_removed_text. Check new is_relaxable_asm_section flag. | |
5719 | Add call to pin_internal_relocs. Add special handling for | |
5720 | R_XTENSA_ASM_SIMPLIFY and R_XTENSA_DIFF* relocs. Use virtual_offset | |
5721 | info to calculate new addend_displacement variable. Replace code for | |
5722 | deleting literals with more general code to perform the actions | |
5723 | determined by the action_list for the section. | |
5724 | (translate_section_fixes, translate_reloc_bfd_fix): New. | |
5725 | (translate_reloc): Check new is_relaxable_asm_section flag. Call | |
5726 | find_removed_literal only if is_operand_relocation. Update call to | |
5727 | offset_with_removed_text. Use new target_offset and removed_bytes | |
5728 | variables. | |
5729 | (move_literal): New. | |
5730 | (relax_property_section): Use bfd_get_section_limit. Set new | |
5731 | is_full_prop_section flag and handle new property tables. Update calls | |
5732 | to r_reloc_init and offset_with_removed_text. Check | |
5733 | is_relaxable_asm_section flag. Handle expansion of zero-sized | |
5734 | unreachable entries, with use of offset_with_removed_text_before_fill. | |
5735 | For relocatable links, combine entries only for literal tables. | |
5736 | (relax_section_symbols): Check is_relaxable_asm_section flag. Update | |
5737 | calls to offset_with_removed_text. Translate st_size field for | |
5738 | function symbols. | |
5739 | (do_fix_for_relocatable_link): Change to return bfd_boolean to indicate | |
5740 | failure. Add contents parameter. Update call to get_bfd_fix. Update | |
5741 | call to r_reloc_init. Call _bfd_error_handler and return FALSE for | |
5742 | R_XTENSA_ASM_EXPAND relocs. | |
5743 | (do_fix_for_final_link): Add input_bfd and contents parameters. Update | |
5744 | call to get_bfd_fix. Include offset from contents for partial_inplace | |
5745 | relocations. | |
5746 | (is_reloc_sym_weak): New. | |
5747 | (pcrel_reloc_fits): Use new xtensa-isa.h functions. | |
5748 | (prop_sec_len): New. | |
5749 | (xtensa_is_property_section): Handle new property sections. | |
5750 | (is_literal_section): Delete. | |
5751 | (internal_reloc_compare): When r_offset matches, compare r_info and | |
5752 | r_addend to make sorting predictable. | |
5753 | (internal_reloc_matches): New. | |
5754 | (xtensa_get_property_section_name): Handle new property sections. | |
5755 | (xtensa_get_property_predef_flags): New. | |
5756 | (xtensa_callback_required_dependence): Use bfd_get_section_limit. | |
5757 | Update calls to xtensa_isa_init, is_l32r_relocation, and r_reloc_init. | |
5758 | * xtensa-isa.c (xtensa_default_isa): Moved to elf32-xtensa.c. | |
5759 | (xtisa_errno, xtisa_error_msg): New variables. | |
5760 | (xtensa_isa_errno, xtensa_isa_error_msg): New. | |
5761 | (xtensa_insnbuf_alloc): Add error handling. | |
5762 | (xtensa_insnbuf_to_chars): Add num_chars parameter. Update to | |
5763 | use xtensa_format_decode. Add error handling. | |
5764 | (xtensa_insnbuf_from_chars): Add num_chars parameter. Decode the | |
5765 | instruction length to find the number of bytes to copy. | |
5766 | (xtensa_isa_init): Add error handling. Replace calls to | |
5767 | xtensa_load_isa and xtensa_extend_isa with code to initialize lookup | |
5768 | tables in the xtensa_modules structure. | |
5769 | (xtensa_check_isa_config, xtensa_add_isa, xtensa_load_isa, | |
5770 | xtensa_extend_isa): Delete. | |
5771 | (xtensa_isa_free): Change to only free lookup tables. | |
5772 | (opname_lookup_compare): Replace with ... | |
5773 | (xtensa_isa_name_compare): ... this function. Use strcasecmp. | |
5774 | (xtensa_insn_maxlength): Rename to ... | |
5775 | (xtensa_isa_maxlength): ... this. | |
5776 | (xtensa_insn_length): Delete. | |
5777 | (xtensa_insn_length_from_first_byte): Replace with ... | |
5778 | (xtensa_isa_length_from_chars): ... this function. | |
5779 | (xtensa_num_opcodes): Rename to ... | |
5780 | (xtensa_isa_num_opcodes): ... this. | |
5781 | (xtensa_isa_num_pipe_stages, xtensa_isa_num_formats, | |
5782 | xtensa_isa_num_regfiles, xtensa_isa_num_stages, | |
5783 | xtensa_isa_num_sysregs, xtensa_isa_num_interfaces, | |
5784 | xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup, | |
5785 | xtensa_format_decode, xtensa_format_encode, xtensa_format_length, | |
5786 | xtensa_format_num_slots, xtensa_format_slot_nop_opcode, | |
5787 | xtensa_format_get_slot, xtensa_format_set_slot): New functions. | |
5788 | (xtensa_opcode_lookup): Add error handling. | |
5789 | (xtensa_decode_insn): Replace with ... | |
5790 | (xtensa_opcode_decode): ... this function, with new format and | |
5791 | slot parameters. Add error handling. | |
5792 | (xtensa_encode_insn): Replace with ... | |
5793 | (xtensa_opcode_encode): ... this function, which does the encoding via | |
5794 | one of the entries in the "encode_fns" array. Add error handling. | |
5795 | (xtensa_opcode_name): Add error handling. | |
5796 | (xtensa_opcode_is_branch, xtensa_opcode_is_jump, xtensa_opcode_is_loop, | |
5797 | xtensa_opcode_is_call): New. | |
5798 | (xtensa_num_operands): Replace with ... | |
5799 | (xtensa_opcode_num_operands): ... this function. Add error handling. | |
5800 | (xtensa_opcode_num_stateOperands, | |
5801 | xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses, | |
5802 | xtensa_opcode_funcUnit_use, xtensa_operand_name, | |
5803 | xtensa_operand_is_visible): New. | |
5804 | (xtensa_get_operand, xtensa_operand_kind): Delete. | |
5805 | (xtensa_operand_inout): Add error handling and special-case for | |
5806 | "sout" operands. | |
5807 | (xtensa_operand_get_field, xtensa_operand_set_field): Rewritten to | |
5808 | operate on one slot of an instruction. Added error handling. | |
5809 | (xtensa_operand_encode): Handle default operands with no encoding | |
5810 | functions. Check for success by comparing against decoded value. | |
5811 | Add error handling. | |
5812 | (xtensa_operand_decode): Handle default operands. Return decoded value | |
5813 | through argument pointer. Add error handling. | |
5814 | (xtensa_operand_is_register, xtensa_operand_regfile, | |
5815 | xtensa_operand_num_regs, xtensa_operand_is_known_reg): New. | |
5816 | (xtensa_operand_isPCRelative): Rename to ... | |
5817 | (xtensa_operand_is_PCrelative): ... this. Add error handling. | |
5818 | (xtensa_operand_do_reloc, xtensa_operand_undo_reloc): Return value | |
5819 | through argument pointer. Add error handling. | |
5820 | (xtensa_stateOperand_state, xtensa_stateOperand_inout, | |
5821 | xtensa_interfaceOperand_interface, xtensa_regfile_lookup, | |
5822 | xtensa_regfile_lookup_shortname, xtensa_regfile_name, | |
5823 | xtensa_regfile_shortname, xtensa_regfile_view_parent, | |
5824 | xtensa_regfile_num_bits, xtensa_regfile_num_entries, | |
5825 | xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits, | |
5826 | xtensa_state_is_exported, xtensa_sysreg_lookup, | |
5827 | xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number, | |
5828 | xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name, | |
5829 | xtensa_interface_num_bits, xtensa_interface_inout, | |
5830 | xtensa_interface_has_side_effect, xtensa_funcUnit_lookup, | |
5831 | xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New. | |
5832 | * xtensa-modules.c: Rewrite to use new data structures. | |
5833 | * reloc.c (BFD_RELOC_XTENSA_DIFF8, BFD_RELOC_XTENSA_DIFF16, | |
5834 | BFD_RELOC_XTENSA_DIFF32, BFD_RELOC_XTENSA_SLOT0_OP, | |
5835 | BFD_RELOC_XTENSA_SLOT1_OP, BFD_RELOC_XTENSA_SLOT2_OP, | |
5836 | BFD_RELOC_XTENSA_SLOT3_OP, BFD_RELOC_XTENSA_SLOT4_OP, | |
5837 | BFD_RELOC_XTENSA_SLOT5_OP, BFD_RELOC_XTENSA_SLOT6_OP, | |
5838 | BFD_RELOC_XTENSA_SLOT7_OP, BFD_RELOC_XTENSA_SLOT8_OP, | |
5839 | BFD_RELOC_XTENSA_SLOT9_OP, BFD_RELOC_XTENSA_SLOT10_OP, | |
5840 | BFD_RELOC_XTENSA_SLOT11_OP, BFD_RELOC_XTENSA_SLOT12_OP, | |
5841 | BFD_RELOC_XTENSA_SLOT13_OP, BFD_RELOC_XTENSA_SLOT14_OP, | |
5842 | BFD_RELOC_XTENSA_SLOT0_ALT, BFD_RELOC_XTENSA_SLOT1_ALT, | |
5843 | BFD_RELOC_XTENSA_SLOT2_ALT, BFD_RELOC_XTENSA_SLOT3_ALT, | |
5844 | BFD_RELOC_XTENSA_SLOT4_ALT, BFD_RELOC_XTENSA_SLOT5_ALT, | |
5845 | BFD_RELOC_XTENSA_SLOT6_ALT, BFD_RELOC_XTENSA_SLOT7_ALT, | |
5846 | BFD_RELOC_XTENSA_SLOT8_ALT, BFD_RELOC_XTENSA_SLOT9_ALT, | |
5847 | BFD_RELOC_XTENSA_SLOT10_ALT, BFD_RELOC_XTENSA_SLOT11_ALT, | |
5848 | BFD_RELOC_XTENSA_SLOT12_ALT, BFD_RELOC_XTENSA_SLOT13_ALT, | |
5849 | BFD_RELOC_XTENSA_SLOT14_ALT): Add new relocations. | |
5850 | * Makefile.am (xtensa-isa.lo, xtensa-modules.lo): Update dependencies. | |
5851 | * Makefile.in: Regenerate. | |
5852 | * bfd-in2.h: Likewise. | |
5853 | * libbfd.h: Likewise. | |
5854 | ||
99022dfb RS |
5855 | 2004-10-07 Richard Sandiford <[email protected]> |
5856 | ||
5857 | * elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs | |
5858 | against the absolute section. | |
5859 | (mips_elf64_write_rela): Likewise. | |
5860 | ||
b67ae299 NC |
5861 | 2004-10-07 Jan Beulich <[email protected]> |
5862 | ||
5863 | * elf.c (elf_find_function): Don't generally check for matching | |
5864 | section, just for non-file symbols. Remove redunant comparison | |
5865 | for the latter. | |
5866 | * elf32-arm.h (arm_elf_find_function): Likewise. | |
5867 | ||
8fdd7217 NC |
5868 | 2004-10-07 Jeff Baker <[email protected]> |
5869 | ||
5870 | * elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if | |
5871 | adding a DT_TEXTREL to a shared object and --warn-shared-textrel | |
5872 | was specified. | |
5873 | ||
073a2dc3 RM |
5874 | 2004-10-04 Roland McGrath <[email protected]> |
5875 | ||
5876 | * hash.c (bfd_hash_set_default_size): Use const for table. | |
5877 | Use size_t instead of int for variable compared to sizeof results. | |
5878 | ||
7785be14 AM |
5879 | 2004-10-05 Alan Modra <[email protected]> |
5880 | ||
5881 | PR 425 | |
5882 | * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs. | |
5883 | ||
40a18ebd NC |
5884 | 2004-10-01 Paul Brook <[email protected]> |
5885 | ||
5886 | * elf32-arm.h (elf32_arm_fake_sections, | |
5887 | is_arm_elf_unwind_section_name, elf32_arm_section_from_shdr): New | |
5888 | functions. | |
5889 | (elf_backend_fake_sections, elf_backend_section_from_shdr): Define. | |
5890 | ||
8935b81f AM |
5891 | 2004-10-01 Alan Modra <[email protected]> |
5892 | ||
5893 | * elf-bfd.h (struct eh_cie_fde): Add need_relative and | |
5894 | need_lsda_relative. | |
5895 | * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set | |
5896 | need_relative or need_lsda_relative if we are processing an | |
5897 | offset for a reloc on a FDE initial loc or LSDA field | |
5898 | respectively. | |
5899 | (_bfd_elf_write_section_eh_frame): Test need_relative and | |
5900 | need_lsda_relative in place of corresponding make_* field | |
5901 | when deciding to use pc-relative encodings. | |
5902 | ||
eeac373a PB |
5903 | 2004-09-30 Paul Brook <[email protected]> |
5904 | ||
5905 | * elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs" | |
5906 | target2 relocation type. | |
5907 | ||
7479dfd4 L |
5908 | 2004-09-30 H.J. Lu <[email protected]> |
5909 | ||
5910 | PR 414 | |
5911 | * elflink.c (_bfd_elf_merge_symbol): Check TLS symbol. | |
5912 | ||
0dd132b6 NC |
5913 | 2004-09-30 Paul Brook <[email protected]> |
5914 | ||
5915 | * reloc.c: Add BFD_RELOC_ARM_SMI. | |
5916 | * bfd-in2.h: Regenerate. | |
5917 | * libbfd.h: Ditto. | |
5918 | ||
1ba54ee0 AM |
5919 | 2004-09-24 Alan Modra <[email protected]> |
5920 | ||
5921 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section | |
5922 | vma and output offset to address. | |
5923 | * simple.c (simple_save_output_info): Only set output section | |
5924 | and offset for debug sections, or those not already set up by | |
5925 | the linker. | |
5926 | (bfd_simple_get_relocated_section_contents): Update comment. | |
5927 | ||
5efb6261 AM |
5928 | 2004-09-24 Alan Modra <[email protected]> |
5929 | ||
5930 | * elf.c (IS_LOADED): Delete. | |
5931 | (assign_file_positions_for_segments): Just test SEC_LOAD instead. | |
5932 | Restore SEC_HAS_CONTENTS test to the one place it was used prior | |
5933 | to 2004-09-22. | |
5934 | ||
fca870e4 AM |
5935 | 2004-09-23 Alan Modra <[email protected]> |
5936 | ||
5937 | PR gas/396 | |
5938 | * elf32-sparc.c (elf32_sparc_final_write_processing): Handle | |
5939 | bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove | |
5940 | redundant assignment of EM_SPARC. | |
5941 | ||
c86696a3 BF |
5942 | 2004-09-22 Brian Ford <[email protected]> |
5943 | ||
5944 | * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte | |
5945 | alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3 | |
5946 | constants. | |
5947 | * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. | |
5948 | ||
73adb214 AM |
5949 | 2004-09-22 Alan Modra <[email protected]> |
5950 | ||
5951 | * elf32-ppc.c (ppc_elf_modify_segment_map): Delete. | |
5952 | (elf_backend_modify_segment_map): Don't define. | |
5953 | ||
b301b248 AM |
5954 | 2004-09-22 Alan Modra <[email protected]> |
5955 | ||
5956 | * elf.c (IS_LOADED): Define. | |
5957 | (assign_file_positions_for_segments): Don't round up file offset of | |
5958 | PT_LOAD segments containing no SEC_LOAD sections, instead round down. | |
5959 | Delete code handling link script adjustment of lma. Do the adjust | |
5960 | in later code handling similar ajustments. Remove dead code error | |
5961 | check. Warn if section lma would require a negative offset | |
5962 | adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz. | |
5963 | Use p_vaddr + p_memsz inside section loop in place of voff. Don't | |
5964 | update voff in section loop. Change voff in segment loop to be an | |
5965 | adjustment on top of "off". Set sec->filepos and update "off" later. | |
5966 | Test for loadable sections consistently using IS_LOADED. Similarly, | |
073a2dc3 | 5967 | test for alloc-only sections other than .tbss consistently. |
b301b248 AM |
5968 | Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME. |
5969 | Tidy PT_NOTE handling. Use %B and %A in error messages. | |
5970 | (assign_file_positions_except_relocs): Use %B in error message. | |
5971 | ||
3f85e526 L |
5972 | 2004-09-17 H.J. Lu <[email protected]> |
5973 | ||
5974 | * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9. | |
5975 | (CONFIG_STATUS_DEPENDENCIES): New. | |
5976 | (Makefile): Removed. | |
5977 | (config.status): Likewise. | |
5978 | * Makefile.in: Regenerated. | |
5979 | ||
eb043451 PB |
5980 | 2004-09-17 Paul Brook <[email protected]> |
5981 | ||
5982 | * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype. | |
5983 | (bfd_elf32_arm_process_before_allocation): Update prototype. | |
5984 | * bfd-in2.h: Regenerate. | |
5985 | * bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc. | |
5986 | (elf32_arm_link_hash_table_create): Set it. | |
5987 | (bfd_elf32_arm_process_before_allocation): Remove target1_is_rel. | |
5988 | (bfd_elf32_arm_set_target_relocs): New function. | |
5989 | (arm_real_reloc_type): New function. | |
5990 | (elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and | |
5991 | R_ARM_GOT_PREL. Remove R_ARM_TARGET1. | |
5992 | (elf32_arm_gc_sweep_hook): Ditto. | |
5993 | (elf32_arm_check_relocs): Ditto. | |
5994 | (elf32_arm_relocate_section): Handle R_ARM_GOT_PREL. | |
5995 | * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and | |
5996 | R_ARM_GOT_TARGET2. | |
5997 | (elf32_arm_got_prel): New variable. | |
5998 | (elf32_arm_howto_from_type): New function. | |
5999 | (elf32_arm_info_to_howto): Use it. | |
6000 | (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and | |
6001 | BFD_RELOC_ARM_TARGET2. | |
6002 | * libbfd.h: Regenerate. | |
6003 | * reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31. | |
6004 | ||
f6e332e6 AM |
6005 | 2004-09-17 Alan Modra <[email protected]> |
6006 | ||
6007 | * ecoff.c: Update u.undef.next refs. | |
6008 | * elf64-ppc.c: Likewise. | |
6009 | * elflink.c: Likewise. | |
6010 | * linker.c: Likewise. | |
6011 | * xcofflink.c: Likewise. | |
6012 | ||
6013 | * elf-bfd.h (struct elf_link_hash_entry): Rearrange. Add FIXME to | |
6014 | dynamic_def. Combine weakdef and elf_hash_value. Move vtable | |
6015 | fields to indirect struct. | |
6016 | * elf-m10300.c: Update u.weakdef refs. | |
6017 | * elf32-arm.h: Likewise. | |
6018 | * elf32-cris.c: Likewise. | |
6019 | * elf32-frv.c: Likewise. | |
6020 | * elf32-hppa.c: Likewise. | |
6021 | * elf32-i370.c: Likewise. | |
6022 | * elf32-i386.c: Likewise. | |
6023 | * elf32-m32r.c: Likewise. | |
6024 | * elf32-m68k.c: Likewise. | |
6025 | * elf32-ppc.c: Likewise. | |
6026 | * elf32-s390.c: Likewise. | |
6027 | * elf32-sh.c: Likewise. | |
6028 | * elf32-sparc.c: Likewise. | |
6029 | * elf32-vax.c: Likewise. | |
6030 | * elf32-xtensa.c: Likewise. | |
6031 | * elf64-alpha.c: Likewise. | |
6032 | * elf64-hppa.c: Likewise. | |
6033 | * elf64-ppc.c: Likewise. | |
6034 | * elf64-s390.c: Likewise. | |
6035 | * elf64-sh64.c: Likewise. | |
6036 | * elf64-sparc.c: Likewise. | |
6037 | * elf64-x86-64.c: Likewise. | |
6038 | * elfxx-ia64.c: Likewise. | |
6039 | * elfxx-mips.c: Likewise. | |
6040 | * elflink.c: Likewise. Also u.elf_hash_value. | |
6041 | (elf_gc_propagate_vtable_entries_used): Update for h->vtable | |
6042 | indirection. | |
6043 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
6044 | (bfd_elf_gc_record_vtinherit): Alloc vtable. | |
6045 | (bfd_elf_gc_record_vtentry): Likewise. | |
6046 | * elf.c (_bfd_elf_link_hash_newfunc): Use memset. | |
6047 | ||
90c0a373 AM |
6048 | 2004-09-17 Alan Modra <[email protected]> |
6049 | ||
6050 | * Makefile.am: Run "make dep-am". | |
6051 | * Makefile.in: Regenerate. | |
6052 | * bfd-in2.h: Regenerate. | |
6053 | * po/SRC-POTFILES.in: Regenerate. | |
6054 | * po/bfd.pot: Regenerate. | |
6055 | ||
f5385ebf AM |
6056 | 2004-09-16 Alan Modra <[email protected]> |
6057 | ||
6058 | * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags | |
6059 | with bitfields. Make "type" and "other" bitfields too. | |
6060 | (ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR, | |
6061 | ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC, | |
6062 | ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED, | |
6063 | ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF, | |
6064 | ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK, | |
6065 | ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK, | |
6066 | ELF_LINK_POINTER_EQUALITY_NEEDED): Delete. | |
6067 | (ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update. | |
6068 | * elf-hppa.h: Update all uses of elf_link_hash_flags. | |
6069 | * elf-m10300.c: Likewise. | |
6070 | * elf.c: Likewise. | |
6071 | * elf32-arm.h: Likewise. | |
6072 | * elf32-cris.c: Likewise. | |
6073 | * elf32-frv.c: Likewise. | |
6074 | * elf32-hppa.c: Likewise. | |
6075 | * elf32-i370.c: Likewise. | |
6076 | * elf32-i386.c: Likewise. | |
6077 | * elf32-m32r.c: Likewise. | |
6078 | * elf32-m68k.c: Likewise. | |
6079 | * elf32-ppc.c: Likewise. | |
6080 | * elf32-s390.c: Likewise. | |
6081 | * elf32-sh-symbian.c: Likewise. | |
6082 | * elf32-sh.c: Likewise. | |
6083 | * elf32-sh64.c: Likewise. | |
6084 | * elf32-sparc.c: Likewise. | |
6085 | * elf32-vax.c: Likewise. | |
6086 | * elf32-xtensa.c: Likewise. | |
6087 | * elf64-alpha.c: Likewise. | |
6088 | * elf64-hppa.c: Likewise. | |
6089 | * elf64-ppc.c: Likewise. | |
6090 | * elf64-s390.c: Likewise. | |
6091 | * elf64-sh64.c: Likewise. | |
6092 | * elf64-sparc.c: Likewise. | |
6093 | * elf64-x86-64.c: Likewise. | |
6094 | * elflink.c: Likewise. | |
6095 | * elfxx-ia64.c: Likewise. | |
6096 | * elfxx-mips.c: Likewise. | |
6097 | * configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92. | |
6098 | * configure: Regenerate. | |
6099 | * aclocal.m4: Regenerate. | |
6100 | ||
b6ee372a AM |
6101 | 2004-09-16 Alan Modra <[email protected]> |
6102 | ||
6103 | * elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI | |
6104 | around uses of R_ARM_TARGET1. | |
6105 | (elf32_arm_check_relocs): Likewise. | |
6106 | ||
9c504268 PB |
6107 | 2004-09-13 Paul Brook <[email protected]> |
6108 | ||
6109 | * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update | |
6110 | prototype. | |
6111 | * bfd-in2.h: Regenerate. | |
6112 | * libbfd.h: Regenerate. | |
6113 | * elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel. | |
6114 | (elf32_arm_link_hash_table_create): Set target1_is_rel. | |
6115 | (bfd_elf32_arm_process_before_allocation): Ditto. | |
6116 | (elf32_arm_final_link_relocate): Handle R_ARM_TARGET1. | |
6117 | (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto. | |
6118 | * elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1. | |
6119 | * reloc.c: Ditto. | |
6120 | ||
94ea025a JB |
6121 | 2004-09-10 Joel Brobecker <[email protected]> |
6122 | ||
6123 | * hpux-core.c (thread_section_p): New function. | |
6124 | (hpux_core_core_file_p): Fix computation of offset in call | |
6125 | to bfd_seek. Create a ".reg" section from an arbitrary | |
6126 | ".reg/<id>" section if none was created after having read | |
6127 | all sections. | |
6128 | ||
24443139 AS |
6129 | 2004-09-11 Andreas Schwab <[email protected]> |
6130 | ||
6131 | * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*. | |
6132 | * aclocal.m4: Rebuild. | |
6133 | * configure: Rebuild. | |
6134 | ||
f4eae89c JB |
6135 | 2004-09-10 Joel Brobecker <[email protected]> |
6136 | ||
6137 | * section.c (bfd_sections_find_if): Fix parameter name in | |
6138 | comment to match code. | |
6139 | ||
e0638f70 AM |
6140 | 2004-09-10 Alan Modra <[email protected]> |
6141 | ||
6142 | * elf.c (assign_file_positions_except_relocs): Assign relocs | |
6143 | stored in a bfd section. | |
6144 | ||
5e0f5ae3 HPN |
6145 | 2004-09-08 Hans-Peter Nilsson <[email protected]> |
6146 | ||
6147 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset | |
6148 | h->gotplt_refcount to 0, not -1. | |
6149 | ||
ada1953e HPN |
6150 | 2004-09-07 Hans-Peter Nilsson <[email protected]> |
6151 | ||
6152 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT, | |
6153 | case R_CRIS_32_GOTPLT>: For internal error message, handle NULL | |
6154 | symname. | |
6155 | (cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to | |
6156 | handle symbol visibility here. | |
6157 | ||
ee75fd95 AM |
6158 | 2004-09-07 Alan Modra <[email protected]> |
6159 | ||
6160 | * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals. | |
6161 | (is_ppc64_elf_target): Rename from is_ppc64_target. Update all | |
6162 | callers. | |
6163 | (ppc_stub_name): Remove trailing "+0" on stub name. | |
6164 | (create_linkage_sections): Create relocations for | |
6165 | branch lookup table when --emit-relocs as well as when --shared. | |
6166 | (ppc_build_one_stub): Emit relocs for long branch stubs. Adjust | |
6167 | relbrlt test. For --emit-stub-syms, always output a sym even when | |
6168 | one already exists on a plt call stub. Put stub type in the stub | |
6169 | symbol name. | |
6170 | (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt | |
6171 | test. | |
6172 | (ppc64_elf_size_stubs): Count global sym stubs added. Zero | |
6173 | reloc_count in stub sections. Adjust relbrlt test. | |
6174 | (ppc64_elf_build_stubs): Adjust relbrlt test. Tweak stats output. | |
6175 | * elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo. | |
6176 | (elf_link_input_bfd): Ignore symbol index zero relocs when checking | |
6177 | for relocs against discarded symbols. Fix comments. | |
6178 | ||
229fcec5 MM |
6179 | 2004-09-06 Mark Mitchell <[email protected]> |
6180 | ||
6181 | * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it. | |
6182 | * elf.c (_bfd_elf_make_dynamic_segment): New function, split out | |
6183 | from ... | |
6184 | (map_sections_to_segments): ... here. Use it. Assign a file | |
6185 | position to the .dynamic section if it is not loadable, but part | |
6186 | of the PT_DYNAMIC segment. | |
6187 | * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file | |
6188 | offsets, not VMAs, for the BPABI. Do not fill in the header in | |
6189 | the .got.plt section for the BPABI. | |
6190 | * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a | |
6191 | PT_DYNAMIC segment. | |
6192 | (elf_backend_want_got_plt): Define to zero for Symbian OS. | |
073a2dc3 | 6193 | |
9a0789ec NC |
6194 | 2004-09-06 Nick Clifton <[email protected]> |
6195 | ||
6196 | * elflink.c (elf_link_add_object_symbols): Set the error code to | |
6197 | bfd_error_wrong_format when the input format does not match the | |
6198 | output format. | |
6199 | ||
7b53ace3 AM |
6200 | 2004-09-06 Alan Modra <[email protected]> |
6201 | ||
6202 | * elf64-ppc.c (is_ppc64_target): New function, extracted from.. | |
6203 | (ppc64_elf_check_directives): ..here. | |
6204 | (ppc64_elf_size_dynamic_sections): Use it here to check bfd type | |
6205 | before accessing ppc64_elf_tdata. | |
6206 | (ppc64_elf_finish_dynamic_sections): And here too. | |
6207 | ||
3e540f25 AM |
6208 | 2004-09-04 Alan Modra <[email protected]> |
6209 | ||
6210 | * bfd.c (_bfd_default_error_handler): Correct loop exit. | |
6211 | ||
e5a52504 MM |
6212 | 2004-09-03 Mark Mitchell <[email protected]> |
6213 | ||
6214 | * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors. | |
6215 | * configure.in (bfd_elf32_bigarm_symbian_vec): Add it. | |
6216 | (bfd_elf32_littlearm_symbian_vec): Likewise. | |
6217 | * configure: Regenerated. | |
6218 | * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags. | |
6219 | * elf32-arm.h (PLT_HEADER_SIZE): Do not define. | |
6220 | (PLT_ENTRY_SIZE): Likewise. | |
6221 | (bfd_vma_elf32_arm_symbian_plt_entry): New | |
6222 | variable. | |
6223 | (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size, | |
6224 | and symbian_p. | |
6225 | (create_got_section): Don't create sections when generating BPABI | |
6226 | objects. | |
6227 | (elf32_arm_create_dynamic_sections): Tidy. | |
6228 | (elf32_arm_link_hash_table_create): Set plt_header_size, | |
6229 | plt_entry_size, and symbian_p. | |
6230 | (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when | |
6231 | generating BPABI objects. | |
6232 | (allocate_dynrelocs): Use htab->plt_header_size, not | |
6233 | PLT_HEADER_SIZE. Do not add to .got.plt when | |
6234 | generating BPABI objects. | |
6235 | (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs. | |
6236 | * elfarm-nabi.c: Add SymbianOS target vectors. | |
6237 | * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags. | |
6238 | (_bfd_elf_link_create_dynamic_sections): Likewise. | |
6239 | * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro. | |
6240 | (elfNN_bed): Use it. | |
6241 | * targets.c (bfd_elf32_bigarm_symbian_vec): New variable. | |
6242 | (bfd_elf32_littlearm_symbian_vec): Likewise. | |
6243 | (_bfd_target_vector): Add them. | |
6244 | ||
6e3b6835 NC |
6245 | 2004-09-03 Nick Clifton <[email protected]> |
6246 | ||
6247 | PR 360 | |
6248 | * coffcode.h (handle_COMDAT): Replace abort with an warning | |
6249 | message and allow the scan to continue. | |
6250 | ||
595da8c5 AM |
6251 | 2004-09-02 Alan Modra <[email protected]> |
6252 | ||
6253 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed | |
6254 | in when reading relocs, not our sorted syms. Remove unnecessary | |
6255 | var. | |
6256 | ||
6723a9f4 EB |
6257 | 2004-08-31 Eric Botcazou <[email protected]> |
6258 | ||
6259 | * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss. | |
6260 | ||
5464f5a1 NN |
6261 | 2004-08-30 Nathanael Nerode <[email protected]> |
6262 | ||
6263 | * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM. | |
6264 | Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate; | |
6265 | replace uses of *_alias with *_noncanonical. | |
6266 | * aclocal.m4: Rebuild with aclocal 1.4p6. | |
6267 | * Makefile.in: Rebuild with automake 1.4p6. | |
6268 | * doc/Makefile.in: Rebuild with automake 1.4p6. | |
6269 | * configure.in: Autoupdate with autoupdate 2.59. | |
6270 | * config.in: Regenerate with autoheader 2.59. | |
6271 | * configure: Regnerate with autoconf 2.59. | |
6272 | ||
a7535cf3 AM |
6273 | 2004-08-28 Alan Modra <[email protected]> |
6274 | ||
6275 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input | |
6276 | symbol pointer arrays before modifying. | |
6277 | ||
c9727e01 AM |
6278 | 2004-08-28 Alan Modra <[email protected]> |
6279 | ||
b91e2ae2 | 6280 | * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables. |
c9727e01 AM |
6281 | * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust. |
6282 | * elf.c (_bfd_elf_get_synthetic_symtab): Adjust. | |
6283 | * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust. | |
b91e2ae2 AM |
6284 | * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust. |
6285 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols. | |
6286 | Use both symbol tables on non-relocatable objects. Use a common | |
6287 | error exit. Fix "mid" warning. | |
c9727e01 AM |
6288 | * libbfd.h: Regenerate. |
6289 | * bfd-in2.h: Regenerate. | |
6290 | ||
699733f6 AM |
6291 | 2004-08-28 Alan Modra <[email protected]> |
6292 | ||
6293 | * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular | |
6294 | object file. | |
6295 | (struct sfpr_def_parms): Save some space. | |
6296 | (sfpr_define): Here too. | |
6297 | ||
6298 | * elf64-ppc.c (compare_symbols): Put section syms first. | |
6299 | (sym_exists_at): New function. | |
6300 | (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry | |
6301 | points only for relocatable files. Use .opd section contents | |
6302 | otherwise. Generally clean up the code. | |
6303 | ||
deb0e272 AM |
6304 | 2004-08-27 Alan Modra <[email protected]> |
6305 | ||
6306 | * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12, | |
6307 | LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define. | |
6308 | (struct sfpr_def_parms): New. | |
6309 | (sfpr_define): New function. | |
6310 | (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions. | |
6311 | (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions. | |
6312 | (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions. | |
6313 | (savefpr1_tail, restfpr1_tail): New functions. | |
6314 | (savevr, savevr_tail, restvr, restvr_tail): New functions. | |
6315 | (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define. | |
6316 | (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing | |
6317 | code. Define all ABI mandated _save and _rest functions. | |
6318 | ||
85a84e7a PB |
6319 | 2004-08-26 Paul Brook <[email protected]> |
6320 | ||
deb0e272 | 6321 | * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects. |
85a84e7a | 6322 | |
688c58f3 AM |
6323 | 2004-08-26 Alan Modra <[email protected]> |
6324 | ||
6325 | * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with | |
6326 | TRUE or FALSE. | |
6327 | ||
3e95eabc AM |
6328 | 2004-08-26 Alan Modra <[email protected]> |
6329 | ||
6330 | * elf32-i386.c (elf_i386_relocate_section): Tweak last change so | |
6331 | that pcrel correction is applied for R_386_PC32. | |
6332 | ||
f855931b AM |
6333 | 2004-08-25 Alan Modra <[email protected]> |
6334 | ||
6335 | * elf32-i386.c (elf_i386_relocate_section): Zero section contents | |
6336 | for R_386_32 and R_386_PC32 relocs against symbols defined in | |
6337 | discarded sections. | |
6338 | ||
b18c562e NC |
6339 | 2004-08-25 Dmitry Diky <[email protected]> |
6340 | ||
6341 | * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL): | |
6342 | Add new relocations. | |
6343 | * bfd-in2.h: Regenerate. | |
f855931b | 6344 | * libbfd.h: Regenerate. |
b18c562e NC |
6345 | * elf32-msp430.c: Clean-up code. |
6346 | (elf_msp430_howto_table): Add new relocation entries. | |
6347 | (bfd_elf32_bfd_reloc_type_lookup): New relocation handlers. | |
6348 | (msp430_elf_relax_section): New function. | |
6349 | (msp430_elf_relax_delete_bytes): New function. | |
6350 | (msp430_elf_symbol_address_p): New function. | |
6351 | ||
af705ba8 NC |
6352 | 2004-08-24 Kazuhiro Inaoka <[email protected]> |
6353 | ||
6354 | * elf32-m32r.c (m32r_elf_relocate_section): Handle | |
6355 | R_M32R_SDA16_RELA in the same way as R_M32R_SDA16. | |
6356 | ||
ea5158d8 DJ |
6357 | 2004-08-20 Daniel Jacobowitz <[email protected]> |
6358 | ||
6359 | * elflink.c (_bfd_elf_section_already_linked): Handle | |
6360 | SEC_LINK_DUPLICATES_SAME_CONTENTS. | |
6361 | ||
49d934f1 MM |
6362 | 2004-08-19 Mark Mitchell <[email protected]> |
6363 | ||
6364 | * config.bfd (arm*-*-symbianelf*): New target. | |
6365 | (arm*-*-eabi*): Likewise. | |
6366 | ||
039b3fef AM |
6367 | 2004-08-19 Alan Modra <[email protected]> |
6368 | ||
6369 | * elf64-ppc.c (ppc_get_stub_entry): Change third param to a | |
6370 | "struct ppc_link_hash_entry *". | |
6371 | (ppc64_elf_relocate_section): Ditto for type of h. Introduce h_elf | |
6372 | to satisfy RELOC_FOR_GLOBAL_SYMBOL. | |
6373 | ||
3f764659 JJ |
6374 | 2004-08-19 Jakub Jelinek <[email protected]> |
6375 | ||
6376 | * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd | |
6377 | entries (where fd_aux overlaps next entry's fd_func). | |
6378 | Add non_overlapping argument, use it. | |
6379 | (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms, | |
6380 | ppc64_elf_size_stubs, ppc64_elf_relocate_section, | |
6381 | ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24 | |
6382 | as indexes into opd_sym_map/opd_adjust array. | |
6383 | * elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype. | |
6384 | ||
c09bdfe5 AM |
6385 | 2004-08-18 Alan Modra <[email protected]> |
6386 | ||
6387 | * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value | |
6388 | if we can look up their function descriptor in a regular file. | |
6389 | ||
271d0fc3 NC |
6390 | 2004-08-18 Nick Clifton <[email protected]> |
6391 | ||
6392 | PR 324 | |
6393 | * cofflink.c (coff_link_add_symbols): Check that the comdat | |
6394 | pointer in the coff_section_data structure has been initialised | |
6395 | before using it. | |
6396 | ||
a010d60f AM |
6397 | 2004-08-18 Alan Modra <[email protected]> |
6398 | ||
6399 | PR 338 | |
6400 | * elflink.c (bfd_elf_record_link_assignment): Add comment about | |
6401 | changing bfd_link_hash_undefined to bfd_link_hash_new. | |
6402 | ||
90e3cdf2 JJ |
6403 | 2004-08-17 Jakub Jelinek <[email protected]> |
6404 | ||
6405 | * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define | |
6406 | if not yet defined. | |
6407 | * elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define. | |
6408 | (synthetic_opd, synthetic_relocatable): New variables. | |
6409 | (compare_symbols, compare_relocs): New helper routines. | |
6410 | (ppc64_elf_get_synthetic_symtab): New function. | |
6411 | * bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument | |
6412 | to relsyms. | |
6413 | * bfd-in2.h: Regenerated. | |
6414 | * elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument | |
6415 | to relsyms. Return 0 if abfd is relocatable. | |
6416 | ||
7c2c8505 AM |
6417 | 2004-08-17 Alan Modra <[email protected]> |
6418 | ||
6419 | * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections. | |
6420 | ||
0367ecfb NC |
6421 | 2004-08-17 Nick Clifton <[email protected]> |
6422 | ||
6423 | * (is_arm_mapping_symbol_name): New function - return true | |
6424 | when a symbol name matches the requirements for an ARM mapping | |
6425 | symbol name. | |
6426 | (arm_elf_find_function): New function based on | |
6427 | elf_find_function in elf.c but skipping ARM mapping symbols | |
6428 | and including thumb function symbols. | |
6429 | (elf32_arm_find_nearest_line): Use arm_elf_find_function. | |
6430 | (elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name. | |
6431 | ||
2441e016 AM |
6432 | 2004-08-17 Alan Modra <[email protected]> |
6433 | ||
6434 | * elf64-ppc.c (ppc64_elf_branch_reloc): New function. | |
6435 | (ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc. | |
6436 | (ppc64_elf_brtaken_reloc): Here too. | |
6437 | ||
35b0ce59 AM |
6438 | 2004-08-17 Alan Modra <[email protected]> |
6439 | ||
6440 | * elf64-ppc.c (add_symbol_adjust): Correct mismatched function | |
6441 | symbol visibility. | |
6442 | (ppc64_elf_check_directives): Check that we have the right hash | |
6443 | table before proceeding. | |
6444 | ||
81688140 AM |
6445 | 2004-08-17 Alan Modra <[email protected]> |
6446 | ||
6447 | * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section". | |
6448 | (adjust_opd_syms): Attach opd syms for deleted entries to one of | |
6449 | the sections that will be discarded. | |
6450 | ||
327c1315 AM |
6451 | 2004-08-16 Alan Modra <[email protected]> |
6452 | ||
6453 | * elflink.c (elf_section_complain_discarded): Ignore .fixup. | |
6454 | ||
45fc9e4a AM |
6455 | 2004-08-16 Alan Modra <[email protected]> |
6456 | ||
6457 | * bfd.c (_bfd_default_error_handler): Account for doubled '%' in | |
6458 | free space available. | |
6459 | ||
9dadfa79 AM |
6460 | 2004-08-16 Alan Modra <[email protected]> |
6461 | ||
6462 | * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace | |
f89c4dec | 6463 | occurrences with bfd_byte * thoughout file. |
9dadfa79 AM |
6464 | |
6465 | * coff-rs6000.c (do_shared_object_padding): Warning fix. | |
6466 | (xcoff_write_armap_big): Likewise. | |
6467 | (xcoff_write_archive_contents_old): Likewise. | |
6468 | (xcoff_write_archive_contents_big): Likewise. | |
6469 | ||
6470 | * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration. | |
6471 | ||
57e8b36a NC |
6472 | 2004-08-13 Nick Clifton <[email protected]> |
6473 | ||
6474 | * elf32-arm.h: Convert to ISO C90. | |
6475 | ||
a005f94e AM |
6476 | 2004-08-13 Alan Modra <[email protected]> |
6477 | ||
6478 | PR 293 | |
6479 | * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to | |
6480 | zero the plt field. | |
6481 | ||
d003868e AM |
6482 | 2004-08-13 Alan Modra <[email protected]> |
6483 | ||
6484 | * bfd.c (_bfd_default_error_handler): Handle %A and %B. | |
6485 | (bfd_archive_filename, bfd_get_section_ident): Delete. | |
6486 | * ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call | |
6487 | bfd_archive_filename. | |
6488 | * elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler | |
6489 | to warn about symbols in discarded sections. Use _bfd_error_handler. | |
6490 | * aout-adobe.c (aout_adobe_callback): See below. | |
6491 | * aout-cris.c (swap_ext_reloc_in): .. | |
6492 | * coff-arm.c (find_thumb_glue, find_arm_glue, | |
6493 | coff_arm_relocate_section, bfd_arm_process_before_allocation, | |
6494 | coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags, | |
6495 | coff_arm_copy_private_bfd_data): .. | |
6496 | * coff-i860.c (i860_reloc_processing): .. | |
6497 | * coff-mcore.c (mcore_coff_unsupported_reloc, | |
6498 | coff_mcore_relocate_section): .. | |
6499 | * coff-ppc.c (coff_ppc_relocate_section): .. | |
6500 | * coff-rs6000.c (xcoff_create_csect_from_smclas | |
6501 | * coff-sh.c (sh_relax_section, sh_relax_delete_bytes, | |
6502 | sh_swap_insns, sh_relocate_section): .. | |
6503 | * coff-tic54x.c (tic54x_reloc_processing): .. | |
6504 | * coff-tic80.c (coff_tic80_relocate_section): .. | |
6505 | * coff64-rs6000.c (xcoff64_create_csect_from_smclas): .. | |
6506 | * coffcode.h (styp_to_sec_flags, coff_slurp_line_table, | |
6507 | coff_slurp_symbol_table, coff_classify_symbol, | |
6508 | coff_slurp_reloc_table): .. | |
6509 | * coffgen.c (_bfd_coff_read_string_table): .. | |
6510 | * cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd, | |
6511 | _bfd_coff_generic_relocate_section): .. | |
6512 | * cpu-arm.c (bfd_arm_merge_machines): .. | |
6513 | * cpu-sh.c (sh_merge_bfd_arch): .. | |
6514 | * elf-hppa.h (elf_hppa_relocate_section): .. | |
6515 | * elf.c (bfd_elf_string_from_elf_section, setup_group, | |
6516 | _bfd_elf_setup_group_pointers, bfd_section_from_shdr, | |
6517 | assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol, | |
6518 | copy_private_bfd_data, _bfd_elf_validate_reloc): .. | |
6519 | * elf32-arm.h (find_thumb_glue, find_arm_glue, | |
6520 | bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub, | |
6521 | elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate, | |
6522 | elf32_arm_relocate_section, elf32_arm_set_private_flags, | |
6523 | elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): .. | |
6524 | * elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs, | |
6525 | cris_elf_merge_private_bfd_data | |
6526 | * elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): .. | |
6527 | * elf32-gen.c (elf32_generic_link_add_symbols): .. | |
6528 | * elf32-hppa.c (hppa_add_stub, hppa_build_one_stub, | |
6529 | elf32_hppa_check_relocs, get_local_syms, final_link_relocate, | |
6530 | elf32_hppa_relocate_section): .. | |
6531 | * elf32-i370.c (i370_elf_merge_private_bfd_data, | |
6532 | i370_elf_check_relocs, i370_elf_relocate_section): .. | |
6533 | * elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs, | |
6534 | elf_i386_relocate_section): .. | |
6535 | * elf32-m32r.c (m32r_elf_relocate_section, | |
6536 | m32r_elf_merge_private_bfd_data): .. | |
6537 | * elf32-m68hc1x.c (m68hc12_add_stub, | |
6538 | _bfd_m68hc11_elf_merge_private_bfd_data): .. | |
6539 | * elf32-m68k.c (elf_m68k_relocate_section): .. | |
6540 | * elf32-mcore.c (mcore_elf_unsupported_reloc, | |
6541 | mcore_elf_relocate_section): .. | |
6542 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc, | |
6543 | ppc_elf_check_relocs, ppc_elf_relocate_section, | |
6544 | ppc_elf_begin_write_processing): .. | |
6545 | * elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn, | |
6546 | elf_s390_relocate_section): .. | |
6547 | * elf32-sh-symbian.c (sh_symbian_import_as, | |
6548 | sh_symbian_process_embedded_commands, | |
6549 | sh_symbian_relocate_section): .. | |
6550 | * elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes, | |
6551 | sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs, | |
6552 | sh_elf_merge_private_data): .. | |
6553 | * elf32-sparc.c (elf32_sparc_check_relocs, | |
6554 | elf32_sparc_relocate_section, | |
6555 | elf32_sparc_merge_private_bfd_data): .. | |
6556 | * elf32-v850.c (v850_elf_check_relocs, | |
6557 | v850_elf_merge_private_bfd_data): .. | |
6558 | * elf32-xtensa.c (elf_xtensa_check_relocs, | |
6559 | elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): .. | |
6560 | * elf64-alpha.c (elf64_alpha_relax_with_lituse, | |
6561 | elf64_alpha_relax_got_load, elf64_alpha_size_got_sections, | |
6562 | elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): .. | |
6563 | * elf64-gen.c (elf64_generic_link_add_symbols): .. | |
6564 | * elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub, | |
6565 | ppc64_elf_check_relocs, ppc64_elf_edit_opd, | |
6566 | ppc64_elf_relocate_section): .. | |
6567 | * elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn, | |
6568 | elf_s390_relocate_section): .. | |
6569 | * elf64-sh64.c (sh_elf64_relocate_section): .. | |
6570 | * elf64-sparc.c (sparc64_elf_check_relocs, | |
6571 | sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section, | |
6572 | sparc64_elf_merge_private_bfd_data): .. | |
6573 | * elf64-x86-64.c (elf64_x86_64_check_relocs, | |
6574 | elf64_x86_64_relocate_section): .. | |
6575 | * elflink.c (_bfd_elf_add_default_symbol, | |
6576 | _bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section, | |
6577 | _bfd_elf_link_output_relocs, elf_link_add_object_symbols, | |
6578 | bfd_elf_size_dynamic_sections, elf_link_output_extsym, | |
6579 | elf_get_linked_section_vma, elf_fixup_link_order, | |
6580 | bfd_elf_final_link, bfd_elf_gc_record_vtinherit, | |
6581 | bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): .. | |
6582 | * elfxx-ia64.c (elfNN_ia64_relax_section, | |
6583 | elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): .. | |
6584 | * elfxx-mips.c (mips_elf_perform_relocation, | |
6585 | _bfd_mips_elf_check_relocs, | |
6586 | _bfd_mips_elf_merge_private_bfd_data): .. | |
6587 | * ieee.c (ieee_slurp_external_symbols): .. | |
6588 | * ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): .. | |
6589 | * libbfd.c (_bfd_generic_verify_endian_match): .. | |
6590 | * linker.c (_bfd_generic_link_add_one_symbol, | |
6591 | _bfd_generic_section_already_linked): .. | |
6592 | * pdp11.c (translate_to_native_sym_flags): .. | |
6593 | * pe-mips.c (coff_pe_mips_relocate_section): .. | |
6594 | * peicode.h (pe_ILF_build_a_bfd): .. | |
6595 | * srec.c (srec_bad_byte): .. | |
6596 | * stabs.c (_bfd_link_section_stabs): .. | |
6597 | * xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): .. | |
6598 | Replace all uses of bfd_archive_filename and bfd_get_section_ident | |
6599 | with corresponding %B and %A in _bfd_error_handler format string. | |
6600 | Replace occurrences of "fprintf (stderr," with _bfd_error_handler | |
6601 | calls to use %A and %B. Fix "against symbol .. from section" and | |
6602 | similar error messages. Combine multiple _bfd_error_handler calls | |
6603 | where they were separated due to bfd_archive_filename deficiencies. | |
6604 | * bfd-in2.h: Regenerate. | |
6605 | ||
6ba842b6 L |
6606 | 2004-08-12 H.J. Lu <[email protected]> |
6607 | ||
6608 | * elf32-i386.c (elf_i386_relocate_section): Report unrecognized | |
6609 | relocation. | |
6610 | ||
99877b66 AM |
6611 | 2004-08-10 Alan Modra <[email protected]> |
6612 | ||
6613 | * elf64-ppc.c (struct ppc_link_hash_entry): Add was_undefined. | |
6614 | (struct ppc_link_hash_table): Remove no_multi_toc, multi_toc_needed. | |
6615 | Make emit_stub_syms, stub_error and has_14bit_branch bit-fields. | |
6616 | Add twiddled_syms. | |
6617 | (link_hash_newfunc): Init was_undefined. | |
6618 | (add_symbol_adjust): Don't set undefined dot symbols to defweak; | |
6619 | Use undefweak instead. | |
6620 | (ppc64_elf_check_directives): Fix undefs chain. | |
6621 | (ppc64_elf_next_toc_section): Remove no_multi_toc and multi_toc_needed | |
6622 | references. | |
6623 | (ppc64_elf_size_stubs): Adjust for add_symbol_adjust change. | |
6624 | (undo_symbol_twiddle, ppc64_elf_restore_symbols): New functions. | |
6625 | * elf64-ppc.h (ppc64_elf_restore_symbols): Declare. | |
6626 | ||
ba3bee0b JJ |
6627 | 2004-08-09 Jakub Jelinek <[email protected]> |
6628 | ||
6629 | * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic | |
6630 | error, test input_section flags rather than sec. | |
6631 | ||
8387904d AM |
6632 | 2004-08-09 Alan Modra <[email protected]> |
6633 | ||
6634 | * elf-bfd.h (struct elf_backend_data): Add | |
6635 | elf_backend_archive_symbol_lookup. | |
6636 | (_bfd_elf_archive_symbol_lookup): Declare. | |
6637 | * elflink.c (_bfd_elf_archive_symbol_lookup): New function.. | |
6638 | (elf_link_add_archive_symbols): ..extracted from here. Call the | |
6639 | backend version. | |
6640 | * elfxx-target.h (elf_backend_archive_symbol_lookup): Provide default. | |
6641 | (elfNN_bed): Init new field. | |
6642 | * elf64-ppc.c (elf_backend_check_directives): Define. | |
6643 | (elf_backend_archive_symbol_lookup): Define. | |
6644 | (struct ppc_link_hash_table): Add tls_get_add_fd. Make tls_get_add | |
6645 | a ppc_link_hash_entry pointer. | |
6646 | (get_fdh): Move. | |
6647 | (ppc64_elf_archive_symbol_lookup, opd_entry_value): New functions. | |
6648 | (add_symbol_adjust, ppc64_elf_check_directives): New functions. | |
6649 | (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, func_desc_adjust, | |
6650 | ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup, | |
6651 | ppc64_elf_tls_optimize, allocate_dynrelocs, ppc_type_of_stub, | |
6652 | ppc_build_one_stub, ppc64_elf_size_stubs, ppc64_elf_relocate_section, | |
6653 | ppc64_elf_finish_dynamic_symbol): Handle branch relocs to function | |
6654 | descriptor symbols. | |
6655 | ||
b25116a9 AM |
6656 | 2004-08-09 Alan Modra <[email protected]> |
6657 | ||
8843416a AM |
6658 | * elf64-ppc.c (struct ppc_link_hash_entry): Expand adjust_done comment. |
6659 | (ppc64_elf_add_symbol_hook): Test for NULL section. | |
6660 | (get_sym_h): Formatting. | |
6661 | (ppc64_elf_size_stubs): Include reloc addend in value stored as | |
6662 | stub target_value. | |
6663 | ||
b25116a9 AM |
6664 | * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of |
6665 | long branch stubs with code handling plt and r2off branch stubs. | |
6666 | ||
ccfa59ea AM |
6667 | 2004-08-09 Alan Modra <[email protected]> |
6668 | ||
6669 | * elf-bfd.h (_bfd_elf_gc_mark): Declare. | |
6670 | * elflink.c (elf_link_input_bfd): Formatting. | |
6671 | (_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust | |
6672 | all callers. | |
6673 | * elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry. | |
6674 | (link_hash_newfunc): Don't set it. | |
6675 | (ppc64_elf_copy_indirect_symbol): Nor copy it. | |
6676 | (ppc64_elf_mark_entry_syms): Delete. | |
6677 | (ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd | |
6678 | sections. Use get_opd_info. | |
6679 | * elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete. | |
6680 | ||
4025353c AM |
6681 | 2004-08-09 Alan Modra <[email protected]> |
6682 | ||
4f800a42 AM |
6683 | * elf64-ppc.c (adjust_opd_syms): Fix merge error. |
6684 | ||
06da1e8e AM |
6685 | * elf64-ppc.c (struct ppc_link_hash_table): Remove have_undefweak. |
6686 | (func_desc_adjust): Don't set have_undefweak. | |
6687 | (ppc64_elf_func_desc_adjust): Don't add an extr nop to sfpr. | |
6688 | (ppc64_elf_relocate_section): NOP out calls to undefweak functions. | |
6689 | ||
34814b9f AM |
6690 | * elf64-ppc.c (struct ppc_link_hash_entry): Make "oh" a |
6691 | "struct ppc_link_hash_entry *". Adjust all references. | |
6692 | (ppc64_elf_hide_symbol): Correct a comment. | |
6693 | ||
4025353c AM |
6694 | * elf64-ppc.c (get_opd_info): New function. |
6695 | (adjust_opd_syms): Use get_opd_info. Define removed symbols as zero. | |
6696 | (ppc64_elf_edit_opd): Use get_opd_info. Check that sym has a dot | |
6697 | before calling get_fdh. Test fdh rather than h before dereferencing | |
6698 | fdh. Mark removed symbols in opd_adjust. | |
6699 | (ppc64_elf_tls_optimize): Don't bother with opd adjustment here. | |
6700 | (ppc64_elf_relocate_section): Use get_opd_info, and handle removed | |
6701 | opd symbols. | |
6702 | (ppc64_elf_output_symbol_hook): Likewise. | |
6703 | ||
db6579d4 PB |
6704 | 2004-08-06 Paul Brook <[email protected]> |
6705 | ||
6706 | * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations. | |
6707 | (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32, | |
6708 | BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32. | |
6709 | * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32 | |
6710 | and BFD_RELOC_ARM_SBREL32. | |
6711 | * bfd-in2.h, bbfd.h: Regenerate. | |
6712 | ||
a4d0f181 TS |
6713 | 2004-08-01 Thiemo Seufer <[email protected]> |
6714 | ||
6715 | * elfxx-mips.c (mips_elf_calculate_relocation): Test only for | |
6716 | the dynamic link symbol actually in use. | |
6717 | ||
83774818 SC |
6718 | 2004-08-01 Stephane Carrez <[email protected]> |
6719 | ||
6720 | * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new | |
6721 | ||
a4d0f181 | 6722 | 2004-07-31 Joel Brobecker <[email protected]> |
00b4930b TS |
6723 | Thiemo Seufer <[email protected]> |
6724 | ||
6725 | * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle | |
6726 | SHN_MIPS_TEXT and SHN_MIPS_DATA. | |
6727 | ||
185d09ad L |
6728 | 2004-07-30 H.J. Lu <[email protected]> |
6729 | Nick Clifton <[email protected]> | |
6730 | ||
6731 | PR 290 | |
6732 | * bfd.c (_bfd_default_error_handler): Make it global. | |
6733 | ||
6734 | * elf-bfd.h (elf_backend_data): Add link_order_error_handler. | |
6735 | ||
6736 | * elf.c (assign_section_numbers): Cope gracefully with sections | |
6737 | which have SHF_LINK_ORDER set but no sh_link set up. | |
6738 | * elflink.c (elf_get_linked_section_vma): Likewise. | |
6739 | ||
6740 | * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set | |
6741 | it to NULL. | |
6742 | ||
6743 | * elfxx-target.h (elf_backend_link_order_error_handler): New. | |
6744 | Set it to _bfd_default_error_handler. | |
6745 | (elfNN_bed): Add elf_backend_link_order_error_handler. | |
6746 | ||
6747 | * libbfd-in.h (_bfd_default_error_handler): New. | |
6748 | ||
6749 | * libbfd.h: Regenerated. | |
6750 | ||
7946e94a JJ |
6751 | 2004-07-30 Jakub Jelinek <[email protected]> |
6752 | ||
6753 | * archures.c (bfd_mach_sparc_64bit_p): Define. | |
6754 | * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it. | |
6755 | * bfd-in2.h: Rebuilt. | |
6756 | ||
1d70c7fb AO |
6757 | 2004-07-29 Alexandre Oliva <[email protected]> |
6758 | ||
6759 | Introduce SH2a support. | |
6760 | 2004-02-18 Corinna Vinschen <[email protected]> | |
6761 | * archures.c (bfd_mach_sh2a_nofpu): New. | |
6762 | * bfd-in2.h: Rebuilt. | |
6763 | * cpu-sh.c (SH2A_NOFPU_NEXT): New. | |
6764 | (arch_info_struct): Add sh2a_nofpu. | |
6765 | * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu. | |
6766 | 2003-12-29 DJ Delorie <[email protected]> | |
6767 | * reloc.c: Add relocs for sh2a. | |
6768 | * bfd-in2.h: Regenerate. | |
6769 | * libbfd.hh: Regenerate. | |
6770 | 2003-12-01 Michael Snyder <[email protected]> | |
6771 | * archures.c (bfd_mach_sh2a): New. | |
6772 | * bfd-in2.h: Rebuilt. | |
6773 | * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums. | |
6774 | (SH2A_NEXT): New. | |
6775 | (arch_info_struct): Add sh2a. | |
6776 | * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a. | |
6777 | ||
404ed0cf DA |
6778 | 2004-07-28 Nick Clifton <[email protected]> |
6779 | John David Anglin <[email protected]> | |
6780 | ||
6781 | PR 273 | |
6782 | * som.c (setup_sections): Improve estimation of space sizes in | |
6783 | relocatable objects. | |
6784 | ||
225247f0 JT |
6785 | 2004-07-27 Jason Thorpe <[email protected]> |
6786 | * config.bfd (hppa*-*-netbsd*): Set targ_defvec to | |
6787 | bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec | |
6788 | to targ_selvecs. | |
6789 | * configure.in (bfd_elf32_hppa_nbsd_vec): Add case. | |
6790 | * configure: Regenerate. | |
6791 | * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd" | |
6792 | case that accepts OSABI=NetBSD and OSABI=SysV. | |
6793 | (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to | |
6794 | the base of .got or .data (if .got does not exist). | |
6795 | (elf32_hppa_post_process_headers): For elf32-hppa-netbsd, | |
6796 | set OSABI=NetBSD. | |
6797 | (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case. | |
6798 | (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case. | |
6799 | * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration. | |
6800 | (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec. | |
6801 | ||
3d7f7666 L |
6802 | 2004-07-27 H.J. Lu <[email protected]> |
6803 | ||
6804 | PR 161/251 | |
6805 | * elf-bfd.h (bfd_elf_section_data): Add sec_group. | |
6806 | (elf_sec_group): Defined. | |
6807 | (bfd_elf_match_symbols_in_sections): New prototype. | |
6808 | (_bfd_elf_setup_group_pointers): Likewise. | |
6809 | ||
6810 | * elf.c (bfd_elf_discard_group): Abort. | |
6811 | (bfd_elf_set_group_contents): Also include relocation sections. | |
6812 | Remove zero-fill for ld -r. | |
6813 | (_bfd_elf_setup_group_pointers): New function. | |
6814 | (elf_sort_elf_symbol): Likewise. | |
6815 | (elf_sym_name_compare): Likewise. | |
6816 | (bfd_elf_match_symbols_in_sections): Likewise. | |
6817 | ||
6818 | * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers. | |
6819 | ||
6820 | * elflink.c (match_group_member): New. | |
6821 | (elf_link_input_bfd): Check group member for discarded section. | |
6822 | (try_match_symbols_in_sections): New function. | |
6823 | (already_linked): Likewise. | |
6824 | (_bfd_elf_section_already_linked): Support mixing comdat group | |
6825 | and linkonce section. | |
6826 | ||
6827 | * libbfd-in.h (bfd_section_already_linked_table_traverse): New. | |
6828 | * linker.c (bfd_section_already_linked_table_traverse): New. | |
6829 | ||
6830 | * libbfd.h: Regenerated. | |
6831 | ||
670ec21d NC |
6832 | 2004-07-27 Tomer Levi <[email protected]> |
6833 | ||
6834 | * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16, | |
6835 | BFD_RELOC_CRX_SWITCH32. | |
6836 | * bfd-in2.h: Regenerate. | |
6cd7f07e | 6837 | * libbfd.h: Regenerate. |
670ec21d NC |
6838 | * elf32-crx.c: Support relocation/relaxation of |
6839 | BFD_RELOC_CRX_SWITCH* types. | |
6840 | ||
2c66dc6c AM |
6841 | 2004-07-27 Alan Modra <[email protected]> |
6842 | ||
6843 | * elf64-ppc.c: Correct "Linker stubs" comment. | |
6844 | ||
38ce5b11 L |
6845 | 2004-07-26 H.J. Lu <[email protected]> |
6846 | ||
6847 | * elf-bfd.h (bfd_elf_section_data): Add a pointer for the | |
6848 | linked-to section. | |
6849 | (elf_linked_to_section): New. | |
6850 | ||
6851 | * elf.c (assign_section_numbers): Set up sh_link for | |
6852 | SHF_LINK_ORDER. | |
6853 | ||
6854 | * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info | |
6855 | to sh_link for SHT_IA_64_UNWIND sections. | |
6856 | ||
65da361f L |
6857 | 2004-07-22 H.J. Lu <[email protected]> |
6858 | ||
6859 | * elflink.c (elf_fixup_link_order): Add _() to error message. | |
6860 | ||
08ccf96b L |
6861 | 2004-07-22 H.J. Lu <[email protected]> |
6862 | ||
6863 | * elflink.c (elf_fixup_link_order): Issue a warning and flag | |
6864 | an error if failed. | |
6865 | ||
082b7297 L |
6866 | 2004-07-21 H.J. Lu <[email protected]> |
6867 | ||
6868 | * aout-adobe.c (aout_32_section_already_linked): Defined. | |
6869 | * aout-target.h (MY_section_already_linked): Likewise. | |
6870 | * aout-tic30.c (MY_section_already_linked): Likewise. | |
6871 | * binary.c (binary_section_already_linked): Likewise. | |
6872 | * bout.c (b_out_section_already_linked): Likewise. | |
6873 | * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise. | |
6874 | * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise. | |
6875 | * coffcode.h (coff_section_already_linked): Likewise. | |
6876 | * i386msdos.c (msdos_section_already_linked): Likewise. | |
6877 | * i386os9k.c (os9k_section_already_linked): Likewise. | |
6878 | * ieee.c (ieee_section_already_linked): Likewise. | |
6879 | * ihex.c (ihex_section_already_linked): Likewise. | |
6880 | * mach-o.c (bfd_mach_o_section_already_linked): Likewise. | |
6881 | * mmo.c (mmo_section_already_linked): Likewise. | |
6882 | * nlm-target.h (nlm_section_already_linked): Likewise. | |
6883 | * oasys.c (oasys_section_already_linked): Likewise. | |
6884 | * pef.c (bfd_pef_section_already_linked): Likewise. | |
6885 | * ppcboot.c (ppcboot_section_already_linked): Likewise. | |
6886 | * som.c (som_bfd_discard_group): Likewise. | |
6887 | * srec.c (srec_section_already_linked): Likewise. | |
6888 | * tekhex.c (tekhex_section_already_linked): Likewise. | |
6889 | * versados.c (versados_section_already_linked): Likewise. | |
6890 | * vms.c (vms_section_already_linked): Likewise. | |
6891 | * coff-target.h (_bfd_xcoff_section_already_linked): Likewise. | |
6892 | * xsym.c (bfd_sym_section_already_linked): Likewise. | |
6893 | ||
6894 | * bfd-in.h (bfd_section_already_linked_table_init): New. | |
6895 | (bfd_section_already_linked_table_free): Likewise. | |
6896 | ||
6897 | * coff-rs6000.c (rs6000coff_vec): Add | |
6898 | _bfd_generic_section_already_linked. | |
6899 | (pmac_xcoff_vec): Likewise. | |
6900 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
6901 | (aix5coff64_vec): Likewise. | |
6902 | ||
6903 | * elf-bfd.h (_bfd_elf_section_already_linked): New prototype. | |
6904 | * elflink.c (_bfd_elf_section_already_linked): New function. | |
6905 | ||
6906 | * elfxx-target.h (bfd_elfNN_section_already_linked): Defined. | |
6907 | ||
6908 | * libbfd-in.h (_bfd_nolink_section_already_linked): Defined. | |
6909 | (_bfd_generic_section_already_linked): New. | |
6910 | (bfd_section_already_linked_hash_entry): Likewise. | |
6911 | (bfd_section_already_linked): Likewise. | |
6912 | (bfd_section_already_linked_table_lookup): Likewise. | |
6913 | (bfd_section_already_linked_table_insert): Likewise. | |
6914 | ||
6915 | * linker.c (bfd_section_already_linked): New. | |
6916 | (_bfd_section_already_linked_table): Likewise. | |
6917 | (bfd_section_already_linked_table_lookup): Likewise. | |
6918 | (bfd_section_already_linked_table_insert): Likewise. | |
6919 | (already_linked_newfunc): Likewise. | |
6920 | (bfd_section_already_linked_table_init): Likewise. | |
6921 | (bfd_section_already_linked_table_free): Likewise. | |
6922 | (_bfd_generic_section_already_linked): Likewise. | |
6923 | ||
6924 | * section.c (bfd_section): Remove comdat. | |
6925 | (bfd_comdat_info): Moved to ... | |
6926 | * bfd-in.h (coff_comdat_info): Here. | |
6927 | (bfd_coff_get_comdat_section): New. | |
6928 | * coffgen.c (bfd_coff_get_comdat_section): Likewise. | |
6929 | * libcoff-in.h (coff_section_tdata): Add comdat. | |
6930 | * coffcode.h (handle_COMDAT): Updated. | |
6931 | * cofflink.c (coff_link_add_symbols): Likewise. | |
6932 | * ecoff.c (bfd_debug_section): Likewise. | |
6933 | ||
6934 | * targets.c (bfd_target): Add _section_already_linked. | |
6935 | (BFD_JUMP_TABLE_LINK): Updated. | |
6936 | ||
6937 | * bfd-in2.h: Regenerated. | |
6938 | * libbfd.h: Likewise. | |
6939 | * libcoff.h: Likewise. | |
6940 | ||
0b52efa6 PB |
6941 | 2003-07-21 Paul Brook <[email protected]> |
6942 | ||
6943 | * elflink.c (elf_get_linked_section_vma, compare_link_order, | |
6944 | elf_fixup_link_order): New functions. | |
6945 | (bfd_elf_final_link): Call elf_fixup_link_order. | |
6946 | ||
7e2294f9 AO |
6947 | 2004-07-21 Alexandre Oliva <[email protected]> |
6948 | ||
6949 | * elf-bfd.h (ELF_COMMON_DEF_P): New. | |
6950 | * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle | |
6951 | common definitions. | |
6952 | * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of | |
6953 | _bfd_elf_symbol_refs_local_p. | |
6954 | * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common | |
6955 | symbols. | |
6956 | ||
e56f61be L |
6957 | 2004-07-19 H.J. Lu <[email protected]> |
6958 | ||
6959 | * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and | |
6960 | DYN_NO_NEEDED. | |
6961 | (bfd_elf_get_dyn_lib_class): New prototype. | |
6962 | * elf.c (bfd_elf_get_dyn_lib_class): New function. | |
6963 | ||
6964 | * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED, | |
6965 | DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED | |
6966 | entry is needed. Issue an error if a DT_NEEDED entry is needed | |
6967 | for a file marked DYN_NO_NEEDED. | |
6968 | (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit | |
6969 | for DT_NEEDED tags. | |
6970 | ||
6971 | * bfd-in2.h: Regenerated. | |
6972 | ||
27b56da8 DA |
6973 | 2004-07-14 John David Anglin <[email protected]> |
6974 | ||
6975 | * elflink.c (elf_section_complain_discarded): Don't complain in | |
6976 | .PARISC.unwind. | |
6977 | ||
bbb268c3 JW |
6978 | 2004-07-10 James E Wilson <[email protected]> |
6979 | ||
6980 | * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter. | |
6981 | (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise. | |
6982 | (elfNN_ia64_relax_section, elfNN_ia64_relocate_section, | |
6983 | elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections): | |
6984 | Fix callers. | |
6985 | (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change | |
6986 | bfd_put_64 to bfd_putl64. | |
6987 | (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise. | |
2c66dc6c | 6988 | |
e525914f L |
6989 | 2004-07-09 H.J. Lu <[email protected]> |
6990 | ||
6991 | PR 240 | |
6992 | * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in | |
6993 | .init/.fini sections when trying to relax it. | |
6994 | ||
b1a6d0b1 NC |
6995 | 2004-07-09 Jie Zhang <[email protected]> |
6996 | ||
6997 | * elf.c (assign_file_positions_for_segments): Make sure the | |
6998 | .dynamic section is the first section in the PT_DYNAMIC segment. | |
6999 | ||
1a320fbb NC |
7000 | 2004-07-09 Nick Clifton <[email protected]> |
7001 | ||
7002 | * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf. | |
7003 | * elf32-sh-symbian.c: Rename the sh_find_elf_flags and | |
7004 | sh_elf_get_flags_from_mach functions so that they do not conflict | |
7005 | when this target is built with other sh-elf targets. | |
7006 | * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus | |
7007 | suppression of this function. | |
7008 | (sh_elf_find_flags): Likewise. | |
7009 | ||
1fe1f39c NC |
7010 | 2004-07-07 Tomer Levi <[email protected]> |
7011 | ||
7012 | * Makefile.am (ALL_MACHINES): Add cpu-crx.lo. | |
7013 | (ALL_MACHINES_CFILES): Add cpu-crx.c. | |
7014 | (BFD32_BACKENDS): Add elf32-crx.lo. | |
7015 | (BFD32_BACKENDS_CFILES): Add elf32-crx.c. | |
7016 | (cpu-crx.lo): New target. | |
7017 | (elf32-crx.lo): New target. | |
7018 | * Makefile.in: Regenerate. | |
7019 | * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx. | |
7020 | (bfd_archures_list): Add bfd_crx_arch. | |
7021 | * bfd-in2.h: Regenerate. | |
7022 | * config.bfd: Handle crx-*-elf*, crx*. | |
7023 | * configure.in: Handle bfd_elf32_crx_vec. | |
7024 | * configure: Regenerate. | |
7025 | * cpu-crx.c: New file. | |
7026 | * elf32-crx.c: Likewise. | |
7027 | * libbfd.h: Regenerate. | |
7028 | * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8, | |
7029 | BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24, | |
7030 | BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22, | |
7031 | BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16, | |
7032 | BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16, | |
7033 | BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32 | |
7034 | * targets.c (bfd_elf32_crx_vec): Declare. | |
7035 | (bfd_target_vector): Add bfd_elf32_crx_vec. | |
7036 | ||
85fbca6a NC |
7037 | 2004-07-06 Nick Clifton <[email protected]> |
7038 | ||
7039 | * config.bfd: Add sh-symbian-elf target. | |
7040 | * configure.in: Add bfd_elf32_shl_symbian_vec. | |
7041 | * configure: Regenerate. | |
7042 | * elf-bfd.h (struct elf_backend_data): Add new field | |
7043 | 'check_directives'. | |
1fe1f39c | 7044 | * elflink.c (elf_link_add_object_symbols): Invoke the |
85fbca6a | 7045 | check_directives function, if defined. |
1fe1f39c | 7046 | * elfxx-target.h: Provide a default, NULL definition for |
85fbca6a | 7047 | check_directives. |
1fe1f39c NC |
7048 | * targets.c: Add bfd_elf32_shl_symbian_vec. |
7049 | * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary | |
85fbca6a | 7050 | definition. |
1fe1f39c | 7051 | (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo, |
85fbca6a | 7052 | * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise. |
1fe1f39c | 7053 | (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have |
85fbca6a | 7054 | not already been defined. |
1fe1f39c NC |
7055 | * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED. |
7056 | * sh-symbian.c: New file. Provide functions to support the | |
85fbca6a NC |
7057 | * sh-symbian-elf target. |
7058 | * Makefile.am: Add elf32-sh-symbian.c | |
7059 | * Makefile.in: Regenerate. | |
1fe1f39c | 7060 | |
871ec896 JR |
7061 | 2004-07-05 Andrew Stubbs <[email protected]> |
7062 | ||
1fe1f39c NC |
7063 | * elf32-sh.c: Include ../opcodes/sh-opc.h. |
7064 | * Makefile.am: Ran make dep-am. | |
7065 | * Makefile.in: Ran make dep-in. | |
871ec896 | 7066 | |
c87db184 CF |
7067 | 2004-07-03 Aaron W. LaFramboise <[email protected]> |
7068 | ||
7069 | * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak | |
7070 | externals properly. | |
7071 | ||
06f2f6af MS |
7072 | 2004-07-02 Martin Schwidefsky <[email protected]> |
7073 | ||
7074 | * config.bfd: Add want64 to configuration target s390-*-linux*. | |
7075 | ||
b602c853 L |
7076 | 2004-07-01 H.J. Lu <[email protected]> |
7077 | ||
7078 | * bfd.c (bfd_get_section_ident): New. | |
7079 | ||
7080 | * elflink.c (elf_link_read_relocs_from_section): Call | |
7081 | bfd_get_section_ident to identify the section when reporting | |
7082 | error. | |
7083 | (_bfd_elf_link_output_relocs): Likewise. | |
7084 | (elf_link_output_extsym): Likewise. | |
7085 | (elf_link_input_bfd): Likewise. | |
7086 | (bfd_elf_gc_record_vtinherit): Likewise. | |
7087 | ||
7088 | * bfd-in2.h: Regenerated. | |
7089 | ||
7a2a6943 NC |
7090 | 2004-07-01 Jie Zhang <[email protected]> |
7091 | Nick Clifton <[email protected]> | |
7092 | ||
7093 | PR 204 | |
7094 | * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number | |
7095 | of section symbols to mips_elf_sort_hash_table (). | |
7096 | ||
cdd3575c AM |
7097 | 2004-07-01 Alan Modra <[email protected]> |
7098 | ||
7099 | * elflink.c (elf_section_ignore_discarded_relocs): Revert last | |
7100 | change. Comment. | |
7101 | (elf_section_complain_discarded): New function. Handle | |
7102 | .gcc_except_table too. | |
7103 | (elf_link_input_bfd): Rewrite handling of relocs against symbols | |
7104 | in discarded sections. | |
7105 | * elf-bfd.h (elf_discarded_section): Protect macro arg. | |
7106 | ||
21a8f7fa JW |
7107 | 2004-06-30 James E Wilson <[email protected]> |
7108 | ||
7109 | * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize | |
7110 | to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true. | |
7111 | ||
2de26f35 L |
7112 | 2004-06-30 H.J. Lu <[email protected]> |
7113 | ||
7114 | PR 233 | |
7115 | * elflink.c (elf_link_input_bfd): Issue an error for non-debug | |
7116 | local references to discarded sections and report their | |
7117 | locations. | |
7118 | ||
72d7a15c AM |
7119 | 2004-06-30 Alan Modra <[email protected]> |
7120 | ||
7121 | * elflink.c (elf_section_ignore_discarded_relocs): Don't test | |
7122 | sec_info_type, test section name instead. | |
7123 | ||
e7f0a167 L |
7124 | 2004-06-29 H.J. Lu <[email protected]> |
7125 | ||
7126 | PR 240 | |
7127 | * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch | |
7128 | in .init/.fini sections. | |
7129 | ||
bff5f93a BW |
7130 | 2004-06-29 Bob Wilson <[email protected]> |
7131 | ||
7132 | * elf32-xtensa.c (elf_xtensa_relocate_section): Use | |
7133 | bfd_get_section_limit. | |
7134 | ||
b54d4b07 BW |
7135 | 2004-06-29 Bob Wilson <[email protected]> |
7136 | ||
7137 | * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the | |
7138 | output section size. | |
7139 | ||
e87a64e1 AM |
7140 | 2004-06-29 Alan Modra <[email protected]> |
7141 | ||
1a23a9e6 AM |
7142 | * elf64-mmix.c (mmix_set_relaxable_size): Save original size in |
7143 | rawsize. | |
7144 | (mmix_elf_perform_relocation): Adjust for above change. | |
7145 | (mmix_elf_relocate_section): Likewise. | |
7146 | (mmix_elf_relax_section): Likewise. Use output_section->rawsize. | |
7147 | (mmix_elf_get_section_contents): Delete. | |
7148 | (bfd_elf64_get_section_contents): Delete. | |
7149 | (mmix_elf_relocate_section): Zero stub area. | |
7150 | * linker.c (default_indirect_link_order): Alloc max of section size | |
7151 | and rawsize. | |
7152 | * simple.c (bfd_simple_get_relocated_section_contents): Likewise. | |
7153 | * section.c (bfd_malloc_and_get_section): Likewise. | |
7154 | (struct bfd_section): Update rawsize comment. | |
7155 | * bfd-in2.h: Regenerate. | |
7156 | ||
e87a64e1 AM |
7157 | * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize. |
7158 | ||
07515404 AM |
7159 | 2004-06-29 Alan Modra <[email protected]> |
7160 | ||
7161 | * bfd-in.h (bfd_get_section_limit): Define. | |
1fe1f39c | 7162 | * reloc.c (bfd_perform_relocation, bfd_install_relocation) |
07515404 AM |
7163 | (_bfd_final_link_relocate): Use bfd_get_section_limit. |
7164 | * aout-tic30.c (tic30_aout_final_link_relocate): Likewise. | |
7165 | * coff-arm.c (coff_arm_relocate_section): Likewise. | |
7166 | * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise. | |
7167 | * cpu-ns32k.c (do_ns32k_reloc): Likewise. | |
7168 | (bfd_ns32k_final_link_relocate): Likewise. | |
7169 | * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise. | |
7170 | * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise. | |
1fe1f39c | 7171 | * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc) |
07515404 | 7172 | (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise. |
1fe1f39c | 7173 | * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc) |
07515404 AM |
7174 | (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise. |
7175 | * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise. | |
7176 | * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise. | |
7177 | * elf32-or32.c (or32_elf_consth_reloc): Likewise. | |
7178 | * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise. | |
7179 | * elf32-s390.c (s390_elf_ldisp_reloc): Likewise. | |
7180 | * elf32-sh.c (sh_elf_reloc_loop): Likewise. | |
7181 | * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise. | |
7182 | (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise. | |
7183 | * elf32-v850.c (v850_elf_reloc): Likewise. | |
7184 | * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise. | |
7185 | * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise. | |
7186 | * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise. | |
7187 | * elf64-mips.c (mips_elf64_gprel32_reloc) | |
7188 | (mips16_gprel_reloc): Likewise. | |
7189 | * elf64-mmix.c (mmix_elf_reloc): Likewise. | |
7190 | * elf64-s390.c (s390_elf_ldisp_reloc): Likewise. | |
7191 | * elf64-sparc.c (init_insn_reloc): Likewise. | |
7192 | * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise. | |
1fe1f39c NC |
7193 | * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp) |
7194 | (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc) | |
07515404 AM |
7195 | (_bfd_mips_elf_generic_reloc): Likewise. |
7196 | * bfd-in2.h: Regenerate. | |
7197 | ||
3722b82f AM |
7198 | 2004-06-28 Alan Modra <[email protected]> |
7199 | ||
7200 | * bfd-in.h (struct stab_info): Move from stabs.c. | |
7201 | * stabs.c (struct stab_link_includes_table): Delete. | |
7202 | (stab_link_includes_lookup): Delete. | |
7203 | (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one | |
7204 | level of indirection from sinfo parm. | |
7205 | (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on | |
7206 | stabstr section. Adjust hash table accesses. | |
7207 | * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents | |
7208 | alloc. Adjust stab_info test. | |
7209 | * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info. | |
7210 | (_bfd_coff_final_link): Adjust stab_info test. | |
7211 | (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections. | |
7212 | * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info | |
7213 | in place. | |
7214 | * libcoff-in.h (struct coff_link_hash_table): Likewise. | |
7215 | * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info. | |
7216 | * elflink.c (bfd_elf_final_link): Don't attempt to link linker created | |
7217 | stabstr section. Adjust stab_info test. | |
7218 | * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs) | |
7219 | (_bfd_write_stab_strings): Adjust prototypes. | |
7220 | * libbfd.h: Regenerate. | |
7221 | * libcoff.h: Regenerate. | |
7222 | * bfd-in2.h: Regenerate. | |
7223 | ||
727e493d MK |
7224 | 2004-06-27 Mark Kettenis <[email protected]> |
7225 | ||
7226 | From Miod Vallat <[email protected]>: | |
7227 | * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k. | |
7228 | ||
146ccdbb AO |
7229 | 2004-06-26 Alexandre Oliva <[email protected]> |
7230 | ||
7231 | * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete. | |
7232 | (struct elf32_mn10300_link_hash_entry): Remove | |
7233 | pcrel_relocs_copied. | |
7234 | (mn10300_elf_check_relocs): Only reserve dynamic relocations for | |
7235 | R_MN10300_32. Don't adjust pcrel_relocs_copied. | |
7236 | (mn10300_elf_final_link_relocate): Fail for direct, pc-relative | |
7237 | and gotoff relocations if the symbol doesn't bind locally. Use | |
7238 | _bfd_elf_symbol_refs_local_p to test. Don't create dynamic | |
7239 | relocation for PCREL32. | |
7240 | (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p | |
7241 | to test whether a symbol binds locally. | |
7242 | (elf32_mn10300_link_hash_newfunc): Don't initialize | |
7243 | pcrel_relocs_copied. | |
7244 | (_bfd_mn10300_elf_discard_copies): Delete. | |
7245 | (_bfd_mn10300_elf_size_dynamic_sections): Don't call it. | |
7246 | ||
a5fd0812 MK |
7247 | 2004-06-26 Mark Kettenis <[email protected]> |
7248 | ||
7249 | * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*. | |
7250 | ||
22bfad37 JB |
7251 | 2004-06-25 Joel Brobecker <[email protected]> |
7252 | ||
7253 | * som.c (som_set_reloc_info): Correct small typo. | |
7254 | ||
097f809a NC |
7255 | 2004-06-25 Kazuhiro Inaoka <[email protected]> |
7256 | ||
7257 | * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF. | |
7258 | (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF. | |
7259 | (m32r_elf_gcsweep_hook): Likewise. | |
7260 | (m32r_elf_check_relocs): Likewise. | |
7261 | (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO, | |
7262 | R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO. | |
7263 | * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO, | |
7264 | BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO. | |
f9f2cf5d NC |
7265 | * bfd-in2.h: Regenerated. |
7266 | * libbfd.h: Regenerated. | |
097f809a | 7267 | |
6610a52d L |
7268 | 2004-06-24 H.J. Lu <[email protected]> |
7269 | ||
7270 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow | |
7271 | relocation symbol. | |
7272 | (elf64_x86_64_relocate_section): Issue an error for | |
7273 | R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations | |
7274 | against global symbols when building shared library. | |
7275 | ||
eea6121a AM |
7276 | 2004-06-24 Alan Modra <[email protected]> |
7277 | ||
7278 | * section.c (struct sec): Rename "_cooked_size" to "size". | |
7279 | Rename "_raw_size" to "rawsize". | |
7280 | (STD_SECTION): Adjust comments. | |
7281 | (bfd_set_section_size, bfd_get_section_contents): Use size. | |
7282 | (bfd_malloc_and_get_section): New function. | |
7283 | * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size. | |
7284 | * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early. | |
7285 | Correctly free reloc and contents memory. | |
7286 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME | |
7287 | and fake CIE now that we can shink section size to zero. | |
7288 | (_bfd_elf_write_section_eh_frame): Likewise.. | |
7289 | * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents. | |
7290 | * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use | |
7291 | _bfd_stab_section_offset. Use _bfd_elf_section_offset. | |
7292 | * stabs.c (_bfd_stab_section_offset_): Remove unused args and | |
7293 | unneeded indirection. | |
7294 | * elf.c (_bfd_elf_section_offset): .. and update call. | |
7295 | * libbfd-in.h (_bfd_stab_section_offset): Update prototype. | |
7296 | * libbfd.h: Regenerate. | |
7297 | * bfd-in2.h: Regenerate. | |
7298 | ||
7299 | Replace occurrences of "_raw_size" and "_cooked_size" in most places | |
7300 | with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE | |
7301 | sections. Use "rawsize", if non-zero, for bfd_get_section_contents | |
7302 | calls if the section might be a stabs, eh_frame, or SEC_MERGE section. | |
7303 | Similarly use "rawsize", if non-zero, in reloc functions to validate | |
7304 | reloc addresses. Use new bfd_malloc_and_get_section in most places | |
7305 | where bfd_get_section_contents was called. Expand all occurrences of | |
7306 | bfd_section_size and bfd_get_section_size. Rename "raw_size" var in | |
7307 | grok_prstatus and similar functions to "size". | |
7308 | * aix386-core.c (aix386_core_file_p): .. | |
7309 | * aix5ppc-core.c (xcoff64_core_p): .. | |
7310 | * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents, | |
7311 | aout_adobe_set_section_contents): .. | |
7312 | * aout-target.h (callback): .. | |
7313 | * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate, | |
7314 | MY_bfd_final_link): .. | |
7315 | * aoutf1.h (sunos4_core_file_p): .. | |
7316 | * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic, | |
7317 | adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags, | |
7318 | final_link, aout_link_input_section): .. | |
7319 | * binary.c (binary_object_p, binary_canonicalize_symtab, | |
7320 | binary_set_section_contents): .. | |
7321 | * bout.c (b_out_callback, b_out_write_object_contents, | |
7322 | b_out_set_section_contents, b_out_bfd_relax_section, | |
7323 | b_out_bfd_get_relocated_section_contents): .. | |
7324 | * cisco-core.c (cisco_core_file_validate): .. | |
7325 | * coff-alpha.c (alpha_ecoff_object_p, | |
7326 | alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): .. | |
7327 | * coff-arm.c (coff_arm_relocate_section, | |
7328 | bfd_arm_allocate_interworking_sections): .. | |
7329 | * coff-h8300.c (h8300_reloc16_extra_cases, | |
7330 | h8300_bfd_link_add_symbols): .. | |
7331 | * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): .. | |
7332 | * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section, | |
7333 | ppc_bfd_coff_final_link): .. | |
7334 | * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): .. | |
7335 | * coff-sh.c (sh_relax_section, sh_relax_delete_bytes, | |
7336 | sh_align_loads, sh_coff_get_relocated_section_contents): .. | |
7337 | * coff64-rs6000.c (xcoff64_write_object_contents, | |
7338 | xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): .. | |
7339 | * coffcode.h (coff_compute_section_file_positions, | |
7340 | coff_write_object_contents): .. | |
7341 | * coffgen.c (make_a_section_from_file, coff_write_symbols, | |
7342 | coff_section_symbol, build_debug_section): .. | |
7343 | * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link, | |
7344 | process_embedded_commands, _bfd_coff_link_input_bfd, | |
7345 | _bfd_coff_write_global_sym): .. | |
7346 | * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): .. | |
7347 | * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): .. | |
7348 | * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): .. | |
7349 | * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info, | |
7350 | _bfd_dwarf2_find_nearest_line): .. | |
7351 | * ecoff.c (bfd_debug_section, ecoff_set_symbol_info, | |
7352 | ecoff_compute_section_file_positions, | |
7353 | _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): .. | |
7354 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame, | |
7355 | _bfd_elf_discard_section_eh_frame_hdr, | |
7356 | _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset, | |
7357 | _bfd_elf_write_section_eh_frame, | |
7358 | _bfd_elf_write_section_eh_frame_hdr): .. | |
7359 | * elf-hppa.h (elf_hppa_sort_unwind): .. | |
7360 | * elf-m10200.c (mn10200_elf_relax_section, | |
7361 | mn10200_elf_relax_delete_bytes, | |
7362 | mn10200_elf_get_relocated_section_contents): .. | |
7363 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section, | |
7364 | mn10300_elf_check_relocs, mn10300_elf_relax_section, | |
7365 | mn10300_elf_relax_delete_bytes, | |
7366 | mn10300_elf_get_relocated_section_contents, | |
7367 | _bfd_mn10300_elf_adjust_dynamic_symbol, | |
7368 | _bfd_mn10300_elf_discard_copies, | |
7369 | _bfd_mn10300_elf_size_dynamic_sections, | |
7370 | _bfd_mn10300_elf_finish_dynamic_sections): .. | |
7371 | * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list, | |
7372 | _bfd_elf_make_section_from_phdr, elf_fake_sections, | |
7373 | bfd_elf_set_group_contents, map_sections_to_segments, | |
7374 | elf_sort_sections, assign_file_positions_for_segments, | |
7375 | SECTION_SIZE, copy_private_bfd_data, | |
7376 | _bfd_elf_get_dynamic_reloc_upper_bound, | |
7377 | _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect, | |
7378 | _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus, | |
7379 | elfcore_grok_lwpstatus, elfcore_grok_win32pstatus, | |
7380 | elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs, | |
7381 | _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): .. | |
7382 | * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect, | |
7383 | bfd_elf32_arm_process_before_allocation, | |
7384 | elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs, | |
7385 | elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections, | |
7386 | elf32_arm_write_section): .. | |
7387 | * elf32-cris.c (cris_elf_grok_prstatus, | |
7388 | elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook, | |
7389 | elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol, | |
7390 | cris_elf_check_relocs, elf_cris_size_dynamic_sections, | |
7391 | elf_cris_discard_excess_dso_dynamics, | |
7392 | elf_cris_discard_excess_program_dynamics): .. | |
7393 | * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): .. | |
7394 | * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): .. | |
7395 | * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup, | |
7396 | _frv_create_got_section, _frvfdpic_assign_plt_entries, | |
7397 | elf32_frvfdpic_size_dynamic_sections, | |
7398 | elf32_frvfdpic_modify_segment_map, | |
7399 | elf32_frvfdpic_finish_dynamic_sections): .. | |
7400 | * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes, | |
7401 | elf32_h8_get_relocated_section_contents): .. | |
7402 | * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub, | |
7403 | elf32_hppa_adjust_dynamic_symbol, allocate_plt_static, | |
7404 | allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections, | |
7405 | elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs, | |
7406 | elf32_hppa_finish_dynamic_sections): .. | |
7407 | * elf32-i370.c (i370_elf_adjust_dynamic_symbol, | |
7408 | i370_elf_size_dynamic_sections, i370_elf_check_relocs, | |
7409 | i370_elf_finish_dynamic_sections): .. | |
7410 | * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol, | |
7411 | allocate_dynrelocs, elf_i386_size_dynamic_sections, | |
7412 | elf_i386_relocate_section, elf_i386_finish_dynamic_sections): .. | |
7413 | * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc, | |
7414 | i860_howto_highadj_reloc, i860_howto_splitn_reloc): .. | |
7415 | * elf32-ip2k.c (ip2k_is_switch_table_128, | |
7416 | ip2k_relax_switch_table_128, ip2k_is_switch_table_256, | |
7417 | ip2k_relax_switch_table_256, ip2k_elf_relax_section, | |
7418 | adjust_all_relocations, ip2k_elf_relax_delete_bytes): .. | |
7419 | * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc, | |
7420 | m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol, | |
7421 | allocate_dynrelocs, m32r_elf_size_dynamic_sections, | |
7422 | m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections, | |
7423 | m32r_elf_relax_section, m32r_elf_relax_delete_bytes, | |
7424 | m32r_elf_get_relocated_section_contents): .. | |
7425 | * elf32-m68hc11.c (m68hc11_elf_build_one_stub, | |
7426 | m68hc11_elf_size_one_stub, m68hc11_elf_relax_section, | |
7427 | m68hc11_elf_relax_delete_bytes): .. | |
7428 | * elf32-m68hc12.c (m68hc12_elf_build_one_stub, | |
7429 | m68hc12_elf_size_one_stub): .. | |
7430 | * elf32-m68hc1x.c (elf32_m68hc11_size_stubs, | |
7431 | elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): .. | |
7432 | * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook, | |
7433 | elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections, | |
7434 | elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): .. | |
7435 | * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc, | |
7436 | elf32_mips_grok_prstatus): .. | |
7437 | * elf32-or32.c (or32_elf_consth_reloc): .. | |
7438 | * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc, | |
7439 | elf_create_pointer_linker_section, ppc_elf_create_linker_section, | |
7440 | ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol, | |
7441 | allocate_dynrelocs, ppc_elf_size_dynamic_sections, | |
7442 | ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus, | |
7443 | ppc_elf_final_write_processing): .. | |
7444 | * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol, | |
7445 | allocate_dynrelocs, elf_s390_size_dynamic_sections, | |
7446 | elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): .. | |
7447 | * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section, | |
7448 | sh_elf_relax_delete_bytes, sh_elf_align_loads, | |
7449 | sh_elf_adjust_dynamic_symbol, allocate_dynrelocs, | |
7450 | sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents, | |
7451 | sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): .. | |
7452 | * elf32-sh64-com.c (sh64_address_in_cranges, | |
7453 | sh64_get_contents_type): .. | |
7454 | * elf32-sh64.c (sh64_find_section_for_address, | |
7455 | sh64_elf_final_write_processing): .. | |
7456 | * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc, | |
7457 | sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol, | |
7458 | allocate_dynrelocs, elf32_sparc_size_dynamic_sections, | |
7459 | elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): .. | |
7460 | * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): .. | |
7461 | * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol, | |
7462 | elf_vax_size_dynamic_sections, elf_vax_discard_copies, | |
7463 | elf_vax_instantiate_got_entries, elf_vax_relocate_section, | |
7464 | elf_vax_finish_dynamic_sections): .. | |
7465 | * elf32-xstormy16.c (xstormy16_elf_24_reloc, | |
7466 | xstormy16_elf_check_relocs, xstormy16_relax_plt_check, | |
7467 | xstormy16_elf_relax_section, xstormy16_elf_always_size_sections, | |
7468 | xstormy16_elf_finish_dynamic_sections): .. | |
7469 | * elf32-xtensa.c (xtensa_read_table_entries, | |
7470 | elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size, | |
7471 | elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc, | |
7472 | bfd_elf_xtensa_reloc, elf_xtensa_relocate_section, | |
7473 | elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections, | |
7474 | elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus, | |
7475 | get_relocation_opcode, retrieve_contents, find_relaxable_sections, | |
7476 | collect_source_relocs, is_resolvable_asm_expansion, remove_literals, | |
7477 | relax_section, shrink_dynamic_reloc_sections, relax_property_section, | |
7478 | xtensa_callback_required_dependence): .. | |
7479 | * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section, | |
7480 | elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol, | |
7481 | elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets, | |
7482 | elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1, | |
7483 | elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes, | |
7484 | elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1, | |
7485 | elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel, | |
7486 | elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): .. | |
7487 | * elf64-hppa.c (allocate_dynrel_entries, | |
7488 | elf64_hppa_size_dynamic_sections, | |
7489 | elf64_hppa_finish_dynamic_sections): .. | |
7490 | * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc, | |
7491 | mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table, | |
7492 | elf64_mips_grok_prstatus): .. | |
7493 | * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc, | |
7494 | mmix_elf_relocate_section, mmix_elf_final_link, | |
7495 | mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation, | |
7496 | mmix_elf_relax_section, mmix_elf_get_section_contents): .. | |
7497 | * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus, | |
7498 | ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust, | |
7499 | ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd, | |
7500 | allocate_dynrelocs, ppc64_elf_size_dynamic_sections, | |
7501 | ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section, | |
7502 | toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs, | |
7503 | ppc64_elf_build_stubs, ppc64_elf_relocate_section, | |
7504 | ppc64_elf_finish_dynamic_sections): .. | |
7505 | * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol, | |
7506 | allocate_dynrelocs, elf_s390_size_dynamic_sections, | |
7507 | elf_s390_finish_dynamic_sections): .. | |
7508 | * elf64-sh64.c (sh_elf64_get_relocated_section_contents, | |
7509 | sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol, | |
7510 | sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections, | |
7511 | sh64_elf64_finish_dynamic_sections): .. | |
7512 | * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc, | |
7513 | sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol, | |
7514 | sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section, | |
7515 | sparc64_elf_finish_dynamic_symbol, | |
7516 | sparc64_elf_finish_dynamic_sections): .. | |
7517 | * elf64-x86-64.c (elf64_x86_64_grok_prstatus, | |
7518 | elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs, | |
7519 | elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section, | |
7520 | elf64_x86_64_finish_dynamic_sections): .. | |
7521 | * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): .. | |
7522 | * elfcode.h (elf_slurp_reloc_table): .. | |
7523 | * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag, | |
7524 | elf_finalize_dynstr, elf_link_add_object_symbols, | |
7525 | bfd_elf_size_dynamic_sections, elf_link_sort_relocs, | |
7526 | elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): .. | |
7527 | * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc, | |
7528 | elf32_mips_grok_prstatus): .. | |
7529 | * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries, | |
7530 | elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc, | |
7531 | elfNN_ia64_choose_gp, elfNN_ia64_final_link, | |
7532 | elfNN_ia64_finish_dynamic_sections): .. | |
7533 | * elfxx-mips.c (mips_elf_create_procedure_table, | |
7534 | mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp, | |
7535 | _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc, | |
7536 | mips_elf_global_got_index, mips_elf_multi_got, | |
7537 | mips_elf_create_compact_rel_section, mips_elf_calculate_relocation, | |
7538 | mips_elf_allocate_dynamic_relocations, | |
7539 | mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections, | |
7540 | _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol, | |
7541 | _bfd_mips_elf_always_size_sections, | |
7542 | _bfd_mips_elf_size_dynamic_sections, | |
7543 | _bfd_mips_elf_finish_dynamic_symbol, | |
7544 | _bfd_mips_elf_finish_dynamic_sections, | |
7545 | _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info, | |
7546 | _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents, | |
7547 | _bfd_elf_mips_get_relocated_section_contents, | |
7548 | _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): .. | |
7549 | * hp300hpux.c (callback): .. | |
7550 | * hppabsd-core.c (make_bfd_asection): .. | |
7551 | * hpux-core.c (make_bfd_asection): .. | |
7552 | * i386linux.c (linux_link_create_dynamic_sections, | |
7553 | bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): .. | |
7554 | * i386msdos.c (msdos_write_object_contents): .. | |
7555 | * i386os9k.c (os9k_callback, os9k_write_object_contents, | |
7556 | os9k_set_section_contents): .. | |
7557 | * ieee.c (parse_expression, ieee_slurp_external_symbols, | |
7558 | ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data, | |
7559 | ieee_write_section_part, do_with_relocs, do_as_repeat, | |
7560 | do_without_relocs, ieee_write_debug_part, init_for_output, | |
7561 | ieee_set_section_contents): .. | |
7562 | * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): .. | |
7563 | * irix-core.c (do_sections, make_bfd_asection): .. | |
7564 | * libaout.h (aout_section_merge_with_text_p): .. | |
7565 | * libbfd.c (_bfd_generic_get_section_contents, | |
7566 | _bfd_generic_get_section_contents_in_window): .. | |
7567 | * linker.c (default_indirect_link_order): .. | |
7568 | * lynx-core.c (make_bfd_asection): .. | |
7569 | * m68klinux.c (linux_link_create_dynamic_sections, | |
7570 | bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): .. | |
7571 | * mach-o.c (bfd_mach_o_make_bfd_section, | |
7572 | bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib, | |
7573 | bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab, | |
7574 | bfd_mach_o_scan_read_segment): .. | |
7575 | * merge.c (_bfd_add_merge_section, record_section, merge_strings, | |
7576 | _bfd_merge_sections): .. | |
7577 | * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc, | |
7578 | mmo_map_set_sizes, mmo_canonicalize_symtab, | |
7579 | mmo_internal_write_section, mmo_write_object_contents): .. | |
7580 | * netbsd-core.c (netbsd_core_file_p): .. | |
7581 | * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import, | |
7582 | nlm_alpha_set_public_section): .. | |
7583 | * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): .. | |
7584 | * nlm32-sparc.c (nlm_sparc_write_import): .. | |
7585 | * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in, | |
7586 | nlm_compute_section_file_positions): .. | |
7587 | * oasys.c (oasys_object_p, oasys_slurp_section_data, | |
7588 | oasys_write_sections, oasys_write_data, oasys_set_section_contents): .. | |
7589 | * opncls.c (get_debug_link_info): .. | |
7590 | * osf-core.c (make_bfd_asection): .. | |
7591 | * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic, | |
7592 | adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs, | |
7593 | final_link, aout_link_input_section): .. | |
7594 | * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out, | |
7595 | pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): .. | |
7596 | * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section, | |
7597 | bfd_pef_scan_start_address, bfd_pef_parse_symbols): .. | |
7598 | * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): .. | |
7599 | * ptrace-core.c (ptrace_unix_core_file_p): .. | |
7600 | * reloc.c (bfd_perform_relocation, bfd_install_relocation, | |
7601 | _bfd_final_link_relocate, bfd_generic_relax_section, | |
7602 | bfd_generic_get_relocated_section_contents): .. | |
7603 | * reloc16.c (bfd_coff_reloc16_relax_section, | |
7604 | bfd_coff_reloc16_get_relocated_section_c): .. | |
7605 | * riscix.c (riscix_some_aout_object_p): .. | |
7606 | * rs6000-core.c (read_hdr, make_bfd_asection): .. | |
7607 | * sco5-core.c (make_bfd_asection): .. | |
7608 | * simple.c (bfd_simple_get_relocated_section_contents): .. | |
7609 | * som.c (som_object_setup, setup_sections, som_prep_headers, | |
7610 | som_write_fixups, som_begin_writing, bfd_section_from_som_symbol, | |
7611 | som_set_reloc_info, som_get_section_contents, | |
7612 | som_bfd_link_split_section): .. | |
7613 | * sparclinux.c (linux_link_create_dynamic_sections, | |
7614 | bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): .. | |
7615 | * srec.c (srec_scan, srec_read_section, srec_get_section_contents): .. | |
7616 | * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs, | |
7617 | _bfd_write_stab_strings, _bfd_stab_section_offset): .. | |
7618 | * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections, | |
7619 | bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs, | |
7620 | sunos_scan_ext_relocs, sunos_scan_dynamic_symbol, | |
7621 | sunos_write_dynamic_symbol, sunos_check_dynamic_reloc, | |
7622 | sunos_finish_dynamic_link): .. | |
7623 | * syms.c (_bfd_stab_section_find_nearest_line): .. | |
7624 | * tekhex.c (first_phase, tekhex_set_section_contents, | |
7625 | tekhex_write_object_contents): .. | |
7626 | * trad-core.c (trad_unix_core_file_p): .. | |
7627 | * versados.c (process_esd, process_otr, process_otr): .. | |
7628 | * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): .. | |
7629 | * vms-misc.c (add_new_contents): .. | |
7630 | * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): .. | |
7631 | * vms.c (vms_set_section_contents): .. | |
7632 | * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols, | |
7633 | xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms, | |
7634 | _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): .. | |
7635 | * xsym.c (bfd_sym_scan): .. See above. | |
7636 | ||
bf8b15af L |
7637 | 2004-06-21 H.J. Lu <[email protected]> |
7638 | ||
7639 | * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when | |
7640 | calling _bfd_merged_section_offset only for section symbols. | |
7641 | ||
d1c6de6f AM |
7642 | 2004-06-22 Alan Modra <[email protected]> |
7643 | ||
7644 | * elf32-ppc.c (ppc_elf_relax_section): Implement reference code | |
7645 | for handling SEC_MERGE symbols in relax_section. | |
7646 | ||
aa02cc63 AO |
7647 | 2004-06-21 Alexandre Oliva <[email protected]> |
7648 | ||
7649 | 2003-05-15 Richard Sandiford <[email protected]> | |
7650 | * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be | |
7651 | linked together. Mark the result as h8300sx code. | |
7652 | ||
aee6f5b4 AO |
7653 | 2004-06-21 Alexandre Oliva <[email protected]> |
7654 | ||
7655 | * elf-bfd.h (struct elf_backend_data): Added | |
7656 | elf_backend_omit_section_dynsym. | |
7657 | (_bfd_elf_link_omit_section_dynsym): Declare. | |
7658 | * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New. | |
7659 | (elf_backend_omit_section_dynsym): Use it for frvfdpic. | |
7660 | * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of... | |
7661 | (_bfd_elf_link_renumber_dynsyms): ... this function. | |
7662 | * elfxx-target.h (elf_backend_omit_section_dynsym): Default to | |
7663 | _bfd_elf_link_omit_section_dynsym). | |
7664 | (elfNN_bed): Added elf_backend_omit_section_dynsym. | |
7665 | ||
05576f10 NC |
7666 | 2004-06-21 Nick Clifton <[email protected]> |
7667 | ||
7668 | * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED | |
7669 | flags. | |
7670 | ||
02d5a37b JG |
7671 | 2004-06-17 Jerome Guitton <[email protected]> |
7672 | ||
7673 | * bfd-in.h (bfd_cache_close_all): New function declaration. | |
7674 | * bfd-in2.h: Regenerate. | |
7675 | * cache.c (bfd_cache_close_all): New function definition. | |
7676 | ||
d2bef492 MK |
7677 | 2004-06-16 Mark Kettenis <[email protected]> |
7678 | ||
7679 | * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD | |
7680 | 4.10 and beyond. | |
7681 | * configure: Regenerate. | |
7682 | ||
8528d62e DJ |
7683 | 2004-06-16 Daniel Jacobowitz <[email protected]> |
7684 | ||
7685 | * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in | |
7686 | the pre-existing section. | |
7687 | ||
911d08a7 AM |
7688 | 2004-06-15 Alan Modra <[email protected]> |
7689 | ||
7690 | * section.c (struct sec): Remove usused flags. Reorganize a little. | |
7691 | (bfd_get_section_size_before_reloc): Delete. | |
7692 | (bfd_get_section_size_after_reloc): Delete. | |
7693 | (STD_SECTION): Update. | |
7694 | (bfd_get_section_size_now): Delete. | |
7695 | (bfd_set_section_contents): Don't referece reloc_done. | |
7696 | (bfd_get_section_contents): Remove reloc_done comment. | |
7697 | * bout.c (b_out_bfd_get_relocated_section_contents): Don't set | |
7698 | reloc_done. | |
7699 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise. | |
7700 | * ecoff.c (bfd_debug_section): Update initializer. | |
7701 | * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto. | |
7702 | * reloc.c (bfd_generic_get_relocated_section_contents): Likewise. | |
7703 | * bfd-in.h (bfd_section_size): Expand. | |
7704 | (bfd_get_section_size): New macro. | |
7705 | * bfd-in2.h: Regenerate. | |
7706 | * coff64-rs6000.c (xcoff64_write_object_contents): Replace | |
7707 | bfd_get_section_size_before_reloc with bfd_get_section_size. | |
7708 | * coffcode.h (coff_write_object_contents): Likewise. | |
7709 | * coffgen.c (build_debug_section): Likewise. | |
7710 | * dwarf1.c (parse_line_table): Likewise. | |
7711 | (_bfd_dwarf1_find_nearest_line): Likewise. | |
7712 | * ecoff.c (_bfd_ecoff_write_object_contents): Likewise. | |
7713 | * i386msdos.c (msdos_write_object_contents): Likewise. | |
7714 | * pdp11.c (squirt_out_relocs): Likewise. | |
7715 | * elf32-sh64.c (sh64_find_section_for_address): Remove comment. | |
7716 | * elf64-mmix.c (mmix_elf_final_link): Update comment. | |
7717 | ||
092dcd75 CD |
7718 | 2004-06-14 Chris Demetriou <[email protected]> |
7719 | ||
7720 | * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24 | |
7721 | removal) with updated comment. | |
7722 | (bfd_elf32_bfd_reloc_type_lookup): Add back case for | |
7723 | BFD_RELOC_32_PCREL. | |
7724 | (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32. | |
7725 | * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. | |
7726 | ||
3ffa5234 AM |
7727 | 2004-06-12 Alan Modra <[email protected]> |
7728 | ||
7729 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc | |
7730 | overflow on branches to undefweaks. | |
7731 | ||
e9edc808 MR |
7732 | 2004-06-11 Maciej W. Rozycki <[email protected]> |
7733 | ||
7734 | * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly | |
7735 | as ecoff_section_data() does not return a valid lvalue. | |
7736 | ||
a873f25a AO |
7737 | 2004-06-09 Alexandre Oliva <[email protected]> |
7738 | ||
a9b881be AO |
7739 | * elflink.c (elf_sort_symbol): Compare section id, not pointers. |
7740 | (elf_link_add_object_symbols): Likewise. | |
7741 | ||
a873f25a AO |
7742 | * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New. |
7743 | (elf_backend_reloc_type_class): New. | |
7744 | ||
eef0f186 MK |
7745 | 2004-06-08 Mark Kettenis <[email protected]> |
7746 | ||
7747 | * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to | |
7748 | netbsd-core.lo. | |
7749 | * configure: Regenerate. | |
7750 | ||
822392ce DJ |
7751 | 2004-06-07 Daniel Jacobowitz <[email protected]> |
7752 | ||
7753 | From: Albert Chin-A-Young <[email protected]> | |
7754 | * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields | |
7755 | to unsigned int. | |
7756 | ||
9f2e92c5 L |
7757 | 2004-05-29 H.J. Lu <[email protected]> |
7758 | ||
7759 | * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last | |
7760 | change. | |
7761 | ||
dd90f1b2 DD |
7762 | 2004-05-28 DJ Delorie <[email protected]> |
7763 | ||
7764 | * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend | |
7765 | for linking, but otherwise adjust reloc for merged sections. | |
7766 | ||
5dd23ec1 L |
7767 | 2004-05-28 H.J. Lu <[email protected]> |
7768 | ||
7769 | * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call | |
7770 | _bfd_merged_section_offset for local symbols. | |
7771 | ||
f6f9408f JR |
7772 | 2004-05-28 Andrew Stubbs <[email protected]> |
7773 | ||
7774 | * Makefile.am: Regenerate dependencies. | |
7775 | * Makefile.in: Regenerate. | |
7776 | * archures.c: Add bfd_mach_sh3_nommu . | |
7777 | * bfd-in2.h: Regenerate. | |
7778 | * cpu-sh.c: Add sh3-nommu architecture. | |
7779 | (bfd_to_arch_table): Create new table. | |
7780 | (sh_get_arch_from_bfd_mach): Create new function. | |
7781 | (sh_get_arch_up_from_bfd_mach): Create new function. | |
7782 | (sh_merge_bfd_arch): Create new function. | |
7783 | * elf32-sh.c (sh_ef_bfd_table): Add table. | |
7784 | (sh_elf_check_relocs): Replace switch statement with | |
7785 | use of sh_ef_bfd_table . | |
7786 | (sh_elf_get_flags_from_mach): Add new function. | |
7787 | (sh_find_elf_flags): Likewise. | |
7788 | (sh_elf_copy_private_data): Replace most of non-elf contents | |
7789 | with a call to sh_merge_bfd_arch() . | |
7790 | ||
d866f350 MC |
7791 | 2004-05-27 Michael Chastain <[email protected]> |
7792 | ||
7793 | * Makefile.am (bfdver.h): Use explicit filename, not $< . | |
7794 | * Makefile.in: Regenerate. | |
7795 | ||
1055df0f AO |
7796 | 2004-05-27 Alexandre Oliva <[email protected]> |
7797 | ||
7798 | * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid | |
7799 | custom calling conventions for dynamic symbols. | |
7800 | (mn10300_elf_relax_section): Avoid relaxing a function as a local | |
7801 | symbol if it's an alias to a global one. | |
7802 | ||
b3096250 L |
7803 | 2004-05-26 H.J. Lu <[email protected]> |
7804 | ||
7805 | * elf.c (_bfd_elf_make_section_from_shdr): Undo the last | |
7806 | change. | |
7807 | ||
9bb351fd AO |
7808 | 2004-05-27 Alexandre Oliva <[email protected]> |
7809 | ||
7810 | * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within | |
7811 | loop over hashes. | |
7812 | ||
e49f5022 AM |
7813 | 2004-05-26 Alan Modra <[email protected]> |
7814 | ||
7815 | * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE | |
7816 | for SHT_GROUP sections. | |
7817 | ||
57ceae94 AM |
7818 | 2004-05-25 Alan Modra <[email protected]> |
7819 | ||
7820 | * elflink.c (elf_link_add_object_symbols): Don't set up merge | |
7821 | section data here.. | |
7822 | * elf.c (_bfd_elf_merge_sections): .. Do it here instead. | |
7823 | * merge.c: Formatting. Remove unnecessary casts. Expand | |
7824 | bfd_get_section_alignment macro. | |
7825 | (struct sec_merge_sec_info): Rename "first" to "first_str". Update | |
7826 | use throughout file. | |
7827 | (_bfd_add_merge_section): Rename from _bfd_merge_section. Update | |
7828 | comment. Abort on dynamic or non-SEC_MERGE input. Don't test | |
7829 | section name to determine sinfo group, instead test output section | |
7830 | and alignment. | |
7831 | (_bfd_merge_sections): Add struct bfd_link_info param. Call | |
7832 | _bfd_strip_section_from_output rather than just twiddling flags. | |
7833 | * libbfd-in.h (_bfd_add_merge_section): Rename, update comment. | |
7834 | (_bfd_merge_sections): Update prototype. | |
7835 | * libbfd.h: Regenerate. | |
7836 | ||
c6f8758f | 7837 | 2004-05-24 Mark Kettenis <[email protected]> |
d34436e8 MK |
7838 | |
7839 | * netbsd-core.c: Correctly indent section that sets architecture | |
7840 | from machine ID. | |
7841 | ||
c6f8758f NC |
7842 | From Miod Vallat <[email protected]>: |
7843 | * m88kopenbsd.c: New file. | |
7844 | * targets.c (m88k_openbsd_vec): New. | |
7845 | * config.bfd: Add m88k-*-openbsd*. | |
7846 | * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo. | |
7847 | (m88kopenbsd_vec): New. | |
7848 | * configure: Regenerate. | |
7849 | * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo. | |
7850 | (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c. | |
7851 | Run "make dep-am". | |
7852 | * Makefile.in: Regenerate. | |
7853 | * po/SRC-POTFILES.in: Regenerate. | |
7854 | ||
7d7e6bc4 NC |
7855 | 2004-05-24 Nick Clifton <[email protected]> |
7856 | ||
7857 | * hash.c: Remove bogus node "Changing the default Hash Table Size" | |
7858 | introduced by hash table size patch. | |
7859 | ||
bc286f95 BE |
7860 | 2004-05-22 Ben Elliston <[email protected]> |
7861 | ||
7862 | * configure.in (is_release): Remove. | |
7863 | (bfd_version_date, bfd_version, bfd_version_string): Likewise. | |
7864 | (AC_OUTPUT): Don't output bfdver.h from version.h. | |
7865 | * configure: Regenerate. | |
7866 | * Makefile.am (RELEASE): New variable. | |
7867 | (bfdver.h): New target. | |
7868 | * Makefile.in: Regenerate. | |
7869 | * doc/Makefile.in: Likewise. | |
7870 | ||
8b89a4eb BE |
7871 | 2004-05-22 Ben Elliston <[email protected]> |
7872 | ||
7873 | * Makefile.am (config.status): Don't depend on version.h. | |
7874 | * Makefile.in: Regenerate. | |
7875 | ||
753731ee AM |
7876 | 2004-05-22 Alan Modra <[email protected]> |
7877 | ||
7878 | * merge.c (_bfd_merged_section_offset): Remove "addend" param. | |
7879 | * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype. | |
7880 | * libbfd.h: Regenerate. | |
7881 | * elf.c (_bfd_elf_rela_local_sym): Adjust call. | |
7882 | (_bfd_elf_rel_local_sym): Likewise. | |
7883 | * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise. | |
7884 | (elf_link_input_bfd): Likewise. | |
7885 | * elf32-ppc.c (ppc_elf_relax_section): Likewise. | |
7886 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
7887 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
7888 | (elfNN_ia64_relocate_section): Likewise. | |
7889 | ||
2d643429 NC |
7890 | 2004-05-21 Andy Chittenden <[email protected]> |
7891 | ||
7892 | * hash.c (bfd_default_hash_table_size): New variable. | |
7893 | (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE. | |
7894 | (bfd_hash_set_default_size): New function. Set the default size | |
7895 | to a selected prime number close to the argument. Document new | |
7896 | function. | |
7897 | * bfd-in.h: Add prototype for bfd_hash_set_default_size. | |
7898 | * bfd-in2.h: Regenerate. | |
7899 | * Makefile.am (hash.lo): Add dependency upon libiberty.h. | |
7900 | * Makefile.in: Regenerate. | |
7901 | ||
8377c19c MK |
7902 | 2004-05-21 Mark Kettenis <[email protected]> |
7903 | ||
7904 | * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD. | |
7905 | * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha, | |
7906 | arm, m68k, m88k and hppa core files. | |
7907 | ||
69fd4758 NC |
7908 | 2004-05-21 Nick Clifton <[email protected]> |
7909 | ||
7910 | * bfdio.c (bfd_bread): Do not use iovec if it is NULL. | |
7911 | (bfd_bwrite): Likewise. | |
7912 | (bfd_tell): Likewise. | |
7913 | (bfd_flush): Likewise. | |
7914 | (bfd_stat): Likewise. | |
7915 | (bfd_seek): Likewise. | |
7916 | (bfd_get_mtime): Likewise. | |
7917 | (bfd_get_size): Likewise. | |
7918 | ||
cd917290 BE |
7919 | 2004-05-19 Ben Elliston <[email protected]> |
7920 | ||
7921 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction. | |
7922 | ||
1b09e940 NC |
7923 | 2004-05-19 Mikulas Patocka <[email protected]> |
7924 | ||
7925 | * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives. | |
7926 | (bfd_generic_openr_next_archived_file): Likewise. | |
7927 | ||
096c35a7 BW |
7928 | 2004-05-17 Bob Wilson <[email protected]> |
7929 | ||
7930 | * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce | |
7931 | section names by inserting a new substring after .gnu.linkonce, except | |
7932 | for .gnu.linkonce.t.* where the "t." is replaced. | |
7933 | ||
eea6121a | 7934 | 2004-05-17 Adam Nemet <[email protected]> |
b2d65c0b NC |
7935 | |
7936 | * config.bfd (sparc-*-lynxos* case): Add to obsolete list. | |
7937 | (m68-*-lynxos* case): Likewise. | |
7938 | (powerpc-*-lyxnos* case): New case. | |
7939 | (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF. | |
7940 | ||
80fccad2 BW |
7941 | 2004-05-17 David Heine <[email protected]> |
7942 | ||
7943 | * aout-target.h (MY_bfd_copy_private_header_data): Define. | |
7944 | * aout-tic30.c (MY_bfd_copy_private_header_data): Define. | |
7945 | * bfd.c (bfd_copy_private_header_data): Define. | |
7946 | * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new | |
7947 | interface. | |
7948 | * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. | |
7949 | * coffcode.h (coff_bfd_copy_private_header_data): Define. | |
7950 | * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare. | |
7951 | * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up | |
7952 | segments by calling copy_private_bfd_data. | |
7953 | (_bfd_elf_copy_private_header_data): Define. | |
7954 | * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define. | |
7955 | * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define. | |
7956 | * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define. | |
7957 | * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define. | |
7958 | * mmo.c (mmo_bfd_copy_private_header_data): Define. | |
7959 | * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define. | |
7960 | * som.c (som_bfd_copy_private_header_data): Define. | |
7961 | * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data. | |
7962 | * vms.c (vms_bfd_copy_private_header_data): Define. | |
7963 | * bfd-in2.h: Regenerate. | |
7964 | * libbfd.h: Regenerate. | |
7965 | ||
c5ae1840 TS |
7966 | 2004-05-15 Thiemo Seufer <[email protected]> |
7967 | ||
7968 | * elfxx-mips.c (MINUS_TWO): Define. | |
7969 | (mips_elf_higher, mips_elf_highest, | |
7970 | mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for | |
7971 | some bfd_vma values. | |
7972 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup. | |
7973 | ||
a99cf92b DA |
7974 | 2004-05-14 John David Anglin <[email protected]> |
7975 | ||
7976 | * som.c (log2): Rename to exact_log2. Adjust all callers. | |
7977 | ||
0da76f83 NC |
7978 | 2004-05-13 Paul Brook <[email protected]> |
7979 | ||
c273895f | 7980 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle |
336b9722 NC |
7981 | dwarf3 format CIE entries. Remove comment about the size of the |
7982 | ra_column field. It is now correctly deduced. | |
0da76f83 | 7983 | |
4b363073 NC |
7984 | 2004-05-13 Joel Sherrill <[email protected]> |
7985 | ||
7986 | * config.bfd (or32-*-rtems*): Switch to elf. | |
7987 | ||
9598fbe5 NC |
7988 | 2004-05-13 Nick Clifton <[email protected]> |
7989 | ||
7990 | * po/fr.po: Updated French translation. | |
7991 | ||
8c37241b JJ |
7992 | 2004-05-11 Jakub Jelinek <[email protected]> |
7993 | ||
0306b3bf | 7994 | * elflink.c (bfd_elf_final_link): Don't output STT_SECTION symbol |
8c37241b JJ |
7995 | into .dynsym if elf_section_data (sec)->dynindx <= 0. |
7996 | Adjust counting of last_local. | |
7997 | (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections | |
7998 | other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt | |
7999 | created by the linker nor !SHF_ALLOC. | |
8000 | ||
8001 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Point | |
8002 | DT_PLTGOT to the start of the .got.plt section instead of the | |
8003 | .got output section. Set sh_entsize for .got section in addition | |
8004 | to .got.plt. | |
8005 | (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_ | |
8006 | is at sgot->output_section->vma. | |
8007 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point | |
8008 | DT_PLTGOT to the start of the .got.plt section instead of the | |
8009 | .got output section. | |
8010 | (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_ | |
8011 | is at sgot->output_section->vma. Set sh_entsize for .got section | |
8012 | in addition to .got.plt. | |
8013 | * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO. | |
8014 | (bfd_section_from_phdr): Likewise. | |
8015 | (map_sections_to_segments): Likewise. | |
8016 | (assign_file_positions_for_segments): Likewise. | |
8017 | (get_program_header_size): Likewise. | |
8018 | * elflink.c (bfd_elf_size_dynamic_sections): Set | |
8019 | elf_tdata (output_bfd)->relro from info->relro. | |
8020 | * elf-bfd.h (struct elf_obj_tdata): Add relro field. | |
8021 | ||
3f980e41 AO |
8022 | 2004-05-08 Alexandre Oliva <[email protected]> |
8023 | ||
8024 | * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get | |
8025 | a zero symndx for which we hadn't accounted a dynamic relocation. | |
8026 | (_frvfdpic_add_rofixup): Likewise. | |
8027 | ||
d70270c5 | 8028 | 2004-05-07 Brian Ford <[email protected]> |
eea6121a | 8029 | DJ Delorie <[email protected]> |
d70270c5 BF |
8030 | |
8031 | * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]: | |
8032 | Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE. | |
8033 | * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize | |
8034 | IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines. | |
8035 | ||
7e9f3bd6 AO |
8036 | 2004-05-07 Alexandre Oliva <[email protected]> |
8037 | ||
8038 | * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return | |
8039 | immediately if there's no link info. | |
8040 | (elf32_frvfdpic_copy_private_bfd_data): New. | |
8041 | (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic. | |
8042 | ||
eb61d2d6 ZW |
8043 | 2004-05-06 Zack Weinberg <[email protected]> |
8044 | ||
8045 | * dwarf2.c (add_line_info): Also set info->filename to NULL if | |
8046 | filename argument is null; do not call strlen on a null pointer. | |
8047 | ||
ecb2d096 DJ |
8048 | 2004-05-06 Daniel Jacobowitz <[email protected]> |
8049 | ||
8050 | * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32 | |
8051 | special case. | |
8052 | ||
43850d5b AO |
8053 | 2004-05-05 Alexandre Oliva <[email protected]> |
8054 | ||
8055 | * configure.in (bfd_elf32_frvfdpic_vec): New. | |
8056 | * configure: Rebuilt. | |
8057 | * targets.c (bfd_elf32_frvfdpic_vec): New. | |
8058 | * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default | |
8059 | on the latter. | |
8060 | * elf32-frv.c: Prefix all identifiers added for FDPIC support with | |
8061 | frvfdpic instead of frv. Rearrange elf-target macros such that | |
8062 | the FDPIC-specific ones are only defined for this new target | |
8063 | vector. | |
8064 | (bfd_elf32_frvfdpic_vec): Declare. | |
8065 | (IS_FDPIC): New. | |
8066 | (elf32_frv_relocate_section): Use it to enable segment checking | |
8067 | and to control rofixup emission. Add output section vma to | |
8068 | applied relocation in non-LOAD non-ALLOC sections. Use | |
8069 | _bfd_error_handler for errors. | |
8070 | (_frv_create_got_section): Create .rel.got and .rofixup only in | |
8071 | FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the | |
8072 | linker script. | |
8073 | (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC. | |
8074 | (elf32_frvfdpic_modify_segment_map): Likewise. | |
8075 | (elf32_frv_finish_dynamic_sections): New, do-nothing. | |
8076 | (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve | |
8077 | error message if we miscompute the rofixup size. | |
8078 | (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC. | |
8079 | (frvfdpic_elf_encode_eh_address): Likewise. | |
8080 | (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC. | |
8081 | Record relocs only in FDPIC. Make sure _gp is defined for GPREL | |
8082 | relocs. Reject unknown relocation types. | |
8083 | (elf32_frv_object_p): Make sure target vector matches FDPIC bits. | |
8084 | (frv_elf_merge_private_bfd_data): Likewise. | |
8085 | (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as | |
8086 | 0x4000 for newly-added elf32-frvfdpic. | |
8087 | ||
06fc8a8c NC |
8088 | 2004-05-05 Nick Clifton <[email protected]> |
8089 | ||
8090 | PR/136 | |
8091 | * cache.c (bfd_cache_lookup_worker): Call abort() rather than | |
8092 | returning NULL as most users of this function do not check its | |
8093 | return value. | |
33216455 NC |
8094 | * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result |
8095 | of bfd_cache_lookup(). | |
8096 | * sco5-core.c (sco5_core_file_p): Likewise. | |
8097 | * trad-core.c (trad_unix_core_file_p): Likewise. | |
06fc8a8c NC |
8098 | |
8099 | 2004-05-05 Nick Clifton <[email protected]> | |
8100 | ||
8101 | * cache.c (bfd_cache_lookup): Improve formatting. | |
8102 | * archive.c: Fix formatting. | |
8103 | ||
6b6e92f4 NC |
8104 | 2004-05-05 Peter Barada <[email protected]> |
8105 | ||
8106 | * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x. | |
8107 | * cpu-m68k.c(bfd_m68k_arch): Likewise. | |
8108 | * bfd-in2.h(bfd_architecture): Regenerate. | |
8109 | ||
6a8d1586 AM |
8110 | 2004-05-03 Alan Modra <[email protected]> |
8111 | ||
8112 | * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded | |
8113 | SEC_MERGE sections. | |
8114 | * elflink.c (elf_link_input_bfd): Adjust output reloc index for | |
8115 | those against discarded link-once and SEC_MERGE section symbols. | |
8116 | ||
fafe6678 L |
8117 | 2004-05-02 H.J. Lu <[email protected]> |
8118 | ||
8119 | * section.c (bfd_get_section_by_name_if): New. | |
8120 | * bfd-in2.h: Regenerated. | |
8121 | ||
ad7b9a36 AM |
8122 | 2004-05-02 Alan Modra <[email protected]> |
8123 | ||
8124 | * som.c (som_bfd_is_group_section): Define. | |
8125 | ||
73499ab8 AM |
8126 | 2004-05-01 Alan Modra <[email protected]> |
8127 | ||
8128 | * section.c (bfd_make_section_anyway): Copy the whole | |
8129 | bfd_hash_entry, not just "next" from existing entry. | |
8130 | ||
45c5e9ed L |
8131 | 2004-04-30 H.J. Lu <[email protected]> |
8132 | ||
8133 | * elf.c (bfd_section_from_shdr): Maintain the section order in | |
8134 | a section group. | |
8135 | (special_sections): Add ".note.GNU-stack". | |
8136 | (elf_fake_sections): Handle section group for relocatable | |
8137 | link.. | |
8138 | ||
bc87dd2e L |
8139 | 2004-04-30 H.J. Lu <[email protected]> |
8140 | ||
8141 | * section.c (bfd_sections_find_if): New. | |
8142 | * bfd-in2.h: Regenerated. | |
8143 | ||
72adc230 AM |
8144 | 2004-04-30 Alan Modra <[email protected]> |
8145 | ||
8146 | * section.c (bfd_make_section_anyway): Add all sections to hash tab. | |
8147 | ||
8148 | * elf-bfd.h (bfd_elf_is_group_section): Declare. | |
8149 | * elf.c (bfd_elf_is_group_section): New function. | |
8150 | * elfxx-target.h (bfd_elfNN_bfd_is_group_section | |
8151 | * section.c (bfd_generic_is_group_section): New function. | |
8152 | * targets.c (struct bfd_target): Add _bfd_is_group_section field. | |
8153 | (BFD_JUMP_TABLE_LINK): Adjust. | |
8154 | * aout-adobe.c (aout_32_bfd_is_group_section): Define. | |
8155 | * aout-target.h (MY_bfd_is_group_section): Define. | |
8156 | * aout-tic30.c (MY_bfd_is_group_section): Define. | |
8157 | * bfd.c (bfd_is_group_section): Define. | |
8158 | * binary.c (binary_bfd_is_group_section): Define. | |
8159 | * bout.c (b_out_bfd_is_group_section): Define. | |
8160 | * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define. | |
8161 | * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define. | |
8162 | * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust. | |
8163 | * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust. | |
8164 | * coffcode.h (coff_bfd_is_group_section): Define. | |
8165 | * i386msdos.c (msdos_bfd_is_group_section): Define. | |
8166 | * i386os9k.c (os9k_bfd_is_group_section): Define. | |
8167 | * ieee.c (ieee_bfd_is_group_section): Define. | |
8168 | * ihex.c (ihex_bfd_is_group_section): Define. | |
8169 | * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define. | |
8170 | * mach-o.c (bfd_mach_o_bfd_is_group_section): Define. | |
8171 | * mmo.c (mmo_bfd_is_group_section): Define. | |
8172 | * nlm-target.h (nlm_bfd_is_group_section): Define. | |
8173 | * oasys.c (oasys_bfd_is_group_section): Define. | |
8174 | * pef.c (bfd_pef_bfd_is_group_section): Define. | |
8175 | * ppcboot.c (ppcboot_bfd_is_group_section): Define. | |
8176 | * srec.c (srec_bfd_is_group_section): Define. | |
8177 | * tekhex.c (tekhex_bfd_is_group_section): Define. | |
8178 | * versados.c (versados_bfd_is_group_section): Define. | |
8179 | * vms.c (vms_bfd_is_group_section): Define. | |
8180 | * xsym.c (bfd_sym_bfd_is_group_section): Define. | |
8181 | * bfd-in2.h: Regenerate. | |
8182 | * libbfd.h: Regenerate. | |
8183 | ||
20f0a1ad AM |
8184 | 2004-04-30 Alan Modra <[email protected]> |
8185 | ||
8186 | * elflink.c (elf_gc_mark): Follow indirect and warning syms. | |
8187 | ||
f7458fc9 | 8188 | 2004-04-30 Hans-Peter Nilsson <[email protected]> |
7dfb3b6b HPN |
8189 | |
8190 | * configure.in: Update version to 2.15.91. | |
8191 | * configure: Regenerate. | |
8192 | ||
8a7140c3 NC |
8193 | 2004-04-29 Brian Ford <[email protected]> |
8194 | ||
8195 | * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack. | |
8196 | * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define. | |
8197 | [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them. | |
8198 | (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise. | |
8199 | [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and | |
8200 | .gnu.linkonce.wi. sections. | |
8201 | * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define. | |
8202 | (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and | |
8203 | .gnu.linkonce.wi.. | |
8204 | * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise. | |
8205 | (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. | |
8206 | ||
3e722fb5 CD |
8207 | 2004-04-28 Chris Demetriou <[email protected]> |
8208 | ||
8209 | * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16. | |
8210 | * bfd-in2.h: Regenerate. | |
8211 | * libbfd.h: Likewise. | |
8212 | ||
351e2b5a DA |
8213 | 2004-04-28 John David Anglin <[email protected]> |
8214 | ||
8215 | * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and | |
8216 | dup_common fields. | |
8217 | (setup_sections): Use som_subspace_dictionary_record struct instead | |
8218 | subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is | |
8219 | is_comdat, is_common or dup_common. | |
8220 | (som_prep_headers): Use som_subspace_dictionary_record struct. Set | |
8221 | is_comdat, is_common and dup_common in section subspace_dict from | |
8222 | copy_data. | |
8223 | (som_begin_writing): Use som_subspace_dictionary_record struct. | |
8224 | (som_finish_writing): Likewise. | |
8225 | (som_bfd_derive_misc_symbol_info): Add support to set is_comdat, | |
8226 | is_common and dup_common flags in info for symbol. Add comment | |
8227 | regarding linker support for these fields. Slightly reorganize | |
8228 | function. | |
8229 | (som_build_and_write_symbol_table): Set is_comdat, is_common and | |
8230 | dup_common fields in symbol table from symbol info. | |
8231 | (bfd_som_set_subsection_attributes): Add comdat, common and dup_common | |
8232 | arguments. Set corresponding fields in copy_data. Change all callers. | |
8233 | (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library | |
8234 | symbol table. | |
8235 | (som_vec): Add SEC_LINK_ONCE to applicable section flags. | |
8236 | * som.h (som_subspace_dictionary_record): Define. | |
8237 | (som_copyable_section_data_struct): Add is_comdat, is_common and | |
8238 | dup_common fields. | |
8239 | (som_section_data_struct): Use som_subspace_dictionary_record struct | |
8240 | instead of subspace_dictionary_record. | |
8241 | (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype. | |
8242 | ||
3ba3bc8c BW |
8243 | 2004-04-27 Bob Wilson <[email protected]> |
8244 | ||
8245 | * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size | |
8246 | if set. Check reloc_done flag before applying relocations. Use | |
8247 | output addresses, both when applying relocations and when comparing | |
8248 | against the specified section. | |
8249 | (elf_xtensa_relocate_section): Use output address to check if dynamic | |
8250 | reloc is in a literal pool. Set section's reloc_done flag. | |
8251 | ||
beb8df56 L |
8252 | 2004-04-27 H.J. Lu <[email protected]> |
8253 | ||
8254 | * elf32-sh64.c (elf_backend_section_flags): New. Defined. | |
8255 | (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges | |
8256 | section. | |
8257 | (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges | |
8258 | section. | |
8259 | ||
1829f4b2 AM |
8260 | 2004-04-27 Alan Modra <[email protected]> |
8261 | ||
8262 | * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign | |
8263 | structure field removed in 2004-04-24 patch. | |
8264 | * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix. | |
8265 | ||
8266 | * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>): | |
8267 | Constify hdr arg. | |
8268 | * elf32-arm.h (elf32_arm_section_flags): Likewise. | |
8269 | * elf64-alpha.c (elf64_alpha_section_flags): Likewise. | |
8270 | * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise. | |
8271 | * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section | |
8272 | field before calling elf_backend_section_flags. | |
8273 | ||
4030e8f6 CD |
8274 | 2004-04-24 Chris Demetriou <[email protected]> |
8275 | ||
8276 | * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16) | |
8277 | (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove. | |
8278 | (bfd_elf32_bfd_reloc_type_lookup): Remove cases for | |
8279 | BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL, | |
8280 | and BFD_RELOC_32_PCREL. | |
8281 | (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16, | |
8282 | R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32. | |
8283 | * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. | |
8284 | (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16. | |
8285 | (mips_elf_next_relocation): Move comment about matching HI/LO | |
8286 | relocations to... | |
8287 | (_bfd_mips_elf_relocate_section): Here. Remove handling for | |
8288 | R_MIPS_GNU_REL_HI16. | |
8289 | ||
3e27568f CD |
8290 | 2004-04-23 Chris Demetriou <[email protected]> |
8291 | ||
8292 | * coff-mips.c (mips_relhi_reloc, mips_rello_reloc) | |
8293 | (mips_switch_reloc, mips_read_relocs, mips_relax_section) | |
8294 | (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove. | |
8295 | (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments, | |
8296 | and update comments to reflect current usage. | |
8297 | (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO, | |
8298 | and MIPS_R_SWITCH, as well as several empty entries. Update comment | |
8299 | for MIPS_R_PCREL16. | |
8300 | (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out) | |
8301 | (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support | |
8302 | for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations. | |
8303 | (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation | |
8304 | type number to be MIPS_R_PCREL16. | |
8305 | (mips_relocate_section): Remove support for link-time relaxation | |
8306 | of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH, | |
8307 | MIPS_R_RELLO, and MIPS_R_RELHI relocations. | |
8308 | (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section. | |
8309 | * ecoff.c (ecoff_indirect_link_order): Remove support for link-time | |
8310 | relaxation of branches used by embedded-PIC. | |
8311 | * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise. | |
8312 | * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC | |
8313 | related members, update comment. | |
8314 | * pe-mips.c: Remove disabled (commented-out and #if 0'd) | |
8315 | code related to embedded-PIC. | |
8316 | * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove | |
8317 | initialization of now-removed 'adjust' member of | |
8318 | 'struct ecoff_debug_info'. | |
8319 | ||
b32de0bc | 8320 | 2004-04-23 Chris Demetriou <[email protected]> |
8472310d CD |
8321 | |
8322 | * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove. | |
8323 | ||
955af222 PB |
8324 | 2004-04-21 Philip Blundell <[email protected]> |
8325 | ||
8326 | * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32 | |
8327 | relocs for locally defined symbols during -shared final link. | |
8328 | (elf32_arm_final_link_relocate): Likewise. | |
8329 | ||
47a9f7b3 JJ |
8330 | 2004-04-22 Jakub Jelinek <[email protected]> |
8331 | ||
8332 | * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also | |
8333 | ELF_LINK_POINTER_EQUALITY_NEEDED. | |
8334 | (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED | |
8335 | if r_type is not R_X86_64_PC32. | |
8336 | (elf64_x86_64_finish_dynamic_symbol): If | |
8337 | ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of | |
8338 | SHN_UNDEF symbols. | |
8339 | ||
1f1799d5 KK |
8340 | 2004-04-22 Kaz Kojima <[email protected]> |
8341 | ||
8342 | * elf32-sh.c (sh_elf_plt_sym_val): New function. | |
8343 | (elf_backend_plt_sym_val): Define. | |
8344 | ||
0fdea5ce AC |
8345 | 2004-04-22 Andrew Cagney <[email protected]> |
8346 | ||
8347 | * opncls.c (bfd_alloc): Fix type of "wanted" in doco. | |
8348 | ||
5198ba8b DA |
8349 | 2004-04-22 John David Anglin <[email protected]> |
8350 | ||
eb61d2d6 | 8351 | * hpux-core.c (hpux_core_core_file_p): Add cast in call to |
5198ba8b DA |
8352 | make_bfd_asection. |
8353 | * som.c (som_set_section_contents): Constantify second argument. | |
8354 | (hppa_som_gen_reloc_type): Abort for unsupported selectors. | |
8355 | (som_object_setup): Rework to avoid warning. | |
8356 | (setup_sections, som_write_fixups, bfd_section_from_som_symbol): | |
8357 | Likewise. | |
8358 | ||
fe2e161a AC |
8359 | 2004-04-22 Andrew Cagney <[email protected]> |
8360 | ||
8361 | * cache.c (bfd_cache_close): Check for a previously closed file. | |
8362 | ||
4c45e5c9 JJ |
8363 | 2004-04-22 Jakub Jelinek <[email protected]> |
8364 | ||
8365 | * bfd.c (bfd_get_synthetic_symtab): Define. | |
8366 | * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add | |
8367 | NAME##_get_synthetic_symtab. | |
8368 | (struct bfd_target): Add _bfd_get_synthetic_symtab. | |
8369 | * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define. | |
8370 | * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and | |
8371 | relplt_name fields. | |
8372 | (_bfd_elf_get_synthetic_symtab): New prototype. | |
8373 | * elfcode.h (elf_get_synthetic_symtab): Define. | |
8374 | * elf.c (_bfd_elf_get_synthetic_symtab): New function. | |
8375 | * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define. | |
8376 | (elf_backend_plt_sym_val, elf_backend_relplt_name): Define. | |
8377 | (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name. | |
8378 | * bfd-in2.h: Rebuilt. | |
8379 | * libbfd.h: Rebuilt. | |
8380 | * elf32-i386.c (elf_i386_plt_sym_val): New function. | |
8381 | (elf_backend_plt_sym_val): Define. | |
8382 | * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function. | |
8383 | (elf_backend_plt_sym_val): Define. | |
8384 | * elf32-s390.c (elf_s390_plt_sym_val): New function. | |
8385 | (elf_backend_plt_sym_val): Define. | |
8386 | * elf64-s390.c (elf_s390_plt_sym_val): New function. | |
8387 | (elf_backend_plt_sym_val): Define. | |
8388 | * elf32-sparc (elf32_sparc_plt_sym_val): New function. | |
8389 | (elf_backend_plt_sym_val): Define. | |
8390 | * elf64-sparc.c (sparc64_elf_plt_sym_val): New function. | |
8391 | (elf_backend_plt_sym_val): Define. | |
8392 | * elf32-ppc.c (ppc_elf_plt_sym_val): New function. | |
8393 | (elf_backend_plt_sym_val): Define. | |
8394 | * aout-target.h (MY_get_synthetic_symtab): Define. | |
8395 | * aout-tic30.c (MY_get_synthetic_symtab): Define. | |
8396 | * coff-rs6000.c (rs6000coff_vec): Add | |
8397 | _bfd_nodynamic_get_synthetic_symtab. | |
8398 | (pmac_xcoff_vec): Likewise. | |
8399 | * coff64-rs6000.c (rs6000coff64_vec): Add | |
8400 | _bfd_nodynamic_get_synthetic_symtab. | |
8401 | (aix5coff64_vec): Likewise. | |
8402 | * sunos.c (MY_get_synthetic_symtab): Define. | |
8403 | * vms.c (vms_get_synthetic_symtab): Define. | |
8404 | ||
d2f7ecac NC |
8405 | 2004-04-22 Nick Clifton <[email protected]> |
8406 | ||
8407 | * bfd.c (bfd_archive_filename): Return NULL on NULL input. | |
8408 | ||
fd99574b NC |
8409 | 2004-04-22 Peter Barada <[email protected]> |
8410 | ||
8411 | * archures.c: Add bfd_mach_mcfv4e to bfd_architecture. | |
8412 | * bfd2-in.h: Regenerate. | |
8413 | * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[]. | |
8414 | ||
23867d67 CD |
8415 | 2004-04-21 Chris Demetriou <[email protected]> |
8416 | ||
8417 | * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove. | |
8418 | * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove. | |
8419 | * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs) | |
8420 | (bfd_mips_elf32_create_embedded_relocs): Remove prototypes | |
8421 | * bfd-in2.h: Regenerate. | |
8422 | ||
2c8c90bc BW |
8423 | 2004-04-21 Bob Wilson <[email protected]> |
8424 | ||
8425 | * elf32-xtensa.c (is_same_value): Add final_static_link argument and | |
8426 | require relocations against a weak symbol to reference the same | |
8427 | symbol hash entry if not a final, static link. | |
8428 | (get_cached_value, add_value_map): Add final_static_link argument. | |
8429 | (remove_literals): Pass final_static_link argument as needed. | |
8430 | ||
40838a72 AC |
8431 | 2004-04-21 Andrew Cagney <[email protected]> |
8432 | ||
8433 | * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec". | |
8434 | (struct opncls, opncls_btell, opncls_bseek, opncls_bread) | |
8435 | (opncls_bwrite, opncls_bclose, opncls_bflush) | |
8436 | (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a | |
8437 | bfd iovec that uses function callbacks. | |
8438 | (bfd_close): Use the iovec's bclose. | |
8439 | * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite) | |
8440 | (cache_bclose, cache_bflush, cache_bstat) | |
8441 | (cache_iovec): New functions and global variable, implement a | |
8442 | cache "iovec", where applicable set bfd_error. | |
8443 | (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec. | |
8444 | * bfdio.c (struct bfd_iovec): Define. | |
8445 | (real_read): Delete function. | |
8446 | (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat) | |
8447 | (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec", | |
8448 | assume that bread and bwrite set bfd_error. | |
8449 | * bfd.c (struct bfd): Add "iovec", update comments. | |
8450 | * bfd-in2.h, libbfd.h: Re-generate. | |
8451 | ||
7f919c84 AC |
8452 | 2004-04-21 Andrew Cagney <[email protected]> |
8453 | ||
8454 | * libaout.h (enum machine_type): Add M_POWERPC_NETBSD. | |
8455 | ||
715df9b8 EB |
8456 | 2004-04-21 Eric Botcazou <[email protected]> |
8457 | ||
8458 | * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function. | |
8459 | (bfd_elf_gc_sections): Fail if a shared object is being created. | |
8460 | Do not fail if dynamic sections have been created. Instead call | |
8461 | elf_gc_mark_dynamic_ref_symbol to mark sections that contain | |
8462 | dynamically referenced symbols. Do not mark the whole graph | |
8463 | rooted at .eh_frame, only the section proper. | |
8464 | ||
6482c264 NC |
8465 | 2004-04-20 DJ Delorie <[email protected]> |
8466 | ||
8467 | * reloc.c: Add BFD_RELOC_32_SECREL. | |
8468 | * bfd-in2.h: Regenerate. | |
8469 | * libbfd.h: Likewise. | |
8470 | * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32. | |
8471 | (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it. | |
8472 | (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise. | |
8473 | ||
4dc570c2 JJ |
8474 | 2004-04-19 Jakub Jelinek <[email protected]> |
8475 | ||
8476 | * elf32-sparc.c (elf32_sparc_relocate_section): Handle | |
8477 | relocs against hidden/protected undefweak symbols properly. | |
8478 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
8479 | ||
0b60d5d3 MK |
8480 | 2004-04-18 Mark Kettenis <[email protected]> |
8481 | ||
8482 | * libaout.h (enum machine_type): Add M_POWERPC_NETBSD. | |
8483 | * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC | |
8484 | core files. | |
8485 | ||
d48bdb99 AM |
8486 | 2004-04-17 Brian Ford <[email protected]> |
8487 | ||
8488 | * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero | |
8489 | filepos for the SizeOfHeaders field. | |
8490 | (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc | |
8491 | overflow. | |
8492 | (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment. | |
8493 | ||
57a1784e AM |
8494 | 2004-04-16 Alan Modra <[email protected]> |
8495 | ||
8496 | * simple.c (bfd_simple_get_relocated_section_contents): Don't | |
8497 | change reloc_done. Set and restore _cooked_size. | |
8498 | (RETURN): Delete. | |
8499 | ||
d1ad3f6f MK |
8500 | 2004-04-15 Mark Kettenis <[email protected]> |
8501 | ||
8502 | * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX | |
8503 | core files. | |
8504 | ||
3d1bca9d NC |
8505 | 2004-04-15 Nick Clifton <[email protected]> |
8506 | ||
8507 | * bfd.c (bfd_archive_filename): Catch NULL bfd pointers. | |
8508 | ||
019b892f AM |
8509 | 2004-04-15 Alan Modra <[email protected]> |
8510 | ||
8511 | * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change. | |
8512 | ||
15b43f48 AM |
8513 | 2004-04-15 H.J. Lu <[email protected]> |
8514 | ||
8515 | * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only | |
8516 | when it is a definition. | |
8517 | ||
6de00a78 AM |
8518 | 2004-04-14 Alan Modra <[email protected]> |
8519 | ||
8520 | * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort | |
8521 | when statically linking PIC code. | |
8522 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
8523 | ||
279500de TS |
8524 | 2004-04-11 Thiemo Seufer <[email protected]> |
8525 | ||
8526 | * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets. | |
8527 | * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3* | |
8528 | targets amd aout_mips_big_vec, aout_mips_little_vec target vectors. | |
8529 | * configure: Regenerate. | |
8530 | ||
ccf2f652 RS |
8531 | 2004-04-08 Richard Sandiford <[email protected]> |
8532 | ||
8533 | * elflink.c: Include libiberty.h. | |
8534 | * Makefile.am (elflink.lo): Depend on libiberty.h. | |
8535 | * Makefile.in: Regenerate. | |
8536 | ||
ca07892d DJ |
8537 | 2004-04-06 Daniel Jacobowitz <[email protected]> |
8538 | ||
8539 | * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use | |
8540 | ".MIPS.stubs". | |
8541 | ||
a5a58ba4 L |
8542 | 2004-04-05 H.J. Lu <[email protected]> |
8543 | ||
8544 | * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always | |
8545 | reserve the memory for dynamic linker | |
8546 | ||
24d18d30 MK |
8547 | 2004-04-05 Mark Kettenis <[email protected]> |
8548 | ||
8549 | * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define. | |
8550 | (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc. | |
8551 | ||
a4d7b4b5 L |
8552 | 2004-04-02 H.J. Lu <[email protected]> |
8553 | ||
8554 | * elf32-cr16c.c (elf32_cr16c_relocate_section): Use | |
8555 | RELOC_FOR_GLOBAL_SYMBOL. | |
8556 | (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym. | |
8557 | ||
1f433d93 L |
8558 | 2004-04-02 H.J. Lu <[email protected]> |
8559 | ||
8560 | * elf32-arm.h (elf32_arm_final_link_relocate): Handle | |
8561 | R_ARM_ALU* only if OLD_ARM_ABI is not defined. | |
8562 | ||
e489d0ae PB |
8563 | 2004-04-01 Paul Brook <[email protected]> |
8564 | ||
8565 | * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update. | |
8566 | * elf32-arm.h (struct elf32_elf_section_map): New. | |
8567 | (struct _arm_elf_section_data): New. | |
8568 | (elf32_arm_section_data): Define. | |
8569 | (struct elf32_arm_link_hash_table): Add byteswap_code. | |
8570 | (elf32_arm_link_hash_table_create): Initialize byteswap_code. | |
8571 | (bfd_elf32_arm_process_before_allocation): Add byteswap_code. | |
8572 | (elf32_arm_post_process_headers): Set EF_ARM_BE8. | |
8573 | (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook, | |
8574 | elf32_arm_compare_mapping, elf32_arm_write_section): New functions. | |
8575 | (bfd_elf32_new_section_hook, elf_backend_write_section, | |
8576 | elf_backend_link_output_symbol_hook): Define. | |
8577 | ||
66a695f0 NC |
8578 | 2004-04-01 Andy Chittenden <[email protected]> |
8579 | ||
8580 | * stabs.c (struct stab_link_includes_totals): Add field 'symb' | |
8581 | that keeps the characters in a B_INCL..B_EINCL range. | |
8582 | (_bfd_link_section_stabs): When computing the sum of the | |
8583 | characters in a B_INCL..B_EINCL range also keep a copy of those | |
8584 | characters. Use this information to distinguish between | |
8585 | include sections that have the same sum and the same length | |
8586 | but which are nevertheless unique. | |
8587 | ||
8375c36b PB |
8588 | 2004-03-31 Paul Brook <[email protected]> |
8589 | ||
8590 | * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*. | |
8591 | * elfarm-nabi.c (elf32_arm_howto_table): Ditto. | |
8592 | ||
a56b48eb NC |
8593 | 2004-03-31 Andy Chittenden <[email protected]> |
8594 | ||
8595 | * stabs.c (struct stab_link_includes_totals): Rename field 'total' | |
8596 | to 'sum_chars' and add field 'num_chars'. | |
8597 | (_bfd_link_section_stabs): When computing the sum of the | |
8598 | characters in a B_INCL..B_EINCL range also keep a count of the | |
8599 | number of characters. Use this information to help distinguish | |
8600 | between include sections when have the same sum but which | |
8601 | nevertheless are still unique. | |
8602 | ||
1fbc7e7a | 8603 | 2004-03-31 Mattias Engdegård <[email protected]> |
3d456464 NC |
8604 | |
8605 | * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs. | |
8606 | ||
0949843d | 8607 | 2004-03-30 Galit Heller <[email protected]> |
eb61d2d6 | 8608 | Tomer Levi <[email protected]> |
0949843d NC |
8609 | |
8610 | * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo. | |
8611 | (ALL_MACHINES_CFILES): Add cpu-cr16c.c. | |
8612 | (BFD32_BACKENDS): Add elf32-cr16c.lo. | |
8613 | (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c. | |
8614 | (cpu-cr16c.lo): New target. | |
8615 | (elf32-cr16c.lo): Likewise. | |
8616 | * Makefile.in: Regenerate. | |
8617 | * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c. | |
8618 | (bfd_archures_list): Add bfd_cr16c_arch. | |
8619 | * config.bfd: Handle cr16c-*-elf*. | |
8620 | * configure.in: Handle bfd_elf32_cr16c_vec. | |
8621 | * configure: Regenerate. | |
8622 | * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C, | |
8623 | BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C, | |
8624 | BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C, | |
8625 | BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C, | |
8626 | BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C, | |
8627 | BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C, | |
8628 | BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C, | |
8629 | BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C, | |
8630 | BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C, | |
8631 | BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C, | |
8632 | BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C, | |
8633 | BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C, | |
8634 | BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C, | |
8635 | BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C, | |
8636 | BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C, | |
8637 | BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C, | |
8638 | BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C, | |
8639 | BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C, | |
8640 | BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C, | |
8641 | BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C. | |
8642 | * targets.c (bfd_elf32_cr16c_vec): Declare. | |
8643 | (bfd_target_vector): Add bfd_elf32_cr16c_vec. | |
8644 | * cpu-cr16c.c: New file. | |
8645 | * elf32-cr16c.c: Likewise. | |
8646 | * libbfd.h: Regenerate. | |
8647 | * bfd-in2.h: Likewise. | |
8648 | ||
baaff79e JJ |
8649 | 2004-03-30 Jakub Jelinek <[email protected]> |
8650 | ||
8651 | * elf.c (map_sections_to_segments): Fix handling of .tbss. | |
8652 | ||
c152c796 AM |
8653 | 2004-03-27 Alan Modra <[email protected]> |
8654 | ||
8655 | * Makefile.am: Remove all mention of elflink.h. | |
8656 | * Makefile.in: Regenerate. | |
8657 | * bfd-in.h (bfd_elf_discard_info): Declare. | |
8658 | (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete. | |
8659 | * bfd-in2.h: Regenerate. | |
8660 | * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol, | |
8661 | bfd_elf32_link_record_dynamic_symbol, | |
8662 | bfd_elf64_link_record_dynamic_symbol, | |
8663 | _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link, | |
8664 | bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol, | |
8665 | _bfd_elf32_link_record_local_dynamic_symbol, | |
8666 | _bfd_elf64_link_record_local_dynamic_symbol, | |
8667 | _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets, | |
8668 | _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link, | |
8669 | _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry, | |
8670 | _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets, | |
8671 | _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry, | |
8672 | _bfd_elf32_reloc_symbol_deleted_p, | |
8673 | _bfd_elf64_reloc_symbol_deleted_p): Delete. | |
8674 | (bfd_elf_link_record_dynamic_symbol, | |
8675 | bfd_elf_link_record_local_dynamic_symbol, | |
8676 | bfd_elf_final_link, bfd_elf_gc_sections, | |
8677 | bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry, | |
8678 | bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link, | |
8679 | bfd_elf_reloc_symbol_deleted_p): Declare. | |
8680 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
8681 | * elf32-arm.h: Update for changed function names. Remove local | |
8682 | WILL_CALL_FINISH_DYNAMIC_SECTION define. | |
8683 | * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c, | |
8684 | * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c, | |
8685 | * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c, | |
8686 | * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c, | |
8687 | * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c, | |
8688 | * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c, | |
8689 | * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c, | |
8690 | * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise. | |
8691 | * elfxx-target.h (bfd_elfNN_bfd_final_link): Define. | |
8692 | (bfd_elfNN_print_symbol): Define. | |
8693 | * elfcode.h: Don't include elflink.h. | |
8694 | (elf_bfd_discard_info, elf_reloc_symbol_deleted_p, | |
8695 | elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections, | |
8696 | elf_gc_common_finalize_got_offsets, elf_gc_common_final_link, | |
8697 | elf_gc_record_vtinherit, elf_gc_record_vtentry, | |
8698 | elf_link_record_local_dynamic_symbol): Don't define. | |
8699 | * elflink.c: Update for changed function names. Move elflink.h | |
8700 | code here. | |
8701 | * elflink.h: Delete file. | |
8702 | * po/SRC-POTFILES.in: Regenerate. | |
8703 | * po/bfd.pot: Regenerate. | |
8704 | ||
6a9cae7f AM |
8705 | 2004-03-27 Alan Modra <[email protected]> |
8706 | ||
8707 | * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting | |
8708 | "name" for global syms accidentally removed in 2004-03-20 change. | |
8709 | ||
140f6c8e AM |
8710 | 2004-03-27 Alan Modra <[email protected]> |
8711 | ||
8712 | * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field. | |
8713 | * elflink.h: Replace all occurrences of sizeof (Elf_External_*) | |
8714 | where Elf_External_* is different for 64 and 32 bit, with | |
8715 | corresponding elf_size_info field. | |
8716 | (struct elf_final_link_info): Use "bfd_byte *" instead | |
8717 | of "Elf_External_Sym *" for external_syms and symbuf. | |
8718 | (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local | |
8719 | vars and use instead of ELF_R_INFO and ELF_R_TYPE macros. | |
8720 | (struct elf_link_sort_rela): Add "sym_mask" alias for "offset". | |
8721 | (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM. | |
8722 | (elf_link_sort_cmp2): Adjust. | |
8723 | (elf_link_sort_relocs): Set up r_sym_mask local var instead of | |
8724 | using ELF_R_SYM macro. Set u.sym_mask. | |
8725 | (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro | |
8726 | version, elf_stringtab_init. Ditto for bfd_section_from_elf_index | |
8727 | vs. section_from_elf_index. Adjust Elf_External_Sym pointer | |
8728 | arithmetic. Pass bed to elf_link_flush_output_syms. Adjust | |
8729 | Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and | |
8730 | swap_syn_out functions. Rearrange dyn swap in/out switch. | |
8731 | (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic. | |
8732 | Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out. | |
8733 | (elf_link_flush_output_syms): Add elf_backend_data arg. | |
8734 | (elf_link_check_versioned_symbol): Likewise. | |
8735 | (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol. | |
8736 | Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out. | |
8737 | (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up | |
8738 | r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM, | |
8739 | ELF_R_TYPE and ELF_R_INFO macros. | |
8740 | (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation | |
8741 | based on size rather than using ELF_R_INFO. | |
8742 | (elf_gc_mark): Set up r_sym_shift local var and use instead of | |
8743 | ELF_R_SYM macro. | |
8744 | (struct alloc_got_off_arg): New. | |
8745 | (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of | |
8746 | ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets. | |
8747 | (elf_gc_allocate_got_offsets): Adjust. | |
8748 | (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of | |
8749 | ELF_R_SYM. Use bfd_section_from_elf_index. | |
8750 | (elf_bfd_discard_info): Set cookie.r_sym_shift. | |
8751 | * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete. | |
8752 | (elf_slurp_symbol_table): Use bfd_section_from_elf_index. | |
8753 | ||
14bde378 SS |
8754 | 2004-03-26 Stan Shebs <[email protected]> |
8755 | ||
8756 | Remove MPW support, no longer used. | |
8757 | * config.bfd (powerpc-*-mpw*): Remove configuration. | |
8758 | * mpw-config.in, mpw-make.sed: Remove files. | |
8759 | * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code. | |
8760 | ||
555cd476 AM |
8761 | 2004-03-26 Alan Modra <[email protected]> |
8762 | ||
8763 | * elf64-ppc.c (elf_backend_add_symbol_hook): Define. | |
8764 | (ppc64_elf_add_symbol_hook): New function. | |
8765 | * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove | |
8766 | const from Elf_Internal_Sym param. | |
8767 | * elflink.c (elf_link_add_object_symbols): Adjust. | |
8768 | * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust. | |
8769 | * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust. | |
8770 | * elf32-i370.c (elf_backend_add_symbol_hook): Adjust. | |
8771 | * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust. | |
8772 | * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust. | |
8773 | * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust. | |
8774 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust. | |
8775 | * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust. | |
8776 | * elf32-v850.c (v850_elf_add_symbol_hook): Adjust. | |
8777 | * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust. | |
8778 | * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust. | |
8779 | * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust. | |
8780 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust. | |
8781 | * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust. | |
8782 | * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust. | |
8783 | * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust. | |
8784 | ||
4ad4eba5 AM |
8785 | 2004-03-26 Alan Modra <[email protected]> |
8786 | ||
8787 | * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define. | |
8788 | * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete. | |
8789 | (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete. | |
8790 | (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete. | |
8791 | (bfd_elf64_bfd_link_add_symbols): Delete. | |
8792 | (bfd_elf_link_add_symbols): Declare. | |
8793 | * elfcode.h (elf_bfd_link_add_symbols): Delete. | |
8794 | * elflink.c: Include safe-ctype.h. | |
8795 | (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag, | |
8796 | make static. | |
8797 | (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static. | |
8798 | (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make | |
8799 | static. | |
8800 | (elf_link_add_archive_symbols): Rename from | |
8801 | _bfd_elf_link_add_archive_symbols, make static. | |
8802 | (elf_link_add_object_symbols): New function. Corresponding | |
8803 | elflink.h function converted to use elf_size_info. | |
8804 | (bfd_elf_link_add_symbols): Likewise. | |
8805 | (bfd_elf_size_dynamic_sections): Adjust. | |
8806 | * elflink.h (elf_bfd_link_add_symbols): Delete. | |
8807 | (elf_link_add_object_symbols): Delete. | |
8808 | * elf32-gen.c (elf32_generic_link_add_symbols): Call | |
8809 | bfd_elf_link_add_symbols. | |
8810 | * elf64-gen.c (elf64_generic_link_add_symbols): Likewise. | |
8811 | ||
5a580b3a AM |
8812 | 2004-03-25 Alan Modra <[email protected]> |
8813 | ||
8814 | * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed | |
8815 | and chained shared libs only if dynsym. Clear dynsym on forced-local. | |
c152c796 | 8816 | |
5a580b3a AM |
8817 | * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare. |
8818 | (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete. | |
8819 | (_bfd_elf_add_dt_needed_tag): Declare. | |
8820 | (_bfd_elf_sort_symbol): Declare. | |
8821 | (_bfd_elf_finalize_dynstr): Declare. | |
8822 | (RELOC_FOR_GLOBAL_SYM): Formatting. | |
8823 | * elfcode.h (elf_add_dynamic_entry): Delete. | |
8824 | * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding | |
8825 | elflink.h function converted to use elf_size_info. | |
8826 | (_bfd_elf_add_dt_needed_tag): Likewise. | |
8827 | (_bfd_elf_sort_symbol): Likewise. | |
8828 | (_bfd_elf_finalize_dynstr): Likewise. | |
8829 | (compute_bucket_count): Likewise. | |
8830 | (bfd_elf_size_dynamic_sections): Likewise. Check result of | |
8831 | _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref. | |
8832 | (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from.. | |
8833 | * elflink.h: ..here. | |
8834 | (sort_symbol, add_dt_needed_tag): Delete. | |
8835 | (elf_add_dynamic_entry, elf_finalize_dynstr): Delete. | |
8836 | (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete. | |
8837 | Update all users. | |
8838 | * elf32-arm.h (add_dynamic_entry): Update. Remove casts. | |
8839 | * elf32-cris.c (add_dynamic_entry): Likewise. | |
8840 | * elf32-hppa.c (add_dynamic_entry): Likewise. | |
8841 | * elf32-i370.c (add_dynamic_entry): Likewise. | |
8842 | * elf32-i386.c (add_dynamic_entry): Likewise. | |
8843 | * elf32-m32r.c (add_dynamic_entry): Likewise. | |
8844 | * elf32-m68k.c (add_dynamic_entry): Likewise. | |
8845 | * elf32-ppc.c (add_dynamic_entry): Likewise. | |
8846 | * elf32-s390.c (add_dynamic_entry): Likewise. | |
8847 | * elf32-sh.c (add_dynamic_entry): Likewise. | |
8848 | * elf32-sparc.c (add_dynamic_entry): Likewise. | |
8849 | * elf32-vax.c (add_dynamic_entry): Likewise. | |
8850 | * elf32-xtensa.c (add_dynamic_entry): Likewise. | |
8851 | * elf64-alpha.c (add_dynamic_entry): Likewise. | |
8852 | * elf64-hppa.c (add_dynamic_entry): Likewise. | |
8853 | * elf64-ppc.c (add_dynamic_entry): Likewise. | |
8854 | * elf64-s390.c (add_dynamic_entry): Likewise. | |
8855 | * elf64-sparc.c (add_dynamic_entry): Likewise. | |
8856 | * elf64-x86-64.c (add_dynamic_entry): Likewise. | |
8857 | * elfxx-ia64.c (add_dynamic_entry): Likewise. | |
8858 | * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise. | |
8859 | * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise. | |
8860 | * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise. | |
8861 | * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise. | |
8862 | ||
d507cf36 PB |
8863 | 2004-03-23 Paul Brook <[email protected]> |
8864 | ||
8865 | * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3. | |
8866 | ||
88d65ad6 BW |
8867 | 2004-03-22 Bob Wilson <[email protected]> |
8868 | ||
8869 | * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read | |
8870 | literal tables and check for relocs outside of literal pools. | |
8871 | (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag. | |
8872 | (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or | |
8873 | set DF_TEXTREL. | |
8874 | (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry. | |
8875 | (elf_xtensa_relocate_section): Read literal tables and check for | |
8876 | dynamic relocations in read-only sections and not in literal pools. | |
c152c796 | 8877 | |
b9cf773d AM |
8878 | 2004-03-23 Alan Modra <[email protected]> |
8879 | ||
8880 | PR 51. | |
8881 | * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char. | |
8882 | ||
e4a2175c HPN |
8883 | 2004-03-22 Hans-Peter Nilsson <[email protected]> |
8884 | ||
8885 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT, | |
8886 | R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol | |
8887 | not defined by the executable, or defined in a DSO. | |
8888 | <eliding run-time relocation of .got>: Initialize GOT entry for a | |
8889 | function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an | |
8890 | executable. | |
8891 | (cris_elf_gc_sweep_hook): Improve fallthrough marking. | |
8892 | (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold | |
8893 | a PLT reloc to GOT for an executable. | |
8894 | (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with | |
b9cf773d | 8895 | .got for a DSO and explain why. |
e4a2175c HPN |
8896 | (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs |
8897 | and unreferenced symbols for which a PLT is defined. Adjust | |
8898 | dynamic-symbol pruning correspondingly, to make sure we don't lose | |
8899 | a dynamic symbol also defined by a DSO. | |
8900 | ||
b2a8e766 AM |
8901 | 2004-03-22 Alan Modra <[email protected]> |
8902 | ||
8903 | * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section | |
8904 | and rel args. Group input and output args. Wrap to 80 columns. | |
8905 | * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c, | |
8906 | elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c, | |
8907 | elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c, | |
8908 | elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c, | |
8909 | elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c, | |
8910 | elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c, | |
8911 | elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c, | |
8912 | elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update | |
8913 | RELOC_FOR_GLOBAL_SYMBOL invocation. | |
8914 | ||
59c2e50f L |
8915 | 2004-03-20 H.J. Lu <[email protected]> |
8916 | ||
8917 | * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if | |
8918 | unresolved symbols in objects aren't allowed. | |
8919 | ||
8920 | * elf-hppa.h (elf_hppa_relocate_section): Properly handle | |
8921 | unresolved symbols. | |
8922 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. | |
8923 | (elf_hppa_unmark_useless_dynamic_symbols): | |
8924 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. | |
8925 | * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. | |
8926 | (elf32_hppa_relocate_section): Likewise. | |
8927 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
8928 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
8929 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
8930 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
8931 | * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. | |
8932 | ||
8933 | * elf-m10200.c (mn10200_elf_relocate_section): Use | |
8934 | RELOC_FOR_GLOBAL_SYMBOL. | |
8935 | * elf32-avr.c (elf32_avr_relocate_section): Likewise. | |
8936 | * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. | |
8937 | * elf32-fr30.c (fr30_elf_relocate_section): Likewise. | |
8938 | * elf32-h8300.c (elf32_h8_relocate_section): Likewise. | |
8939 | * elf32-i860.c (elf32_i860_relocate_section): Likewise. | |
8940 | * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise. | |
8941 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
8942 | * elf32-msp430.c (elf32_msp430_relocate_section): Likewise. | |
8943 | * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. | |
8944 | * elf32-v850.c (v850_elf_relocate_section): Likewise. | |
8945 | * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. | |
8946 | * elf64-mmix.c (mmix_elf_relocate_section): Likewise. | |
8947 | ||
9992270f DA |
8948 | 2004-03-19 John David Anglin <[email protected]> |
8949 | ||
36751eee DA |
8950 | * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32. |
8951 | (final_link_relocate): Likewise. | |
9992270f DA |
8952 | * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for |
8953 | R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations. | |
8954 | ||
05864e2a AM |
8955 | 2004-03-19 Alan Modra <[email protected]> |
8956 | ||
8957 | * Makefile.am: Run "make dep-am". | |
8958 | * Makefile.in: Regenerate. | |
8959 | * aclocal.m4: Regenerate. | |
8960 | * config.in: Regenerate. | |
8961 | * po/bfd.pot: Regenerate. | |
8962 | ||
f218a464 | 8963 | 2004-03-19 Alan Modra <[email protected]> |
0f8a2703 AM |
8964 | H.J. Lu <[email protected]> |
8965 | ||
8966 | * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move | |
8967 | type and size change code to where it was previously. Remove | |
8968 | dt_needed param. Treat old weak syms as strong if new sym is | |
8969 | from a shared lib, even when old sym is from another shared | |
8970 | lib. Remove unnecessary tests of oldweak and newweak. Correct | |
8971 | comments. | |
8972 | (_bfd_elf_add_default_symbol): Remove dt_needed param. Update | |
8973 | _bfd_elf_merge_symbol calls. | |
8974 | * elflink.h (elf_link_add_object_symbols): Update calls. Remove | |
8975 | dt_needed local var. Update comments. | |
8976 | * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype. | |
8977 | (_bfd_elf_add_default_symbol): Likewise. | |
f218a464 AM |
8978 | |
8979 | * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle | |
8980 | strong syms in one shared object overriding weak syms in another. | |
8981 | ||
79349b09 AM |
8982 | 2004-03-18 Alan Modra <[email protected]> |
8983 | ||
4a43e768 AM |
8984 | * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add |
8985 | dyn_lib_class field. Rearrange for better packing. | |
8986 | (elf_dt_soname): Delete. | |
8987 | (elf_dyn_lib_class): Define. | |
8988 | * elf.c (bfd_elf_set_dt_needed_name): Update comment. | |
8989 | (bfd_elf_set_dt_needed_soname): Delete. | |
8990 | (bfd_elf_set_dyn_lib_class): New function. | |
8991 | * elflink.h (add_dt_needed_tag): New function. Split out from.. | |
8992 | (elf_link_add_object_symbols): ..here. Rename "name" to "soname". | |
8993 | Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback | |
8994 | initialization of soname. | |
8995 | (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of | |
8996 | elf_dt_soname. | |
8997 | * bfd-in.h (enum dynamic_lib_link_class): New. | |
8998 | (bfd_elf_set_dt_needed_soname): Delete. | |
8999 | (bfd_elf_set_dyn_lib_class): Declare. | |
9000 | * bfd-in2.h: Regenerate. | |
9001 | ||
79349b09 AM |
9002 | * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling. |
9003 | (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs. | |
9004 | * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in | |
9005 | symbol loop. Instead use add_needed to flag tag as written. | |
9006 | ||
d13d89fa NS |
9007 | 2004-03-17 Nathan Sidwell <[email protected]> |
9008 | ||
9009 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct | |
9010 | logic for null_input_bfd detection. | |
9011 | ||
9183ed4b AM |
9012 | 2004-03-17 Ralf Corsepius <[email protected]> |
9013 | ||
9014 | * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*. | |
9015 | ||
021d7868 MK |
9016 | 2004-03-16 Mark Kettenis <[email protected]> |
9017 | ||
9018 | * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove | |
9019 | code. | |
9020 | ||
51992aec AM |
9021 | 2004-03-16 Alan Modra <[email protected]> |
9022 | ||
9023 | * elflink.c (elf_link_read_relocs_from_section): Don't use | |
9024 | NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check.. | |
9025 | (_bfd_elf_link_read_relocs): ..to here. | |
9026 | * elf32-ppc.c (ppc_elf_relax_section): Formatting. | |
9027 | ||
ccba357f AM |
9028 | 2004-03-16 Alan Modra <[email protected]> |
9029 | ||
9030 | * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override | |
9031 | values selected in configure.host. Require both to be defined | |
9032 | before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to | |
9033 | corresponding BFD_HOST vars with quotes. | |
9034 | <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc; | |
9035 | Always require BFD_HOST_64_BIT_DEFINED. | |
9036 | <file_ptr type>: Find off_t size before emitting message. Combine | |
9037 | off_t and ftello64 conditional. | |
9038 | * configure: Regenerate. | |
9039 | ||
41978308 AM |
9040 | 2004-03-16 Alan Modra <[email protected]> |
9041 | ||
9042 | * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer | |
9043 | aliasing warning. Remove trailing whitespace throughout file. | |
9044 | ||
d63b5ed9 DA |
9045 | 2004-03-15 John David Anglin <[email protected]> |
9046 | ||
9047 | * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of | |
9048 | input_section in calls to get_dyn_name. | |
9049 | * elf64-hppa.c (get_dyn_name): Change type of first argument to "bfd *". Use section id of first section in input BFD to build dynamic name for | |
9050 | local symbols. | |
9051 | (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name. | |
9052 | ||
8ce8c090 AM |
9053 | 2004-03-15 Alan Modra <[email protected]> |
9054 | ||
9055 | * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types. | |
9056 | (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here. | |
9057 | (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t. | |
9058 | (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t. | |
9059 | (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t. | |
9060 | * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8. | |
9061 | (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set | |
9062 | when using long. | |
9063 | * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t. | |
9064 | (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT. | |
9065 | (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise. | |
9066 | (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT. | |
9067 | (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise. | |
9068 | * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t. | |
9069 | (read_8_bytes, read_indirect_string, read_address): Likewise. | |
9070 | (read_abbrevs, parse_comp_unit): Likewise. | |
9071 | * targets.c (struct bfd_target): Likewise. | |
9072 | * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use. | |
9073 | * hppabsd-core.c: Likewise. Formatting. | |
9074 | * hpux-core.c: Likewise. | |
9075 | * irix-core.c: Likewise. | |
9076 | * netbsd-core.c: Likewise. | |
9077 | * osf-core.c: Likewise. | |
9078 | * ptrace-core.c: Likewise. | |
9079 | * sco5-core.c: Likewise. | |
9080 | * trad-core.c: Likewise. | |
9081 | * configure: Regenerate. | |
9082 | * bfd-in2.h: Regenerate. | |
9083 | ||
edeb6e24 AM |
9084 | 2004-03-15 Alan Modra <[email protected]> |
9085 | ||
9086 | * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*. | |
9087 | (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise. | |
9088 | (bfd_getb_signed_64, bfd_getl_signed_64): Likewise. | |
9089 | (bfd_getb_signed_32, bfd_getl_signed_32): Likewise. | |
9090 | (bfd_getb_signed_16, bfd_getl_signed_16): Likewise. | |
9091 | (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise. | |
9092 | (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise. | |
9093 | * libbfd.c: Likewise in function definitions. | |
9094 | (bfd_put_8): Mask with 0xff rather than casting to char. | |
9095 | (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise. | |
9096 | (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise. | |
9097 | (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify. | |
9098 | (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise. | |
9099 | (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise. | |
9100 | (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise. | |
9101 | * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify. | |
9102 | (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise. | |
9103 | (H_GET_64, H_GET_32, H_GET_16): Likewise. | |
9104 | (H_GET_S64, H_GET_S32, H_GET_S16): Likewise. | |
9105 | * archive.c (do_slurp_coff_armap): Update swap prototype. | |
9106 | * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*. | |
9107 | (tic54x_getl_signed_32): Likewise. | |
9108 | (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char. | |
9109 | * mach-o.c (bfd_mach_o_read_header): Update get32 prototype. | |
9110 | * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*. | |
9111 | (bfd_getp_signed_32, bfd_putp32): Likewise. | |
9112 | * targets.c (struct bfd_target): Use void* in place of bfd_byte* for | |
9113 | bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32, | |
9114 | bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16, | |
9115 | bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64, | |
9116 | bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16, | |
9117 | bfd_h_getx_signed_16, bfd_h_putx16. | |
9118 | * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes. | |
9119 | * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS. | |
9120 | * hpux-core.c: Likewise. | |
9121 | * irix-core.c: Likewise. | |
9122 | * netbsd-core.c: Likewise. | |
9123 | * osf-core.c: Likewise. | |
9124 | * ptrace-core.c: Likewise. | |
9125 | * sco5-core.c: Likewise. | |
9126 | * trad-core.c: Likewise. | |
9127 | * bfd-in2.h: Regenerate. | |
9128 | ||
c1b954e2 AM |
9129 | 2004-03-15 Matt Thomas <[email protected]> |
9130 | ||
9131 | * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is | |
9132 | selected. | |
9133 | ||
85cfd8d3 MK |
9134 | 2004-03-13 Mark Kettenis <[email protected]> |
9135 | ||
9136 | * config.bfd: Add x86_64-*-openbsd*. | |
9137 | * configure.in (x86_64-*-openbsd*): Set COREFILE to | |
9138 | netbsd-core.lo. | |
9139 | * configure: Regenerate. | |
9140 | ||
d1f161ea NC |
9141 | 2004-03-12 Nick Clifton <[email protected]> |
9142 | Dave Murphy <[email protected]> | |
c1b954e2 | 9143 | |
d1f161ea NC |
9144 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks |
9145 | if the input bfd does not contain any code. | |
9146 | ||
8b6f2683 JW |
9147 | 2004-03-09 Steve Ellcey <[email protected]> |
9148 | ||
9149 | * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq. | |
9150 | ||
79cda7cf FF |
9151 | 2004-03-05 Fred Fish <[email protected]> |
9152 | ||
9153 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force | |
9154 | mips16 symbols to be even rather than testing first for even/odd. | |
9155 | (_bfd_mips_elf_link_output_symbol_hook): Ditto. | |
9156 | ||
e5caec89 NS |
9157 | 2004-03-05 Nathan Sidwell <[email protected]> |
9158 | ||
9159 | * elf.c (map_sections_to_segments): Ignore .tbss sections for | |
9160 | layout purposes. | |
9161 | ||
02bb6eae AO |
9162 | 2004-03-03 Alexandre Oliva <[email protected]> |
9163 | ||
9164 | * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and | |
9165 | undefined symbols as hash_new. | |
9166 | ||
ae51a426 JR |
9167 | 2003-03-03 Andrew Stubbs <[email protected]> |
9168 | ||
9169 | * archures.c: Add bfd_mach_sh4_nommu_nofpu. | |
9170 | * cpu-sh.c: Ditto. | |
9171 | * elf32-sh.c: Ditto. | |
9172 | * bfd-in2.h: Regenerate. | |
9173 | ||
3b712a1a AO |
9174 | 2004-03-02 Alexandre Oliva <[email protected]> |
9175 | ||
9176 | * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and | |
9177 | dynrelocs. | |
9178 | (_frv_count_got_plt_entries): Initialize them. | |
9179 | (frv_pic_relocs_info_find): Add insert argument. Adjust all | |
9180 | callers. | |
9181 | (frv_pic_relocs_info_for_global): Likewise. | |
9182 | (frv_pic_relocs_info_for_local): Likewise. | |
9183 | (frv_pic_merge_early_relocs_info): New. | |
9184 | (_frv_resolve_final_relocs_info): Use it in case one entry maps to | |
9185 | another. | |
9186 | (_frv_add_dyn_reloc): Add entry argument. Adjust all callers. | |
9187 | Check that we don't exceed the allocated count for entry. | |
9188 | (_frv_add_rofixup): Likewise. | |
9189 | (_frv_emit_got_relocs_plt_entries): Adjust for coding standards. | |
9190 | (elf32_frv_finish_dynamic_sections): Improve error message in case | |
9191 | we emit too few rofixup entries. | |
9192 | ||
676a64f4 RS |
9193 | 2004-03-01 Richard Sandiford <[email protected]> |
9194 | ||
9195 | * archures.c (bfd_mach_fr450): New. | |
9196 | * bfd-in2.h: Regenerate. | |
9197 | * cpu-frv.c (arch_info_450): New bfd_arch_info_type. | |
9198 | (arch_info_500): Link to it. | |
9199 | * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data) | |
9200 | (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags. | |
9201 | (frv_elf_arch_extension_p): New function. | |
9202 | (frv_elf_merge_private_bfd_data): Use it. | |
9203 | ||
0ad989f9 L |
9204 | 2004-02-28 H.J. Lu <[email protected]> |
9205 | ||
9206 | * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype. | |
9207 | ||
9208 | * elflink.h (is_global_data_symbol_definition): Moved to | |
9209 | elflink.c. | |
9210 | (elf_link_is_defined_archive_symbol): Likewise. | |
9211 | (elf_link_add_archive_symbols): Likewise. Renamed to | |
9212 | _bfd_elf_link_add_archive_symbols. | |
9213 | ||
9214 | * elflink.c (elf_link_is_defined_archive_symbol): Get the size | |
9215 | of ELF symbol table entry from backend. | |
9216 | (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols | |
9217 | instead of elf_link_add_object_symbols. | |
9218 | ||
ec3391e7 AO |
9219 | 2004-02-27 Alexandre Oliva <[email protected]> |
9220 | ||
9221 | * elf-bfd.h (struct elf_backend_data): Added | |
9222 | elf_backend_can_make_relative_eh_frame, | |
9223 | elf_backend_can_make_lsda_relative_eh_frame and | |
9224 | elf_backend_encode_eh_address. | |
9225 | (_bfd_elf_encode_eh_address): Declare. | |
9226 | (_bfd_elf_can_make_relative): Declare. | |
9227 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new | |
9228 | hooks to decide whether to attempt to make_relative and | |
9229 | make_lsda_relative. | |
9230 | (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address. | |
9231 | (_bfd_elf_can_make_relative): New. | |
9232 | (_bfd_elf_encode_eh_address): New. | |
9233 | * elf32-frv.c (frv_elf_use_relative_eh_frame): New. | |
9234 | (frv_elf_encode_eh_address): New. | |
9235 | (elf_backend_can_make_relative_eh_frame): Define. | |
9236 | (elf_backend_can_make_lsda_relative_eh_frame): Define. | |
9237 | (elf_backend_encode_eh_address): Define. | |
9238 | * elfxx-target.h | |
9239 | (elf_backend_can_make_relative_eh_frame): Define. | |
9240 | (elf_backend_can_make_lsda_relative_eh_frame): Define. | |
9241 | (elf_backend_encode_eh_address): Define. | |
9242 | (elfNN_bed): Add them. | |
9243 | ||
e6deed0a AO |
9244 | 2004-02-27 Alexandre Oliva <[email protected]> |
9245 | ||
9246 | * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set | |
9247 | complain_on_overflow to signed. | |
9248 | ||
b60d7a1a L |
9249 | 2004-02-27 H.J. Lu <[email protected]> |
9250 | ||
9251 | * elflink.h (sort_symbol): New. | |
9252 | (elf_link_add_object_symbols): Use a sorted symbol array for | |
9253 | weakdef. | |
9254 | ||
1c3ff0f2 MS |
9255 | 2004-02-27 Jakub Jelinek <[email protected]> |
9256 | ||
9257 | * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL | |
9258 | for pc relative relocs. | |
9259 | (elf_s390_relocate_section): Likewise. | |
9260 | * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL | |
9261 | for pc relative relocs. | |
9262 | (elf_s390_relocate_section): Likewise. | |
9263 | ||
de9811af L |
9264 | 2004-02-26 H.J. Lu <[email protected]> |
9265 | ||
9266 | * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to | |
9267 | count_dyn_reloc. | |
9268 | ||
ac33696c L |
9269 | 2004-02-25 H.J. Lu <[email protected]> |
9270 | ||
9271 | * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext. | |
9272 | field to track if a relocation is against readonly section. | |
9273 | (count_dyn_reloc): Take a new argument for rent->reltext. | |
9274 | (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc. | |
9275 | (get_reloc_section): Don't set ia64_info->reltext here. | |
9276 | (allocate_dynrel_entries): Set ia64_info->reltext here. | |
9277 | ||
072c8903 AO |
9278 | 2004-02-24 Alexandre Oliva <[email protected]> |
9279 | ||
9280 | * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local. | |
9281 | (_frv_emit_got_relocs_plt_entries): Decay relocation to protected | |
9282 | function's descriptor to symbol+offset, and map local undefweak | |
9283 | symbol to NULL function descriptor. | |
9284 | (elf32_frv_relocate_section): Likewise. | |
9285 | ||
aca305d9 NC |
9286 | 2004-02-23 Mark Kettenis <[email protected]> |
9287 | ||
9288 | * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and | |
9289 | M_X86_64_NETBSD. | |
9290 | * netbsd-core.c (M_SPARC64_OPENBSD): Define. | |
9291 | (netbsd_core_file_p): Set architecture from machine ID for | |
9292 | selected machines. | |
9293 | ||
646411fb JJ |
9294 | 2004-02-23 Jakub Jelinek <[email protected]> |
9295 | ||
9296 | * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and | |
9297 | DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry. | |
9298 | ||
1de1a317 L |
9299 | 2004-02-21 H.J. Lu <[email protected]> |
9300 | ||
9301 | * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined | |
9302 | symbols with non-default visibility. | |
9303 | ||
3c9d0484 DS |
9304 | 2004-02-21 Danny Smith <[email protected]> |
9305 | ||
9306 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear | |
9307 | IMAGE_SCN_MEM_WRITE on known sections only. | |
9308 | ||
a876ecf9 JJ |
9309 | 2004-02-20 Jakub Jelinek <[email protected]> |
9310 | ||
9311 | * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak | |
9312 | symbols used in PIE relocs. | |
9313 | ||
a8a6d7ce JJ |
9314 | 2004-02-19 Jakub Jelinek <[email protected]> |
9315 | ||
9316 | * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear | |
9317 | .plt sh_entsize. | |
9318 | ||
d080fcd2 DJ |
9319 | 2004-02-18 Daniel Jacobowitz <[email protected]> |
9320 | ||
9321 | * configure.in: Update version to 2.15.90. | |
9322 | * configure: Regenerate. | |
9323 | ||
d25aed71 | 9324 | 2004-02-17 Daniel Jacobowitz <[email protected]> |
c1b954e2 | 9325 | Richard Sandiford <[email protected]> |
d25aed71 RS |
9326 | |
9327 | * elfxx-mips.c (mips_elf_calculate_relocation): Use | |
9328 | _bfd_elf_symbol_refs_local_p to decide whether to decay | |
9329 | a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend. | |
9330 | (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE | |
9331 | relocs if the symbol wasn't defined by a regular object file. | |
9332 | Don't check the symbol's dynindx. | |
9333 | ||
d7ce59e3 AC |
9334 | 2004-02-16 Andrew Cagney <[email protected]> |
9335 | ||
9336 | * bfd-in.h (file_ptr, ufile_ptr): Configure type using | |
9337 | @bfd_file_ptr@. | |
9338 | * bfd-in2.h: Re-generate. | |
9339 | ||
ca0b7686 AC |
9340 | 2004-02-14 Andrew Cagney <[email protected]> |
9341 | ||
9342 | * configure.host (HDEFINES): When hppa*-*-hpux*, define | |
9343 | _LARGEFILE64_SOURCE. | |
9344 | ||
340b6d91 AC |
9345 | 2004-02-13 Andrew Cagney <[email protected]> |
9346 | ||
9347 | * elf.c (vma_page_aligned_bias): New function. | |
9348 | (assign_file_positions_except_relocs) | |
9349 | (assign_file_positions_for_segments): Replace broken modulo | |
9350 | arithmetic with call to vma_page_aligned_bias. | |
9351 | ||
1012372a AC |
9352 | 2004-02-11 Andrew Cagney <[email protected]> |
9353 | ||
7c192733 AC |
9354 | * bfd-in.h: Update copyright. |
9355 | (bfd_tell): Change return type to file_ptr. | |
9356 | * bfd-in2.h: Re-generate. | |
9357 | * cache.c: Update copyright. | |
9358 | (bfd_cache_lookup_worker): Use real_fseek, do not cast offset | |
9359 | parameter. | |
9360 | (close_one): Use real_ftell. | |
9361 | * bfdio.c: Update copyright. | |
9362 | (real_ftell, real_fseek): New functions. | |
9363 | (bfd_tell): Use real_fseek and real_ftell, change return type to | |
9364 | file_ptr. | |
9365 | (bfd_seek): Use real_ftell and real_fseek, change type of | |
9366 | file_position to a file_ptr. | |
9367 | * libbfd-in.h: Update copyright. | |
9368 | (real_ftell, real_fseek): Declare. | |
9369 | * libbfd.h: Re-generate. | |
9370 | ||
1012372a AC |
9371 | * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64, |
9372 | fseeko and fseeko64. Determine bfd_file_ptr. | |
9373 | * configure: Re-generate. | |
c1ea0c09 | 9374 | * config.in: Re-generate. |
c1b954e2 | 9375 | |
3255318a NC |
9376 | 2004-02-09 Anil Paranjpe <[email protected]> |
9377 | ||
9378 | * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w. | |
9379 | * elf32-h8300.c: Likewise. | |
9380 | ||
0d5f9994 NC |
9381 | 2004-02-09 Christian Vogel <[email protected]> |
9382 | Nick Clifton <[email protected]> | |
9383 | ||
9384 | * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch | |
9385 | GOT entries with no associated GOT subsection. | |
9386 | ||
174fd7f9 RS |
9387 | 2004-02-09 Richard Sandiford <[email protected]> |
9388 | ||
9389 | * bfd-elf.h (elf_backend_name_local_section_symbols): New hook. | |
9390 | * elf.c (swap_out_syms): Use it to decide whether local section | |
9391 | symbols should be named. | |
9392 | * elfxx-target.h (elf_backend_name_local_section_symbols): New macro. | |
9393 | * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare. | |
9394 | (elf_backend_name_local_section_symbols): Define. | |
9395 | * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New. | |
9396 | ||
03609792 L |
9397 | 2004-01-30 H.J. Lu <[email protected]> |
9398 | ||
9399 | * elfxx-ia64.c (elfNN_ia64_relax_brl): New function. | |
9400 | (elfNN_ia64_relax_section): Optimize brl to br during the relax | |
9401 | finalize pass. | |
9402 | ||
ea01195e AO |
9403 | 2004-01-30 Alexandre Oliva <[email protected]> |
9404 | ||
9405 | * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer | |
9406 | to bfd_link_hash_entry passed by reference to | |
9407 | _bfd_generic_link_add_one_symbol. | |
9408 | ||
838e70c5 L |
9409 | 2004-01-25 H.J. Lu <[email protected]> |
9410 | ||
9411 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm | |
9412 | relocations against dynamic symbols. | |
9413 | ||
4f199be3 DJ |
9414 | 2004-01-23 Daniel Jacobowitz <[email protected]> |
9415 | ||
9416 | * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13 | |
9417 | change. | |
9418 | ||
28d39d1a NC |
9419 | 2004-01-21 Tom Rix <[email protected]> |
9420 | ||
9421 | * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw. | |
9422 | * bfd-in2.h, libbfd.h: Rebuilt. | |
9423 | ||
66bed356 DS |
9424 | 2004-01-20 Danny Smith <[email protected]> |
9425 | ||
9426 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove | |
9427 | IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT | |
9428 | flag has been cleared. | |
9429 | ||
7e89635a KH |
9430 | 2004-01-19 Kazu Hirata <[email protected]> |
9431 | ||
9432 | * coff-h8300.c: Add and adjust comments about relaxation. | |
9433 | * elf32-h8300.c: Likewise. | |
9434 | ||
e804e836 KH |
9435 | 2004-01-16 Kazu Hirata <[email protected]> |
9436 | ||
9437 | * coff-h8300.c: Fix comment typos. | |
9438 | * elf32-h8300.c: Likewise. | |
9439 | ||
630a7b0a KH |
9440 | 2004-01-16 Kazu Hirata <[email protected]> |
9441 | ||
9442 | * coff-h8300.c: Add comments about relaxation. | |
9443 | * elf32-h8300.c: Likewise. | |
9444 | ||
f8b73030 MR |
9445 | 2004-01-14 Maciej W. Rozycki <[email protected]> |
9446 | ||
9447 | * acinclude.m4: Quote names of macros to be defined by AC_DEFUN | |
9448 | throughout. | |
9449 | * aclocal.m4: Regenerate. | |
9450 | * configure: Regenerate. | |
9451 | ||
32159579 ILT |
9452 | 2004-01-13 Ian Lance Taylor <[email protected]> |
9453 | ||
9454 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call | |
9455 | mips_elf64_rtype_to_howto instead of using howto_table. | |
9456 | ||
c84cd8ee DJ |
9457 | 2004-01-13 Daniel Jacobowitz <[email protected]> |
9458 | ||
9459 | * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created | |
9460 | the .plt section. | |
9461 | (elf32_arm_check_relocs): Don't increment the PLT refcount for | |
9462 | relocs which would not use the PLT. | |
9463 | ||
680a3378 AM |
9464 | 2004-01-13 Alan Modra <[email protected]> |
9465 | ||
9466 | * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs. | |
9467 | (ppc64_elf_gc_sweep_hook): Likewise. | |
9468 | (ppc64_elf_size_dynamic_sections): Test for .plt directly. | |
9469 | ||
faca21e5 NC |
9470 | 2004-01-12 Anil Paranjpe <[email protected]> |
9471 | ||
9472 | Adds linker relaxation support for bit manipulation insns like | |
680a3378 | 9473 | band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset, |
faca21e5 | 9474 | bst, btst, bxor. |
680a3378 | 9475 | * elf32-h8300.c: Opcode for bit manipulation insn is checked in |
faca21e5 | 9476 | elf32_h8_relax_section function while relxation for aa:16 and aa:32. |
680a3378 | 9477 | * coff-h8300.c: Opcode for bit manipulation insn is checked in |
faca21e5 NC |
9478 | h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32. |
9479 | ||
818a27ac AM |
9480 | 2004-01-12 Alan Modra <[email protected]> |
9481 | ||
9482 | * dwarf2.c: Convert to C90, remove unneeded casts and prototypes. | |
9483 | ||
96ef1419 KH |
9484 | 2004-01-11 Kazu Hirata <[email protected]> |
9485 | ||
9486 | * elf32-h8300.c: Fix formatting. | |
9487 | ||
babfd660 KH |
9488 | 2004-01-11 Kazu Hirata <[email protected]> |
9489 | ||
9490 | * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no | |
9491 | dynamic object is present. Declare r_symndx and h in an inner | |
9492 | scope. | |
9493 | * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. | |
9494 | ||
7359ea65 DJ |
9495 | 2004-01-09 Daniel Jacobowitz <[email protected]> |
9496 | ||
9497 | * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count. | |
9498 | (elf32_arm_copy_indirect_symbol): Don't copy pc_count. | |
9499 | (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs | |
9500 | identically. Do not emit PC24 relocations for shared libraries. | |
9501 | (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs | |
9502 | identically. Don't adjust pc_count. | |
9503 | (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically. | |
9504 | Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't | |
9505 | adjust count for branch relocations. | |
9506 | (allocate_dynrelocs): Correct typo in call to | |
9507 | WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for | |
9508 | PC24 or PLT32 relocs when linking. | |
9509 | ||
44e88952 NC |
9510 | 2004-01-09 Dmitry Semyonov <[email protected]> |
9511 | ||
9512 | * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D | |
9513 | relocation howto with ARM_26 one for consistency. | |
9514 | (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations | |
9515 | that will be converted to ARM_26D ones, since we always want 'done' | |
9516 | relocations to be reflected in section's data. | |
9517 | (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction | |
9518 | offset. | |
9519 | (_bfd_final_link_relocate): Do not modify "inplace" data, if not | |
9520 | requested. | |
9521 | ||
1e7fef1d NC |
9522 | 2004-01-08 Dmitry Semyonov <[email protected]> |
9523 | ||
9524 | * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that | |
9525 | are not partial_inplace during a relocatable link. | |
9526 | ||
4f075348 KH |
9527 | 2004-01-08 Kazu Hirata <[email protected]> |
9528 | ||
babfd660 | 9529 | * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early |
4f075348 KH |
9530 | if no dynamic object is present. Declare r_symndx and h in an |
9531 | inner scope. | |
9532 | ||
de0d9f33 L |
9533 | 2004-01-07 H.J. Lu <[email protected]> |
9534 | ||
9535 | * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install | |
9536 | trampoline if it is known out of range. | |
9537 | ||
51532845 AO |
9538 | 2004-01-06 Alexandre Oliva <[email protected]> |
9539 | ||
9540 | 2003-12-17 Alexandre Oliva <[email protected]> | |
9541 | * elf32-frv.c (_frv_osec_readonly_p): New. | |
9542 | (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for | |
9543 | undefweak symbol. | |
9544 | (_frv_count_got_plt_entries): Adjust expected count accordingly. | |
9545 | (elf32_frv_relocate_section): Likewise. Error out if attempting | |
9546 | to emit rofixups or dynamic relocs in read-only segments. Use | |
9547 | _bfd_elf_section_offset to adjust r_offsets in rofixups and | |
9548 | dynamic relocations. | |
9549 | 2003-12-12 Alexandre Oliva <[email protected]> | |
9550 | * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic | |
9551 | relocations or fixups involving merged sections correctly. Avoid | |
9552 | crash when undefined symbol is referenced by R_FRV_32 or | |
9553 | R_FRV_FUNCDESC_VALUE. | |
9554 | 2003-12-02 Alexandre Oliva <[email protected]> | |
9555 | * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of | |
9556 | input section holding local symbol to addend of R_FRV_32 or | |
9557 | R_FRV_FUNCDESC_VALUE dynamic relocation. | |
9558 | 2003-11-27 Alexandre Oliva <[email protected]> | |
9559 | * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg. | |
9560 | (elf32_frv_always_size_sections): Don't store pointer to | |
9561 | __stacksize symbol in sec_info. | |
9562 | (elf32_frv_modify_segment_map): Look it up here. | |
9563 | 2003-11-26 Alexandre Oliva <[email protected]> | |
9564 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address | |
9565 | of the lazy PLT entry, not only its offset, as the low word of a | |
9566 | function descriptor. | |
9567 | 2003-11-10 Alexandre Oliva <[email protected]> | |
9568 | * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize | |
9569 | if a hash table entry already exists but is not a definition. | |
9570 | 2003-11-05 Alexandre Oliva <[email protected]> | |
9571 | * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc. | |
9572 | (_frv_add_rofixup): Don't inline. | |
9573 | (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address | |
9574 | for undefweak symbols. | |
9575 | (elf32_frv_relocate_section): Avoid crash while computing | |
9576 | relocation when linking with shared library. Only emit rofixups | |
9577 | and dynamic relocations for alloc&load sections. Mark binaries | |
9578 | with inter-segment relocations for relocation as a unit. | |
9579 | (_frv_create_got_section): Rename .rofixup.got to .rofixup. | |
9580 | (DEFAULT_STACK_SIZE): New. | |
9581 | (_frv_count_got_plt_entries): Fix thinko in deciding whether to | |
9582 | emit rofixups or dynamic relocs when linking dynamic non-PIE | |
9583 | executables. | |
9584 | (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and | |
9585 | shared libs too. Reserve the last entry for the GOT pointer. | |
9586 | (elf32_frv_finish_dynamic_sections): Emit it. | |
9587 | (elf32_frv_always_size_sections): New. | |
9588 | (elf32_frv_modify_segment_map): New. | |
9589 | (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC | |
9590 | sections. | |
9591 | (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set. | |
9592 | (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC. | |
9593 | (elf_backend_always_size_sections): New. | |
9594 | (elf_backend_modify_segment_map): New. | |
9595 | 2003-10-31 Alexandre Oliva <[email protected]> | |
9596 | * config.bfd: Added frv-*-*linux*. | |
9597 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for | |
9598 | ABS section, instead of crashing. | |
9599 | (elf32_frv_relocate_section): Don't crash before warning about | |
9600 | different segments in non-PIC relocation. | |
9601 | 2003-10-17 Alexandre Oliva <[email protected]> | |
9602 | * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24 | |
9603 | relocs to undefweak symbols. | |
9604 | (elf32_frv_relocate_section): Ditto for undefined symbols. | |
9605 | 2003-10-06 Alexandre Oliva <[email protected]> | |
9606 | * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure | |
9607 | gotfixup section was created. | |
9608 | 2003-09-30 Alexandre Oliva <[email protected]> | |
9609 | * elf32-frv.c (elf32_frv_howto_table): Change GOT12, | |
9610 | FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to | |
9611 | complain_overflow_signed. | |
9612 | * elf32-frv.c (_frv_add_rofixup): Do not error out if contents | |
9613 | have not been allocated. | |
9614 | (_frv_emit_got_relocs_plt_entries): Return non-void. Assert | |
9615 | privfd only if dynamic sections were created. | |
9616 | (elf32_frv_relocate_section): Compute gprel_segment, and use it | |
9617 | for GPREL relocs. When linking relocatable FDPIC executables, | |
9618 | emit warnings for relocations that would be illegal on PIE or | |
9619 | shared libraries. Emit rofixup for R_FRV_32 only if input object | |
9620 | is not FDPIC. | |
9621 | (_frv_create_got_section): Define _gp symbol in the rofixup | |
9622 | section. | |
9623 | (elf32_frv_finish_dynamic_sections): If rofixups needed but | |
9624 | dynamic sections missing, error out requesting -melf32frvfd. | |
9625 | 2003-09-19 Alexandre Oliva <[email protected]> | |
9626 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange | |
9627 | computation of addends from section and global or local symbol | |
9628 | value. Change return type to bfd_boolean, and return a failure if | |
9629 | a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a | |
9630 | nonzero addend is required. | |
9631 | (elf32_frv_relocate_section): Likewise. Print error for | |
9632 | unsupported nonzero addends. | |
9633 | 2003-09-18 Alexandre Oliva <[email protected]> | |
9634 | * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections, | |
9635 | force everything local. | |
9636 | (_frv_emit_got_relocs_plt_entries): Cope with NULL sec. | |
9637 | * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup. | |
9638 | (frv_gotfixup_section): New. | |
9639 | (FRV_SYM_LOCAL): Accept undefweak and local common symbols. | |
9640 | (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd | |
9641 | and relocsfdv. | |
9642 | (_frv_add_rofixup): New. | |
9643 | (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE | |
9644 | fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and | |
9645 | improve some ugly conditions. | |
9646 | (elf32_frv_relocate_section): Likewise. Reject inter-segment | |
9647 | relocations in fdpic. | |
9648 | (_frv_create_got_section): Create .rofixup.got section. | |
9649 | (struct _frv_dynamic_got_info): Added fixups. | |
9650 | (_frv_count_got_plt_entries): Account in-GOT relocations into | |
9651 | relocs32, relocsfd and relocsfdv. Account them into relocs or | |
9652 | fixups, as appropriate. | |
9653 | (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify | |
9654 | sizing of gotrel. | |
9655 | (elf32_frv_finish_dynamic_sections): Verify that the right number | |
9656 | of relocations and fixups was generated. | |
9657 | (elf32_frv_check_relocs): Compute relocs32, relocsfd and | |
9658 | relocsfdv. | |
9659 | * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of | |
9660 | SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL. | |
9661 | (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function | |
9662 | descriptor of a (formerly-)global symbol is local. | |
9663 | (struct frv_pic_relocs_info): Adjust comments. | |
9664 | (_frv_emit_got_relocs_plt_entries): Adjust. | |
9665 | (elf32_frv_relocate_section): Likewise. | |
9666 | (_frv_count_got_plt_entries): Likewise. | |
9667 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global | |
9668 | symbol's value to addend in the common preamble. Decay dynamic | |
9669 | symbols to section+offset if they bind or call locally, for GOT | |
9670 | and FUNCDESC_VALUE, respectively. | |
9671 | (elf32_frv_relocate_section): Likewise. | |
9672 | (elf32_frv_check_relocs): Don't register as dynamic symbols of | |
9673 | internal or hidden visibility. | |
9674 | 2003-09-17 Alexandre Oliva <[email protected]> | |
9675 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as | |
9676 | argument, so as to not call _bfd_elf_rel_local_sym to compute it. | |
9677 | (elf32_frv_relocate_section): Pass relocation addend in. Use | |
9678 | original relocation addend to look up the got relocs/plt entries | |
9679 | table. Do not call _bfd_elf_rel_local_sym. Don't error out when | |
9680 | processing relocations that reference .scommon symbols. | |
9681 | 2003-09-15 Alexandre Oliva <[email protected]> | |
9682 | Introduce support for dynamic linking. | |
9683 | * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits. | |
9684 | (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto, | |
9685 | elf32_frv_rel_funcdesc_value_howto): New REL descriptors. | |
9686 | (frv_reloc_type_lookup): Return REL howtos for executables and | |
9687 | dynamic libraries. | |
9688 | (frv_info_to_howto_rel): New. | |
9689 | (struct frv_elf_link_hash_table): New. | |
9690 | (frv_hash_table, frv_got_section, frv_gotrel_section, | |
9691 | frv_plt_section, frv_pltrel_section, frv_relocs_info, | |
9692 | frv_got_initial_offset, frv_plt_initial_offset): New macros. | |
9693 | (frv_elf_link_hash_table_create): New. | |
9694 | (struct frv_pic_relocs_info): New. | |
9695 | (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New. | |
9696 | (frv_pic_relocs_info_find): New. | |
9697 | (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local): | |
9698 | New. | |
9699 | (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New. | |
9700 | (_frv_add_dyn_reloc, _frv_osec_to_segment): New. | |
9701 | (_frv_emit_got_relocs_plt_entries): New. | |
9702 | (elf32_frv_relocate_section): Add support for dynamic linking. | |
9703 | Handle new relocations. | |
9704 | (_frv_create_got_section): New. | |
9705 | (elf32_frv_create_dynamic_sections): New. | |
9706 | (ELF_DYNAMIC_INTERPRETER): New. | |
9707 | (struct _frv_dynamic_got_info): New. | |
9708 | (_frv_count_got_plt_entries): New. | |
9709 | (struct _frv_dynamic_got_plt_info): New. | |
9710 | (_frv_compute_got_alloc_data): New. | |
9711 | (_frv_get_got_entry, _frv_get_fd_entry): New. | |
9712 | (_frv_assign_got_entries, _frv_assign_plt_entries): New. | |
9713 | (_frv_resolve_final_relocs_info): New. | |
9714 | (elf32_frv_size_dynamic_sections): New. | |
9715 | (elf32_frv_finish_dynamic_sections): New. | |
9716 | (elf32_frv_adjust_dynamic_symbol): New. | |
9717 | (elf32_frv_finish_dynamic_symbol): New. | |
9718 | (elf32_frv_check_relocs): Handle new relocs. Explain how the | |
9719 | whole thing works. | |
9720 | (elf_info_to_howto_rel): Define. | |
9721 | (bfd_elf32_bfd_link_hash_table_create): Define. | |
9722 | (elf_backend_create_dynamic_sections): Define. | |
9723 | (elf_backend_adjust_dynamic_symbol): Define. | |
9724 | (elf_backend_size_dynamic_sections): Define. | |
9725 | (elf_backend_finish_dynamic_symbol): Define. | |
9726 | (elf_backend_finish_dynamic_sections): Define. | |
9727 | (elf_backend_want_got_sym): Define. | |
9728 | (elf_backend_got_header_size): Define. | |
9729 | (elf_backend_want_got_plt): Define. | |
9730 | (elf_backend_plt_readonly): Define. | |
9731 | (elf_backend_want_plt_sym): Define. | |
9732 | (elf_backend_plt_header_size): Define. | |
9733 | (elf_backend_may_use_rel_p): Define. | |
9734 | (elf_backend_may_use_rela_p): Define. | |
9735 | (elf_backend_default_use_rela_p): Define. | |
9736 | 2003-08-08 Alexandre Oliva <[email protected]> | |
9737 | * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12, | |
9738 | R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, | |
9739 | R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New. | |
9740 | (frv_reloc_map): Map the corresponding BFD relocs to them. | |
9741 | (frv_reloc_type_lookup): ... and back to BFD relocs. | |
9742 | * reloc.c: New relocs. | |
9743 | * bfd-in2.h, libbfd.h: Rebuilt. | |
9744 | 2003-08-04 Alexandre Oliva <[email protected]> | |
9745 | * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO, | |
9746 | R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI, | |
9747 | R_FRV_FUNCDESC_GOTLO): New. | |
9748 | (frv_reloc_map): Map the corresponding BFD relocs to them. | |
9749 | (frv_reloc_type_lookup): ... and back to BFD relocs. | |
9750 | * reloc.c: New relocs. | |
9751 | * bfd-in2.h, libbfd.h: Rebuilt. | |
9752 | ||
4301eeb1 MR |
9753 | 2004-01-05 Maciej W. Rozycki <[email protected]> |
9754 | ||
9755 | * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional | |
9756 | targets to support pages of up to 64kB. | |
9757 | (elf32_bed): Redefine to get a separate backend data structure for | |
9758 | traditional targets. | |
9759 | * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional | |
9760 | targets to support pages of up to 64kB. | |
9761 | (elf64_bed): Redefine to get a separate backend data structure for | |
9762 | traditional targets. | |
9763 | * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional | |
9764 | targets to support pages of up to 64kB. | |
9765 | (elf32_bed): Redefine to get a separate backend data structure for | |
9766 | traditional targets. | |
9767 | ||
0647ed71 MK |
9768 | 2004-01-04 Mark Kettenis <[email protected]> |
9769 | ||
9770 | * elf32-sparc.c (elf32_sparc_grok_psinfo): New function. | |
9771 | ||
61adc1a4 NC |
9772 | 2004-01-02 Mark Kettenis <[email protected]> |
9773 | ||
9774 | * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD. | |
9775 | (elf_i386_grok_psinfo): Likewise. | |
9776 | ||
b50c15dc NC |
9777 | 2004-01-02 Bernardo Innocenti <[email protected]> |
9778 | ||
9779 | * config.bfd: Add m68k-uClinux target. | |
9780 | ||
2627de83 AM |
9781 | 2004-01-01 Grant Edwards <[email protected]> |
9782 | ||
9783 | * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored. | |
9784 | * elf32-h8300.c (elf32_h8_gc_mark_hook): New function. | |
9785 | (elf32_h8_gc_sweep_hook): New function. | |
9786 | (elf_backend_gc_mark_hook): Define. | |
9787 | (elf_backend_gc_sweep_hook): Define. | |
9788 | (elf_backend_can_gc_sections): Define. | |
9789 | ||
c9e214e5 | 9790 | For older changes see ChangeLog-0203 |
56882138 AM |
9791 | \f |
9792 | Local Variables: | |
9793 | mode: change-log | |
9794 | left-margin: 8 | |
9795 | fill-column: 74 | |
9796 | version-control: never | |
9797 | End: |