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