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