forced checkin
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
a873f25a
AO
12004-06-09 Alexandre Oliva <aoliva@redhat.com>
2
a9b881be
AO
3 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
4 (elf_link_add_object_symbols): Likewise.
5
a873f25a
AO
6 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
7 (elf_backend_reloc_type_class): New.
8
eef0f186
MK
92004-06-08 Mark Kettenis <kettenis@gnu.org>
10
11 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
12 netbsd-core.lo.
13 * configure: Regenerate.
14
822392ce
DJ
152004-06-07 Daniel Jacobowitz <dan@debian.org>
16
17 From: Albert Chin-A-Young <china@thewrittenword.com>
18 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
19 to unsigned int.
20
9f2e92c5
L
212004-05-29 H.J. Lu <hongjiu.lu@intel.com>
22
23 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
24 change.
25
dd90f1b2
DD
262004-05-28 DJ Delorie <dj@redhat.com>
27
28 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
29 for linking, but otherwise adjust reloc for merged sections.
30
5dd23ec1
L
312004-05-28 H.J. Lu <hongjiu.lu@intel.com>
32
33 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
34 _bfd_merged_section_offset for local symbols.
35
f6f9408f
JR
362004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
37
38 * Makefile.am: Regenerate dependencies.
39 * Makefile.in: Regenerate.
40 * archures.c: Add bfd_mach_sh3_nommu .
41 * bfd-in2.h: Regenerate.
42 * cpu-sh.c: Add sh3-nommu architecture.
43 (bfd_to_arch_table): Create new table.
44 (sh_get_arch_from_bfd_mach): Create new function.
45 (sh_get_arch_up_from_bfd_mach): Create new function.
46 (sh_merge_bfd_arch): Create new function.
47 * elf32-sh.c (sh_ef_bfd_table): Add table.
48 (sh_elf_check_relocs): Replace switch statement with
49 use of sh_ef_bfd_table .
50 (sh_elf_get_flags_from_mach): Add new function.
51 (sh_find_elf_flags): Likewise.
52 (sh_elf_copy_private_data): Replace most of non-elf contents
53 with a call to sh_merge_bfd_arch() .
54
d866f350
MC
552004-05-27 Michael Chastain <mec.gnu@mindspring.com>
56
57 * Makefile.am (bfdver.h): Use explicit filename, not $< .
58 * Makefile.in: Regenerate.
59
1055df0f
AO
602004-05-27 Alexandre Oliva <aoliva@redhat.com>
61
62 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
63 custom calling conventions for dynamic symbols.
64 (mn10300_elf_relax_section): Avoid relaxing a function as a local
65 symbol if it's an alias to a global one.
66
b3096250
L
672004-05-26 H.J. Lu <hongjiu.lu@intel.com>
68
69 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
70 change.
71
9bb351fd
AO
722004-05-27 Alexandre Oliva <aoliva@redhat.com>
73
74 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
75 loop over hashes.
76
e49f5022
AM
772004-05-26 Alan Modra <amodra@bigpond.net.au>
78
79 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
80 for SHT_GROUP sections.
81
57ceae94
AM
822004-05-25 Alan Modra <amodra@bigpond.net.au>
83
84 * elflink.c (elf_link_add_object_symbols): Don't set up merge
85 section data here..
86 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
87 * merge.c: Formatting. Remove unnecessary casts. Expand
88 bfd_get_section_alignment macro.
89 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
90 use throughout file.
91 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
92 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
93 section name to determine sinfo group, instead test output section
94 and alignment.
95 (_bfd_merge_sections): Add struct bfd_link_info param. Call
96 _bfd_strip_section_from_output rather than just twiddling flags.
97 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
98 (_bfd_merge_sections): Update prototype.
99 * libbfd.h: Regenerate.
100
c6f8758f 1012004-05-24 Mark Kettenis <kettenis@gnu.org>
d34436e8
MK
102
103 * netbsd-core.c: Correctly indent section that sets architecture
104 from machine ID.
105
c6f8758f
NC
106 From Miod Vallat <miod@online.fr>:
107 * m88kopenbsd.c: New file.
108 * targets.c (m88k_openbsd_vec): New.
109 * config.bfd: Add m88k-*-openbsd*.
110 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
111 (m88kopenbsd_vec): New.
112 * configure: Regenerate.
113 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
114 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
115 Run "make dep-am".
116 * Makefile.in: Regenerate.
117 * po/SRC-POTFILES.in: Regenerate.
118
7d7e6bc4
NC
1192004-05-24 Nick Clifton <nickc@redhat.com>
120
121 * hash.c: Remove bogus node "Changing the default Hash Table Size"
122 introduced by hash table size patch.
123
bc286f95
BE
1242004-05-22 Ben Elliston <bje@au.ibm.com>
125
126 * configure.in (is_release): Remove.
127 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
128 (AC_OUTPUT): Don't output bfdver.h from version.h.
129 * configure: Regenerate.
130 * Makefile.am (RELEASE): New variable.
131 (bfdver.h): New target.
132 * Makefile.in: Regenerate.
133 * doc/Makefile.in: Likewise.
134
8b89a4eb
BE
1352004-05-22 Ben Elliston <bje@au.ibm.com>
136
137 * Makefile.am (config.status): Don't depend on version.h.
138 * Makefile.in: Regenerate.
139
753731ee
AM
1402004-05-22 Alan Modra <amodra@bigpond.net.au>
141
142 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
143 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
144 * libbfd.h: Regenerate.
145 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
146 (_bfd_elf_rel_local_sym): Likewise.
147 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
148 (elf_link_input_bfd): Likewise.
149 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
150 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
151 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
152 (elfNN_ia64_relocate_section): Likewise.
153
2d643429
NC
1542004-05-21 Andy Chittenden <achittenden@bluearc.com>
155
156 * hash.c (bfd_default_hash_table_size): New variable.
157 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
158 (bfd_hash_set_default_size): New function. Set the default size
159 to a selected prime number close to the argument. Document new
160 function.
161 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
162 * bfd-in2.h: Regenerate.
163 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
164 * Makefile.in: Regenerate.
165
8377c19c
MK
1662004-05-21 Mark Kettenis <kettenis@gnu.org>
167
168 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
169 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
170 arm, m68k, m88k and hppa core files.
171
69fd4758
NC
1722004-05-21 Nick Clifton <nickc@redhat.com>
173
174 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
175 (bfd_bwrite): Likewise.
176 (bfd_tell): Likewise.
177 (bfd_flush): Likewise.
178 (bfd_stat): Likewise.
179 (bfd_seek): Likewise.
180 (bfd_get_mtime): Likewise.
181 (bfd_get_size): Likewise.
182
cd917290
BE
1832004-05-19 Ben Elliston <bje@au.ibm.com>
184
185 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
186
1b09e940
NC
1872004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
188
189 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
190 (bfd_generic_openr_next_archived_file): Likewise.
191
096c35a7
BW
1922004-05-17 Bob Wilson <bob.wilson@acm.org>
193
194 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
195 section names by inserting a new substring after .gnu.linkonce, except
196 for .gnu.linkonce.t.* where the "t." is replaced.
197
b2d65c0b
NC
1982004-05-17 Adam Nemet <anemet@lnxw.com>
199
200 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
201 (m68-*-lynxos* case): Likewise.
202 (powerpc-*-lyxnos* case): New case.
203 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
204
80fccad2
BW
2052004-05-17 David Heine <dlheine@tensilica.com>
206
207 * aout-target.h (MY_bfd_copy_private_header_data): Define.
208 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
209 * bfd.c (bfd_copy_private_header_data): Define.
210 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
211 interface.
212 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
213 * coffcode.h (coff_bfd_copy_private_header_data): Define.
214 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
215 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
216 segments by calling copy_private_bfd_data.
217 (_bfd_elf_copy_private_header_data): Define.
218 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
219 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
220 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
221 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
222 * mmo.c (mmo_bfd_copy_private_header_data): Define.
223 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
224 * som.c (som_bfd_copy_private_header_data): Define.
225 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
226 * vms.c (vms_bfd_copy_private_header_data): Define.
227 * bfd-in2.h: Regenerate.
228 * libbfd.h: Regenerate.
229
c5ae1840
TS
2302004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
231
232 * elfxx-mips.c (MINUS_TWO): Define.
233 (mips_elf_higher, mips_elf_highest,
234 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
235 some bfd_vma values.
236 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
237
a99cf92b
DA
2382004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
239
240 * som.c (log2): Rename to exact_log2. Adjust all callers.
241
0da76f83
NC
2422004-05-13 Paul Brook <paul@codesourcery.com>
243
c273895f 244 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
336b9722
NC
245 dwarf3 format CIE entries. Remove comment about the size of the
246 ra_column field. It is now correctly deduced.
0da76f83 247
4b363073
NC
2482004-05-13 Joel Sherrill <joel@oarcorp.com>
249
250 * config.bfd (or32-*-rtems*): Switch to elf.
251
9598fbe5
NC
2522004-05-13 Nick Clifton <nickc@redhat.com>
253
254 * po/fr.po: Updated French translation.
255
8c37241b
JJ
2562004-05-11 Jakub Jelinek <jakub@redhat.com>
257
258 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
259 into .dynsym if elf_section_data (sec)->dynindx <= 0.
260 Adjust counting of last_local.
261 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
262 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
263 created by the linker nor !SHF_ALLOC.
264
265 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
266 DT_PLTGOT to the start of the .got.plt section instead of the
267 .got output section. Set sh_entsize for .got section in addition
268 to .got.plt.
269 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
270 is at sgot->output_section->vma.
271 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
272 DT_PLTGOT to the start of the .got.plt section instead of the
273 .got output section.
274 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
275 is at sgot->output_section->vma. Set sh_entsize for .got section
276 in addition to .got.plt.
277 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
278 (bfd_section_from_phdr): Likewise.
279 (map_sections_to_segments): Likewise.
280 (assign_file_positions_for_segments): Likewise.
281 (get_program_header_size): Likewise.
282 * elflink.c (bfd_elf_size_dynamic_sections): Set
283 elf_tdata (output_bfd)->relro from info->relro.
284 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
285
3f980e41
AO
2862004-05-08 Alexandre Oliva <aoliva@redhat.com>
287
288 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
289 a zero symndx for which we hadn't accounted a dynamic relocation.
290 (_frvfdpic_add_rofixup): Likewise.
291
d70270c5
BF
2922004-05-07 Brian Ford <ford@vss.fsi.com>
293 DJ Delorie <dj@redhat.com>
294
295 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
296 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
297 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
298 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
299
7e9f3bd6
AO
3002004-05-07 Alexandre Oliva <aoliva@redhat.com>
301
302 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
303 immediately if there's no link info.
304 (elf32_frvfdpic_copy_private_bfd_data): New.
305 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
306
eb61d2d6
ZW
3072004-05-06 Zack Weinberg <zack@codesourcery.com>
308
309 * dwarf2.c (add_line_info): Also set info->filename to NULL if
310 filename argument is null; do not call strlen on a null pointer.
311
ecb2d096
DJ
3122004-05-06 Daniel Jacobowitz <drow@mvista.com>
313
314 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
315 special case.
316
43850d5b
AO
3172004-05-05 Alexandre Oliva <aoliva@redhat.com>
318
319 * configure.in (bfd_elf32_frvfdpic_vec): New.
320 * configure: Rebuilt.
321 * targets.c (bfd_elf32_frvfdpic_vec): New.
322 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
323 on the latter.
324 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
325 frvfdpic instead of frv. Rearrange elf-target macros such that
326 the FDPIC-specific ones are only defined for this new target
327 vector.
328 (bfd_elf32_frvfdpic_vec): Declare.
329 (IS_FDPIC): New.
330 (elf32_frv_relocate_section): Use it to enable segment checking
331 and to control rofixup emission. Add output section vma to
332 applied relocation in non-LOAD non-ALLOC sections. Use
333 _bfd_error_handler for errors.
334 (_frv_create_got_section): Create .rel.got and .rofixup only in
335 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
336 linker script.
337 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
338 (elf32_frvfdpic_modify_segment_map): Likewise.
339 (elf32_frv_finish_dynamic_sections): New, do-nothing.
340 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
341 error message if we miscompute the rofixup size.
342 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
343 (frvfdpic_elf_encode_eh_address): Likewise.
344 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
345 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
346 relocs. Reject unknown relocation types.
347 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
348 (frv_elf_merge_private_bfd_data): Likewise.
349 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
350 0x4000 for newly-added elf32-frvfdpic.
351
06fc8a8c
NC
3522004-05-05 Nick Clifton <nickc@redhat.com>
353
354 PR/136
355 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
356 returning NULL as most users of this function do not check its
357 return value.
33216455
NC
358 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
359 of bfd_cache_lookup().
360 * sco5-core.c (sco5_core_file_p): Likewise.
361 * trad-core.c (trad_unix_core_file_p): Likewise.
06fc8a8c
NC
362
3632004-05-05 Nick Clifton <nickc@redhat.com>
364
365 * cache.c (bfd_cache_lookup): Improve formatting.
366 * archive.c: Fix formatting.
367
6b6e92f4
NC
3682004-05-05 Peter Barada <peter@the-baradas.com>
369
370 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
371 * cpu-m68k.c(bfd_m68k_arch): Likewise.
372 * bfd-in2.h(bfd_architecture): Regenerate.
373
6a8d1586
AM
3742004-05-03 Alan Modra <amodra@bigpond.net.au>
375
376 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
377 SEC_MERGE sections.
378 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
379 those against discarded link-once and SEC_MERGE section symbols.
380
fafe6678
L
3812004-05-02 H.J. Lu <hongjiu.lu@intel.com>
382
383 * section.c (bfd_get_section_by_name_if): New.
384 * bfd-in2.h: Regenerated.
385
ad7b9a36
AM
3862004-05-02 Alan Modra <amodra@bigpond.net.au>
387
388 * som.c (som_bfd_is_group_section): Define.
389
73499ab8
AM
3902004-05-01 Alan Modra <amodra@bigpond.net.au>
391
392 * section.c (bfd_make_section_anyway): Copy the whole
393 bfd_hash_entry, not just "next" from existing entry.
394
45c5e9ed
L
3952004-04-30 H.J. Lu <hongjiu.lu@intel.com>
396
397 * elf.c (bfd_section_from_shdr): Maintain the section order in
398 a section group.
399 (special_sections): Add ".note.GNU-stack".
400 (elf_fake_sections): Handle section group for relocatable
401 link..
402
bc87dd2e
L
4032004-04-30 H.J. Lu <hongjiu.lu@intel.com>
404
405 * section.c (bfd_sections_find_if): New.
406 * bfd-in2.h: Regenerated.
407
72adc230
AM
4082004-04-30 Alan Modra <amodra@bigpond.net.au>
409
410 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
411
412 * elf-bfd.h (bfd_elf_is_group_section): Declare.
413 * elf.c (bfd_elf_is_group_section): New function.
414 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
415 * section.c (bfd_generic_is_group_section): New function.
416 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
417 (BFD_JUMP_TABLE_LINK): Adjust.
418 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
419 * aout-target.h (MY_bfd_is_group_section): Define.
420 * aout-tic30.c (MY_bfd_is_group_section): Define.
421 * bfd.c (bfd_is_group_section): Define.
422 * binary.c (binary_bfd_is_group_section): Define.
423 * bout.c (b_out_bfd_is_group_section): Define.
424 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
425 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
426 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
427 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
428 * coffcode.h (coff_bfd_is_group_section): Define.
429 * i386msdos.c (msdos_bfd_is_group_section): Define.
430 * i386os9k.c (os9k_bfd_is_group_section): Define.
431 * ieee.c (ieee_bfd_is_group_section): Define.
432 * ihex.c (ihex_bfd_is_group_section): Define.
433 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
434 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
435 * mmo.c (mmo_bfd_is_group_section): Define.
436 * nlm-target.h (nlm_bfd_is_group_section): Define.
437 * oasys.c (oasys_bfd_is_group_section): Define.
438 * pef.c (bfd_pef_bfd_is_group_section): Define.
439 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
440 * srec.c (srec_bfd_is_group_section): Define.
441 * tekhex.c (tekhex_bfd_is_group_section): Define.
442 * versados.c (versados_bfd_is_group_section): Define.
443 * vms.c (vms_bfd_is_group_section): Define.
444 * xsym.c (bfd_sym_bfd_is_group_section): Define.
445 * bfd-in2.h: Regenerate.
446 * libbfd.h: Regenerate.
447
20f0a1ad
AM
4482004-04-30 Alan Modra <amodra@bigpond.net.au>
449
450 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
451
f7458fc9 4522004-04-30 Hans-Peter Nilsson <hp@axis.com>
7dfb3b6b
HPN
453
454 * configure.in: Update version to 2.15.91.
455 * configure: Regenerate.
456
8a7140c3
NC
4572004-04-29 Brian Ford <ford@vss.fsi.com>
458
459 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
460 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
461 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
462 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
463 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
464 .gnu.linkonce.wi. sections.
465 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
466 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
467 .gnu.linkonce.wi..
468 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
469 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
470
3e722fb5
CD
4712004-04-28 Chris Demetriou <cgd@broadcom.com>
472
473 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
474 * bfd-in2.h: Regenerate.
475 * libbfd.h: Likewise.
476
351e2b5a
DA
4772004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
478
479 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
480 dup_common fields.
481 (setup_sections): Use som_subspace_dictionary_record struct instead
482 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
483 is_comdat, is_common or dup_common.
484 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
485 is_comdat, is_common and dup_common in section subspace_dict from
486 copy_data.
487 (som_begin_writing): Use som_subspace_dictionary_record struct.
488 (som_finish_writing): Likewise.
489 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
490 is_common and dup_common flags in info for symbol. Add comment
491 regarding linker support for these fields. Slightly reorganize
492 function.
493 (som_build_and_write_symbol_table): Set is_comdat, is_common and
494 dup_common fields in symbol table from symbol info.
495 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
496 arguments. Set corresponding fields in copy_data. Change all callers.
497 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
498 symbol table.
499 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
500 * som.h (som_subspace_dictionary_record): Define.
501 (som_copyable_section_data_struct): Add is_comdat, is_common and
502 dup_common fields.
503 (som_section_data_struct): Use som_subspace_dictionary_record struct
504 instead of subspace_dictionary_record.
505 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
506
3ba3bc8c
BW
5072004-04-27 Bob Wilson <bob.wilson@acm.org>
508
509 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
510 if set. Check reloc_done flag before applying relocations. Use
511 output addresses, both when applying relocations and when comparing
512 against the specified section.
513 (elf_xtensa_relocate_section): Use output address to check if dynamic
514 reloc is in a literal pool. Set section's reloc_done flag.
515
beb8df56
L
5162004-04-27 H.J. Lu <hongjiu.lu@intel.com>
517
518 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
519 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
520 section.
521 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
522 section.
523
1829f4b2
AM
5242004-04-27 Alan Modra <amodra@bigpond.net.au>
525
526 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
527 structure field removed in 2004-04-24 patch.
528 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
529
530 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
531 Constify hdr arg.
532 * elf32-arm.h (elf32_arm_section_flags): Likewise.
533 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
534 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
535 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
536 field before calling elf_backend_section_flags.
537
4030e8f6
CD
5382004-04-24 Chris Demetriou <cgd@broadcom.com>
539
540 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
541 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
542 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
543 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
544 and BFD_RELOC_32_PCREL.
545 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
546 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
547 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
548 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
549 (mips_elf_next_relocation): Move comment about matching HI/LO
550 relocations to...
551 (_bfd_mips_elf_relocate_section): Here. Remove handling for
552 R_MIPS_GNU_REL_HI16.
553
3e27568f
CD
5542004-04-23 Chris Demetriou <cgd@broadcom.com>
555
556 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
557 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
558 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
559 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
560 and update comments to reflect current usage.
561 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
562 and MIPS_R_SWITCH, as well as several empty entries. Update comment
563 for MIPS_R_PCREL16.
564 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
565 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
566 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
567 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
568 type number to be MIPS_R_PCREL16.
569 (mips_relocate_section): Remove support for link-time relaxation
570 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
571 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
572 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
573 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
574 relaxation of branches used by embedded-PIC.
575 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
576 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
577 related members, update comment.
578 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
579 code related to embedded-PIC.
580 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
581 initialization of now-removed 'adjust' member of
582 'struct ecoff_debug_info'.
583
b32de0bc 5842004-04-23 Chris Demetriou <cgd@broadcom.com>
8472310d
CD
585
586 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
587
955af222
PB
5882004-04-21 Philip Blundell <pb@nexus.co.uk>
589
590 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
591 relocs for locally defined symbols during -shared final link.
592 (elf32_arm_final_link_relocate): Likewise.
593
47a9f7b3
JJ
5942004-04-22 Jakub Jelinek <jakub@redhat.com>
595
596 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
597 ELF_LINK_POINTER_EQUALITY_NEEDED.
598 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
599 if r_type is not R_X86_64_PC32.
600 (elf64_x86_64_finish_dynamic_symbol): If
601 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
602 SHN_UNDEF symbols.
603
1f1799d5
KK
6042004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
605
606 * elf32-sh.c (sh_elf_plt_sym_val): New function.
607 (elf_backend_plt_sym_val): Define.
608
0fdea5ce
AC
6092004-04-22 Andrew Cagney <cagney@redhat.com>
610
611 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
612
5198ba8b
DA
6132004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
614
eb61d2d6 615 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
5198ba8b
DA
616 make_bfd_asection.
617 * som.c (som_set_section_contents): Constantify second argument.
618 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
619 (som_object_setup): Rework to avoid warning.
620 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
621 Likewise.
622
fe2e161a
AC
6232004-04-22 Andrew Cagney <cagney@redhat.com>
624
625 * cache.c (bfd_cache_close): Check for a previously closed file.
626
4c45e5c9
JJ
6272004-04-22 Jakub Jelinek <jakub@redhat.com>
628
629 * bfd.c (bfd_get_synthetic_symtab): Define.
630 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
631 NAME##_get_synthetic_symtab.
632 (struct bfd_target): Add _bfd_get_synthetic_symtab.
633 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
634 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
635 relplt_name fields.
636 (_bfd_elf_get_synthetic_symtab): New prototype.
637 * elfcode.h (elf_get_synthetic_symtab): Define.
638 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
639 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
640 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
641 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
642 * bfd-in2.h: Rebuilt.
643 * libbfd.h: Rebuilt.
644 * elf32-i386.c (elf_i386_plt_sym_val): New function.
645 (elf_backend_plt_sym_val): Define.
646 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
647 (elf_backend_plt_sym_val): Define.
648 * elf32-s390.c (elf_s390_plt_sym_val): New function.
649 (elf_backend_plt_sym_val): Define.
650 * elf64-s390.c (elf_s390_plt_sym_val): New function.
651 (elf_backend_plt_sym_val): Define.
652 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
653 (elf_backend_plt_sym_val): Define.
654 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
655 (elf_backend_plt_sym_val): Define.
656 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
657 (elf_backend_plt_sym_val): Define.
658 * aout-target.h (MY_get_synthetic_symtab): Define.
659 * aout-tic30.c (MY_get_synthetic_symtab): Define.
660 * coff-rs6000.c (rs6000coff_vec): Add
661 _bfd_nodynamic_get_synthetic_symtab.
662 (pmac_xcoff_vec): Likewise.
663 * coff64-rs6000.c (rs6000coff64_vec): Add
664 _bfd_nodynamic_get_synthetic_symtab.
665 (aix5coff64_vec): Likewise.
666 * sunos.c (MY_get_synthetic_symtab): Define.
667 * vms.c (vms_get_synthetic_symtab): Define.
668
d2f7ecac
NC
6692004-04-22 Nick Clifton <nickc@redhat.com>
670
671 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
672
fd99574b
NC
6732004-04-22 Peter Barada <peter@the-baradas.com>
674
675 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
676 * bfd2-in.h: Regenerate.
677 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
678
23867d67
CD
6792004-04-21 Chris Demetriou <cgd@broadcom.com>
680
681 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
682 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
683 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
684 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
685 * bfd-in2.h: Regenerate.
686
2c8c90bc
BW
6872004-04-21 Bob Wilson <bob.wilson@acm.org>
688
689 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
690 require relocations against a weak symbol to reference the same
691 symbol hash entry if not a final, static link.
692 (get_cached_value, add_value_map): Add final_static_link argument.
693 (remove_literals): Pass final_static_link argument as needed.
694
40838a72
AC
6952004-04-21 Andrew Cagney <cagney@redhat.com>
696
697 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
698 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
699 (opncls_bwrite, opncls_bclose, opncls_bflush)
700 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
701 bfd iovec that uses function callbacks.
702 (bfd_close): Use the iovec's bclose.
703 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
704 (cache_bclose, cache_bflush, cache_bstat)
705 (cache_iovec): New functions and global variable, implement a
706 cache "iovec", where applicable set bfd_error.
707 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
708 * bfdio.c (struct bfd_iovec): Define.
709 (real_read): Delete function.
710 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
711 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
712 assume that bread and bwrite set bfd_error.
713 * bfd.c (struct bfd): Add "iovec", update comments.
714 * bfd-in2.h, libbfd.h: Re-generate.
715
7f919c84
AC
7162004-04-21 Andrew Cagney <cagney@redhat.com>
717
718 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
719
715df9b8
EB
7202004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
721
722 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
723 (bfd_elf_gc_sections): Fail if a shared object is being created.
724 Do not fail if dynamic sections have been created. Instead call
725 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
726 dynamically referenced symbols. Do not mark the whole graph
727 rooted at .eh_frame, only the section proper.
728
6482c264
NC
7292004-04-20 DJ Delorie <dj@redhat.com>
730
731 * reloc.c: Add BFD_RELOC_32_SECREL.
732 * bfd-in2.h: Regenerate.
733 * libbfd.h: Likewise.
734 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
735 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
736 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
737
4dc570c2
JJ
7382004-04-19 Jakub Jelinek <jakub@redhat.com>
739
740 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
741 relocs against hidden/protected undefweak symbols properly.
742 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
743
0b60d5d3
MK
7442004-04-18 Mark Kettenis <kettenis@gnu.org>
745
746 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
747 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
748 core files.
749
d48bdb99
AM
7502004-04-17 Brian Ford <ford@vss.fsi.com>
751
752 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
753 filepos for the SizeOfHeaders field.
754 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
755 overflow.
756 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
757
57a1784e
AM
7582004-04-16 Alan Modra <amodra@bigpond.net.au>
759
760 * simple.c (bfd_simple_get_relocated_section_contents): Don't
761 change reloc_done. Set and restore _cooked_size.
762 (RETURN): Delete.
763
d1ad3f6f
MK
7642004-04-15 Mark Kettenis <kettenis@gnu.org>
765
766 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
767 core files.
768
3d1bca9d
NC
7692004-04-15 Nick Clifton <nickc@redhat.com>
770
771 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
772
019b892f
AM
7732004-04-15 Alan Modra <amodra@bigpond.net.au>
774
775 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
776
15b43f48
AM
7772004-04-15 H.J. Lu <hongjiu.lu@intel.com>
778
779 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
780 when it is a definition.
781
6de00a78
AM
7822004-04-14 Alan Modra <amodra@bigpond.net.au>
783
784 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
785 when statically linking PIC code.
786 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
787
279500de
TS
7882004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
789
790 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
791 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
792 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
793 * configure: Regenerate.
794
ccf2f652
RS
7952004-04-08 Richard Sandiford <rsandifo@redhat.com>
796
797 * elflink.c: Include libiberty.h.
798 * Makefile.am (elflink.lo): Depend on libiberty.h.
799 * Makefile.in: Regenerate.
800
ca07892d
DJ
8012004-04-06 Daniel Jacobowitz <drow@mvista.com>
802
803 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
804 ".MIPS.stubs".
805
a5a58ba4
L
8062004-04-05 H.J. Lu <hongjiu.lu@intel.com>
807
808 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
809 reserve the memory for dynamic linker
810
24d18d30
MK
8112004-04-05 Mark Kettenis <kettenis@gnu.org>
812
813 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
814 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
815
a4d7b4b5
L
8162004-04-02 H.J. Lu <hongjiu.lu@intel.com>
817
818 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
819 RELOC_FOR_GLOBAL_SYMBOL.
820 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
821
1f433d93
L
8222004-04-02 H.J. Lu <hongjiu.lu@intel.com>
823
824 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
825 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
826
e489d0ae
PB
8272004-04-01 Paul Brook <paul@codesourcery.com>
828
829 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
830 * elf32-arm.h (struct elf32_elf_section_map): New.
831 (struct _arm_elf_section_data): New.
832 (elf32_arm_section_data): Define.
833 (struct elf32_arm_link_hash_table): Add byteswap_code.
834 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
835 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
836 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
837 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
838 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
839 (bfd_elf32_new_section_hook, elf_backend_write_section,
840 elf_backend_link_output_symbol_hook): Define.
841
66a695f0
NC
8422004-04-01 Andy Chittenden <achittenden@bluearc.com>
843
844 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
845 that keeps the characters in a B_INCL..B_EINCL range.
846 (_bfd_link_section_stabs): When computing the sum of the
847 characters in a B_INCL..B_EINCL range also keep a copy of those
848 characters. Use this information to distinguish between
849 include sections that have the same sum and the same length
850 but which are nevertheless unique.
851
8375c36b
PB
8522004-03-31 Paul Brook <paul@codesourcery.com>
853
854 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
855 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
856
a56b48eb
NC
8572004-03-31 Andy Chittenden <achittenden@bluearc.com>
858
859 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
860 to 'sum_chars' and add field 'num_chars'.
861 (_bfd_link_section_stabs): When computing the sum of the
862 characters in a B_INCL..B_EINCL range also keep a count of the
863 number of characters. Use this information to help distinguish
864 between include sections when have the same sum but which
865 nevertheless are still unique.
866