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