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