]>
Commit | Line | Data |
---|---|---|
c5ae1840 TS |
1 | 2004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
2 | ||
3 | * elfxx-mips.c (MINUS_TWO): Define. | |
4 | (mips_elf_higher, mips_elf_highest, | |
5 | mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for | |
6 | some bfd_vma values. | |
7 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup. | |
8 | ||
a99cf92b DA |
9 | 2004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
10 | ||
11 | * som.c (log2): Rename to exact_log2. Adjust all callers. | |
12 | ||
0da76f83 NC |
13 | 2004-05-13 Paul Brook <paul@codesourcery.com> |
14 | ||
c273895f | 15 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle |
336b9722 NC |
16 | dwarf3 format CIE entries. Remove comment about the size of the |
17 | ra_column field. It is now correctly deduced. | |
0da76f83 | 18 | |
4b363073 NC |
19 | 2004-05-13 Joel Sherrill <joel@oarcorp.com> |
20 | ||
21 | * config.bfd (or32-*-rtems*): Switch to elf. | |
22 | ||
9598fbe5 NC |
23 | 2004-05-13 Nick Clifton <nickc@redhat.com> |
24 | ||
25 | * po/fr.po: Updated French translation. | |
26 | ||
8c37241b JJ |
27 | 2004-05-11 Jakub Jelinek <jakub@redhat.com> |
28 | ||
29 | * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol | |
30 | into .dynsym if elf_section_data (sec)->dynindx <= 0. | |
31 | Adjust counting of last_local. | |
32 | (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections | |
33 | other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt | |
34 | created by the linker nor !SHF_ALLOC. | |
35 | ||
36 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Point | |
37 | DT_PLTGOT to the start of the .got.plt section instead of the | |
38 | .got output section. Set sh_entsize for .got section in addition | |
39 | to .got.plt. | |
40 | (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_ | |
41 | is at sgot->output_section->vma. | |
42 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point | |
43 | DT_PLTGOT to the start of the .got.plt section instead of the | |
44 | .got output section. | |
45 | (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_ | |
46 | is at sgot->output_section->vma. Set sh_entsize for .got section | |
47 | in addition to .got.plt. | |
48 | * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO. | |
49 | (bfd_section_from_phdr): Likewise. | |
50 | (map_sections_to_segments): Likewise. | |
51 | (assign_file_positions_for_segments): Likewise. | |
52 | (get_program_header_size): Likewise. | |
53 | * elflink.c (bfd_elf_size_dynamic_sections): Set | |
54 | elf_tdata (output_bfd)->relro from info->relro. | |
55 | * elf-bfd.h (struct elf_obj_tdata): Add relro field. | |
56 | ||
3f980e41 AO |
57 | 2004-05-08 Alexandre Oliva <aoliva@redhat.com> |
58 | ||
59 | * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get | |
60 | a zero symndx for which we hadn't accounted a dynamic relocation. | |
61 | (_frvfdpic_add_rofixup): Likewise. | |
62 | ||
d70270c5 BF |
63 | 2004-05-07 Brian Ford <ford@vss.fsi.com> |
64 | DJ Delorie <dj@redhat.com> | |
65 | ||
66 | * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]: | |
67 | Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE. | |
68 | * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize | |
69 | IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines. | |
70 | ||
7e9f3bd6 AO |
71 | 2004-05-07 Alexandre Oliva <aoliva@redhat.com> |
72 | ||
73 | * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return | |
74 | immediately if there's no link info. | |
75 | (elf32_frvfdpic_copy_private_bfd_data): New. | |
76 | (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic. | |
77 | ||
eb61d2d6 ZW |
78 | 2004-05-06 Zack Weinberg <zack@codesourcery.com> |
79 | ||
80 | * dwarf2.c (add_line_info): Also set info->filename to NULL if | |
81 | filename argument is null; do not call strlen on a null pointer. | |
82 | ||
ecb2d096 DJ |
83 | 2004-05-06 Daniel Jacobowitz <drow@mvista.com> |
84 | ||
85 | * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32 | |
86 | special case. | |
87 | ||
43850d5b AO |
88 | 2004-05-05 Alexandre Oliva <aoliva@redhat.com> |
89 | ||
90 | * configure.in (bfd_elf32_frvfdpic_vec): New. | |
91 | * configure: Rebuilt. | |
92 | * targets.c (bfd_elf32_frvfdpic_vec): New. | |
93 | * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default | |
94 | on the latter. | |
95 | * elf32-frv.c: Prefix all identifiers added for FDPIC support with | |
96 | frvfdpic instead of frv. Rearrange elf-target macros such that | |
97 | the FDPIC-specific ones are only defined for this new target | |
98 | vector. | |
99 | (bfd_elf32_frvfdpic_vec): Declare. | |
100 | (IS_FDPIC): New. | |
101 | (elf32_frv_relocate_section): Use it to enable segment checking | |
102 | and to control rofixup emission. Add output section vma to | |
103 | applied relocation in non-LOAD non-ALLOC sections. Use | |
104 | _bfd_error_handler for errors. | |
105 | (_frv_create_got_section): Create .rel.got and .rofixup only in | |
106 | FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the | |
107 | linker script. | |
108 | (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC. | |
109 | (elf32_frvfdpic_modify_segment_map): Likewise. | |
110 | (elf32_frv_finish_dynamic_sections): New, do-nothing. | |
111 | (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve | |
112 | error message if we miscompute the rofixup size. | |
113 | (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC. | |
114 | (frvfdpic_elf_encode_eh_address): Likewise. | |
115 | (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC. | |
116 | Record relocs only in FDPIC. Make sure _gp is defined for GPREL | |
117 | relocs. Reject unknown relocation types. | |
118 | (elf32_frv_object_p): Make sure target vector matches FDPIC bits. | |
119 | (frv_elf_merge_private_bfd_data): Likewise. | |
120 | (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as | |
121 | 0x4000 for newly-added elf32-frvfdpic. | |
122 | ||
06fc8a8c NC |
123 | 2004-05-05 Nick Clifton <nickc@redhat.com> |
124 | ||
125 | PR/136 | |
126 | * cache.c (bfd_cache_lookup_worker): Call abort() rather than | |
127 | returning NULL as most users of this function do not check its | |
128 | return value. | |
33216455 NC |
129 | * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result |
130 | of bfd_cache_lookup(). | |
131 | * sco5-core.c (sco5_core_file_p): Likewise. | |
132 | * trad-core.c (trad_unix_core_file_p): Likewise. | |
06fc8a8c NC |
133 | |
134 | 2004-05-05 Nick Clifton <nickc@redhat.com> | |
135 | ||
136 | * cache.c (bfd_cache_lookup): Improve formatting. | |
137 | * archive.c: Fix formatting. | |
138 | ||
6b6e92f4 NC |
139 | 2004-05-05 Peter Barada <peter@the-baradas.com> |
140 | ||
141 | * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x. | |
142 | * cpu-m68k.c(bfd_m68k_arch): Likewise. | |
143 | * bfd-in2.h(bfd_architecture): Regenerate. | |
144 | ||
6a8d1586 AM |
145 | 2004-05-03 Alan Modra <amodra@bigpond.net.au> |
146 | ||
147 | * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded | |
148 | SEC_MERGE sections. | |
149 | * elflink.c (elf_link_input_bfd): Adjust output reloc index for | |
150 | those against discarded link-once and SEC_MERGE section symbols. | |
151 | ||
fafe6678 L |
152 | 2004-05-02 H.J. Lu <hongjiu.lu@intel.com> |
153 | ||
154 | * section.c (bfd_get_section_by_name_if): New. | |
155 | * bfd-in2.h: Regenerated. | |
156 | ||
ad7b9a36 AM |
157 | 2004-05-02 Alan Modra <amodra@bigpond.net.au> |
158 | ||
159 | * som.c (som_bfd_is_group_section): Define. | |
160 | ||
73499ab8 AM |
161 | 2004-05-01 Alan Modra <amodra@bigpond.net.au> |
162 | ||
163 | * section.c (bfd_make_section_anyway): Copy the whole | |
164 | bfd_hash_entry, not just "next" from existing entry. | |
165 | ||
45c5e9ed L |
166 | 2004-04-30 H.J. Lu <hongjiu.lu@intel.com> |
167 | ||
168 | * elf.c (bfd_section_from_shdr): Maintain the section order in | |
169 | a section group. | |
170 | (special_sections): Add ".note.GNU-stack". | |
171 | (elf_fake_sections): Handle section group for relocatable | |
172 | link.. | |
173 | ||
bc87dd2e L |
174 | 2004-04-30 H.J. Lu <hongjiu.lu@intel.com> |
175 | ||
176 | * section.c (bfd_sections_find_if): New. | |
177 | * bfd-in2.h: Regenerated. | |
178 | ||
72adc230 AM |
179 | 2004-04-30 Alan Modra <amodra@bigpond.net.au> |
180 | ||
181 | * section.c (bfd_make_section_anyway): Add all sections to hash tab. | |
182 | ||
183 | * elf-bfd.h (bfd_elf_is_group_section): Declare. | |
184 | * elf.c (bfd_elf_is_group_section): New function. | |
185 | * elfxx-target.h (bfd_elfNN_bfd_is_group_section | |
186 | * section.c (bfd_generic_is_group_section): New function. | |
187 | * targets.c (struct bfd_target): Add _bfd_is_group_section field. | |
188 | (BFD_JUMP_TABLE_LINK): Adjust. | |
189 | * aout-adobe.c (aout_32_bfd_is_group_section): Define. | |
190 | * aout-target.h (MY_bfd_is_group_section): Define. | |
191 | * aout-tic30.c (MY_bfd_is_group_section): Define. | |
192 | * bfd.c (bfd_is_group_section): Define. | |
193 | * binary.c (binary_bfd_is_group_section): Define. | |
194 | * bout.c (b_out_bfd_is_group_section): Define. | |
195 | * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define. | |
196 | * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define. | |
197 | * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust. | |
198 | * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust. | |
199 | * coffcode.h (coff_bfd_is_group_section): Define. | |
200 | * i386msdos.c (msdos_bfd_is_group_section): Define. | |
201 | * i386os9k.c (os9k_bfd_is_group_section): Define. | |
202 | * ieee.c (ieee_bfd_is_group_section): Define. | |
203 | * ihex.c (ihex_bfd_is_group_section): Define. | |
204 | * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define. | |
205 | * mach-o.c (bfd_mach_o_bfd_is_group_section): Define. | |
206 | * mmo.c (mmo_bfd_is_group_section): Define. | |
207 | * nlm-target.h (nlm_bfd_is_group_section): Define. | |
208 | * oasys.c (oasys_bfd_is_group_section): Define. | |
209 | * pef.c (bfd_pef_bfd_is_group_section): Define. | |
210 | * ppcboot.c (ppcboot_bfd_is_group_section): Define. | |
211 | * srec.c (srec_bfd_is_group_section): Define. | |
212 | * tekhex.c (tekhex_bfd_is_group_section): Define. | |
213 | * versados.c (versados_bfd_is_group_section): Define. | |
214 | * vms.c (vms_bfd_is_group_section): Define. | |
215 | * xsym.c (bfd_sym_bfd_is_group_section): Define. | |
216 | * bfd-in2.h: Regenerate. | |
217 | * libbfd.h: Regenerate. | |
218 | ||
20f0a1ad AM |
219 | 2004-04-30 Alan Modra <amodra@bigpond.net.au> |
220 | ||
221 | * elflink.c (elf_gc_mark): Follow indirect and warning syms. | |
222 | ||
f7458fc9 | 223 | 2004-04-30 Hans-Peter Nilsson <hp@axis.com> |
7dfb3b6b HPN |
224 | |
225 | * configure.in: Update version to 2.15.91. | |
226 | * configure: Regenerate. | |
227 | ||
8a7140c3 NC |
228 | 2004-04-29 Brian Ford <ford@vss.fsi.com> |
229 | ||
230 | * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack. | |
231 | * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define. | |
232 | [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them. | |
233 | (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise. | |
234 | [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and | |
235 | .gnu.linkonce.wi. sections. | |
236 | * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define. | |
237 | (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and | |
238 | .gnu.linkonce.wi.. | |
239 | * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise. | |
240 | (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. | |
241 | ||
3e722fb5 CD |
242 | 2004-04-28 Chris Demetriou <cgd@broadcom.com> |
243 | ||
244 | * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16. | |
245 | * bfd-in2.h: Regenerate. | |
246 | * libbfd.h: Likewise. | |
247 | ||
351e2b5a DA |
248 | 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
249 | ||
250 | * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and | |
251 | dup_common fields. | |
252 | (setup_sections): Use som_subspace_dictionary_record struct instead | |
253 | subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is | |
254 | is_comdat, is_common or dup_common. | |
255 | (som_prep_headers): Use som_subspace_dictionary_record struct. Set | |
256 | is_comdat, is_common and dup_common in section subspace_dict from | |
257 | copy_data. | |
258 | (som_begin_writing): Use som_subspace_dictionary_record struct. | |
259 | (som_finish_writing): Likewise. | |
260 | (som_bfd_derive_misc_symbol_info): Add support to set is_comdat, | |
261 | is_common and dup_common flags in info for symbol. Add comment | |
262 | regarding linker support for these fields. Slightly reorganize | |
263 | function. | |
264 | (som_build_and_write_symbol_table): Set is_comdat, is_common and | |
265 | dup_common fields in symbol table from symbol info. | |
266 | (bfd_som_set_subsection_attributes): Add comdat, common and dup_common | |
267 | arguments. Set corresponding fields in copy_data. Change all callers. | |
268 | (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library | |
269 | symbol table. | |
270 | (som_vec): Add SEC_LINK_ONCE to applicable section flags. | |
271 | * som.h (som_subspace_dictionary_record): Define. | |
272 | (som_copyable_section_data_struct): Add is_comdat, is_common and | |
273 | dup_common fields. | |
274 | (som_section_data_struct): Use som_subspace_dictionary_record struct | |
275 | instead of subspace_dictionary_record. | |
276 | (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype. | |
277 | ||
3ba3bc8c BW |
278 | 2004-04-27 Bob Wilson <bob.wilson@acm.org> |
279 | ||
280 | * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size | |
281 | if set. Check reloc_done flag before applying relocations. Use | |
282 | output addresses, both when applying relocations and when comparing | |
283 | against the specified section. | |
284 | (elf_xtensa_relocate_section): Use output address to check if dynamic | |
285 | reloc is in a literal pool. Set section's reloc_done flag. | |
286 | ||
beb8df56 L |
287 | 2004-04-27 H.J. Lu <hongjiu.lu@intel.com> |
288 | ||
289 | * elf32-sh64.c (elf_backend_section_flags): New. Defined. | |
290 | (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges | |
291 | section. | |
292 | (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges | |
293 | section. | |
294 | ||
1829f4b2 AM |
295 | 2004-04-27 Alan Modra <amodra@bigpond.net.au> |
296 | ||
297 | * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign | |
298 | structure field removed in 2004-04-24 patch. | |
299 | * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix. | |
300 | ||
301 | * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>): | |
302 | Constify hdr arg. | |
303 | * elf32-arm.h (elf32_arm_section_flags): Likewise. | |
304 | * elf64-alpha.c (elf64_alpha_section_flags): Likewise. | |
305 | * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise. | |
306 | * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section | |
307 | field before calling elf_backend_section_flags. | |
308 | ||
4030e8f6 CD |
309 | 2004-04-24 Chris Demetriou <cgd@broadcom.com> |
310 | ||
311 | * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16) | |
312 | (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove. | |
313 | (bfd_elf32_bfd_reloc_type_lookup): Remove cases for | |
314 | BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL, | |
315 | and BFD_RELOC_32_PCREL. | |
316 | (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16, | |
317 | R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32. | |
318 | * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. | |
319 | (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16. | |
320 | (mips_elf_next_relocation): Move comment about matching HI/LO | |
321 | relocations to... | |
322 | (_bfd_mips_elf_relocate_section): Here. Remove handling for | |
323 | R_MIPS_GNU_REL_HI16. | |
324 | ||
3e27568f CD |
325 | 2004-04-23 Chris Demetriou <cgd@broadcom.com> |
326 | ||
327 | * coff-mips.c (mips_relhi_reloc, mips_rello_reloc) | |
328 | (mips_switch_reloc, mips_read_relocs, mips_relax_section) | |
329 | (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove. | |
330 | (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments, | |
331 | and update comments to reflect current usage. | |
332 | (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO, | |
333 | and MIPS_R_SWITCH, as well as several empty entries. Update comment | |
334 | for MIPS_R_PCREL16. | |
335 | (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out) | |
336 | (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support | |
337 | for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations. | |
338 | (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation | |
339 | type number to be MIPS_R_PCREL16. | |
340 | (mips_relocate_section): Remove support for link-time relaxation | |
341 | of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH, | |
342 | MIPS_R_RELLO, and MIPS_R_RELHI relocations. | |
343 | (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section. | |
344 | * ecoff.c (ecoff_indirect_link_order): Remove support for link-time | |
345 | relaxation of branches used by embedded-PIC. | |
346 | * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise. | |
347 | * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC | |
348 | related members, update comment. | |
349 | * pe-mips.c: Remove disabled (commented-out and #if 0'd) | |
350 | code related to embedded-PIC. | |
351 | * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove | |
352 | initialization of now-removed 'adjust' member of | |
353 | 'struct ecoff_debug_info'. | |
354 | ||
b32de0bc | 355 | 2004-04-23 Chris Demetriou <cgd@broadcom.com> |
8472310d CD |
356 | |
357 | * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove. | |
358 | ||
955af222 PB |
359 | 2004-04-21 Philip Blundell <pb@nexus.co.uk> |
360 | ||
361 | * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32 | |
362 | relocs for locally defined symbols during -shared final link. | |
363 | (elf32_arm_final_link_relocate): Likewise. | |
364 | ||
47a9f7b3 JJ |
365 | 2004-04-22 Jakub Jelinek <jakub@redhat.com> |
366 | ||
367 | * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also | |
368 | ELF_LINK_POINTER_EQUALITY_NEEDED. | |
369 | (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED | |
370 | if r_type is not R_X86_64_PC32. | |
371 | (elf64_x86_64_finish_dynamic_symbol): If | |
372 | ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of | |
373 | SHN_UNDEF symbols. | |
374 | ||
1f1799d5 KK |
375 | 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
376 | ||
377 | * elf32-sh.c (sh_elf_plt_sym_val): New function. | |
378 | (elf_backend_plt_sym_val): Define. | |
379 | ||
0fdea5ce AC |
380 | 2004-04-22 Andrew Cagney <cagney@redhat.com> |
381 | ||
382 | * opncls.c (bfd_alloc): Fix type of "wanted" in doco. | |
383 | ||
5198ba8b DA |
384 | 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
385 | ||
eb61d2d6 | 386 | * hpux-core.c (hpux_core_core_file_p): Add cast in call to |
5198ba8b DA |
387 | make_bfd_asection. |
388 | * som.c (som_set_section_contents): Constantify second argument. | |
389 | (hppa_som_gen_reloc_type): Abort for unsupported selectors. | |
390 | (som_object_setup): Rework to avoid warning. | |
391 | (setup_sections, som_write_fixups, bfd_section_from_som_symbol): | |
392 | Likewise. | |
393 | ||
fe2e161a AC |
394 | 2004-04-22 Andrew Cagney <cagney@redhat.com> |
395 | ||
396 | * cache.c (bfd_cache_close): Check for a previously closed file. | |
397 | ||
4c45e5c9 JJ |
398 | 2004-04-22 Jakub Jelinek <jakub@redhat.com> |
399 | ||
400 | * bfd.c (bfd_get_synthetic_symtab): Define. | |
401 | * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add | |
402 | NAME##_get_synthetic_symtab. | |
403 | (struct bfd_target): Add _bfd_get_synthetic_symtab. | |
404 | * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define. | |
405 | * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and | |
406 | relplt_name fields. | |
407 | (_bfd_elf_get_synthetic_symtab): New prototype. | |
408 | * elfcode.h (elf_get_synthetic_symtab): Define. | |
409 | * elf.c (_bfd_elf_get_synthetic_symtab): New function. | |
410 | * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define. | |
411 | (elf_backend_plt_sym_val, elf_backend_relplt_name): Define. | |
412 | (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name. | |
413 | * bfd-in2.h: Rebuilt. | |
414 | * libbfd.h: Rebuilt. | |
415 | * elf32-i386.c (elf_i386_plt_sym_val): New function. | |
416 | (elf_backend_plt_sym_val): Define. | |
417 | * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function. | |
418 | (elf_backend_plt_sym_val): Define. | |
419 | * elf32-s390.c (elf_s390_plt_sym_val): New function. | |
420 | (elf_backend_plt_sym_val): Define. | |
421 | * elf64-s390.c (elf_s390_plt_sym_val): New function. | |
422 | (elf_backend_plt_sym_val): Define. | |
423 | * elf32-sparc (elf32_sparc_plt_sym_val): New function. | |
424 | (elf_backend_plt_sym_val): Define. | |
425 | * elf64-sparc.c (sparc64_elf_plt_sym_val): New function. | |
426 | (elf_backend_plt_sym_val): Define. | |
427 | * elf32-ppc.c (ppc_elf_plt_sym_val): New function. | |
428 | (elf_backend_plt_sym_val): Define. | |
429 | * aout-target.h (MY_get_synthetic_symtab): Define. | |
430 | * aout-tic30.c (MY_get_synthetic_symtab): Define. | |
431 | * coff-rs6000.c (rs6000coff_vec): Add | |
432 | _bfd_nodynamic_get_synthetic_symtab. | |
433 | (pmac_xcoff_vec): Likewise. | |
434 | * coff64-rs6000.c (rs6000coff64_vec): Add | |
435 | _bfd_nodynamic_get_synthetic_symtab. | |
436 | (aix5coff64_vec): Likewise. | |
437 | * sunos.c (MY_get_synthetic_symtab): Define. | |
438 | * vms.c (vms_get_synthetic_symtab): Define. | |
439 | ||
d2f7ecac NC |
440 | 2004-04-22 Nick Clifton <nickc@redhat.com> |
441 | ||
442 | * bfd.c (bfd_archive_filename): Return NULL on NULL input. | |
443 | ||
fd99574b NC |
444 | 2004-04-22 Peter Barada <peter@the-baradas.com> |
445 | ||
446 | * archures.c: Add bfd_mach_mcfv4e to bfd_architecture. | |
447 | * bfd2-in.h: Regenerate. | |
448 | * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[]. | |
449 | ||
23867d67 CD |
450 | 2004-04-21 Chris Demetriou <cgd@broadcom.com> |
451 | ||
452 | * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove. | |
453 | * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove. | |
454 | * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs) | |
455 | (bfd_mips_elf32_create_embedded_relocs): Remove prototypes | |
456 | * bfd-in2.h: Regenerate. | |
457 | ||
2c8c90bc BW |
458 | 2004-04-21 Bob Wilson <bob.wilson@acm.org> |
459 | ||
460 | * elf32-xtensa.c (is_same_value): Add final_static_link argument and | |
461 | require relocations against a weak symbol to reference the same | |
462 | symbol hash entry if not a final, static link. | |
463 | (get_cached_value, add_value_map): Add final_static_link argument. | |
464 | (remove_literals): Pass final_static_link argument as needed. | |
465 | ||
40838a72 AC |
466 | 2004-04-21 Andrew Cagney <cagney@redhat.com> |
467 | ||
468 | * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec". | |
469 | (struct opncls, opncls_btell, opncls_bseek, opncls_bread) | |
470 | (opncls_bwrite, opncls_bclose, opncls_bflush) | |
471 | (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a | |
472 | bfd iovec that uses function callbacks. | |
473 | (bfd_close): Use the iovec's bclose. | |
474 | * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite) | |
475 | (cache_bclose, cache_bflush, cache_bstat) | |
476 | (cache_iovec): New functions and global variable, implement a | |
477 | cache "iovec", where applicable set bfd_error. | |
478 | (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec. | |
479 | * bfdio.c (struct bfd_iovec): Define. | |
480 | (real_read): Delete function. | |
481 | (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat) | |
482 | (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec", | |
483 | assume that bread and bwrite set bfd_error. | |
484 | * bfd.c (struct bfd): Add "iovec", update comments. | |
485 | * bfd-in2.h, libbfd.h: Re-generate. | |
486 | ||
7f919c84 AC |
487 | 2004-04-21 Andrew Cagney <cagney@redhat.com> |
488 | ||
489 | * libaout.h (enum machine_type): Add M_POWERPC_NETBSD. | |
490 | ||
715df9b8 EB |
491 | 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr> |
492 | ||
493 | * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function. | |
494 | (bfd_elf_gc_sections): Fail if a shared object is being created. | |
495 | Do not fail if dynamic sections have been created. Instead call | |
496 | elf_gc_mark_dynamic_ref_symbol to mark sections that contain | |
497 | dynamically referenced symbols. Do not mark the whole graph | |
498 | rooted at .eh_frame, only the section proper. | |
499 | ||
6482c264 NC |
500 | 2004-04-20 DJ Delorie <dj@redhat.com> |
501 | ||
502 | * reloc.c: Add BFD_RELOC_32_SECREL. | |
503 | * bfd-in2.h: Regenerate. | |
504 | * libbfd.h: Likewise. | |
505 | * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32. | |
506 | (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it. | |
507 | (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise. | |
508 | ||
4dc570c2 JJ |
509 | 2004-04-19 Jakub Jelinek <jakub@redhat.com> |
510 | ||
511 | * elf32-sparc.c (elf32_sparc_relocate_section): Handle | |
512 | relocs against hidden/protected undefweak symbols properly. | |
513 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
514 | ||
0b60d5d3 MK |
515 | 2004-04-18 Mark Kettenis <kettenis@gnu.org> |
516 | ||
517 | * libaout.h (enum machine_type): Add M_POWERPC_NETBSD. | |
518 | * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC | |
519 | core files. | |
520 | ||
d48bdb99 AM |
521 | 2004-04-17 Brian Ford <ford@vss.fsi.com> |
522 | ||
523 | * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero | |
524 | filepos for the SizeOfHeaders field. | |
525 | (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc | |
526 | overflow. | |
527 | (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment. | |
528 | ||
57a1784e AM |
529 | 2004-04-16 Alan Modra <amodra@bigpond.net.au> |
530 | ||
531 | * simple.c (bfd_simple_get_relocated_section_contents): Don't | |
532 | change reloc_done. Set and restore _cooked_size. | |
533 | (RETURN): Delete. | |
534 | ||
d1ad3f6f MK |
535 | 2004-04-15 Mark Kettenis <kettenis@gnu.org> |
536 | ||
537 | * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX | |
538 | core files. | |
539 | ||
3d1bca9d NC |
540 | 2004-04-15 Nick Clifton <nickc@redhat.com> |
541 | ||
542 | * bfd.c (bfd_archive_filename): Catch NULL bfd pointers. | |
543 | ||
019b892f AM |
544 | 2004-04-15 Alan Modra <amodra@bigpond.net.au> |
545 | ||
546 | * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change. | |
547 | ||
15b43f48 AM |
548 | 2004-04-15 H.J. Lu <hongjiu.lu@intel.com> |
549 | ||
550 | * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only | |
551 | when it is a definition. | |
552 | ||
6de00a78 AM |
553 | 2004-04-14 Alan Modra <amodra@bigpond.net.au> |
554 | ||
555 | * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort | |
556 | when statically linking PIC code. | |
557 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
558 | ||
279500de TS |
559 | 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
560 | ||
561 | * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets. | |
562 | * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3* | |
563 | targets amd aout_mips_big_vec, aout_mips_little_vec target vectors. | |
564 | * configure: Regenerate. | |
565 | ||
ccf2f652 RS |
566 | 2004-04-08 Richard Sandiford <rsandifo@redhat.com> |
567 | ||
568 | * elflink.c: Include libiberty.h. | |
569 | * Makefile.am (elflink.lo): Depend on libiberty.h. | |
570 | * Makefile.in: Regenerate. | |
571 | ||
ca07892d DJ |
572 | 2004-04-06 Daniel Jacobowitz <drow@mvista.com> |
573 | ||
574 | * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use | |
575 | ".MIPS.stubs". | |
576 | ||
a5a58ba4 L |
577 | 2004-04-05 H.J. Lu <hongjiu.lu@intel.com> |
578 | ||
579 | * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always | |
580 | reserve the memory for dynamic linker | |
581 | ||
24d18d30 MK |
582 | 2004-04-05 Mark Kettenis <kettenis@gnu.org> |
583 | ||
584 | * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define. | |
585 | (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc. | |
586 | ||
a4d7b4b5 L |
587 | 2004-04-02 H.J. Lu <hongjiu.lu@intel.com> |
588 | ||
589 | * elf32-cr16c.c (elf32_cr16c_relocate_section): Use | |
590 | RELOC_FOR_GLOBAL_SYMBOL. | |
591 | (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym. | |
592 | ||
1f433d93 L |
593 | 2004-04-02 H.J. Lu <hongjiu.lu@intel.com> |
594 | ||
595 | * elf32-arm.h (elf32_arm_final_link_relocate): Handle | |
596 | R_ARM_ALU* only if OLD_ARM_ABI is not defined. | |
597 | ||
e489d0ae PB |
598 | 2004-04-01 Paul Brook <paul@codesourcery.com> |
599 | ||
600 | * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update. | |
601 | * elf32-arm.h (struct elf32_elf_section_map): New. | |
602 | (struct _arm_elf_section_data): New. | |
603 | (elf32_arm_section_data): Define. | |
604 | (struct elf32_arm_link_hash_table): Add byteswap_code. | |
605 | (elf32_arm_link_hash_table_create): Initialize byteswap_code. | |
606 | (bfd_elf32_arm_process_before_allocation): Add byteswap_code. | |
607 | (elf32_arm_post_process_headers): Set EF_ARM_BE8. | |
608 | (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook, | |
609 | elf32_arm_compare_mapping, elf32_arm_write_section): New functions. | |
610 | (bfd_elf32_new_section_hook, elf_backend_write_section, | |
611 | elf_backend_link_output_symbol_hook): Define. | |
612 | ||
66a695f0 NC |
613 | 2004-04-01 Andy Chittenden <achittenden@bluearc.com> |
614 | ||
615 | * stabs.c (struct stab_link_includes_totals): Add field 'symb' | |
616 | that keeps the characters in a B_INCL..B_EINCL range. | |
617 | (_bfd_link_section_stabs): When computing the sum of the | |
618 | characters in a B_INCL..B_EINCL range also keep a copy of those | |
619 | characters. Use this information to distinguish between | |
620 | include sections that have the same sum and the same length | |
621 | but which are nevertheless unique. | |
622 | ||
8375c36b PB |
623 | 2004-03-31 Paul Brook <paul@codesourcery.com> |
624 | ||
625 | * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*. | |
626 | * elfarm-nabi.c (elf32_arm_howto_table): Ditto. | |
627 | ||
a56b48eb NC |
628 | 2004-03-31 Andy Chittenden <achittenden@bluearc.com> |
629 | ||
630 | * stabs.c (struct stab_link_includes_totals): Rename field 'total' | |
631 | to 'sum_chars' and add field 'num_chars'. | |
632 | (_bfd_link_section_stabs): When computing the sum of the | |
633 | characters in a B_INCL..B_EINCL range also keep a count of the | |
634 | number of characters. Use this information to help distinguish | |
635 | between include sections when have the same sum but which | |
636 | nevertheless are still unique. | |
637 | ||
3d456464 NC |
638 |