* elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
936e320b
AM
12001-06-30 Alan Modra <amodra@bigpond.net.au>
2
3 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
4 instead of _bfd_elfcore_section_from_phdr.
5 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
6 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
7 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
8 (elfcore_grok_prstatus): Likewise.
9 (elfcore_grok_lwpstatus): Likewise.
10 (bfd_get_elf_phdr_upper_bound): Likewise.
11 (elfcore_make_note_pseudosection): Formatting.
12 (_bfd_elfcore_strndup): Formatting.
13 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
14 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
15
bb0082d6
AM
162001-06-29 Daniel Jacobowitz <drow@mvista.com>
17
18 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
19 and _bfd_elfcore_strndup.
20 (struct elf_backend_data): Add elf_backend_grok_prstatus
21 and elf_backend_grok_psinfo.
22 * elf.c (_bfd_elfcore_make_pseudosection): New function.
23 (elfcore_grok_prstatus): Use it.
24 (elfcore_make_note_pseudosection): Likewise.
25 (elfcore_strndup): Rename to...
26 (_bfd_elfcore_strndup): Here, and make global.
27 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
28 (elfcore_grok_note): Call elf_backend_grok_prstatus
29 and elf_backend_grok_psinfo if available.
30 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
31 (_bfd_elf32_mips_grok_psinfo): New function.
32 (elf_backend_grok_prstatus): Define.
33 (elf_backend_grok_psinfo): Define.
34 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
35 (elf_backend_grok_psinfo): Likewise.
36 (elfNN_bed): Include elf_backend_grok_prstatus and
37 elf_backend_grok_psinfo.
38
b64977c5
L
392001-06-29 H.J. Lu <hjl@gnu.org>
40
41 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
42 hplink->sgot is NULL before filling GOT. Checck if hplink->splt
43 is NULL before filling PLT.
44
e45bf863
AM
452001-06-29 Alan Modra <amodra@bigpond.net.au>
46
47 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
48
5a15f56f
AM
492001-06-27 Alan Modra <amodra@bigpond.net.au>
50
446f2863
AM
51 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
52 here..
53 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
54 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
55 after gc has run.
56
57 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
58 (IS_ABSOLUTE_RELOC): Define.
59 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
60 (hppa_link_hash_newfunc): Always init it.
61 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
62 create COPY relocs only when the reloc is in a read-only section.
63 Instead, allocate space for a dynamic reloc to reference the
64 library symbol directly. Keep track of space we allocate using
65 relocs_entries.
66 (hppa_discard_copies): Delete, and move code to..
67 (allocate_plt_and_got): ..here. Rename to
68 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
69 relocs for non-shared link.
70 (elf32_hppa_size_dynamic_sections): Update calls to above.
71 (elf32_hppa_relocate_section): Write out the dynamic relocs used
72 in lieu of COPY relocs.
73
5a15f56f
AM
74 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
75 here..
76 (elf_i386_adjust_dynamic_symbol): ..nor here..
77 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
78 after gc has run.
79 (elf_i386_size_dynamic_sections): Fix a comment.
80 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
81 involved in writing reloc out.
82
866b3400
AM
832001-06-25 Alan Modra <amodra@bigpond.net.au>
84
28d0b90e
AM
85 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
86 Ensure syms are dynamic if we might be emitting a reloc.
87 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
88 for undefweak or undefined syms..
89 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
90
866b3400
AM
91 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
92 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
93 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
94 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
95
6cbac8b9
L
962001-06-24 H.J. Lu <hjl@gnu.org>
97
98 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
99 strncasecmp/strcasecmp instead of strncmp/strcmp.
100
62b7d3f1
L
1012001-06-23 H.J. Lu <hjl@gnu.org>
102
866b3400
AM
103 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
104 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
62b7d3f1
L
105 in the regular object file and treat the weak definition as
106 the normal one.
107
12d0ee4a
AM
1082001-06-23 Alan Modra <amodra@bigpond.net.au>
109
8c694914
AM
110 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
111 unresolved_reloc test to exclude cases where we use "relocation"
112 before setting it to point into the .got. Reinstate fudge for
113 unresolved relocs in debugging sections.
114
83be169b
AM
115 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
116 complicated tests for unresolvable relocs with a simple direct
117 scheme using "unresolved_reloc" var.
118
ffb2e45b
AM
119 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
120 elf_i386_dyn_relocs. Update comment.
121 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
122 dyn_relocs.
123 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
124 others to aborts.
125 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
126 abort.
127 (elf_i386_size_dynamic_sections): Likewise.
128 (elf_i386_finish_dynamic_symbol): Likewise.
129 (elf_i386_finish_dynamic_sections): Likewise.
130 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
131 handling code.
132
12d0ee4a
AM
133 Avoid creating COPY relocs if possible.
134 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
135 which .got created. Mark symbols used by R_386_32 and R_386_PC32
136 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
137 reloc is in a read-only section. Instead, allocate space for a
138 dynamic reloc to reference the library symbol directly. Keep
139 track of space we allocate using pcrel_relocs_copied.
140 (discard_copies): Delete, and move code to ..
141 (allocate_plt_and_got): ..here. Rename to
142 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
143 relocs for non-shared link.
144 (elf_i386_size_dynamic_sections): Update calls to above functions.
145 (elf_i386_relocate_section): Write out the dynamic relocs. Add
146 more ugly logic to avoid "unresolvable relocation" error. Use
147 htab shortcut in place of elf_hash_table macro.
148 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
149 not always be created now.
150
f631948d
AJ
1512001-06-20 Bo Thorsen <bo@suse.co.uk>
152
153 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
154 shared libraries.
155
89084430
NC
1562001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
157
158 * configure.host (mips64-*-linux): Reformat.
159
68fb2e56
AM
1602001-06-21 Alan Modra <amodra@bigpond.net.au>
161
162 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
163 allocate local .got space. Use shortcuts from hash table for .got
164 and .plt rather than comparing section names.
165 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
166 adjusting index into local_got_refcounts to document what we are
167 really doing.
168 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
169 Tidy .got and .plt error checking.
170
9317eacc
CM
1712001-06-20 Catherine Moore <clm@redhat.com>
172
bb0082d6
AM
173 * elf-bfd.h (struct elf_backend_data):
174 elf_backend_emit_relocs: New field: Function for emitting
175 relocs.
176 elf_backend_count_relocs: New field: Function for determining
177 the number of relocs to be emitted.
178 * elfxx-target.h: Provide default (NULL) values for
179 elf_backend_emit_relocs and elf_backend_count_relocs.
180 * elflink.h (elf_link_size_reloc_section): Make the hash table
181 big enough to hold the relocs counted by either reloc_count or
182 o->reloc_count.
183 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
184 should be emitted, either because of a command line option
185 stored in the info structure or because the target provides a
186 special reloc emitting function.
187 If the target provides a reloc counting function use it,
188 unless performing a relocatable link or emitting all relocs.
189 Also set the SEC_RELOC flag on any output section which will
190 contain relocs.
191 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
192 should be emitted, either because of a command line option
193 stored in the info structure or because the target provides a
194 special reloc emitting function.
195 If the target provides a reloc emitting function, use it,
196 unless performing a relocatable link or emitting all relocs.
9317eacc 197
161d71a6
L
1982001-06-20 H.J. Lu <hjl@gnu.org>
199
200 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
201 allocate local .got space.
202
fd8ab9e5
AJ
2032001-06-19 Andreas Jaeger <aj@suse.de>
204
205 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
206 dynamic symbols.
207
99293407
HPN
2082001-06-18 Hans-Peter Nilsson <hp@axis.com>
209
210 * elflink.h (struct elf_assign_sym_version_info): Remove member
211 export_dynamic. All users changed to use info member.
212 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
213 export_dynamic, instead use member in parameter info.
214 * bfd-in.h (bfd_elf32_size_dynamic_sections,
215 bfd_elf64_size_dynamic_sections): Update prototype.
216 * bfd-in2.h: Regenerate.
217
bc2b6df7
L
2182001-06-18 H.J. Lu <hjl@gnu.org>
219
220 * elflink.h (elf_info_failed): Add a new field, verdefs.
221 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
222 elf_export_symbol.
223 (elf_export_symbol): Check eif->verdefs to decide if a symbol
224 should be exported.
225
43917054
L
2262001-06-17 H.J. Lu <hjl@gnu.org>
227
228 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
229 readonly_reloc, to record if a relocation in the .rel.dyn
f631948d 230 section is against a read-only section.
43917054
L
231 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
232 field to false.
233 (_bfd_mips_elf_check_relocs): Record if there is a relocation
234 in the .rel.dyn section against a read-only section by setting
235 DF_TEXTREL or readonly_reloc.
236 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
237 it is true.
238 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
239 there is a relocation in the .rel.dyn section against a
240 read-only section.
241 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
242 DF_TEXTREL is set.
243
7c8ca0e4
NC
2442001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
245
246 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
247 function. Move flagword result into parameter list. Remove
248 comment about setting bfd_error_handler to intercept failure
249 results.
bb0082d6 250 * coffgen.c (make_a_section_from_file): Examine result of
7c8ca0e4
NC
251 calling bfd_coff_styp_to_sec_flags and pass a failure back to
252 caller.
bb0082d6 253 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
7c8ca0e4 254 function. Move flagword result into parameter list.
bb0082d6
AM
255 * libcoff.h: Regenerate.
256 * libecoff.h: Regenerate.
7c8ca0e4 257
dee0a8f4
NC
2582001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
259
260 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
261 section is going to follow it.
262
0d1ea5c0
CM
2632001-06-12 Catherine Moore <clm@redhat.com>
264
bb0082d6
AM
265 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
266 with the file_align entry from elf_backend_data.
267 (elf_gc_smash_unused_vtentry_relocs): Likewise.
268 (elf_gc_record_vtentry): Likewise.
0d1ea5c0 269
4e8a9624
AM
2702001-06-10 Alan Modra <amodra@bigpond.net.au>
271
272 * elflink.h: Whitespace changes.
273 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
274 rather than "unsigned char".
275 (elf_link_output_relocs): Likewise.
276 (elf_link_input_bfd): Likewise.
277 (elf_reloc_link_order): LIkewise.
278 * elf.c: s/CONST/const/. Whitespace changes.
279 * elf32-mips.c: Formatting fix.
280
281 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
282 * Makefile.in: Regenerate.
283 * po/Make-in: Remove trailing tab.
284
7a25cd3e
PB
2852001-06-09 Philip Blundell <philb@gnu.org>
286
287 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
288 change.
289 (elf32_arm_plt_entry): Likewise.
290
3f5a136d
L
2912001-06-08 H.J. Lu <hjl@gnu.org>
292
293 * elf.c (swap_out_syms): Keep names for global section symbols.
294
d8fe1fed
L
2952001-06-07 H.J. Lu <hjl@gnu.org>
296
297 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
298 MIPS-based machines need it.
299
c36e006f
L
3002001-06-07 H.J. Lu <hjl@gnu.org>
301
302 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
303 for SGI only.
304
305 * config.bfd: Remove ecoff from Linux/mips.
306
cc78d0af
AJ
3072001-06-07 Andreas Jaeger <aj@suse.de>
308
309 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
310 assertion.
311 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
312 alignment of 8 for .rela sections; handle further relocations.
313
879db8be
NC
3142001-06-06 Christian Groessler <cpg@aladdin.de>
315
bb0082d6 316 * coff-z8k.c: Fix formatting.
879db8be
NC
317 Fix howtos: howto->size was always 1.
318
cbb1fd50
NC
3192001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
320
321 * configure.host (mips64*-*-linux*): Define.
322
73a74a62
AM
3232001-06-05 Alan Modra <amodra@bigpond.net.au>
324
6725bdbf
AM
325 * elf32-i386.c (elf_i386_discard_copies): Rename to
326 discard_copies, and use elf_link_hash_entry arg rather than
327 elf_i386_link_hash_entry.
328 (elf_i386_link_hash_traverse): Delete.
329 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
330 Tidy sizing of dynamic sections.
331 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
332 possible .plt entries.
333 (elf_i386_gc_sweep_hook): Likewise.
334 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
335 everything with plt.refcount <= 0.
336
337 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
338 .relgot space here.
339 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 340 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
341 .rel.plt here..
342 (allocate_plt_and_got): ..instead do it all here. New function.
343 (elf_i386_size_dynamic_sections): Allocate local .got space and
344 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
345 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
346 rather than gc variety).
347 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
348 (elf_i386_relocate_section): Use it here and correct handling of
349 R_386_GOT32. Provide section and offset for "unresolvable
350 relocation" error message.
351 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
352
353 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
354 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
355 (elf_i386_link_hash_table_create): Init them.
356 (create_got_section): New function.
357 (elf_i386_create_dynamic_sections): New function.
358 (elf_backend_create_dynamic_sections): Set to above.
359 (elf_i386_check_relocs): Use shortcuts from hash table rather than
360 calling bfd_get_section_by_name.
361 (elf_i386_gc_sweep_hook): Likewise.
362 (elf_i386_adjust_dynamic_symbol): Likewise.
363 (elf_i386_size_dynamic_sections): Likewise.
364 (elf_i386_relocate_section): Likewise.
365 (elf_i386_finish_dynamic_sections): Likewise.
366
73a74a62
AM
367 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
368
24a5e751
L
3692001-06-02 H.J. Lu <hjl@gnu.org>
370
371 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
372 and ELFOSABI_HPUX.
373 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
374
15103188
L
3752001-06-02 H.J. Lu <hjl@gnu.org>
376
377 * aout-cris.c (MACHTYPE_OK): New. Defined.
378
2f484710
HPN
3792001-06-02 Hans-Peter Nilsson <hp@axis.com>
380
381 * section.c (_bfd_strip_section_from_output): Handle NULL
382 output_section.
383
a5ac692b
L
3842001-06-02 H.J. Lu <hjl@gnu.org>
385
386 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
387 rs6000coff64_vec only if BFD64 is defined.
388 (powerpc64-*-aix*): Enable only if BFD64 is defined.
389
27e53099
L
3902001-06-02 H.J. Lu <hjl@gnu.org>
391
392 * coff-ia64.c (ia64coff_object_p): Rewrite with
393 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
394
80643fbc
AJ
3952001-06-01 Andreas Jaeger <aj@suse.de>
396
397 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
398 relocation, small reformatting.
399
6b3db546
AJ
4002001-05-29 Andreas Jaeger <aj@suse.de>
401
402 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
403 (elf64_x86_64_relocate_section): Likewise.
404
4dc86686
AM
4052001-05-30 Alan Modra <amodra@one.net.au>
406
407 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
408 millicode. Don't allocate .got and .rela.got space here..
409 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
410 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
411 .rela.plt here..
412 (hppa_handle_PIC_calls): ..nor here..
413 (allocate_plt_and_got): ..instead do it all here. New function.
414 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
415 call allocate_plt_and_got. No need to zap .got if not dynamic.
416 (elf32_hppa_final_link): Call regular bfd_final_link instead of
417 gc_common_final_link.
418 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
419 (elf32_hppa_relocate_section): Use it here.
420 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
421 dynamic_sections_created.
422 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
423
de41dcd8
AJ
4242001-05-28 Andreas Jaeger <aj@suse.de>
425
426 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
427 generic version since we want a hashsize of 4.
428 (elf_backend_size_info): Likewise.
429
209f668e
NC
4302001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
431
209f668e
NC
432 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
433 a zeroing loop.
434 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
435 (elf_link_input_bfd): Likewise.
436 (elf_reloc_link_order): Likewise.
437 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
438 relocations correctly.
439
f7a74f8c
NC
4402001-05-28 Nicolas Pitre <nico@cam.org>
441
442 * elf32-arm.h: fix PLT generation for big endian ARM
443
8dea1268
AM
4442001-05-28 Alan Modra <amodra@one.net.au>
445
446 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
447 for symbols forced local that need plabels.
448 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
449 .plt.rela for local syms if non-shared.
450 (hppa_build_one_stub): Mask lsb of plt.offset.
451 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
452 (clobber_millicode_symbols): Correct comment.
453 (elf32_hppa_relocate_section): Likewise.
454 (elf32_hppa_finish_dynamic_symbol): Likewise.
455
0f2712ed
NC
4562001-05-28 Jeff Sturm <jsturm@one-point.com>
457
458 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
459 * bfd-in2.h: Regenerate.
460 * libbfd.h: Regenerate.
461 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
462 and BFD_RELOC_SPARC_UA64 mapping
463 * elf64-sparc.c: Likewise.
de41dcd8 464
6768c14a
L
4652001-05-25 H.J. Lu <hjl@gnu.org>
466
467 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
468 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
469 (coff-rs6000.lo): Remove the old dependency.
470 * Makefile.in: Rebuild.
471
472 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
473 coff-rs6000.lo.
474
b55039f4
L
4752001-05-25 H.J. Lu <hjl@gnu.org>
476
477 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
478 rs6000coff_core_file_matches_executable_p,
479 rs6000coff_core_file_failing_command and
480 rs6000coff_core_file_failing_signal only if AIX_CORE is
481 defined.
482 (pmac_xcoff_vec): Likewise.
483 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
484
64e9ece0
TW
4852001-05-25 Timothy Wall <twall@redhat.com>
486
487 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
488 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
489
f34d8777
L
4902001-05-25 H.J. Lu <hjl@gnu.org>
491
492 * bfd-in2.h: Regenerated.
493 * libcoff.h: Likewise.
494
49e9d0d3
AM
4952001-05-25 Alan Modra <amodra@one.net.au>
496
497 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
498 undefined millicode syms in shared libs.
499 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
500 (elf32_hppa_check_relocs): Likewise.
501 (elf32_hppa_adjust_dynamic_symbol): Likewise.
502 (elf32_hppa_size_dynamic_sections): Likewise.
503 (elf32_hppa_relocate_section): Likewise.
504 (elf32_hppa_finish_dynamic_symbol): Likewise.
505 (elf32_hppa_finish_dynamic_sections): Likewise.
506
beb1bf64
TR
5072001-05-24 Tom Rix <trix@redhat.com>
508
bb0082d6 509 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
beb1bf64
TR
510 xcoff-target.h not used to define rs6000 or ppc bfd.
511 * Makefile.in same
512
513 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
514 to 64 bit.
515
516 * coff-rs6000.c : Many changes for 64 bit support. Move common
517 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
518 and pmac_xcoff_vec
519
520 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
521 linker now supported. Explictly define the rs6000coff64_vec.
522
523 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 524 (coff_print_aux) same
beb1bf64
TR
525 (coff_write_object_contents) same
526 (coff_slurp_line_table) same
527
528 * coffgen.c : (coff_fix_symbol_name) formatting
529 (coff_mangle_symbols) xcoff 64 bit support
530 (coff_write_symbol) same
531 (coff_write_alien_symbol) same
532 (coff_write_native_symbol) same
533 (coff_write_symbols) same
534 (coff_get_symbol_info) same
535 (bfd_coff_get_syment) same
536 (coff_print_symbol) same
537
538 * config.bfd : add powerpc64-*-aix* target
539
540 * libcoff-in.h : formatting
541
542 * libcoff.h : move xcoff extern declarations to libxcoff.h
543
544 * libxcoff.h : New file
545
de41dcd8
AJ
546 * xcofflink.c : Many changes for xcoff64 support. Move common
547 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
548 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
549 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
550
551 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
552 aix4.2+ -binitfini.
553
554 (xcoff_build_ldsyms) : handle special __rtinit symbol.
555
e90fdc1a
AO
5562001-05-23 Alexandre Oliva <aoliva@redhat.com>
557
558 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
559 s/ENTIRES/ENTRIES/.
560
d1cf510e
NC
5612001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
562
c2feb664
NC
563 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
564 * libbfd.h: Regenerate.
4e8a9624 565 * bfd-in2.h: Regenerate.
c2feb664 566
d1cf510e
NC
567 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
568 * archures.c (bfd_mach_mips12000): Define.
569 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
570 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
571 support.
572 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
573 * bfd-in2.h: Regenerate.
574 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
575
6c426cf3
NC
5762001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
577
578 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
579 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
580 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
581 that is used by GCC.
582
d9bc7a44
NC
5832001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
584
585 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
586 of entries in a structured section.
bb0082d6
AM
587 * elf.c: Use new macro.
588 * elf32-i386.c: Use new macro.
589 * elf32-mips.c: Use new macro.
590 * elf64-alpha.c: Use new macro.
591 * elf64-sparc.c: Use new macro.
592 * elfcode.h: Use new macro.
593 * elflink.h: Use new macro.
d9bc7a44
NC
594
5952001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
596
597 * bfdint.texi: Replace -oformat with --oformat.
598
f5198f61
AJ
5992001-05-21 Andreas Jaeger <aj@suse.de>
600
601 * dwarf2.c (decode_line_info): Fix error message.
602 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
603 adjust error message.
604
7913c838
L
6052001-05-18 H.J. Lu <hjl@gnu.org>
606
607 * elflink.h (elf_link_add_object_symbols): Revert the last
608 change.
609
e0522e89
AM
6102001-05-17 Alan Modra <amodra@one.net.au>
611
612 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
613 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
614 (hppa_build_one_stub): Add an assert to check plt.offset.
615
96fd004e
L
6162001-05-17 H.J. Lu <hjl@gnu.org>
617
618 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
619 version definition to basename of the output filename.
620
f3876d8b
L
6212001-05-17 H.J. Lu <hjl@gnu.org>
622
623 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
624 basename of the bfd filename.
625
d1778b88
AM
6262001-05-16 Alan Modra <amodra@one.net.au>
627
628 * section.c (asection): Add linker_has_input field.
629 (STD_SECTION): Adjust initialization to suit.
630 * ecoff.c (bfd_debug_section): Likewise.
631 * bfd-in2.h: Regenerate.
632
2a0fa943
AO
6332001-05-15 Alexandre Oliva <aoliva@redhat.com>
634
635 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
636 negative 32-bit operands to 16 operands when the operand is
637 going to be zero-extended by the modified opcode.
638
bcee8eb8
AM
6392001-05-12 Peter Targett <peter.targett@arccores.com>
640
641 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
642 name for 'arc5' core versions.
643 (bfd_arc_arch): Make bfd_mach_arc_6 default.
644
645 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
646 architecture.
647 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
648
579f31ac
JJ
6492001-05-11 Jakub Jelinek <jakub@redhat.com>
650
651 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
652 sections as well.
653 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
654 to .gnu.linkonce.t.FOO text section.
655
8550eb6e
JJ
6562001-05-11 Jakub Jelinek <jakub@redhat.com>
657
658 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
659 fields, change sec into secinfo.
660 (struct sec_merge_info): Add chain, remove last fields.
661 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
662 (sec_merge_hash_lookup): If lookup could not use a string only
663 because it has bad alignment, mark the old string for deletion.
664 (sec_merge_add): Add secinfo argument. Don't compute entry's
665 position, instead record the section.
666 (sec_merge_emit): Update for the sec into secinfo change in
667 struct sec_merge_hash_entry.
668 (_bfd_merge_section): Only record the section for merging, defer
669 putting strings into the hash table.
670 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
671 _bfd_merge_sections): New functions.
672 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
673 changes.
674 * libbfd-in.h (_bfd_merge_sections): Add prototype.
675 (_bfd_nolink_bfd_merge_sections): Define.
676 * libbfd.h: Likewise.
677 (bfd_generic_merge_sections): Add prototype.
678 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
679 (struct bfd_target): Likewise.
680 * bfd.c (bfd_merge_sections): Define.
681 * bfd-in2.h: Rebuilt.
682 * elf.c (_bfd_elf_merge_sections): New function.
683 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
684 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
685 * reloc.c (bfd_generic_merge_sections): New function.
686 * vms.c (vms_bfd_merge_sections): New function.
687 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
688 * aout-target.h (MY_bfd_merge_sections): Define.
689 * aout-tic30.c (MY_bfd_merge_sections): Define.
690 * binary.c (binary_bfd_merge_sections): Define.
691 * bout.c (b_out_bfd_merge_sections): Define.
692 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
693 * coffcode.c (coff_bfd_merge_sections): Define.
694 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
695 * i386msdos.c (msdos_bfd_merge_sections): Define.
696 * i386os9k.c (os9k_bfd_merge_sections): Define.
697 * ieee.c (ieee_bfd_merge_sections): Define.
698 * ihex.c (ihex_bfd_merge_sections): Define.
699 * nlm-target.h (nlm_bfd_merge_sections): Define.
700 * oasys.c (oasys_bfd_merge_sections): Define.
701 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
702 * som.c (som_bfd_merge_sections): Define.
703 * srec.c (srec_bfd_merge_sections): Define.
704 * tekhex.c (tekhex_bfd_merge_sections): Define.
705 * versados.c (versados_bfd_merge_sections): Define.
706 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
707
1548c54f
NC
7082001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
709
710 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
711 to be unsigned long, in order to match its use.
712
689effed
L
7132001-05-10 H.J. Lu <hjl@gnu.org>
714
715 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
716 indirect symbols.
717
6e5222be
L
7182001-05-09 H.J. Lu <hjl@gnu.org>
719
720 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
721 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
722 Remove the unused veriable `dynver'.
723
8e191bd3
ILT
7242001-05-08 Ian Lance Taylor <ian@zembu.com>
725
726 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
727 NULL or is not COFF.
728 (coff_i386_rtype_to_howto): Don't dump core if output section
729 owner is not COFF.
730
062e2358
AM
7312001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
732
733 * ecoff.c (bfd_debug_section): Fix initialization.
734 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
735 is always a positive integer. Cast away sign mismatch.
736 * elf32-mips.c: Fix misleading comment and typo.
737 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
738 correct data type.
739 * elflink.c: Fix typo.
740 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
741 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
742
16b65e4e
RH
7432001-05-04 Richard Henderson <rth@redhat.com>
744
745 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
746
cac15327
NC
7472001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
748
749 * elf32-arm.h (elf32_arm_final_link_relocate): Set
bb0082d6 750 EF_ARM_HASENTRY if the start address is set.
cac15327 751
966b3e0b
NC
7522001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
753
754 * targets.c (_bfd_target_vector_entries): Compute value based on
755 the size of the _bfd_target_vector and not bfd_target_vector.
756
210ba1e8
L
7572001-05-03 H.J. Lu <hjl@gnu.org>
758
759 * elfcode.h: Include "libiberty.h".
760
761 * elflink.h (elf_link_add_object_symbols): Set
762 elf_dt_name (abfd) to basename of the bfd filename.
763 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
764 of the bfd filename.
765
56fc028e
AJ
7662001-05-03 Andreas Jaeger <aj@suse.de>
767
768 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
769 (elf_generic_info_to_howto_rel): Likewise.
770 * coff-alpha.c (reloc_nil): Likewise.
771 (alpha_ecoff_bad_format_hook): Likewise.
772 (alpha_adjust_reloc_out): Likewise.
773 (alpha_bfd_reloc_type_lookup): Likewise.
774 (alpha_convert_external_reloc): Likewise.
775 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
776 (elf64_alpha_reloc_bad): Likewise.
777 (elf64_alpha_reloc_gpdisp): Likewise.
778 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
779 (elf64_alpha_info_to_howto): Likewise.
780 (elf64_alpha_add_symbol_hook): Likewise.
781 (elf64_alpha_create_got_section): Likewise.
782 (elf64_alpha_is_local_label_name): Likewise.
783 (elf64_alpha_merge_ind_symbols): Likewise.
784 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
785 (mips_elf64_get_reloc_upper_bound): Likewise.
786 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
787 (nlm_alpha_get_public_offset): Likewise.
788
c7e40348
NC
7892001-05-02 Johan Rydberg <jrydberg@opencores.org>
790
bb0082d6 791 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
c7e40348 792 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 793 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 794
5fba655a
L
7952001-04-30 H.J. Lu <hjl@gnu.org>
796
797 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
798 only for ELF_LINK_FORCED_LOCAL.
799 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
800 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
801 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
802
803 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
804 if the symbol has hidden or internal visibility.
805
db20fd76
AM
8062001-04-30 Alan Modra <amodra@one.net.au>
807
808 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
809 calls to undefined weak symbols.
810
6a2bda3f
AJ
8112001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
812
813 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
814 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
815
053579d7
AJ
8162001-04-27 Andreas Jaeger <aj@suse.de>
817
818 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
819 out handled entries.
820 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
821 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
822 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
823 GOT32.
824
87748b32
NC
8252001-04-27 Sean McNeil <sean@mcneil.com>
826
827 * config.bfd: Add arm-vxworks target.
828 * coff-arm (coff_arm_relocate_section): Add in symbol value to
829 addend (fro VXworks targets).
830
f5f31454
L
8312001-04-26 H.J. Lu <hjl@gnu.org>
832
833 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
834 valid.
835
d436a9b3
FCE
8362001-04-25 Frank Ch. Eigler <fche@redhat.com>
837
838 * bfd-in.h (bfd_cache_close): Declare newly exported function.
839 * bfd-in2.h: Regenerated.
840
a531bbd2
JJ
8412001-04-24 Jakub Jelinek <jakub@redhat.com>
842
843 * merge.c (struct sec_merge_hash_entry): Add alignment field.
844 (struct sec_merge_hash): Remove alignment_power.
845 (sec_merge_hash_newfunc): Clear alignment.
846 (sec_merge_hash_lookup): Pass alignment as argument.
847 Use hashp->root.next, not hashp->next to walk the hash chain.
848 If a string already in the hashtable does not have required
849 alignment, create a new hashtable entry.
850 (sec_merge_init): Remove alignment_power argument.
851 (sec_merge_add): Add alignment argument.
852 (sec_merge_emit): Alignment is now a per-entity thing, not per
853 section.
854 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
855 for proper alignment.
856 Pass alignment information to sec_merge_add.
857
6840198f
NC
8582001-04-24 Christian Groessler <cpg@aladdin.de>
859
860 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
861 and R_REL16 reloc types; accept odd values for R_REL16 type
862
b3baf5d0
NC
8632001-04-24 Johan Rydberg <jrydberg@opencores.org>
864
865 * cpu-openrisc.c: New file.
866 * elf32-openrisc.c: Likewise.
867
868 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
869 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
870 (BFD32_BACKENDS): Add elf32-openrisc.lo.
871 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
872 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
873 * Makefile.in: Regenerated.
874 * config.bfd: (openrisc-*-elf): New target.
053579d7 875 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
876 * configure: Regenerated.
877 * libbfd.h: Regenerated.
878 * bfd-in2.h: Regenerated.
879 * reloc.c: Add OpenRISC relocations.
053579d7 880 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
881 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
882 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
883 (bfd_openrisc_arch): Declare.
884 (bfd_archures_list): Add bfd_openrisc_arch.
885 * elf.c (prep_headers): Add bfd_arch_openrisc.
886
fe4770f4
AJ
8872001-04-23 Bo Thorsen <bo@suse.de>
888
889 * elf64-x86-64.c: Add c++ vtable hack.
890 Small whitespace and comment changes.
891
653165cc
AJ
8922001-04-19 Andreas Jaeger <aj@suse.de>
893
894 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
895 (elf64_x86_64_plt_entry): Likewise.
896 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
897 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
898
4d96d128
HPN
8992001-04-17 Hans-Peter Nilsson <hp@axis.com>
900
901 * elf32-cris.c: Tweak comments related to dynamic linking.
902 (cris_elf_relocate_section): When not creating shared object, fill
903 in the .got table for any symbol not in the dynamic symbol table.
904 (elf_cris_finish_dynamic_symbol): When not creating shared object,
905 only emit a .got.rela reloc if the symbol is in the dynamic symbol
906 table.
907 (cris_elf_check_relocs): Use variable r_type in all places rather
908 than the original expression. Add default case in switch for
909 reloc types.
910 (elf_cris_size_dynamic_sections): Iterate over
911 elf_cris_discard_excess_program_dynamics when not creating shared
912 library.
653165cc 913 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
914 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
915 (elf_cris_discard_excess_program_dynamics): New.
916
3ed30d29
DD
9172001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
918
919 * coffcode.h (coff_write_object_contents): Use
920 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
921
a80f6941
L
9222001-04-14 H.J. Lu <hjl@gnu.org>
923
924 * bfd-in2.h: Regenerate.
925
767e4b0d
JJ
9262001-04-14 Jakub Jelinek <jakub@redhat.com>
927
928 * section.c (STD_SECTION): Add entsize.
929
2dd439c5
L
9302001-04-13 H.J. Lu <hjl@gnu.org>
931
932 * section.c (SEC_MERGE): Define new flag for merging.
933 (SEC_STRINGS): Likewise.
934 (entsize): New field.
935
baf80c32
DD
9362001-04-13 Roger Sayle <roger@metaphorics.com>
937
938 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
939 flag on pe-i386 targets.
940
f5fa8ca2
JJ
9412001-04-13 Jakub Jelinek <jakub@redhat.com>
942
943 * libbfd-in.h (_bfd_merge_section): New.
944 (_bfd_write_merged_section): New.
945 (_bfd_merged_section_offset): New.
946 * libbfd.h: Rebuilt.
947 * linker.c (_bfd_generic_link_output_symbols): Handle
948 discard_sec_merge.
949 * aoutx.h (aout_link_write_symbols): Likewise.
950 * pdp11.c (aout_link_write_symbols): Likewise.
951 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
952 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
953 sections.
954 (elf_link_sec_merge_syms): New.
955 (elf_link_input_bfd): Call _bfd_merged_section_offset
956 and _bfd_write_merged_section.
957 Handle discard_sec_merge.
958 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
959 field.
960 (struct bfd_elf_section_data): Likewise.
961 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
962 SEC_STRINGS section flags and entsize from their ELF counterparts.
963 (_bfd_elf_link_hash_table_init): Initialize merge_info.
964 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
965 from their BFD counterparts.
966 * merge.c: New file.
967 * Makefile.am: Add strtab.lo.
968 * Makefile.in: Rebuilt.
969
d954b040
HPN
9702001-04-09 Hans-Peter Nilsson <hp@axis.com>
971
972 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
973 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
974
fdbafa10
L
9752001-04-05 Steven J. Hill <sjhill@cotw.com>
976
977 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
978 endian MIPS ELF target.
979 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
980 MIPS ELF target.
981
982 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
983 64bit big endian MIPS ELF target.
653165cc 984 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
985 endian MIPS ELF target.
986 * configure: Regenerated.
987
988 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
989 little endian targets.
990 (mips_elf_sym_is_global): Handle traditional targets.
991
992 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
993 64bit big endian MIPS ELF target.
994 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
995 endian MIPS ELF target.
996
997 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
998 and bfd_elf64_tradlittlemips_vec.
999
dd484e5c
L
10002001-04-05 David Mosberger <davidm@hpl.hp.com>
1001
1002 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1003 ordinary "progbits" section.
1004
391a809a
AM
10052001-04-04 Alan Modra <alan@linuxcare.com.au>
1006
1007 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1008 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1009
5854c633
L
10102001-04-03 David Mosberger <davidm@hpl.hp.com>
1011
1012 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1013
8b4b0fac
L
10142001-03-30 H.J. Lu <hjl@gnu.org>
1015
1016 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1017 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1018
eb4a6e4f
L
10192001-03-26 H.J. Lu <hjl@gnu.org>
1020
1021 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1022 if there are any relocations for generic ELF.
1023 (bfd_elf32_bfd_link_add_symbols): Defined to
1024 elf32_generic_link_add_symbols.
1025 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1026 if there are any relocations for generic ELF.
1027 (bfd_elf64_bfd_link_add_symbols): Defined to
1028 elf64_generic_link_add_symbols.
1029
55c80943
NC
10302001-03-23 Nick Clifton <nickc@redhat.com>
1031
1032 * Makefile.am (BUILD_CFILES): New variable: List of C source
bb0082d6
AM
1033 files created in build directory.
1034 (BUILD_HFILES): New variable: List of header files created in
1035 build directory.
1036 (POTFILES): Delete.
1037 (po/POTFILES.in): Replace rule with empty entry.
1038 (po/SRC-POTFILES.in): New rule: Create a list of source files
1039 in the source directory.
1040 (po/BLD-POTFILES.in): New rule: Create a list of source files
1041 in the build directory.
1042 (MOSTLYCLEAN): Do not delete source files created in build
1043 directory.
1044 * Makefile.in: Regenerate.
1045 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1046 into po/Makefile.
1047 * configure: Regenerate.
1048
1049 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1050 and BLD_POTFILES.
55c80943 1051 Add .. to the search path when building bfd.pot.
bb0082d6
AM
1052 Delete POTFILES when performing distclean.
1053 Add comment describing why distclean is broken in maintainer mode.
55c80943
NC
1054 * po/POTFILES.in: Delete.
1055 * po/SRC-POTFILES.in: New file.
1056 * po/BLD-POTFILES.in: New file.
bb0082d6 1057 * po/bfd.pot: Regenerate.
55c80943 1058
58d29fc3
HPN
10592001-03-22 Hans-Peter Nilsson <hp@axis.com>
1060
915e5146
HPN
1061 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1062 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1063 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1064 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1065 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1066 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1067 functions.
1068 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1069 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1070 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1071 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1072 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1073 New HOWTO members for new relocs.
1074 (cris_reloc_map): Map new relocs.
1075 (ELF_DYNAMIC_INTERPRETER): Define.
1076 (PLT_ENTRY_SIZE): Define.
1077 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1078 elf_cris_pic_plt_entry): New, PLT templates.
1079 (struct elf_cris_pcrel_relocs_copied, struct
1080 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1081 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1082 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1083 positive values. Adjust PCREL relocs to be relative to location
1084 after relocation.
1085 (cris_elf_relocate_section): Handle relocations to dynamic
1086 objects. Handle new relocations. Call error handler when seeing
1087 non-PIC relocation for read-only sections while generating shared
1088 object.
1089 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1090 entries.
1091 (bfd_elf32_bfd_link_hash_table_create,
1092 elf_backend_adjust_dynamic_symbol,
1093 elf_backend_size_dynamic_sections,
1094 elf_backend_finish_dynamic_symbol,
1095 elf_backend_finish_dynamic_sections,
1096 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1097 elf_backend_hide_symbol, elf_backend_want_got_plt,
1098 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1099 elf_backend_got_header_size, elf_backend_plt_header_size):
1100 Define.
1101
58d29fc3
HPN
1102 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1103 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1104 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1105 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1106 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1107 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1108 * bfd-in2.h, libbfd.h: Regenerate.
1109
7a65545d
DN
11102001-03-21 Diego Novillo <dnovillo@redhat.com>
1111
1112 (_bfd_mips_elf_relocate_section): Give a better error message when
1113 a relocation is not recognized.
1114
b32b5d6e
AM
11152001-03-21 Alan Modra <alan@linuxcare.com.au>
1116
1117 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1118 non-NULL before attempting to dereference.
1119
f4fbb4a3
L
11202001-03-20 H.J. Lu <hjl@gnu.org>
1121
1122 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1123 * configure: Rebuild.
1124
95fc45e6
AS
11252001-03-20 Andreas Schwab <schwab@suse.de>
1126
1127 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1128 relocation value when resolving a reference from a debugging
1129 section.
1130
03d411a9
NC
11312001-03-16 Scott Thomason <SThomaso@hii.com>
1132
1133 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1134 (xcoff64_swap_sym_out): Fix syntax errors.
1135
d1659392
NC
11362001-03-16 Richard Sandiford <rsandifo@redhat.com>
1137
1138 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1139
12cca0d2
AM
11402001-03-15 Alan Modra <alan@linuxcare.com.au>
1141
1142 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1143 (hppa_link_hash_newfunc): Init it.
1144 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1145 section appears to be non-PIC.
1146 (final_link_relocate): Likewise.
1147 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1148 possible candidate function, and set pic_call for those that will
1149 only have a .plt entry for the PIC call stub.
1150 (hppa_handle_PIC_calls): Set maybe_pic_call.
1151
cd6ec716
DD
11522001-03-12 DJ Delorie <dj@redhat.com>
1153
1154 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1155 R_SH_DIR8WP* relocs if they're against external symbols, else
1156 they're just for relaxing. Validate the reloc values.
1157
43a0748c
NC
11582001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1159
1160 * binary.c (bfd_external_binary_architecture): Declare.
1161 (binary_object_p): If bfd_external_binary_architecture is defined,
1162 set the architecture to this string.
1163
d982ba73
PB
11642001-03-11 Philip Blundell <philb@gnu.org>
1165
1166 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1167 entries that could serve as a definition for a weak symbol.
1168
7898deda
NC
11692001-03-08 Nick Clifton <nickc@redhat.com>
1170
1171 * Most files: Update copyright notices using Perl script created
1172 by Kevin Buettner <kevinb@redhat.com>.
653165cc 1173
df425bc0
NC
11742001-03-07 Nick Clifton <nickc@redhat.com>
1175
1176 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1177 prior patch on ! defined OLD_ARM_ABI.
1178
bcdd92f3
AJ
11792001-03-07 Andreas Jaeger <aj@suse.de>
1180
1181 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1182 some relocation values.
1183
4f3c3dbb
NC
11842001-03-06 Nick Clifton <nickc@redhat.com>
1185
1186 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1187 of offset in BLX(1) instruction.
1188 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1189 offset in BLX(1) instruction.
bb0082d6 1190 Fix formatting.
4f3c3dbb 1191
f8f3c6cc
NC
11922001-03-06 Nick Clifton <nickc@redhat.com>
1193
1194 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1195 BFD_RELOC_THUMB_PCREL_BLX.
1196
3cac17ae
NC
11972001-03-06 Igor Shevlyakov <igor@windriver.com>
1198
1199 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1200 * bfd-in2.h: Regenerate.
1201 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1202 * ieee.c (ieee_write_processor): Set proper id for
1203 Coldfire CPUs.
1204
d1b17ab0
NC
12052001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1206
1207 * configure.in: Add s390 target.
1208 * configure: Regenerate.
1209
5608e05b
AJ
12102001-02-28 Andreas Jaeger <aj@suse.de>
1211
1212 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1213 to addend.
1214
fd2ec330
PB
12152001-02-28 Philip Blundell <pb@futuretv.com>
1216
1217 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 1218 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 1219
920581c5
L
12202001-02-27 H.J. Lu <hjl@gnu.org>
1221
1222 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1223 abfd->tdata.aout_data == NULL.
1224
27b7e12d
AM
12252001-02-27 Alan Modra <alan@linuxcare.com.au>
1226
3ee1d854
AM
1227 * elf32-hppa.c: Correct field selector in stub comments.
1228 (clobber_millicode_symbols): Formatting fix.
1229
27b7e12d
AM
1230 * configure.in: Bump version to 2.11.90.
1231 * configure: Regenerate.
1232 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1233 (CFILES): $SOURCE_CFILES + generated C files.
1234 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1235 Run "make dep-am"
1236 * Makefile.in: Regenerate.
1237 * doc/Makefile.in: This too.
1238
10d1e03a
TW
12392001-02-26 Timothy Wall <twall@cygnus.com>
1240
1241 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 1242 comments.
10d1e03a 1243
1276aefa
NC
12442001-02-26 Nick Clifton <nickc@redhat.com>
1245
1246 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1247 up, replacing multiple if statements with a switch.
bb0082d6 1248 (handle_COMDAT): New function.
1276aefa
NC
1249
12502001-02-26 H.J. Lu <hjl@gnu.org>
1251
1252 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1253 a warning for section flags we do not handle instead of
1254 aborting.
1255
4a73f21b
AJ
12562001-02-26 Andreas Jaeger <aj@suse.de>
1257
1258 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1259
7b6dab7f
TW
12602001-02-22 Timothy Wall <twall@cygnus.com>
1261
1262 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1263 * configure.in: Add objects for elf64_ia64_aix vectors.
1264 * configure: Regenerated.
1265 * configure.host: Recognize ia64-*-aix*.
1266 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1267 for AIX. AIX5 requires most relocations to be dynamic (*all*
1268 binaries are somewhat similar to shared libraries).
1269 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 1270
87f8eb97
JW
12712001-02-21 David Mosberger <davidm@hpl.hp.com>
1272
1273 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1274 C8 said "1" instead of "8". Clarify error string for IMM22:
1275 "signed integer" instead of just "integer".
1276
05aa1441
AJ
12772001-02-20 Andreas Jaeger <aj@suse.de>
1278
1279 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1280 PLT entries that could serve as a definition for a weak symbol.
1281
8701c1bc
JJ
12822001-02-19 Jakub Jelinek <jakub@redhat.com>
1283
1284 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1285 entries that could serve as a definition for a weak symbol.
1286 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1287
d4af9775
DB
12882001-02-18 David O'Brien <obrien@FreeBSD>
1289
1290 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1291 FreeBSD/i386-CURRENT differently until I can figure out the needed
1292 corefile changes.
1293 * configure: Regenerate.
1294 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1295 FreeBSD/PowerPC, and FreeBSD/sparc64.
1296
e135f41b
NC
12972001-02-18 lars brinkhoff <lars@nocrew.org>
1298
1299 * Makefile.am: Add PDP-11 a.out target.
1300 * config.bfd: Likewise.
1301 * configure.in: Likewise.
1302 * targets.c: Likewise.
1303 * archures.c: Likewise.
1304 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1305 * libbfd.h: Add PDP-11 relocations.
1306 * reloc.c: Likewise.
1307 * cpu-pdp11.c: New file.
1308 * pdp11.c: New file.
1309
1310 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1311 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1312 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1313 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1314 (GET_MAGIC): New macro.
1315 (PUT_MAGIC): Likewise.
1316 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1317
dc3febfa
NC
13182001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1319
1320 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1321 multiarch needs it).
1322
ea412e04
L
13232001-02-18 H.J. Lu <hjl@gnu.org>
1324
1325 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1326 index.
1327
47eee8a9
KH
13282001-02-18 Kazu Hirata <kazu@hxi.com>
1329
1330 * vms-misc.c: Fix formatting.
1331
8a0c27cd
KH
13322001-02-16 Kazu Hirata <kazu@hxi.com>
1333
1334 * vms.c: Fix formatting.
1335
d1fad7c6
NC
13362001-02-14 H.J. Lu <hjl@gnu.org>
1337
1338 * elf.c (elf_find_function): New function.
1339 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1340 the file name and function name.
1341
825b47db
NC
13422001-02-14 Nick Clifton <nickc@redhat.com>
1343
51d7ee16
NC
1344 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1345 asection structure.
1346
825b47db
NC
1347 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1348 (BFD64_BACKENDS): Add pepigen.c
1349 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1350
1351 * Makefile.in: Regenerate.
1352 * configure: Regenerate.
1353 * po/POTFILES.in: Regenerate.
1354 * po/bfd.pot: Regenerate.
1355
ea36a178
L
13562001-02-14 H.J. Lu <hjl@gnu.org>
1357
1358 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1359 force_minimum_alignment.
1360
407443a3
AJ
13612001-02-14 Bo Thorsen <bo@suse.de>
1362
1363 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1364 (elf64_86_64_size_info): Struct added to fix a problem
1365 with the hashtable string entries.
1366 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1367 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1368 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1369 remove the FIXME for this.
1370 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1371 section. Also removed the FIXME for it.
1372 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1373 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1374 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1375
b4adccfd
RH
13762001-02-13 Richard Henderson <rth@redhat.com>
1377
1378 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1379 and not user provided.
1380
9635981a
KH
13812001-02-13 Kazu Hirata <kazu@hxi.com>
1382
1383 * vms.c (vms_print_symbol): Remove unreachable code.
1384
6a125b16
KH
1385 * rs6000-core.c: Fix formatting.
1386
cbff5e0d
DD
13872001-02-13 David Mosberger <davidm@hpl.hp.com>
1388
1389 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1390 as _bfd_XXi_only_swap_filehdr_out.
1391 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1392 pe->force_minimum_alignment to TRUE.
1393 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1394 PEI_TARGET_SUBSYSTEM.
1395 (pe_print_private_bfd_data): Call
1396 _bfd_XX_print_private_bfd_data_common() instead of
1397 _bfd_pe_print_private_bfd_data_common().
1398 (pe_bfd_copy_private_bfd_data): Call
1399 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1400 _bfd_pe_bfd_copy_private_bfd_data_common().
1401 (coff_bfd_copy_private_section_data): Define as
1402 _bfd_XX_bfd_copy_private_section_data instead of
1403 _bfd_pe_bfd_copy_private_section_data.
1404 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1405 of a _bfd_pe_get_symbol_info.
1406
1407 * peigen.c: Delete.
1408
1409 * peXXigen.c: Renamed from peigen.c.
1410 (COFF_WITH_XX): Define this macro (will get expanded into
1411 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1412 compiled as peigen.c or pepigen.c.
1413 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1414 define the canonical PEP structures and definitions.
1415 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1416 effect, enforce minimum file and section alignments. If
1417 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1418 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1419 so, by default, this is a no-op).
1420
1421 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1422 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1423 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1424 _bfd_pefoo if it's not defined. Use these macros to define
1425 coff swap macros.
1426
1427 * libcoff.h (pe_tdata): Add members target_subsystem and
1428 force_minimum_alignment.
1429
1430 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1431 COFF_WITH_pep.
1432 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1433
1434 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1435 peigen.lo.
1436
1437 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1438 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1439 PEPAOUTHDR.
1440
1441 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1442 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1443 (peigen.c): Add rule to generate from peXXigen.c.
1444 (pepigen.c): Ditto.
1445 (pepigen.lo): List dependencies for pepigen.lo.
1446
df8634e3
AM
14472001-02-13 Alan Modra <alan@linuxcare.com.au>
1448
1449 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1450 $global$ referenced but not defined, set its value here.
1451
51e0a107
JH
14522001-02-09 Bo Thorsen <bo@suse.de>
1453
1454 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1455 alignment to 3.
1456 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1457 and relocation.
1458 (elf64_x86_64_relocate_section): Fix formatting.
1459 (elf64_x86_64_relocate_section): Fix addend for relocation of
1460 R_X86_64_(8|16|32|PC8|PC16|PC32).
1461
d1fad7c6 14622001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
1463
1464 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1465
f0e1d18a
L
14662001-02-11 H.J. Lu <hjl@gnu.org>
1467
6757257f 1468 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
1469 alignment.
1470
9117d219
NC
14712001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1472
1473 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1474 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1475 relocations against dynsym symbols.
1476
1477 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1478 the R_MIPS_26 relocation.
1479 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1480 the R_MIPS_26 relocation.
1481 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1482 relocation.
1483 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1484 the R_MIPS_26 relocation.
1485 (mips_elf64_howto_table_rela): Likewise.
1486
1487 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1488 member to mark symbols that have non-CALL relocations against
1489 them.
1490 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1491 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1492 R_MIPS_GOT16.
1493 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1494 non-CALL relocation against it is encountered.
1495 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1496 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1497 no_fn_stub is not set.
1498
1499 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1500 information from the real symbol for indirect ones.
1501 Check no_fn_stub to find out if a symbol has a function stub
1502 indeed.
1503
9f93bca5
MS
15042001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1505
1506 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1507 * Makefile.in: Regenerate.
1508
81545d45
RH
15092001-02-09 David Mosberger <davidm@hpl.hp.com>
1510
1511 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1512 true if section name is an unwind table section name.
1513 (elfNN_ia64_additional_program_headers): Count each unwind section
1514 separately.
1515 (elfNN_ia64_modify_segment_map): Install one unwind program header
1516 for each unwind separate section. Note: normally the linker
1517 script merges the unwind sections that go into a single segment,
1518 so this still generates at most one unwind program header per
1519 segment.
1520
1521 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1522 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1523 (elfNN_ia64_fake_sections): Mark sections with names that start
1524 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1525 unwind section.
1526
1527 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1528 Use it to make sh_info in unwind section point to the text section
1529 it applies to.
1530
a85d7ed0
NC
15312001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1532
1533 * Makefile.am: Add linux target for S/390.
1534 * archures.c: Likewise.
1535 * bfd-in2.h: Likewise.
1536 * config.bfd: Likewise.
1537 * configure.in: Likewise.
1538 * elf.c: Likewise.
1539 * libbfd.h: Likewise.
1540 * targets.c: Likewise.
1541 * cpu-s390.c: New file.
1542 * elf32-s390.c: New file.
1543 * elf64-s390.c: New file.
1544
356d255d
NC
15452001-02-09 Nick Clifton <nickc@redhat.com>
1546
1547 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1548 ImageBase. This has already been done by coff_swap_hdr_in.
1549
069f40e5
JJ
15502001-02-09 Jakub Jelinek <jakub@redhat.com>
1551
1552 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1553
eadfa8ab
JJ
15542001-02-09 Jakub Jelinek <jakub@redhat.com>
1555
1556 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1557 (sparc64_elf_relocate_section): Likewise.
1558
9fc54e19
MK
15592001-02-09 Mark Kettenis <kettenis@gnu.org>
1560
1561 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1562 similar to R_SPARC_32.
1563 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1564
1f655a09
L
15652001-02-08 H.J. Lu <hjl@gnu.org>
1566
1567 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1568 relocation entries for weak definitions when building DSO with
1569 -Bsymbolic.
1570
ca88208a
RH
15712001-02-08 Richard Henderson <rth@redhat.com>
1572
1573 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1574 before visibility. Locally defined protected symbols are not
1575 dynamic.
1576
4603e845
GK
15772001-02-08 Geoffrey Keating <geoffk@redhat.com>
1578
1579 * config.bfd: Enable coff64 for rs6000-*. Patch from
1580 <hzoli@austin.ibm.com>.
1581
4ca29a6a
NC
15822001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1583
1584 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1585 found, do not attempt to find dwarf2 info before returning.
1586
7da9d88f
NC
15872001-02-07 Jakub Jelinek <jakub@redhat.com>
1588
1589 * elflink.h (is_global_symbol_definition): Rename to
1590 is_global_data_symbol_definition and have it reject function
1591 symbols.
1592 (elf_link_is_defined_archive_symbol): Use renamed function.
1593
7340082d
NC
15942001-02-07 Todd Vierling <tv@wasabisystems.com>
1595
1596 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1597 * libbfd.h (bfd_target_vector): Likewise.
1598 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 1599 make static; create pointer reference named bfd_target_vector.
7340082d
NC
1600 (_bfd_target_vector_entries): Calculate this based on the array
1601 typed _bfd_target_vector.
1602
2719f880
L
16032001-02-06 H.J. Lu <hjl@gnu.org>
1604
1605 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1606 internal symbols are not dynamic.
1607 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1608
175aa013
NC
16092001-02-06 Nick Clifton <nickc@redhat.com>
1610
1611 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1612 that it will not be pulled into the list of files that make up
1613 po/POTFILES.in.
1614 * Makefile.in: Regenerate.
1615 * po/bfd.pot: Regenerate.
1616
15e0ecd9
L
16172001-02-06 H.J. Lu <hjl@gnu.org>
1618
7898deda 1619 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
1620 checking.
1621 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1622 external_PEI_IMAGE_hdr.
1623
27def10f
KH
16242001-02-06 Kazu Hirata <kazu@hxi.com>
1625
1626 * elf-m10200.c: Fix formatting.
1627
a0f2e916
NC
16282001-02-04 Nick Clifton <nickc@redhat.com>
1629
1630 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1631 rel, it will be handled later on.
1632
d96031fb
NC
16332001-02-02 Fred Fish <fnf@ninemoons.com>
1634
1635 * Makefile.in: Fix typo.
1636
010ac81f
KH
16372001-02-01 Kazu Hirata <kazu@hxi.com>
1638
1639 * elf-m10300.c: Fix formatting.
1640
3fab46d0
AM
16412001-01-30 Alan Modra <alan@linuxcare.com.au>
1642
1643 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1644 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
1645 (elf64_hppa_object_p): Set architecture and machine from elf
1646 header flags.
3fab46d0 1647
95404643
RH
16482001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1649
1650 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1651 before mdebug.
1652
8fb35fed
RH
16532001-01-26 Richard Henderson <rth@redhat.com>
1654
1655 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1656 for non-default visibility.
1657 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1658 delete ugly macro and replace with pretty function.
1659
a4f68544
NC
16602001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1661
1662 * coff-go32.c: Update copyright.
1663 * coff-stgo32.c: Likewise.
1664 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1665 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1666 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1667 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1668
c02e7c3e
KH
16692001-01-25 Kazu Hirata <kazu@hxi.com>
1670
1671 * bfd-in2.h: Rebuild.
1672 * libbfd.h: Likewise.
1673
541389e2
L
16742001-01-23 H.J. Lu <hjl@gnu.org>
1675
1676 * bfd-in2.h: Rebuild.
1677
0007625f
L
16782001-01-23 H.J. Lu <hjl@gnu.org>
1679
1680 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1681 is NULL or PRIV(vms_rec) is outside of the buffer.
1682
b653e1b1
KH
16832001-01-23 Kazu Hirata <kazu@hxi.com>
1684
1685 * coff64-rs6000.c: Fix formatting.
1686 * coff-arm.c: Likewise.
1687 * coffgen.c: Likewise.
1688 * cofflink.c: Likewise.
1689 * coff-mcore.c: Likewise.
1690 * coff-mips.c: Likewise.
1691 * coff-pmac.c: Likewise.
1692 * coff-ppc.c: Likewise.
1693 * coff-rs6000.c: Likewise.
1694 * elf32.c: Likewise.
1695 * elf32-fr30.c: Likewise.
1696 * elf32-i370.c: Likewise.
1697 * elf32-i860.c: Likewise.
1698 * elf32-m32r.c: Likewise.
1699 * elf32-m68k.c: Likewise.
1700 * elf32-mcore.c: Likewise.
1701 * elf32-ppc.c: Likewise.
1702 * elf32-sh.c: Likewise.
1703 * elf32-v850.c: Likewise.
1704 * elf64-alpha.c: Likewise.
1705 * elf64-sparc.c: Likewise.
1706 * elflink.c: Likewise.
1707 * elflink.h: Likewise.
1708 * elf-m10200.c: Likewise.
1709 * elf-m10300.c: Likewise.
1710 * elfxx-ia64.c: Likewise.
1711
3fde5a36
KH
1712 * aoutx.h: Fix formatting.
1713 * bfd.c: Likewise.
1714 * bfd-in2.h: Likewise.
1715 * bfd-in.h: Likewise.
1716 * cpu-i386.c: Likewise.
1717 * cpu-m68hc11.c: Likewise.
1718 * dwarf2.c: Likewise.
1719 * elf64-x86-64.c: Likewise.
1720 * format.c: Likewise.
1721 * freebsd.h: Likewise.
1722 * hash.c: Likewise.
1723 * hp300hpux.c: Likewise.
1724 * hppabsd-core.c: Likewise.
1725 * hpux-core.c: Likewise.
1726
70256ad8
AJ
17272001-01-22 Bo Thorsen <bo@suse.de>
1728
1729 * elf64-x86-64.c: Added PIC support for X86-64.
1730 (elf64_x86_64_link_hash_newfunc): Function added.
1731 (elf64_x86_64_link_hash_table_create): Likewise.
1732 (elf64_x86_64_check_relocs): Likewise.
1733 (elf64_x86_64_gc_mark_hook): Likewise.
1734 (elf64_x86_64_gc_sweep_hook): Likewise.
1735 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1736 (elf64_x86_64_size_dynamic_sections): Likewise.
1737 (elf64_x86_64_discard_copies): Likewise.
1738 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1739 (elf64_x86_64_finish_dynamic_sections): Likewise.
1740 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1741
ee0bebb8
AJ
17422001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1743
1744 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1745 * Makefile.in: Regenerate.
1746
2a38f751
KH
17472001-01-21 Kazu Hirata <kazu@hxi.com>
1748
1749 * coff-a29k.c: Fix formatting.
1750
c8492176
L
17512001-01-19 H.J. Lu <hjl@gnu.org>
1752
1753 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1754 relocation section names.
1755 (elf_i386_relocate_section): Report files with bad relocation
1756 section names and return false.
1757
a5377ec0
AJ
17582001-01-17 Bo Thorsen <bo@suse.de>
1759
1760 * targets.c: Alphabetize list of xvecs.
1761
b352eebf
AM
17622001-01-14 Alan Modra <alan@linuxcare.com.au>
1763
d952f17a
AM
1764 * config.bfd: Add linux target variant for elfxx-hppa.
1765 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1766 bfd_elf64_hppa_linux_vec.
1767 * configure: Regenerate.
1768 * elf64-hppa.c: Include elf64-target.h again to support linux
1769 target variant.
1770 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1771 * elf32-hppa.c: Include elf32-target.h again to support linux
1772 target variant.
1773 (elf32_hppa_post_process_headers): New function.
1774 (elf_backend_post_process_headers): Define.
1775 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1776 bfd_elf32_hppa_linux_vec.
1777
c46b7515
AM
1778 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1779 and data_segment_base fields.
1780 (elf32_hppa_link_hash_table_create ): Init them.
1781 (elf32_hppa_check_relocs): Update comments.
1782 (hppa_record_segment_addr): New function.
1783 (elf32_hppa_relocate_section): Call it.
1784 (final_link_relocate): Handle R_PARISC_SEGREL32.
1785 (elf32_hppa_final_link): New function.
1786 (bfd_elf32_bfd_final_link): Define to call it.
1787 (hppa_unwind_entry_compare): New function.
1788 * cache.c (bfd_open_file): Create files in write+read mode.
1789
1790 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1791 SEGREL32 and numerous other relocs. Change duplicate
1792 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1793
d768008d
AM
1794 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1795 O_ACCMODE.
1796
150ccafb
AM
1797 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1798 .plt entries for DT_INIT and DT_FINI.
1799 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1800 DT_INIT and DT_FINI.
1801
b352eebf
AM
1802 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1803 offsets for stub .plt access if wide mode. Check offset in range.
1804
b3b9a062
NC
18052001-01-13 Nick Clifton <nickc@redhat.com>
1806
b7ed8fad
NC
1807 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1808 line.
1809
b3b9a062
NC
1810 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1811 line.
1812
6e0b89ee
AM
18132001-01-12 Alan Modra <alan@linuxcare.com.au>
1814
1815 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1816 * configure: Regenerate.
1817
0d2bcfaf
NC
18182001-01-11 Peter Targett <peter.targett@arccores.com>
1819
1820 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1821 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1822 * cpu-arc.c (arch_info_struct): Add entries for variants.
1823 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1824 (arc_get_mach) Don't assume machine names prefixed arc- before
1825 testing.
1826 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1827 selections.
1828 (arc_elf_final_write_processing) Likewise.
1829 (ELF_MACHINE_CODE) Use EM_ARC.
1830
c31c1f70
NC
18312001-01-10 Nick Clifton <nickc@redhat.com>
1832
2758140b 1833 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 1834
5ad083e3
PB
18352001-01-07 Philip Blundell <philb@gnu.org>
1836
1837 * README: Replace `bug-gnu-utils@gnu.org' with
1838 `bug-binutils@gnu.org'.
1839
7eae7d22
KH
18402001-01-04 Kazu Hirata <kazu@hxi.com>
1841
1842 * som.c: Fix formatting.
1843
509945ae
KH
18442001-01-03 Kazu Hirata <kazu@hxi.com>
1845
3e932841
KH
1846 * ecoffswap.h: Fix formatting.
1847 * elf-bfd.h: Likewise.
1848 * elfarm-nabi.c: Likewise.
1849 * elfarm-oabi.c: Likewise.
1850 * elfcode.h: Likewise.
1851 * elfcore.h: Likewise.
1852 * elflink.c: Likewise.
1853 * elflink.h: Likewise.
1854 * elfxx-ia64.c: Likewise.
1855 * elfxx-target.h: Likewise.
1856 * libbfd.c: Likewise
509945ae
KH
1857 * linker.c: Likewise.
1858 * lynx-core.c: Likewise.
1859
892339ee
KH
18602001-01-02 Kazu Hirata <kazu@hxi.com>
1861
1862 * pc532-mach.c: Fix formatting.
1863 * pe-arm.c: Likewise.
1864 * pe-i386.c: Likewise.
1865 * pe-mips.c: Likewise.
1866 * pe-ppc.c: Likewise.
1867 * pe-sh.c: Likewise.
1868 * pei-mips.c: Likewise.
1869 * pei-sh.c: Likewise.
ee91ed79 1870 * peicode.h: Likewise.
892339ee
KH
1871 * ppcboot.c: Likewise.
1872 * ptrace-core.c: Likewise.
1873
3d855632
KH
18742001-01-01 Kazu Hirata <kazu@hxi.com>
1875
1876 * reloc.c: Fix formatting.
1877 * riscix.c: Likewise.
1878 * rs6000-core.c: Likewise.
1879 * xcoff-target.h: Likewise.
1880
a77a9fef
HPN
18812000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1882
1883 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1884 error, by calling bfd_default_set_arch_mach with incoming
1885 values.
1886
558e161f
KH
18872000-12-26 Kazu Hirata <kazu@hxi.com>
1888
1889 * vaxnetbsd.c: Fix formatting.
1890 * versados.c: Likewise.
1891 * vms-gsd.c: Likewise.
1892 * vms-hdr.c: Likewise.
1893 * vms-misc.c: Likewise.
1894
3c579812
AO
18952000-12-25 Alexandre Oliva <aoliva@redhat.com>
1896
1897 * archive.c (coff_write_armap): Don't write more than symbol_count
1898 `archive_member_file_ptr's.
1899
672579e9
KH
19002000-12-25 Kazu Hirata <kazu@hxi.com>
1901
1902 * vms-tir.c: Fix formatting.
1903
55f2d5ed
KH
19042000-12-23 Kazu Hirata <kazu@hxi.com>
1905
1906 * vms.c: Fix formatting.
1907 * vms.h: Likewise.
1908
23ccc829
NC
19092000-12-21 Santeri Paavolainen <santtu@ssh.com>
1910
1911 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1912
1913 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1914
1915 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1916 arithmetic.
1917
1918 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1919
1920 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1921
8c603c85
NC
19222000-12-21 Richard Sandiford <rsandifo@redhat.com>
1923
1924 * libbfd.c (bfd_get_bits): Added
1925 (bfd_put_bits): Likewise
1926 * bfd-in.h: Declared the above.
1927 * bfd-in2.h: Regenerated.
1928
5bff4f56
KH
19292000-12-20 Kazu Hirata <kazu@hxi.com>
1930
1931 * targets.c: Fix formatting.
1932 * tekhex.c: Likewise.
1933 * trad-core.c: Likewise.
1934
7b82c249
KH
19352000-12-19 Kazu Hirata <kazu@hxi.com>
1936
1937 * sco5-core.c: Fix formatting.
1938 * section.c: Likewise.
1939 * sparclinux.c: Likewise.
1940 * sparclynx.c: Likewise.
1941 * sparcnetbsd.c: Likewise.
1942 * srec.c: Likewise.
1943 * stabs.c: Likewise.
1944 * stab-syms.c: Likewise.
1945 * sunos.c: Likewise.
1946 * syms.c: Likewise.
1947 * sysdep.h: Likewise.
1948
f78c5281
NC
19492000-12-18 Nick Clifton <nickc@redhat.com>
1950
1951 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1952 defined.
1953 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1954 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1955
02b89dce
NC
19562000-12-18 Nick Clifton <nickc@redhat.com>
1957
1958 * vms-misc.c (_bfd_vms_get_record): Add default case to
1959 file_format switch.
1960
d20966a7
NC
19612000-12-15 Miloslav Trmac <mitr@volny.cz>
1962
1963 * elfcore.h (elf_core_file_p): Move to the start of the program
1964 headers before attempting to read them.
1965
6fa957a9
KH
19662000-12-14 Kazu Hirata <kazu@hxi.com>
1967
1968 * peigen.c: Fix formatting.
1969 * som.c: Likewise.
1970 * som.h: Likewise.
1971
9602af51
KH
19722000-12-13 Kazu Hirata <kazu@hxi.com>
1973
1974 * peigen.c: Fix formatting.
1975
514829c3
JW
19762000-12-12 Jim Wilson <wilson@redhat.com>
1977
1978 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1979
3a71aec8
NC
19802000-12-08 Mark Salter <msalter@redhat.com>
1981
1982 * binary.c (binary_set_section_contents): Ignore sections
1983 with zero size.
1984
1518639e
KH
19852000-12-12 Kazu Hirata <kazu@hxi.com>
1986
1987 * m68klinux.c: Fix formatting.
1988 * m68knetbsd.c: Likewise.
1989 * mipsbsd.c: Likewise.
1990 * netbsd-core.c: Likewise.
1991 * netbsd.h: Likewise.
1992 * newsos3.c: Likewise.
1993 * nlm32-alpha.c: Likewise.
1994 * nlm32-i386.c: Likewise.
1995 * nlm32-ppc.c: Likewise.
1996 * nlm32-sparc.c: Likewise.
1997 * nlmcode.h: Likewise.
1998 * nlmswap.h: Likewise.
1999 * nlm-target.h: Likewise.
2000 * ns32knetbsd.c: Likewise.
2001
b79e8c78
NC
20022000-12-10 Fred Fish <fnf@be.com>
2003
d952f17a
AM
2004 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2005 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 2006
38b1a46c
NC
20072000-12-12 Nick Clifton <nickc@redhat.com>
2008
2009 * cpu-sh.c: Fix formattng.
2010 * elf.c: Fix formattng.
2011 * elf32-mips.c: Fix formattng.
2012 * elf32-sh.c: Fix formattng.
2013 * elf64-alpha.c: Fix formattng.
2014
857ec808
NC
20152000-12-09 Nick Clifton <nickc@redhat.com>
2016
2017 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2018 dwarf2_find_line_info as last parameter to invocation of
2019 _bfd_dwarf2_find_nearest_line.
2020 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2021 dwarf2_find_line_info as last parameter to invocation of
2022 _bfd_dwarf2_find_nearest_line.
2023
51db3708
NC
20242000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2025
2026 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
2027 (BFD_LIBS): ...to here.
2028 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2029 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
2030 * Makefile.in: Regenerate.
2031 * configure.in: Remove dwarf.lo from the elf shell variable.
2032 * configure: Regenerate.
2033 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2034 * libcoff.h: Regenerate.
d952f17a 2035 * coffgen.c (coff_find_nearest_line): Call
857ec808 2036 _bfd_dwarf2_find_nearest_line.
51db3708 2037 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
2038 accordingly.
2039 (read_abbrevs): Likewise
2040 (decode_line_info): Likewise.
2041 (parse_comp_unit): Likewise.
2042 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
2043 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2044 * libbfd.h: Regenerate.
2045 * elf.c (_bfd_elf_find_nearest_line): Update call.
2046 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2047 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2048 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
2049 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2050 (styp_to_sec_flags): Handle DWARF2 sections.
2051 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2052 to _bfd_find_nearest_line.
2053 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2054 call to _bfd_find_nearest_line.
d952f17a 2055
435b1e90
KH
20562000-12-08 Kazu Hirata <kazu@hxi.com>
2057
2058 * coffgen.c: Fix formatting.
fe8bc63d 2059 * elf-m10300.c: Likewise.
435b1e90
KH
2060 * elf32-i386.c: Likewise.
2061 * elf32-i960.c: Likewise.
2062 * elf32-m68k.c: Likewise.
2063 * elf32-mcore.c: Likewise.
2064 * elf32-ppc.c: Likewise.
2065 * elf32-sh.c: Likewise.
2066 * elf32-sparc.c: Likewise.
2067 * elf32-v850.c: Likewise.
fe8bc63d
KH
2068 * elf64-alpha.c: Likewise.
2069 * elf64-hppa.c: Likewise.
2070 * elf64-mips.c: Likewise.
435b1e90 2071 * elf64-sparc.c: Likewise.
435b1e90 2072
8da6118f
KH
20732000-12-07 Kazu Hirata <kazu@hxi.com>
2074
2075 * elf32-ppc.c: Fix formatting.
2076 * elf64-x86-64.c: Likewise.
2077
a9922e52
UC
20782000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2079
2080 From Ralf Baechle <ralf@gnu.org>
2081
2082 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2083 BFDs containing no sections or empty .text, .data or .bss sections
2084 to be merged, regardless of their flags.
2085
c3668558
KH
20862000-12-06 Kazu Hirata <kazu@hxi.com>
2087
2088 * elf32-m32r.c: Fix formatting.
2089 * elf32-m68hc11.c: Likewise.
2090 * elf32-m68hc12.c: Likewise.
2091 * elf32-m68k.c: Likewise.
2092 * elf32-mcore.c: Likewise.
2093 * elf32-pj.c: Likewise.
2094 * elf32-ppc.c: Likewise.
2095
6609fa74
KH
20962000-12-05 Kazu Hirata <kazu@hxi.com>
2097
2098 * elf32-fr30.c: Fix formatting.
2099 * elf32-hppa.c: Likewise.
2100 * elf32-i370.c: Likewise.
2101 * elf32-i386.c: Likewise.
2102 * elf32-i860.c: Likewise.
2103 * elf32-i960.c: Likewise.
2104
a7c10850
KH
21052000-12-03 Kazu Hirata <kazu@hxi.com>
2106
2107 * elf32-arm.h: Fix formatting.
2108 * elf32-avr.c: Likewise.
2109 * elf32-cris.c: Likewise.
2110 * elf32-d10v.c: Likewise.
2111 * elf32-d30v.c: Likewise.
2112 * elf-hppa.h: Likewise.
2113 * elf-m10200.c: Likewise.
2114 * elf-m10300.c: Likewise.
2115
e7af610e
NC
21162000-12-01 Chris Demetriou <cgd@sibyte.com>
2117
d952f17a
AM
2118 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2119 bfd_mach_mips32_4k. Update FIXME comment.
2120 * archures.c (bfd_mach_mips32): New constant.
2121 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2122 the latter, renumber it.
2123 * bfd-in2.h (bfd_mach_mips32): New constant.
2124 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2125 the latter, renumber it.
2126 * cpu-mips.c (I_mips32): New constant.
2127 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2128 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2129 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2130 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2131 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2132 with E_MIPS_MACH_MIPS32_4K.
2133 (_bfd_mips_elf_final_write_processing): Replace
2134 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2135 bfd_mach_mips32 case.
2136 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2137 comparison with support for MIPS32.
2138 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2139 MIPS32.
2140
2141 * aoutx.h (NAME(aout,machine_type)): Add cases for
2142 bfd_mach_mips5 and bfd_mach_mips64.
2143 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2144 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2145 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2146 (arch_info_struct): Add entries for bfd_mach_mips5 and
2147 bfd_mach_mips64.
2148 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2149 _bfd_mips_elf_print_private_bfd_data): Add cases for
2150 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2151 (_bfd_mips_elf_final_write_processing): Add cases for
2152 bfd_mach_mips5 and bfd_mach_mips64.
2153
7898deda 2154 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 2155 bfd_mach_mips_sb1 case.
7898deda
NC
2156 * archures.c (bfd_mach_mips_sb1): New constant.
2157 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2158 * cpu-mips.c (I_sb1): New constant.
d952f17a 2159 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 2160 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
2161 E_MIPS_MACH_SB1.
2162 (_bfd_mips_elf_final_write_processing): Add case for
2163 bfd_mach_mips_sb1.
2164
21652000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
2166
2167 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2168 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2169 (sparc*-*-rtems*): Switched from a.out to ELF.
2170
8d88c4ca 21712000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
2172
2173 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2174 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2175 (elf64-x86-64.lo): Add dependencies.
2176 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2177 bfd_mach_x86_64_intel_syntax.
2178 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2179 * config.bfd (x86_64): Add.
2180 * configure.in: Add support for bfd_elf64_x86_64_vec.
2181 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2182 (bfd_i386_arch, i8086_ar): Link in.
2183 * elf64-x86-64.c: New file.
2184 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2185 * targets.c (bfd_elf64_x86_64_vec): Add.
2186 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 2187
fbc4fff4
KH
21882000-11-30 Kazu Hirata <kazu@hxi.com>
2189
2190 * xcofflink.c: Fix formatting.
2191
e60b52c6
KH
21922000-11-28 Kazu Hirata <kazu@hxi.com>
2193
2194 * aoutx.h: Fix formatting.
2195 * bfd-in.h: Likewise.
2196 * bfd-in2.h: Likewise.
2197 * cache.c: Likewise.
2198 * cisco-core.c: Likewise.
2199 * coff64-rs6000.c: Likewise.
2200 * coffcode.h: Likewise.
2201 * coffswap.h: Likewise.
2202 * corefile.c: Likewise.
be3ccd9c 2203 * elf32-mips.c: Likewise.
e60b52c6 2204
336eced2
KH
22052000-11-27 Kazu Hirata <kazu@hxi.com>
2206
2207 * aout-adobe.c: Fix formatting.
244148ad
KH
2208 * coff64-rs6000.c: Likewise.
2209 * coffgen.c: Likewise.
2210 * cofflink.c: Likewise.
336eced2 2211
d71f672e
PB
22122000-11-27 Philip Blundell <pb@futuretv.com>
2213
2214 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2215 (obj_coff_strings_written): New accessor macro for above.
2216 * libcoff.h: Regenerate.
2217 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2218 strings.
2219 * coffcode.h (coff_write_object_contents): No need to write out
2220 the string table if it's already been done.
2221
bc7a577d
PB
22222000-11-22 Philip Blundell <pb@futuretv.com>
2223
d952f17a 2224 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
2225 weak undefined symbols.
2226
077b8428
NC
22272000-11-24 Nick Clifton <nickc@redhat.com>
2228
2229 * archures.c (bfd_mach_arm_5TE): Define.
2230 (bfd_mach_arm+XScale): Define.
2231 * bfd-in2.h: Regenerate.
2232
2233 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2234 BFD_RELOC_ARM_PCREL_BLX.
2235
2236 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2237 XScale machine numbers.
2238
2239 * config.bfd (xscale-elf): Add target.
2240 (xscale-coff): Add target.
2241
2242 * cpu-arm.c: Add xscale machine name.
2243 Add v5t, v5te and XScale machine numbers.
2244
e9e41bd9
KH
22452000-11-23 Kazu Hirata <kazu@hxi.com>
2246
2247 * aix386-core.c: Fix formatting.
2248
64bf6ae6
JW
22492000-11-22 Jim Wilson <wilson@redhat.com>
2250
2251 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2252 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2253 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2254 (ins_imms_scaled): Initialize sign_bit at function entry.
2255 (elf64_ia64_operands): Add missing initializers.
2256 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2257 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2258 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2259 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2260 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2261 parameters.
2262 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2263 and free_extsyms at function entry.
2264 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2265 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2266 (get_got): Delete unused local srel.
2267 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2268 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 2269
1abaf976
KH
22702000-11-21 Kazu Hirata <kazu@hxi.com>
2271
6e301b2b
KH
2272 * coff-a29k.c: Fix formatting.
2273 * coff-h8500.c: Likewise.
2274 * coff-i960.c: Likewise.
2275 * coff-ppc.c: Likewise.
2276 * coff-rs6000.c: Likewise.
2277 * coff-stgo32.c: Likewise.
2278 * coff-tic54x.c: Likewise.
2279 * coff-w65.c: Likewise.
2280 * cpu-h8500.c: Likewise.
2281 * cpu-hppa.c: Likewise.
2282 * cpu-ns32k.c: Likewise.
2283 * ecoff.c: Likewise.
1abaf976
KH
2284 * ecofflink.c: Likewise.
2285
a0fc8ba1
NC
22862000-11-21 Nick Clifton <nickc@redhat.com>
2287
2288 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2289 remove possibility of infinite loop.
2290
beb0d161
KH
22912000-11-20 Kazu Hirata <kazu@hxi.com>
2292
2293 * aix386-core.c: Fix formatting.
2294 * aout-adobe.c: Likewise.
2295 * aout-arm.c: Likewise.
2296 * aout-encap.c: Likewise.
2297 * aout-ns32k.c: Likewise.
2298 * aout-target.h: Likewise.
2299 * aout-tic30.c: Likewise.
2300 * aoutf1.h: Likewise.
2301 * aoutx.h: Likewise.
2302 * archive.c: Likewise.
eb6e10cb
KH
2303 * bfd-in.h: Likewise.
2304 * bfd-in2.h: Likewise.
2305 * bfd.c: Likewise.
2306 * bout.c: Likewise.
beb0d161 2307
2c2475db
JW
23082000-11-17 H.J. Lu <hjl@gnu.org>
2309
2310 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2311 pltoff entries for DT_INIT and DT_FINI.
2312 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2313 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2314 entries.
2315
18b27f17
RH
23162000-11-16 Richard Henderson <rth@redhat.com>
2317
2318 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2319 (allocate_dynrel_entries): Likewise.
2320 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2321 (set_pltoff_entry): Likewise.
2322 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2323 (elfNN_ia64_reloc_type_lookup): Likewise.
2324 (elfNN_ia64_install_value): Likewise.
2325 (elfNN_ia64_relocate_section): Likewise.
2326 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2327 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2328
98591c73
KH
23292000-11-16 Kazu Hirata <kazu@hxi.com>
2330
71f6b586
KH
2331 * cpu-a29k.c: Fix formatting.
2332 * cpu-alpha.c: Likewise.
2333 * cpu-arm.c: Likewise.
2334 * cpu-avr.c: Likewise.
2335 * cpu-d10v.c: Likewise.
2336 * cpu-h8500.c: Likewise.
2337 * cpu-hppa.c: Likewise.
2338 * cpu-i370.c: Likewise.
2339 * cpu-i386.c: Likewise.
2340 * cpu-i960.c: Likewise.
2341 * cpu-ia64-opc.c: Likewise.
2342 * cpu-ia64.c: Likewise.
2343 * cpu-m32r.c: Likewise.
2344 * cpu-m68hc11.c: Likewise.
2345 * cpu-m68hc12.c: Likewise.
2346 * cpu-m68k.c: Likewise.
2347 * cpu-m88k.c: Likewise.
2348 * cpu-mips.c: Likewise.
2349 * cpu-ns32k.c: Likewise.
2350 * cpu-pj.c: Likewise.
2351 * cpu-powerpc.c: Likewise.
2352 * cpu-sh.c: Likewise.
2353 * cpu-sparc.c: Likewise.
2354 * cpu-tic54x.c: Likewise.
2355 * cpu-v850.c: Likewise.
2356 * cpu-vax.c: Likewise.
2357 * cpu-w65.c: Likewise.
2358 * cpu-we32k.c: Likewise.
2359 * cpu-z8k.c: Likewise.
2360 * dwarf1.c: Likewise.
98591c73
KH
2361 * dwarf2.c: Likewise.
2362
c5930ee6
KH
23632000-11-15 Kazu Hirata <kazu@hxi.com>
2364
2365 * coff-arm.c: Fix formatting.
2366 * coff-ppc.c: Likewise.
2367 * coff-rs6000.c: Likewise.
cbfe05c4
KH
2368 * coff-sh.c: Likewise.
2369 * coff-sparc.c: Likewise.
2370 * coff-tic30.c: Likewise.
2371 * coff-tic54x.c: Likewise.
2372 * coff-tic80.c: Likewise.
2373 * coff-w65.c: Likewise.
2374 * coff-we32k.c: Likewise.
2375 * coff-z8k.c: Likewise.
c5930ee6 2376
dac544a8
RH
23772000-11-15 Richard Henderson <rth@redhat.com>
2378
2379 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2380 section with the same ALLOC|LOAD flags as the source section.
2381
c810873d
JJ
23822000-11-14 Jakub Jelinek <jakub@redhat.com>
2383
2384 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2385 by STO_ALPHA constants.
2386
43646c9d
KH
23872000-11-14 Kazu Hirata <kazu@hxi.com>
2388
2389 * coff-pmac.c: Fix formatting.
2390 * coff-ppc.c: Likewise.
2391
051b8577
L
23922000-11-13 H.J. Lu <hjl@gnu.org>
2393
2394 * elflink.h (elf_link_add_object_symbols): Also add indirect
2395 symbols for common symbols with the default version.
2396
90460d97
PB
23972000-11-09 Philip Blundell <pb@futuretv.com>
2398
2399 * section.c (STD_SECTION): Set gc_mark flag.
2400
b48499ec
KH
24012000-11-11 Kazu Hirata <kazu@hxi.com>
2402
2403 * coff-i960.c: Likewise.
2404 * coff-m68k.c: Likewise.
2405 * coff-m88k.c: Likewise.
2406 * coff-mcore.c: Likewise.
2407 * coff-mips.c: Likewise.
2408
c5aeb40f
AO
24092000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2410
2411 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2412
5fcfd273
KH
24132000-11-10 Kazu Hirata <kazu@hxi.com>
2414
2415 * coff-h8300.c: Fix formatting.
2416 * coff-h8500.c: Likewise.
2417 * coff-i386.c: Likewise.
2418 * coff-i860.c: Likewise.
2419 * coff-i960.c: Likewise.
2420 * coff-ia64.c: Likewise.
2421
047066e1
KH
24222000-11-09 Kazu Hirata <kazu@hxi.com>
2423
2424 * archive.c: Fix formatting.
2425 * archures.c: Likewise.
2426
9a951beb
RH
24272000-11-07 Richard Henderson <rth@redhat.com>
2428
2429 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2430 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2431 * section.c (bfd_set_section_contents): Call memcpy if
2432 section->contents set and location not equal to contents plus offset.
2433
aebad5fe
KH
24342000-11-08 Kazu Hirata <kazu@hxi.com>
2435
8546af74
KH
2436 * bfd-in.h: Fix formatting.
2437 * bfd-in2.h: Likewise.
2438 * bfd.c: Likewise.
aebad5fe
KH
2439 * binary.c: Likewise.
2440 * bout.c: Likewise.
346ceb11
KH
2441 * coff-a29k.c: Likewise.
2442 * coff-alpha.c: Likewise.
2443 * coff-apollo.c: Likewise.
2444 * coff-aux.c: Likewise.
aebad5fe 2445
0ef5a5bd
KH
24462000-11-07 Kazu Hirata <kazu@hxi.com>
2447
2448 * aix386-core.c: Fix formatting.
2449 * aoutf1.h: Likewise.
2450 * aoutx.h: Likewise.
2451 * archures.c: Likewise.
2452 * armnetbsd.c: Likewise.
2453
d562d2fb
AM
24542000-11-07 Alan Modra <alan@linuxcare.com.au>
2455
2456 * coff-h8300.c (special): Adjust reloc address.
2457
bbe66d08
JW
24582000-11-06 Steve Ellcey <sje@cup.hp.com>
2459
4efc3e05 2460 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
2461 to differentiate elf32 and elf64 on ia64.
2462 * bfd-in2.h: Regenerate.
2463 * config.bfd: Add target for "ia64*-*-hpux*".
2464 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2465 * configure: Regenerate.
4efc3e05 2466 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
2467 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2468
2469 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2470 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2471 * Makefile.in: Regnerate.
4efc3e05 2472 * elf64-ia64.c: Deleted.
bbe66d08
JW
2473 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2474
c4dfa77f
KH
24752000-11-06 Kazu Hirata <kazu@hxi.com>
2476
2477 * aout-adobe.c: Fix formatting.
2478 * aout-arm.c: Likewise.
2479 * aout-cris.c: Likewise.
2480 * aout-encap.c: Likewise.
2481 * aout-ns32k.c: Likewise.
2482 * aout-target.h: Likewise.
2483 * aout-tic30.c: Likewise.
2484
cf919dfd
PB
24852000-11-05 Philip Blundell <philb@gnu.org>
2486
2487 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2488 BFDs containing no sections to be merged, regardless of their flags.
2489
24902000-11-04 Philip Blundell <philb@gnu.org>
2491
2492 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2493 if a relocation for an undefined symbol also results in an
2494 overflow.
2495
8d88c4ca 24962000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
2497
2498 * config.bfd: Add support for Sun Chorus.
2499
46d59bfa
DB
25002000-11-05 David O'Brien <obrien@FreeBSD.org>
2501
2502 * configure.in: Recognize alpha-*-freebsd*.
2503 * configure: Regenerate.
2504
d952f17a 25052000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
2506
2507 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2508 (Chunk): New global variable set by a parameter in objcopy.c.
2509 (S3Forced): New global variable set by a parameter in
2510 objcopy.c.
2511 (srec_set_section_contents): If S3Forced is true, always generate
2512 S3 records.
2513 (srec_write_section): Use 'Chunk' to limit maximum length of S
2514 records.
2515
59ff2774
NC
25162000-11-02 Per Lundberg <plundis@chaosdev.org>
2517
2518 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2519 * Makefile.in: Regenerate.
2520 * bfd-in2.h: Regenerate.
2521 * po/bfd.pot: Regenerate.
d952f17a 2522
ee43f35e
PB
25232000-10-31 Philip Blundell <philb@gnu.org>
2524
2525 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2526 EF_SOFT_FLOAT if it is defined.
2527
1006ba19
PB
25282000-10-27 Philip Blundell <philb@gnu.org>
2529
2530 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2531 attempts to mix PIC code with non-PIC, just mark the output as
2532 being position dependent.
d952f17a
AM
2533 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2534 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 2535 all mismatches, not just the first one.
d952f17a 2536
c4920b97
NC
25372000-10-25 Chris Demetriou <cgd@sibyte.com>
2538
2539 * ieee.c (ieee_archive_p): Plug one of many possible
2540 memory leaks in error handling.
2541
19f7b010
JJ
25422000-10-20 Jakub Jelinek <jakub@redhat.com>
2543
2544 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2545 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2546 Support v8plusb.
2547 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2548 sparc64_elf_object_p): Support v9b.
2549 * archures.c: Declare v8plusb and v9b machines.
2550 * bfd-in2.h: Ditto.
2551 * cpu-sparc.c: Ditto.
2552
e1e0340b
GK
25532000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2554
ea5fbc67
GK
2555 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2556 of a GOT reloc.
2557
e1e0340b
GK
2558 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2559 (SYMBOL_CALLS_LOCAL): New macro.
2560 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2561 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2562 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2563 (ppc_elf_relocate_section): Use flag variable to determine
2564 whether the relocation refers to a local symbol.
2565 Test whether a PLTREL24 reloc will produce a reloc by looking
2566 to see whether a PLT entry was made.
2567
a4b120e1
GK
25682000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2569
2570 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2571 entries that could serve as a definition for a weak symbol.
2572
5af5b85b
UC
25732000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2574
2575 From Ralf Baechle <ralf@gnu.org>
2576
2577 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2578 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2579 against local symbols.
2580 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 2581
3ef20aaa
AM
25822000-10-12 Alan Modra <alan@linuxcare.com.au>
2583
24376d1b
AM
2584 * section.c (struct sec): Add kept_section.
2585 (struct bfd_comdat_info): Remove sec, we can use above.
2586 (STD_SECTION): Add initializer.
2587 (bfd_make_section_anyway): Init here too.
2588
2589 * bfd-in2.h: Regenerate.
2590
2591 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 2592 zeroing of `flags'.
24376d1b
AM
2593 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2594 fudge values for discarded link-once section symbols.
2595
3ef20aaa
AM
2596 * elf64-hppa.c: Include alloca-conf.h
2597
c0e219cc
AM
25982000-10-11 Alan Modra <alan@linuxcare.com.au>
2599
d01e2a23
AM
2600 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2601
c0e219cc
AM
2602 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2603
fe268b66
AM
26042000-10-10 Alan Modra <alan@linuxcare.com.au>
2605
2606 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2607
4d7ce4dd
AM
26082000-10-10 Tom Rix <trix@redhat.com>
2609
d952f17a 2610 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
2611 newsect->symbol fails to alloc. Use bfd_release instead of free.
2612
f3b6f7c3
RH
26132000-10-09 Richard Henderson <rth@cygnus.com
2614
2615 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2616 (elf64_ia64_unwind_entry_compare): New.
2617 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2618
44852b19
AM
26192000-10-07 Alan Modra <alan@linuxcare.com.au>
2620
fc8c40a0
AM
2621 * elflink.h (size_dynamic_sections): Don't create various tags if
2622 .dynstr is excluded from the link. Don't set first dynsym entry
2623 if dynsymcount is zero.
2624 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2625 .dynsym excluded from the link. Don't try to write any dynamic
2626 sections excluded from the link.
2627
44852b19
AM
2628 * elf.c (swap_out_syms): Handle global section symbols.
2629
3e4554a2
DD
26302000-10-05 DJ Delorie <dj@redhat.com>
2631
2632 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2633 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2634 (coff_write_relocs): write extended reloc count
2635 (coff_write_object_contents): account for extended relocs
2636
fa152c49
JW
26372000-10-05 Jim Wilson <wilson@cygnus.com>
2638
2639 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2640 field.
2641 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2642 elf_backend_section_flags function.
2643 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2644 code.
2645 (elf64_ia64_section_flags): New function containing flag conversion
2646 code.
2647 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2648 * elfxx-target.h (elf_backend_section_flags): Define.
2649 (elfNN_bed): Initialize elf_backend_section_flags field.
2650
36605136
AM
26512000-10-02 Alan Modra <alan@linuxcare.com.au>
2652
2653 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2654 _bfd_elf32_gc_record_vtable. Correct a comment.
2655
4b6609a0
UC
26562000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2657
2658 From Ralf Baechle <ralf@gnu.org>
2659
2660 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2661 produces binaries with got[1] = 0x80000001 to differenciate them
2662 for the dynamic linker from the broken binaries produced by old
2663 versions.
36605136 2664
f572a39d
AM
26652000-09-30 Petr Sorfa <petrs@sco.com>
2666
2667 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2668 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2669 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2670 * configure: Regenerate.
2671
4da81684
HPN
26722000-09-27 Hans-Peter Nilsson <hp@axis.com>
2673
2674 Define two bfd_targets for absence and presence of leading
2675 underscore on symbols. Make sure to only link same kind.
2676 * elf32-cris.c (cris_elf_object_p,
2677 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2678 cris_elf_merge_private_bfd_data): New.
2679 (elf_backend_object_p, elf_backend_final_write_processing,
2680 bfd_elf32_bfd_print_private_bfd_data,
2681 bfd_elf32_bfd_merge_private_bfd_data): Define.
2682 <Target vector definition>: Include elf32-target.h twice with
2683 different macro settings:
2684 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2685 bfd_elf32_us_cris_vec.
2686 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2687 (elf_symbol_leading_char): First as 0, then '_'.
2688 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2689 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2690 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2691 * configure: Regenerate.
2692 * targets.c: Declare bfd_elf32_us_cris_vec.
2693 * po/bfd.pot: Regenerate.
2694
9a5aca8c
AM
26952000-09-29 Momchil Velikov <velco@fadata.bg>
2696
2697 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2698 R_ARM_THM_PC22 relocations.
2699
512a2384
AM
27002000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2701
2702 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2703
6c99a5c3
AM
27042000-09-29 Momchil Velikov <velco@fadata.bg>
2705
2706 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2707 is has the SEC_HAS_CONTENTS flag set.
2708