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