]> Git Repo - binutils.git/blame - bfd/ChangeLog
2001-07-11 H.J. Lu <[email protected]>
[binutils.git] / bfd / ChangeLog
CommitLineData
067a7d17
L
12001-07-11 H.J. Lu <[email protected]>
2
3 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
4 ALLOC|LOAD flags as the source section for debugging sections
5 when creating the reloc section.
6
a78f18dc
JW
72001-07-05 Jim Wilson <[email protected]>
8
0a2afbc1
JW
9 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
10 the section of the bigger symbol.
11
a78f18dc
JW
12 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
13
0515494a
NC
142001-07-05 Nick Clifton <[email protected]>
15
16 * peicode.h (coff_swap_scnhdr_in): For sections containing
17 uninitialised data, only set their size to s_paddr if this does
18 not reset their size to zero. MS's latest compilers will set
19 s_paddr to zero.
20
5e7079af
L
212001-07-04 H.J. Lu <[email protected]>
22
23 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
24 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
25 bfd_mach_mips5000.
26
440c4607
NC
272001-07-03 Mark Elbrecht <[email protected]>
28
f47e5071
NC
29 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
30
440c4607
NC
31 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
32 sections being discarded.
33
936e320b
AM
342001-06-30 Alan Modra <[email protected]>
35
36 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
37 instead of _bfd_elfcore_section_from_phdr.
38 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
39 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
40 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
41 (elfcore_grok_prstatus): Likewise.
42 (elfcore_grok_lwpstatus): Likewise.
43 (bfd_get_elf_phdr_upper_bound): Likewise.
44 (elfcore_make_note_pseudosection): Formatting.
45 (_bfd_elfcore_strndup): Formatting.
46 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
47 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
48
bb0082d6
AM
492001-06-29 Daniel Jacobowitz <[email protected]>
50
51 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
52 and _bfd_elfcore_strndup.
53 (struct elf_backend_data): Add elf_backend_grok_prstatus
54 and elf_backend_grok_psinfo.
55 * elf.c (_bfd_elfcore_make_pseudosection): New function.
56 (elfcore_grok_prstatus): Use it.
57 (elfcore_make_note_pseudosection): Likewise.
58 (elfcore_strndup): Rename to...
59 (_bfd_elfcore_strndup): Here, and make global.
60 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
61 (elfcore_grok_note): Call elf_backend_grok_prstatus
62 and elf_backend_grok_psinfo if available.
63 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
64 (_bfd_elf32_mips_grok_psinfo): New function.
65 (elf_backend_grok_prstatus): Define.
66 (elf_backend_grok_psinfo): Define.
67 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
68 (elf_backend_grok_psinfo): Likewise.
69 (elfNN_bed): Include elf_backend_grok_prstatus and
70 elf_backend_grok_psinfo.
71
b64977c5
L
722001-06-29 H.J. Lu <[email protected]>
73
74 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
75 hplink->sgot is NULL before filling GOT. Checck if hplink->splt
76 is NULL before filling PLT.
77
e45bf863
AM
782001-06-29 Alan Modra <[email protected]>
79
80 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
81
5a15f56f
AM
822001-06-27 Alan Modra <[email protected]>
83
446f2863
AM
84 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
85 here..
86 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
87 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
88 after gc has run.
89
90 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
91 (IS_ABSOLUTE_RELOC): Define.
92 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
93 (hppa_link_hash_newfunc): Always init it.
94 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
95 create COPY relocs only when the reloc is in a read-only section.
96 Instead, allocate space for a dynamic reloc to reference the
97 library symbol directly. Keep track of space we allocate using
98 relocs_entries.
99 (hppa_discard_copies): Delete, and move code to..
100 (allocate_plt_and_got): ..here. Rename to
101 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
102 relocs for non-shared link.
103 (elf32_hppa_size_dynamic_sections): Update calls to above.
104 (elf32_hppa_relocate_section): Write out the dynamic relocs used
105 in lieu of COPY relocs.
106
5a15f56f
AM
107 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
108 here..
109 (elf_i386_adjust_dynamic_symbol): ..nor here..
110 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
111 after gc has run.
112 (elf_i386_size_dynamic_sections): Fix a comment.
113 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
114 involved in writing reloc out.
115
866b3400
AM
1162001-06-25 Alan Modra <[email protected]>
117
28d0b90e
AM
118 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
119 Ensure syms are dynamic if we might be emitting a reloc.
120 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
121 for undefweak or undefined syms..
122 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
123
866b3400
AM
124 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
125 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
126 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
127 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
128
6cbac8b9
L
1292001-06-24 H.J. Lu <[email protected]>
130
131 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
132 strncasecmp/strcasecmp instead of strncmp/strcmp.
133
62b7d3f1
L
1342001-06-23 H.J. Lu <[email protected]>
135
866b3400
AM
136 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
137 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
62b7d3f1
L
138 in the regular object file and treat the weak definition as
139 the normal one.
140
12d0ee4a
AM
1412001-06-23 Alan Modra <[email protected]>
142
8c694914
AM
143 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
144 unresolved_reloc test to exclude cases where we use "relocation"
145 before setting it to point into the .got. Reinstate fudge for
146 unresolved relocs in debugging sections.
147
83be169b
AM
148 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
149 complicated tests for unresolvable relocs with a simple direct
150 scheme using "unresolved_reloc" var.
151
ffb2e45b
AM
152 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
153 elf_i386_dyn_relocs. Update comment.
154 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
155 dyn_relocs.
156 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
157 others to aborts.
158 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
159 abort.
160 (elf_i386_size_dynamic_sections): Likewise.
161 (elf_i386_finish_dynamic_symbol): Likewise.
162 (elf_i386_finish_dynamic_sections): Likewise.
163 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
164 handling code.
165
12d0ee4a
AM
166 Avoid creating COPY relocs if possible.
167 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
168 which .got created. Mark symbols used by R_386_32 and R_386_PC32
169 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
170 reloc is in a read-only section. Instead, allocate space for a
171 dynamic reloc to reference the library symbol directly. Keep
172 track of space we allocate using pcrel_relocs_copied.
173 (discard_copies): Delete, and move code to ..
174 (allocate_plt_and_got): ..here. Rename to
175 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
176 relocs for non-shared link.
177 (elf_i386_size_dynamic_sections): Update calls to above functions.
178 (elf_i386_relocate_section): Write out the dynamic relocs. Add
179 more ugly logic to avoid "unresolvable relocation" error. Use
180 htab shortcut in place of elf_hash_table macro.
181 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
182 not always be created now.
183
f631948d
AJ
1842001-06-20 Bo Thorsen <[email protected]>
185
186 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
187 shared libraries.
188
89084430
NC
1892001-06-18 Thiemo Seufer <[email protected]>
190
191 * configure.host (mips64-*-linux): Reformat.
192
68fb2e56
AM
1932001-06-21 Alan Modra <[email protected]>
194
195 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
196 allocate local .got space. Use shortcuts from hash table for .got
197 and .plt rather than comparing section names.
198 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
199 adjusting index into local_got_refcounts to document what we are
200 really doing.
201 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
202 Tidy .got and .plt error checking.
203
9317eacc
CM
2042001-06-20 Catherine Moore <[email protected]>
205
bb0082d6
AM
206 * elf-bfd.h (struct elf_backend_data):
207 elf_backend_emit_relocs: New field: Function for emitting
208 relocs.
209 elf_backend_count_relocs: New field: Function for determining
210 the number of relocs to be emitted.
211 * elfxx-target.h: Provide default (NULL) values for
212 elf_backend_emit_relocs and elf_backend_count_relocs.
213 * elflink.h (elf_link_size_reloc_section): Make the hash table
214 big enough to hold the relocs counted by either reloc_count or
215 o->reloc_count.
216 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
217 should be emitted, either because of a command line option
218 stored in the info structure or because the target provides a
219 special reloc emitting function.
220 If the target provides a reloc counting function use it,
221 unless performing a relocatable link or emitting all relocs.
222 Also set the SEC_RELOC flag on any output section which will
223 contain relocs.
224 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
225 should be emitted, either because of a command line option
226 stored in the info structure or because the target provides a
227 special reloc emitting function.
228 If the target provides a reloc emitting function, use it,
229 unless performing a relocatable link or emitting all relocs.
9317eacc 230
161d71a6
L
2312001-06-20 H.J. Lu <[email protected]>
232
233 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
234 allocate local .got space.
235
fd8ab9e5
AJ
2362001-06-19 Andreas Jaeger <[email protected]>
237
238 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
239 dynamic symbols.
240
99293407
HPN
2412001-06-18 Hans-Peter Nilsson <[email protected]>
242
243 * elflink.h (struct elf_assign_sym_version_info): Remove member
244 export_dynamic. All users changed to use info member.
245 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
246 export_dynamic, instead use member in parameter info.
247 * bfd-in.h (bfd_elf32_size_dynamic_sections,
248 bfd_elf64_size_dynamic_sections): Update prototype.
249 * bfd-in2.h: Regenerate.
250
bc2b6df7
L
2512001-06-18 H.J. Lu <[email protected]>
252
253 * elflink.h (elf_info_failed): Add a new field, verdefs.
254 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
255 elf_export_symbol.
256 (elf_export_symbol): Check eif->verdefs to decide if a symbol
257 should be exported.
258
43917054
L
2592001-06-17 H.J. Lu <[email protected]>
260
261 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
262 readonly_reloc, to record if a relocation in the .rel.dyn
f631948d 263 section is against a read-only section.
43917054
L
264 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
265 field to false.
266 (_bfd_mips_elf_check_relocs): Record if there is a relocation
267 in the .rel.dyn section against a read-only section by setting
268 DF_TEXTREL or readonly_reloc.
269 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
270 it is true.
271 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
272 there is a relocation in the .rel.dyn section against a
273 read-only section.
274 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
275 DF_TEXTREL is set.
276
7c8ca0e4
NC
2772001-06-12 Nick Clifton <[email protected]>
278
279 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
280 function. Move flagword result into parameter list. Remove
281 comment about setting bfd_error_handler to intercept failure
282 results.
bb0082d6 283 * coffgen.c (make_a_section_from_file): Examine result of
7c8ca0e4
NC
284 calling bfd_coff_styp_to_sec_flags and pass a failure back to
285 caller.
bb0082d6 286 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
7c8ca0e4 287 function. Move flagword result into parameter list.
bb0082d6
AM
288 * libcoff.h: Regenerate.
289 * libecoff.h: Regenerate.
7c8ca0e4 290
dee0a8f4
NC
2912001-06-13 Nick Clifton <[email protected]>
292
293 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
294 section is going to follow it.
295
0d1ea5c0
CM
2962001-06-12 Catherine Moore <[email protected]>
297
bb0082d6
AM
298 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
299 with the file_align entry from elf_backend_data.
300 (elf_gc_smash_unused_vtentry_relocs): Likewise.
301 (elf_gc_record_vtentry): Likewise.
0d1ea5c0 302
4e8a9624
AM
3032001-06-10 Alan Modra <[email protected]>
304
305 * elflink.h: Whitespace changes.
306 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
307 rather than "unsigned char".
308 (elf_link_output_relocs): Likewise.
309 (elf_link_input_bfd): Likewise.
310 (elf_reloc_link_order): LIkewise.
311 * elf.c: s/CONST/const/. Whitespace changes.
312 * elf32-mips.c: Formatting fix.
313
314 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
315 * Makefile.in: Regenerate.
316 * po/Make-in: Remove trailing tab.
317
7a25cd3e
PB
3182001-06-09 Philip Blundell <[email protected]>
319
320 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
321 change.
322 (elf32_arm_plt_entry): Likewise.
323
3f5a136d
L
3242001-06-08 H.J. Lu <[email protected]>
325
326 * elf.c (swap_out_syms): Keep names for global section symbols.
327
d8fe1fed
L
3282001-06-07 H.J. Lu <[email protected]>
329
330 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
331 MIPS-based machines need it.
332
c36e006f
L
3332001-06-07 H.J. Lu <[email protected]>
334
335 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
336 for SGI only.
337
338 * config.bfd: Remove ecoff from Linux/mips.
339
cc78d0af
AJ
3402001-06-07 Andreas Jaeger <[email protected]>
341
342 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
343 assertion.
344 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
345 alignment of 8 for .rela sections; handle further relocations.
346
879db8be
NC
3472001-06-06 Christian Groessler <[email protected]>
348
bb0082d6 349 * coff-z8k.c: Fix formatting.
879db8be
NC
350 Fix howtos: howto->size was always 1.
351
cbb1fd50
NC
3522001-06-05 Thiemo Seufer <[email protected]>
353
354 * configure.host (mips64*-*-linux*): Define.
355
73a74a62
AM
3562001-06-05 Alan Modra <[email protected]>
357
6725bdbf
AM
358 * elf32-i386.c (elf_i386_discard_copies): Rename to
359 discard_copies, and use elf_link_hash_entry arg rather than
360 elf_i386_link_hash_entry.
361 (elf_i386_link_hash_traverse): Delete.
362 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
363 Tidy sizing of dynamic sections.
364 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
365 possible .plt entries.
366 (elf_i386_gc_sweep_hook): Likewise.
367 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
368 everything with plt.refcount <= 0.
369
370 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
371 .relgot space here.
372 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 373 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
374 .rel.plt here..
375 (allocate_plt_and_got): ..instead do it all here. New function.
376 (elf_i386_size_dynamic_sections): Allocate local .got space and
377 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
378 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
379 rather than gc variety).
380 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
381 (elf_i386_relocate_section): Use it here and correct handling of
382 R_386_GOT32. Provide section and offset for "unresolvable
383 relocation" error message.
384 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
385
386 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
387 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
388 (elf_i386_link_hash_table_create): Init them.
389 (create_got_section): New function.
390 (elf_i386_create_dynamic_sections): New function.
391 (elf_backend_create_dynamic_sections): Set to above.
392 (elf_i386_check_relocs): Use shortcuts from hash table rather than
393 calling bfd_get_section_by_name.
394 (elf_i386_gc_sweep_hook): Likewise.
395 (elf_i386_adjust_dynamic_symbol): Likewise.
396 (elf_i386_size_dynamic_sections): Likewise.
397 (elf_i386_relocate_section): Likewise.
398 (elf_i386_finish_dynamic_sections): Likewise.
399
73a74a62
AM
400 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
401
24a5e751
L
4022001-06-02 H.J. Lu <[email protected]>
403
404 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
405 and ELFOSABI_HPUX.
406 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
407
15103188
L
4082001-06-02 H.J. Lu <[email protected]>
409
410 * aout-cris.c (MACHTYPE_OK): New. Defined.
411
2f484710
HPN
4122001-06-02 Hans-Peter Nilsson <[email protected]>
413
414 * section.c (_bfd_strip_section_from_output): Handle NULL
415 output_section.
416
a5ac692b
L
4172001-06-02 H.J. Lu <[email protected]>
418
419 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
420 rs6000coff64_vec only if BFD64 is defined.
421 (powerpc64-*-aix*): Enable only if BFD64 is defined.
422
27e53099
L
4232001-06-02 H.J. Lu <[email protected]>
424
425 * coff-ia64.c (ia64coff_object_p): Rewrite with
426 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
427
80643fbc
AJ
4282001-06-01 Andreas Jaeger <[email protected]>
429
430 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
431 relocation, small reformatting.
432
6b3db546
AJ
4332001-05-29 Andreas Jaeger <[email protected]>
434
435 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
436 (elf64_x86_64_relocate_section): Likewise.
437
4dc86686
AM
4382001-05-30 Alan Modra <[email protected]>
439
440 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
441 millicode. Don't allocate .got and .rela.got space here..
442 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
443 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
444 .rela.plt here..
445 (hppa_handle_PIC_calls): ..nor here..
446 (allocate_plt_and_got): ..instead do it all here. New function.
447 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
448 call allocate_plt_and_got. No need to zap .got if not dynamic.
449 (elf32_hppa_final_link): Call regular bfd_final_link instead of
450 gc_common_final_link.
451 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
452 (elf32_hppa_relocate_section): Use it here.
453 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
454 dynamic_sections_created.
455 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
456
de41dcd8
AJ
4572001-05-28 Andreas Jaeger <[email protected]>
458
459 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
460 generic version since we want a hashsize of 4.
461 (elf_backend_size_info): Likewise.
462
209f668e
NC
4632001-05-28 Thiemo Seufer <[email protected]>
464
209f668e
NC
465 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
466 a zeroing loop.
467 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
468 (elf_link_input_bfd): Likewise.
469 (elf_reloc_link_order): Likewise.
470 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
471 relocations correctly.
472
f7a74f8c
NC
4732001-05-28 Nicolas Pitre <[email protected]>
474
475 * elf32-arm.h: fix PLT generation for big endian ARM
476
8dea1268
AM
4772001-05-28 Alan Modra <[email protected]>
478
479 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
480 for symbols forced local that need plabels.
481 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
482 .plt.rela for local syms if non-shared.
483 (hppa_build_one_stub): Mask lsb of plt.offset.
484 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
485 (clobber_millicode_symbols): Correct comment.
486 (elf32_hppa_relocate_section): Likewise.
487 (elf32_hppa_finish_dynamic_symbol): Likewise.
488
0f2712ed
NC
4892001-05-28 Jeff Sturm <[email protected]>
490
491 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
492 * bfd-in2.h: Regenerate.
493 * libbfd.h: Regenerate.
494 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
495 and BFD_RELOC_SPARC_UA64 mapping
496 * elf64-sparc.c: Likewise.
de41dcd8 497
6768c14a
L
4982001-05-25 H.J. Lu <[email protected]>
499
500 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
501 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
502 (coff-rs6000.lo): Remove the old dependency.
503 * Makefile.in: Rebuild.
504
505 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
506 coff-rs6000.lo.
507
b55039f4
L
5082001-05-25 H.J. Lu <[email protected]>
509
510 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
511 rs6000coff_core_file_matches_executable_p,
512 rs6000coff_core_file_failing_command and
513 rs6000coff_core_file_failing_signal only if AIX_CORE is
514 defined.
515 (pmac_xcoff_vec): Likewise.
516 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
517
64e9ece0
TW
5182001-05-25 Timothy Wall <[email protected]>
519
520 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
521 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
522
f34d8777
L
5232001-05-25 H.J. Lu <[email protected]>
524
525 * bfd-in2.h: Regenerated.
526 * libcoff.h: Likewise.
527
49e9d0d3
AM
5282001-05-25 Alan Modra <[email protected]>
529
530 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
531 undefined millicode syms in shared libs.
532 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
533 (elf32_hppa_check_relocs): Likewise.
534 (elf32_hppa_adjust_dynamic_symbol): Likewise.
535 (elf32_hppa_size_dynamic_sections): Likewise.
536 (elf32_hppa_relocate_section): Likewise.
537 (elf32_hppa_finish_dynamic_symbol): Likewise.
538 (elf32_hppa_finish_dynamic_sections): Likewise.
539
beb1bf64
TR
5402001-05-24 Tom Rix <[email protected]>
541
bb0082d6 542 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
beb1bf64
TR
543 xcoff-target.h not used to define rs6000 or ppc bfd.
544 * Makefile.in same
545
546 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
547 to 64 bit.
548
549 * coff-rs6000.c : Many changes for 64 bit support. Move common
550 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
551 and pmac_xcoff_vec
552
553 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
554 linker now supported. Explictly define the rs6000coff64_vec.
555
556 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 557 (coff_print_aux) same
beb1bf64
TR
558 (coff_write_object_contents) same
559 (coff_slurp_line_table) same
560
561 * coffgen.c : (coff_fix_symbol_name) formatting
562 (coff_mangle_symbols) xcoff 64 bit support
563 (coff_write_symbol) same
564 (coff_write_alien_symbol) same
565 (coff_write_native_symbol) same
566 (coff_write_symbols) same
567 (coff_get_symbol_info) same
568 (bfd_coff_get_syment) same
569 (coff_print_symbol) same
570
571 * config.bfd : add powerpc64-*-aix* target
572
573 * libcoff-in.h : formatting
574
575 * libcoff.h : move xcoff extern declarations to libxcoff.h
576
577 * libxcoff.h : New file
578
de41dcd8
AJ
579 * xcofflink.c : Many changes for xcoff64 support. Move common
580 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
581 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
582 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
583
584 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
585 aix4.2+ -binitfini.
586
587 (xcoff_build_ldsyms) : handle special __rtinit symbol.
588
e90fdc1a
AO
5892001-05-23 Alexandre Oliva <[email protected]>
590
591 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
592 s/ENTIRES/ENTRIES/.
593
d1cf510e
NC
5942001-05-23 Thiemo Seufer <[email protected]>
595
c2feb664
NC
596 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
597 * libbfd.h: Regenerate.
4e8a9624 598 * bfd-in2.h: Regenerate.
c2feb664 599
d1cf510e
NC
600 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
601 * archures.c (bfd_mach_mips12000): Define.
602 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
603 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
604 support.
605 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
606 * bfd-in2.h: Regenerate.
607 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
608
6c426cf3
NC
6092001-05-23 kaz Kojima <[email protected]>
610
611 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
612 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
613 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
614 that is used by GCC.
615
d9bc7a44
NC
6162001-05-23 Nick Clifton <[email protected]>
617
618 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
619 of entries in a structured section.
bb0082d6
AM
620 * elf.c: Use new macro.
621 * elf32-i386.c: Use new macro.
622 * elf32-mips.c: Use new macro.
623 * elf64-alpha.c: Use new macro.
624 * elf64-sparc.c: Use new macro.
625 * elfcode.h: Use new macro.
626 * elflink.h: Use new macro.
d9bc7a44
NC
627
6282001-05-23 Nick Clifton <[email protected]>
629
630 * bfdint.texi: Replace -oformat with --oformat.
631
f5198f61
AJ
6322001-05-21 Andreas Jaeger <[email protected]>
633
634 * dwarf2.c (decode_line_info): Fix error message.
635 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
636 adjust error message.
637
7913c838
L
6382001-05-18 H.J. Lu <[email protected]>
639
640 * elflink.h (elf_link_add_object_symbols): Revert the last
641 change.
642
e0522e89
AM
6432001-05-17 Alan Modra <[email protected]>
644
645 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
646 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
647 (hppa_build_one_stub): Add an assert to check plt.offset.
648
96fd004e
L
6492001-05-17 H.J. Lu <[email protected]>
650
651 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
652 version definition to basename of the output filename.
653
f3876d8b
L
6542001-05-17 H.J. Lu <[email protected]>
655
656 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
657 basename of the bfd filename.
658
d1778b88
AM
6592001-05-16 Alan Modra <[email protected]>
660
661 * section.c (asection): Add linker_has_input field.
662 (STD_SECTION): Adjust initialization to suit.
663 * ecoff.c (bfd_debug_section): Likewise.
664 * bfd-in2.h: Regenerate.
665
2a0fa943
AO
6662001-05-15 Alexandre Oliva <[email protected]>
667
668 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
669 negative 32-bit operands to 16 operands when the operand is
670 going to be zero-extended by the modified opcode.
671
bcee8eb8
AM
6722001-05-12 Peter Targett <[email protected]>
673
674 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
675 name for 'arc5' core versions.
676 (bfd_arc_arch): Make bfd_mach_arc_6 default.
677
678 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
679 architecture.
680 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
681
579f31ac
JJ
6822001-05-11 Jakub Jelinek <[email protected]>
683
684 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
685 sections as well.
686 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
687 to .gnu.linkonce.t.FOO text section.
688
8550eb6e
JJ
6892001-05-11 Jakub Jelinek <[email protected]>
690
691 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
692 fields, change sec into secinfo.
693 (struct sec_merge_info): Add chain, remove last fields.
694 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
695 (sec_merge_hash_lookup): If lookup could not use a string only
696 because it has bad alignment, mark the old string for deletion.
697 (sec_merge_add): Add secinfo argument. Don't compute entry's
698 position, instead record the section.
699 (sec_merge_emit): Update for the sec into secinfo change in
700 struct sec_merge_hash_entry.
701 (_bfd_merge_section): Only record the section for merging, defer
702 putting strings into the hash table.
703 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
704 _bfd_merge_sections): New functions.
705 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
706 changes.
707 * libbfd-in.h (_bfd_merge_sections): Add prototype.
708 (_bfd_nolink_bfd_merge_sections): Define.
709 * libbfd.h: Likewise.
710 (bfd_generic_merge_sections): Add prototype.
711 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
712 (struct bfd_target): Likewise.
713 * bfd.c (bfd_merge_sections): Define.
714 * bfd-in2.h: Rebuilt.
715 * elf.c (_bfd_elf_merge_sections): New function.
716 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
717 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
718 * reloc.c (bfd_generic_merge_sections): New function.
719 * vms.c (vms_bfd_merge_sections): New function.
720 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
721 * aout-target.h (MY_bfd_merge_sections): Define.
722 * aout-tic30.c (MY_bfd_merge_sections): Define.
723 * binary.c (binary_bfd_merge_sections): Define.
724 * bout.c (b_out_bfd_merge_sections): Define.
725 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
726 * coffcode.c (coff_bfd_merge_sections): Define.
727 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
728 * i386msdos.c (msdos_bfd_merge_sections): Define.
729 * i386os9k.c (os9k_bfd_merge_sections): Define.
730 * ieee.c (ieee_bfd_merge_sections): Define.
731 * ihex.c (ihex_bfd_merge_sections): Define.
732 * nlm-target.h (nlm_bfd_merge_sections): Define.
733 * oasys.c (oasys_bfd_merge_sections): Define.
734 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
735 * som.c (som_bfd_merge_sections): Define.
736 * srec.c (srec_bfd_merge_sections): Define.
737 * tekhex.c (tekhex_bfd_merge_sections): Define.
738 * versados.c (versados_bfd_merge_sections): Define.
739 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
740
1548c54f
NC
7412001-05-11 Nick Clifton <[email protected]>
742
743 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
744 to be unsigned long, in order to match its use.
745
689effed
L
7462001-05-10 H.J. Lu <[email protected]>
747
748 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
749 indirect symbols.
750
6e5222be
L
7512001-05-09 H.J. Lu <[email protected]>
752
753 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
754 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
755 Remove the unused veriable `dynver'.
756
8e191bd3
ILT
7572001-05-08 Ian Lance Taylor <[email protected]>
758
759 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
760 NULL or is not COFF.
761 (coff_i386_rtype_to_howto): Don't dump core if output section
762 owner is not COFF.
763
062e2358
AM
7642001-05-07 Thiemo Seufer <[email protected]>
765
766 * ecoff.c (bfd_debug_section): Fix initialization.
767 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
768 is always a positive integer. Cast away sign mismatch.
769 * elf32-mips.c: Fix misleading comment and typo.
770 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
771 correct data type.
772 * elflink.c: Fix typo.
773 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
774 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
775
16b65e4e
RH
7762001-05-04 Richard Henderson <[email protected]>
777
778 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
779
cac15327
NC
7802001-05-04 Nick Clifton <[email protected]>
781
782 * elf32-arm.h (elf32_arm_final_link_relocate): Set
bb0082d6 783 EF_ARM_HASENTRY if the start address is set.
cac15327 784
966b3e0b
NC
7852001-05-03 Nick Clifton <[email protected]>
786
787 * targets.c (_bfd_target_vector_entries): Compute value based on
788 the size of the _bfd_target_vector and not bfd_target_vector.
789
210ba1e8
L
7902001-05-03 H.J. Lu <[email protected]>
791
792 * elfcode.h: Include "libiberty.h".
793
794 * elflink.h (elf_link_add_object_symbols): Set
795 elf_dt_name (abfd) to basename of the bfd filename.
796 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
797 of the bfd filename.
798
56fc028e
AJ
7992001-05-03 Andreas Jaeger <[email protected]>
800
801 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
802 (elf_generic_info_to_howto_rel): Likewise.
803 * coff-alpha.c (reloc_nil): Likewise.
804 (alpha_ecoff_bad_format_hook): Likewise.
805 (alpha_adjust_reloc_out): Likewise.
806 (alpha_bfd_reloc_type_lookup): Likewise.
807 (alpha_convert_external_reloc): Likewise.
808 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
809 (elf64_alpha_reloc_bad): Likewise.
810 (elf64_alpha_reloc_gpdisp): Likewise.
811 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
812 (elf64_alpha_info_to_howto): Likewise.
813 (elf64_alpha_add_symbol_hook): Likewise.
814 (elf64_alpha_create_got_section): Likewise.
815 (elf64_alpha_is_local_label_name): Likewise.
816 (elf64_alpha_merge_ind_symbols): Likewise.
817 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
818 (mips_elf64_get_reloc_upper_bound): Likewise.
819 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
820 (nlm_alpha_get_public_offset): Likewise.
821
c7e40348
NC
8222001-05-02 Johan Rydberg <[email protected]>
823
bb0082d6 824 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
c7e40348 825 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 826 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 827
5fba655a
L
8282001-04-30 H.J. Lu <[email protected]>
829
830 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
831 only for ELF_LINK_FORCED_LOCAL.
832 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
833 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
834 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
835
836 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
837 if the symbol has hidden or internal visibility.
838
db20fd76
AM
8392001-04-30 Alan Modra <[email protected]>
840
841 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
842 calls to undefined weak symbols.
843
6a2bda3f
AJ
8442001-04-30 Andreas Jaeger <[email protected]>, Andreas Schwab <[email protected]>
845
846 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
847 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
848
053579d7
AJ
8492001-04-27 Andreas Jaeger <[email protected]>
850
851 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
852 out handled entries.
853 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
854 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
855 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
856 GOT32.
857
87748b32
NC
8582001-04-27 Sean McNeil <[email protected]>
859
860 * config.bfd: Add arm-vxworks target.
861 * coff-arm (coff_arm_relocate_section): Add in symbol value to
862 addend (fro VXworks targets).
863
f5f31454
L
8642001-04-26 H.J. Lu <[email protected]>
865
866 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
867 valid.
868
d436a9b3
FCE
8692001-04-25 Frank Ch. Eigler <[email protected]>
870
871 * bfd-in.h (bfd_cache_close): Declare newly exported function.
872 * bfd-in2.h: Regenerated.
873
a531bbd2
JJ
8742001-04-24 Jakub Jelinek <[email protected]>
875
876 * merge.c (struct sec_merge_hash_entry): Add alignment field.
877 (struct sec_merge_hash): Remove alignment_power.
878 (sec_merge_hash_newfunc): Clear alignment.
879 (sec_merge_hash_lookup): Pass alignment as argument.
880 Use hashp->root.next, not hashp->next to walk the hash chain.
881 If a string already in the hashtable does not have required
882 alignment, create a new hashtable entry.
883 (sec_merge_init): Remove alignment_power argument.
884 (sec_merge_add): Add alignment argument.
885 (sec_merge_emit): Alignment is now a per-entity thing, not per
886 section.
887 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
888 for proper alignment.
889 Pass alignment information to sec_merge_add.
890
6840198f
NC
8912001-04-24 Christian Groessler <[email protected]>
892
893 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
894 and R_REL16 reloc types; accept odd values for R_REL16 type
895
b3baf5d0
NC
8962001-04-24 Johan Rydberg <[email protected]>
897
898 * cpu-openrisc.c: New file.
899 * elf32-openrisc.c: Likewise.
900
901 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
902 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
903 (BFD32_BACKENDS): Add elf32-openrisc.lo.
904 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
905 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
906 * Makefile.in: Regenerated.
907 * config.bfd: (openrisc-*-elf): New target.
053579d7 908 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
909 * configure: Regenerated.
910 * libbfd.h: Regenerated.
911 * bfd-in2.h: Regenerated.
912 * reloc.c: Add OpenRISC relocations.
053579d7 913 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
914 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
915 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
916 (bfd_openrisc_arch): Declare.
917 (bfd_archures_list): Add bfd_openrisc_arch.
918 * elf.c (prep_headers): Add bfd_arch_openrisc.
919
fe4770f4
AJ
9202001-04-23 Bo Thorsen <[email protected]>
921
922 * elf64-x86-64.c: Add c++ vtable hack.
923 Small whitespace and comment changes.
924
653165cc
AJ
9252001-04-19 Andreas Jaeger <[email protected]>
926
927 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
928 (elf64_x86_64_plt_entry): Likewise.
929 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
930 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
931
4d96d128
HPN
9322001-04-17 Hans-Peter Nilsson <[email protected]>
933
934 * elf32-cris.c: Tweak comments related to dynamic linking.
935 (cris_elf_relocate_section): When not creating shared object, fill
936 in the .got table for any symbol not in the dynamic symbol table.
937 (elf_cris_finish_dynamic_symbol): When not creating shared object,
938 only emit a .got.rela reloc if the symbol is in the dynamic symbol
939 table.
940 (cris_elf_check_relocs): Use variable r_type in all places rather
941 than the original expression. Add default case in switch for
942 reloc types.
943 (elf_cris_size_dynamic_sections): Iterate over
944 elf_cris_discard_excess_program_dynamics when not creating shared
945 library.
653165cc 946 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
947 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
948 (elf_cris_discard_excess_program_dynamics): New.
949
3ed30d29
DD
9502001-04-14 Mark Elbrecht <[email protected]>
951
952 * coffcode.h (coff_write_object_contents): Use
953 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
954
a80f6941
L
9552001-04-14 H.J. Lu <[email protected]>
956
957 * bfd-in2.h: Regenerate.
958
767e4b0d
JJ
9592001-04-14 Jakub Jelinek <[email protected]>
960
961 * section.c (STD_SECTION): Add entsize.
962
2dd439c5
L
9632001-04-13 H.J. Lu <[email protected]>
964
965 * section.c (SEC_MERGE): Define new flag for merging.
966 (SEC_STRINGS): Likewise.
967 (entsize): New field.
968
baf80c32
DD
9692001-04-13 Roger Sayle <[email protected]>
970
971 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
972 flag on pe-i386 targets.
973
f5fa8ca2
JJ
9742001-04-13 Jakub Jelinek <[email protected]>
975
976 * libbfd-in.h (_bfd_merge_section): New.
977 (_bfd_write_merged_section): New.
978 (_bfd_merged_section_offset): New.
979 * libbfd.h: Rebuilt.
980 * linker.c (_bfd_generic_link_output_symbols): Handle
981 discard_sec_merge.
982 * aoutx.h (aout_link_write_symbols): Likewise.
983 * pdp11.c (aout_link_write_symbols): Likewise.
984 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
985 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
986 sections.
987 (elf_link_sec_merge_syms): New.
988 (elf_link_input_bfd): Call _bfd_merged_section_offset
989 and _bfd_write_merged_section.
990 Handle discard_sec_merge.
991 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
992 field.
993 (struct bfd_elf_section_data): Likewise.
994 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
995 SEC_STRINGS section flags and entsize from their ELF counterparts.
996 (_bfd_elf_link_hash_table_init): Initialize merge_info.
997 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
998 from their BFD counterparts.
999 * merge.c: New file.
1000 * Makefile.am: Add strtab.lo.
1001 * Makefile.in: Rebuilt.
1002
d954b040
HPN
10032001-04-09 Hans-Peter Nilsson <[email protected]>
1004
1005 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1006 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1007
fdbafa10
L
10082001-04-05 Steven J. Hill <[email protected]>
1009
1010 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1011 endian MIPS ELF target.
1012 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1013 MIPS ELF target.
1014
1015 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1016 64bit big endian MIPS ELF target.
653165cc 1017 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
1018 endian MIPS ELF target.
1019 * configure: Regenerated.
1020
1021 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1022 little endian targets.
1023 (mips_elf_sym_is_global): Handle traditional targets.
1024
1025 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1026 64bit big endian MIPS ELF target.
1027 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1028 endian MIPS ELF target.
1029
1030 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1031 and bfd_elf64_tradlittlemips_vec.
1032
dd484e5c
L
10332001-04-05 David Mosberger <[email protected]>
1034
1035 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1036 ordinary "progbits" section.
1037
391a809a
AM
10382001-04-04 Alan Modra <[email protected]>
1039
1040 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1041 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1042
5854c633
L
10432001-04-03 David Mosberger <[email protected]>
1044
1045 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1046
8b4b0fac
L
10472001-03-30 H.J. Lu <[email protected]>
1048
1049 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1050 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1051
eb4a6e4f
L
10522001-03-26 H.J. Lu <[email protected]>
1053
1054 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1055 if there are any relocations for generic ELF.
1056 (bfd_elf32_bfd_link_add_symbols): Defined to
1057 elf32_generic_link_add_symbols.
1058 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1059 if there are any relocations for generic ELF.
1060 (bfd_elf64_bfd_link_add_symbols): Defined to
1061 elf64_generic_link_add_symbols.
1062
55c80943
NC
10632001-03-23 Nick Clifton <[email protected]>
1064
1065 * Makefile.am (BUILD_CFILES): New variable: List of C source
bb0082d6
AM
1066 files created in build directory.
1067 (BUILD_HFILES): New variable: List of header files created in
1068 build directory.
1069 (POTFILES): Delete.
1070 (po/POTFILES.in): Replace rule with empty entry.
1071 (po/SRC-POTFILES.in): New rule: Create a list of source files
1072 in the source directory.
1073 (po/BLD-POTFILES.in): New rule: Create a list of source files
1074 in the build directory.
1075 (MOSTLYCLEAN): Do not delete source files created in build
1076 directory.
1077 * Makefile.in: Regenerate.
1078 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1079 into po/Makefile.
1080 * configure: Regenerate.
1081
1082 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1083 and BLD_POTFILES.
55c80943 1084 Add .. to the search path when building bfd.pot.
bb0082d6
AM
1085 Delete POTFILES when performing distclean.
1086 Add comment describing why distclean is broken in maintainer mode.
55c80943
NC
1087 * po/POTFILES.in: Delete.
1088 * po/SRC-POTFILES.in: New file.
1089 * po/BLD-POTFILES.in: New file.
bb0082d6 1090 * po/bfd.pot: Regenerate.
55c80943 1091
58d29fc3
HPN
10922001-03-22 Hans-Peter Nilsson <[email protected]>
1093
915e5146
HPN
1094 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1095 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1096 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1097 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1098 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1099 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1100 functions.
1101 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1102 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1103 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1104 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1105 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1106 New HOWTO members for new relocs.
1107 (cris_reloc_map): Map new relocs.
1108 (ELF_DYNAMIC_INTERPRETER): Define.
1109 (PLT_ENTRY_SIZE): Define.
1110 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1111 elf_cris_pic_plt_entry): New, PLT templates.
1112 (struct elf_cris_pcrel_relocs_copied, struct
1113 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1114 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1115 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1116 positive values. Adjust PCREL relocs to be relative to location
1117 after relocation.
1118 (cris_elf_relocate_section): Handle relocations to dynamic
1119 objects. Handle new relocations. Call error handler when seeing
1120 non-PIC relocation for read-only sections while generating shared
1121 object.
1122 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1123 entries.
1124 (bfd_elf32_bfd_link_hash_table_create,
1125 elf_backend_adjust_dynamic_symbol,
1126 elf_backend_size_dynamic_sections,
1127 elf_backend_finish_dynamic_symbol,
1128 elf_backend_finish_dynamic_sections,
1129 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1130 elf_backend_hide_symbol, elf_backend_want_got_plt,
1131 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1132 elf_backend_got_header_size, elf_backend_plt_header_size):
1133 Define.
1134
58d29fc3
HPN
1135 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1136 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1137 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1138 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1139 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1140 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1141 * bfd-in2.h, libbfd.h: Regenerate.
1142
7a65545d
DN
11432001-03-21 Diego Novillo <[email protected]>
1144
1145 (_bfd_mips_elf_relocate_section): Give a better error message when
1146 a relocation is not recognized.
1147
b32b5d6e
AM
11482001-03-21 Alan Modra <[email protected]>
1149
1150 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1151 non-NULL before attempting to dereference.
1152
f4fbb4a3
L
11532001-03-20 H.J. Lu <[email protected]>
1154
1155 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1156 * configure: Rebuild.
1157
95fc45e6
AS
11582001-03-20 Andreas Schwab <[email protected]>
1159
1160 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1161 relocation value when resolving a reference from a debugging
1162 section.
1163
03d411a9
NC
11642001-03-16 Scott Thomason <[email protected]>
1165
1166 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1167 (xcoff64_swap_sym_out): Fix syntax errors.
1168
d1659392
NC
11692001-03-16 Richard Sandiford <[email protected]>
1170
1171 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1172
12cca0d2
AM
11732001-03-15 Alan Modra <[email protected]>
1174
1175 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1176 (hppa_link_hash_newfunc): Init it.
1177 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1178 section appears to be non-PIC.
1179 (final_link_relocate): Likewise.
1180 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1181 possible candidate function, and set pic_call for those that will
1182 only have a .plt entry for the PIC call stub.
1183 (hppa_handle_PIC_calls): Set maybe_pic_call.
1184
cd6ec716
DD
11852001-03-12 DJ Delorie <[email protected]>
1186
1187 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1188 R_SH_DIR8WP* relocs if they're against external symbols, else
1189 they're just for relaxing. Validate the reloc values.
1190
43a0748c
NC
11912001-03-12 Stefan Geuken <[email protected]>
1192
1193 * binary.c (bfd_external_binary_architecture): Declare.
1194 (binary_object_p): If bfd_external_binary_architecture is defined,
1195 set the architecture to this string.
1196
d982ba73
PB
11972001-03-11 Philip Blundell <[email protected]>
1198
1199 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1200 entries that could serve as a definition for a weak symbol.
1201
7898deda
NC
12022001-03-08 Nick Clifton <[email protected]>
1203
1204 * Most files: Update copyright notices using Perl script created
1205 by Kevin Buettner <[email protected]>.
653165cc 1206
df425bc0
NC
12072001-03-07 Nick Clifton <[email protected]>
1208
1209 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1210 prior patch on ! defined OLD_ARM_ABI.
1211
bcdd92f3
AJ
12122001-03-07 Andreas Jaeger <[email protected]>
1213
1214 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1215 some relocation values.
1216
4f3c3dbb
NC
12172001-03-06 Nick Clifton <[email protected]>
1218
1219 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1220 of offset in BLX(1) instruction.
1221 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1222 offset in BLX(1) instruction.
bb0082d6 1223 Fix formatting.
4f3c3dbb 1224
f8f3c6cc
NC
12252001-03-06 Nick Clifton <[email protected]>
1226
1227 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1228 BFD_RELOC_THUMB_PCREL_BLX.
1229
3cac17ae
NC
12302001-03-06 Igor Shevlyakov <[email protected]>
1231
1232 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1233 * bfd-in2.h: Regenerate.
1234 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1235 * ieee.c (ieee_write_processor): Set proper id for
1236 Coldfire CPUs.
1237
d1b17ab0
NC
12382001-03-01 D.J. Barrow <[email protected],[email protected]>
1239
1240 * configure.in: Add s390 target.
1241 * configure: Regenerate.
1242
5608e05b
AJ
12432001-02-28 Andreas Jaeger <[email protected]>
1244
1245 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1246 to addend.
1247
fd2ec330
PB
12482001-02-28 Philip Blundell <[email protected]>
1249
1250 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 1251 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 1252
920581c5
L
12532001-02-27 H.J. Lu <[email protected]>
1254
1255 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1256 abfd->tdata.aout_data == NULL.
1257
27b7e12d
AM
12582001-02-27 Alan Modra <[email protected]>
1259
3ee1d854
AM
1260 * elf32-hppa.c: Correct field selector in stub comments.
1261 (clobber_millicode_symbols): Formatting fix.
1262
27b7e12d
AM
1263 * configure.in: Bump version to 2.11.90.
1264 * configure: Regenerate.
1265 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1266 (CFILES): $SOURCE_CFILES + generated C files.
1267 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1268 Run "make dep-am"
1269 * Makefile.in: Regenerate.
1270 * doc/Makefile.in: This too.
1271
10d1e03a
TW
12722001-02-26 Timothy Wall <[email protected]>
1273
1274 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 1275 comments.
10d1e03a 1276
1276aefa
NC
12772001-02-26 Nick Clifton <[email protected]>
1278
1279 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1280 up, replacing multiple if statements with a switch.
bb0082d6 1281 (handle_COMDAT): New function.
1276aefa
NC
1282
12832001-02-26 H.J. Lu <[email protected]>
1284
1285 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1286 a warning for section flags we do not handle instead of
1287 aborting.
1288
4a73f21b
AJ
12892001-02-26 Andreas Jaeger <[email protected]>
1290
1291 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1292
7b6dab7f
TW
12932001-02-22 Timothy Wall <[email protected]>
1294
1295 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1296 * configure.in: Add objects for elf64_ia64_aix vectors.
1297 * configure: Regenerated.
1298 * configure.host: Recognize ia64-*-aix*.
1299 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1300 for AIX. AIX5 requires most relocations to be dynamic (*all*
1301 binaries are somewhat similar to shared libraries).
1302 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 1303
87f8eb97
JW
13042001-02-21 David Mosberger <[email protected]>
1305
1306 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1307 C8 said "1" instead of "8". Clarify error string for IMM22:
1308 "signed integer" instead of just "integer".
1309
05aa1441
AJ
13102001-02-20 Andreas Jaeger <[email protected]>
1311
1312 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1313 PLT entries that could serve as a definition for a weak symbol.
1314
8701c1bc
JJ
13152001-02-19 Jakub Jelinek <[email protected]>
1316
1317 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1318 entries that could serve as a definition for a weak symbol.
1319 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1320
d4af9775
DB
13212001-02-18 David O'Brien <obrien@FreeBSD>
1322
1323 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1324 FreeBSD/i386-CURRENT differently until I can figure out the needed
1325 corefile changes.
1326 * configure: Regenerate.
1327 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1328 FreeBSD/PowerPC, and FreeBSD/sparc64.
1329
e135f41b
NC
13302001-02-18 lars brinkhoff <[email protected]>
1331
1332 * Makefile.am: Add PDP-11 a.out target.
1333 * config.bfd: Likewise.
1334 * configure.in: Likewise.
1335 * targets.c: Likewise.
1336 * archures.c: Likewise.
1337 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1338 * libbfd.h: Add PDP-11 relocations.
1339 * reloc.c: Likewise.
1340 * cpu-pdp11.c: New file.
1341 * pdp11.c: New file.
1342
1343 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1344 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1345 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1346 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1347 (GET_MAGIC): New macro.
1348 (PUT_MAGIC): Likewise.
1349 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1350
dc3febfa
NC
13512001-02-18 Jim Kingdon <[email protected]>
1352
1353 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1354 multiarch needs it).
1355
ea412e04
L
13562001-02-18 H.J. Lu <[email protected]>
1357
1358 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1359 index.
1360
47eee8a9
KH
13612001-02-18 Kazu Hirata <[email protected]>
1362
1363 * vms-misc.c: Fix formatting.
1364
8a0c27cd
KH
13652001-02-16 Kazu Hirata <[email protected]>
1366
1367 * vms.c: Fix formatting.
1368
d1fad7c6
NC
13692001-02-14 H.J. Lu <[email protected]>
1370
1371 * elf.c (elf_find_function): New function.
1372 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1373 the file name and function name.
1374
825b47db
NC
13752001-02-14 Nick Clifton <[email protected]>
1376
51d7ee16
NC
1377 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1378 asection structure.
1379
825b47db
NC
1380 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1381 (BFD64_BACKENDS): Add pepigen.c
1382 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1383
1384 * Makefile.in: Regenerate.
1385 * configure: Regenerate.
1386 * po/POTFILES.in: Regenerate.
1387 * po/bfd.pot: Regenerate.
1388
ea36a178
L
13892001-02-14 H.J. Lu <[email protected]>
1390
1391 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1392 force_minimum_alignment.
1393
407443a3
AJ
13942001-02-14 Bo Thorsen <[email protected]>
1395
1396 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1397 (elf64_86_64_size_info): Struct added to fix a problem
1398 with the hashtable string entries.
1399 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1400 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1401 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1402 remove the FIXME for this.
1403 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1404 section. Also removed the FIXME for it.
1405 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1406 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1407 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1408
b4adccfd
RH
14092001-02-13 Richard Henderson <[email protected]>
1410
1411 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1412 and not user provided.
1413
9635981a
KH
14142001-02-13 Kazu Hirata <[email protected]>
1415
1416 * vms.c (vms_print_symbol): Remove unreachable code.
1417
6a125b16
KH
1418 * rs6000-core.c: Fix formatting.
1419
cbff5e0d
DD
14202001-02-13 David Mosberger <[email protected]>
1421
1422 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1423 as _bfd_XXi_only_swap_filehdr_out.
1424 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1425 pe->force_minimum_alignment to TRUE.
1426 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1427 PEI_TARGET_SUBSYSTEM.
1428 (pe_print_private_bfd_data): Call
1429 _bfd_XX_print_private_bfd_data_common() instead of
1430 _bfd_pe_print_private_bfd_data_common().
1431 (pe_bfd_copy_private_bfd_data): Call
1432 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1433 _bfd_pe_bfd_copy_private_bfd_data_common().
1434 (coff_bfd_copy_private_section_data): Define as
1435 _bfd_XX_bfd_copy_private_section_data instead of
1436 _bfd_pe_bfd_copy_private_section_data.
1437 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1438 of a _bfd_pe_get_symbol_info.
1439
1440 * peigen.c: Delete.
1441
1442 * peXXigen.c: Renamed from peigen.c.
1443 (COFF_WITH_XX): Define this macro (will get expanded into
1444 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1445 compiled as peigen.c or pepigen.c.
1446 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1447 define the canonical PEP structures and definitions.
1448 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1449 effect, enforce minimum file and section alignments. If
1450 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1451 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1452 so, by default, this is a no-op).
1453
1454 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1455 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1456 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1457 _bfd_pefoo if it's not defined. Use these macros to define
1458 coff swap macros.
1459
1460 * libcoff.h (pe_tdata): Add members target_subsystem and
1461 force_minimum_alignment.
1462
1463 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1464 COFF_WITH_pep.
1465 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1466
1467 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1468 peigen.lo.
1469
1470 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1471 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1472 PEPAOUTHDR.
1473
1474 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1475 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1476 (peigen.c): Add rule to generate from peXXigen.c.
1477 (pepigen.c): Ditto.
1478 (pepigen.lo): List dependencies for pepigen.lo.
1479
df8634e3
AM
14802001-02-13 Alan Modra <[email protected]>
1481
1482 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1483 $global$ referenced but not defined, set its value here.
1484
51e0a107
JH
14852001-02-09 Bo Thorsen <[email protected]>
1486
1487 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1488 alignment to 3.
1489 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1490 and relocation.
1491 (elf64_x86_64_relocate_section): Fix formatting.
1492 (elf64_x86_64_relocate_section): Fix addend for relocation of
1493 R_X86_64_(8|16|32|PC8|PC16|PC32).
1494
d1fad7c6 14952001-02-12 Jan Hubicka <[email protected]>
23df1078
JH
1496
1497 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1498
f0e1d18a
L
14992001-02-11 H.J. Lu <[email protected]>
1500
6757257f 1501 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
1502 alignment.
1503
9117d219
NC
15042001-02-11 Maciej W. Rozycki <[email protected]>
1505
1506 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1507 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1508 relocations against dynsym symbols.
1509
1510 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1511 the R_MIPS_26 relocation.
1512 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1513 the R_MIPS_26 relocation.
1514 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1515 relocation.
1516 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1517 the R_MIPS_26 relocation.
1518 (mips_elf64_howto_table_rela): Likewise.
1519
1520 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1521 member to mark symbols that have non-CALL relocations against
1522 them.
1523 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1524 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1525 R_MIPS_GOT16.
1526 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1527 non-CALL relocation against it is encountered.
1528 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1529 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1530 no_fn_stub is not set.
1531
1532 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1533 information from the real symbol for indirect ones.
1534 Check no_fn_stub to find out if a symbol has a function stub
1535 indeed.
1536
9f93bca5
MS
15372001-02-11 Michael Sokolov <[email protected]>
1538
1539 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1540 * Makefile.in: Regenerate.
1541
81545d45
RH
15422001-02-09 David Mosberger <[email protected]>
1543
1544 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1545 true if section name is an unwind table section name.
1546 (elfNN_ia64_additional_program_headers): Count each unwind section
1547 separately.
1548 (elfNN_ia64_modify_segment_map): Install one unwind program header
1549 for each unwind separate section. Note: normally the linker
1550 script merges the unwind sections that go into a single segment,
1551 so this still generates at most one unwind program header per
1552 segment.
1553
1554 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1555 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1556 (elfNN_ia64_fake_sections): Mark sections with names that start
1557 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1558 unwind section.
1559
1560 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1561 Use it to make sh_info in unwind section point to the text section
1562 it applies to.
1563
a85d7ed0
NC
15642001-02-09 Martin Schwidefsky <[email protected]>
1565
1566 * Makefile.am: Add linux target for S/390.
1567 * archures.c: Likewise.
1568 * bfd-in2.h: Likewise.
1569 * config.bfd: Likewise.
1570 * configure.in: Likewise.
1571 * elf.c: Likewise.
1572 * libbfd.h: Likewise.
1573 * targets.c: Likewise.
1574 * cpu-s390.c: New file.
1575 * elf32-s390.c: New file.
1576 * elf64-s390.c: New file.
1577
356d255d
NC
15782001-02-09 Nick Clifton <[email protected]>
1579
1580 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1581 ImageBase. This has already been done by coff_swap_hdr_in.
1582
069f40e5
JJ
15832001-02-09 Jakub Jelinek <[email protected]>
1584
1585 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1586
eadfa8ab
JJ
15872001-02-09 Jakub Jelinek <[email protected]>
1588
1589 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1590 (sparc64_elf_relocate_section): Likewise.
1591
9fc54e19
MK
15922001-02-09 Mark Kettenis <[email protected]>
1593
1594 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1595 similar to R_SPARC_32.
1596 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1597
1f655a09
L
15982001-02-08 H.J. Lu <[email protected]>
1599
1600 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1601 relocation entries for weak definitions when building DSO with
1602 -Bsymbolic.
1603
ca88208a
RH
16042001-02-08 Richard Henderson <[email protected]>
1605
1606 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1607 before visibility. Locally defined protected symbols are not
1608 dynamic.
1609
4603e845
GK
16102001-02-08 Geoffrey Keating <[email protected]>
1611
1612 * config.bfd: Enable coff64 for rs6000-*. Patch from
1613 <[email protected]>.
1614
4ca29a6a
NC
16152001-02-07 Mark Elbrecht <[email protected]>
1616
1617 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1618 found, do not attempt to find dwarf2 info before returning.
1619
7da9d88f
NC
16202001-02-07 Jakub Jelinek <[email protected]>
1621
1622 * elflink.h (is_global_symbol_definition): Rename to
1623 is_global_data_symbol_definition and have it reject function
1624 symbols.
1625 (elf_link_is_defined_archive_symbol): Use renamed function.
1626
7340082d
NC
16272001-02-07 Todd Vierling <[email protected]>
1628
1629 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1630 * libbfd.h (bfd_target_vector): Likewise.
1631 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 1632 make static; create pointer reference named bfd_target_vector.
7340082d
NC
1633 (_bfd_target_vector_entries): Calculate this based on the array
1634 typed _bfd_target_vector.
1635
2719f880
L
16362001-02-06 H.J. Lu <[email protected]>
1637
1638 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1639 internal symbols are not dynamic.
1640 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1641
175aa013
NC
16422001-02-06 Nick Clifton <[email protected]>
1643
1644 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1645 that it will not be pulled into the list of files that make up
1646 po/POTFILES.in.
1647 * Makefile.in: Regenerate.
1648 * po/bfd.pot: Regenerate.
1649
15e0ecd9
L
16502001-02-06 H.J. Lu <[email protected]>
1651
7898deda 1652 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
1653 checking.
1654 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1655 external_PEI_IMAGE_hdr.
1656
27def10f
KH
16572001-02-06 Kazu Hirata <[email protected]>
1658
1659 * elf-m10200.c: Fix formatting.
1660
a0f2e916
NC
16612001-02-04 Nick Clifton <[email protected]>
1662
1663 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1664 rel, it will be handled later on.
1665
d96031fb
NC
16662001-02-02 Fred Fish <[email protected]>
1667
1668 * Makefile.in: Fix typo.
1669
010ac81f
KH
16702001-02-01 Kazu Hirata <[email protected]>
1671
1672 * elf-m10300.c: Fix formatting.
1673
3fab46d0
AM
16742001-01-30 Alan Modra <[email protected]>
1675
1676 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1677 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
1678 (elf64_hppa_object_p): Set architecture and machine from elf
1679 header flags.
3fab46d0 1680
95404643
RH
16812001-01-30 Curtis L. Janssen <[email protected]>
1682
1683 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1684 before mdebug.
1685
8fb35fed
RH
16862001-01-26 Richard Henderson <[email protected]>
1687
1688 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1689 for non-default visibility.
1690 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1691 delete ugly macro and replace with pretty function.
1692
a4f68544
NC
16932001-01-25 Mark Elbrecht <[email protected]>
1694
1695 * coff-go32.c: Update copyright.
1696 * coff-stgo32.c: Likewise.
1697 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1698 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1699 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1700 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1701
c02e7c3e
KH
17022001-01-25 Kazu Hirata <[email protected]>
1703
1704 * bfd-in2.h: Rebuild.
1705 * libbfd.h: Likewise.
1706
541389e2
L
17072001-01-23 H.J. Lu <[email protected]>
1708
1709 * bfd-in2.h: Rebuild.
1710
0007625f
L
17112001-01-23 H.J. Lu <[email protected]>
1712
1713 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1714 is NULL or PRIV(vms_rec) is outside of the buffer.
1715
b653e1b1
KH
17162001-01-23 Kazu Hirata <[email protected]>
1717
1718 * coff64-rs6000.c: Fix formatting.
1719 * coff-arm.c: Likewise.
1720 * coffgen.c: Likewise.
1721 * cofflink.c: Likewise.
1722 * coff-mcore.c: Likewise.
1723 * coff-mips.c: Likewise.
1724 * coff-pmac.c: Likewise.
1725 * coff-ppc.c: Likewise.
1726 * coff-rs6000.c: Likewise.
1727 * elf32.c: Likewise.
1728 * elf32-fr30.c: Likewise.
1729 * elf32-i370.c: Likewise.
1730 * elf32-i860.c: Likewise.
1731 * elf32-m32r.c: Likewise.
1732 * elf32-m68k.c: Likewise.
1733 * elf32-mcore.c: Likewise.
1734 * elf32-ppc.c: Likewise.
1735 * elf32-sh.c: Likewise.
1736 * elf32-v850.c: Likewise.
1737 * elf64-alpha.c: Likewise.
1738 * elf64-sparc.c: Likewise.
1739 * elflink.c: Likewise.
1740 * elflink.h: Likewise.
1741 * elf-m10200.c: Likewise.
1742 * elf-m10300.c: Likewise.
1743 * elfxx-ia64.c: Likewise.
1744
3fde5a36
KH
1745 * aoutx.h: Fix formatting.
1746 * bfd.c: Likewise.
1747 * bfd-in2.h: Likewise.
1748 * bfd-in.h: Likewise.
1749 * cpu-i386.c: Likewise.
1750 * cpu-m68hc11.c: Likewise.
1751 * dwarf2.c: Likewise.
1752 * elf64-x86-64.c: Likewise.
1753 * format.c: Likewise.
1754 * freebsd.h: Likewise.
1755 * hash.c: Likewise.
1756 * hp300hpux.c: Likewise.
1757 * hppabsd-core.c: Likewise.
1758 * hpux-core.c: Likewise.
1759
70256ad8
AJ
17602001-01-22 Bo Thorsen <[email protected]>
1761
1762 * elf64-x86-64.c: Added PIC support for X86-64.
1763 (elf64_x86_64_link_hash_newfunc): Function added.
1764 (elf64_x86_64_link_hash_table_create): Likewise.
1765 (elf64_x86_64_check_relocs): Likewise.
1766 (elf64_x86_64_gc_mark_hook): Likewise.
1767 (elf64_x86_64_gc_sweep_hook): Likewise.
1768 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1769 (elf64_x86_64_size_dynamic_sections): Likewise.
1770 (elf64_x86_64_discard_copies): Likewise.
1771 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1772 (elf64_x86_64_finish_dynamic_sections): Likewise.
1773 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1774
ee0bebb8
AJ
17752001-01-21 Maciej W. Rozycki <[email protected]>
1776
1777 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1778 * Makefile.in: Regenerate.
1779
2a38f751
KH
17802001-01-21 Kazu Hirata <[email protected]>
1781
1782 * coff-a29k.c: Fix formatting.
1783
c8492176
L
17842001-01-19 H.J. Lu <[email protected]>
1785
1786 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1787 relocation section names.
1788 (elf_i386_relocate_section): Report files with bad relocation
1789 section names and return false.
1790
a5377ec0
AJ
17912001-01-17 Bo Thorsen <[email protected]>
1792
1793 * targets.c: Alphabetize list of xvecs.
1794
b352eebf
AM
17952001-01-14 Alan Modra <[email protected]>
1796
d952f17a
AM
1797 * config.bfd: Add linux target variant for elfxx-hppa.
1798 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1799 bfd_elf64_hppa_linux_vec.
1800 * configure: Regenerate.
1801 * elf64-hppa.c: Include elf64-target.h again to support linux
1802 target variant.
1803 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1804 * elf32-hppa.c: Include elf32-target.h again to support linux
1805 target variant.
1806 (elf32_hppa_post_process_headers): New function.
1807 (elf_backend_post_process_headers): Define.
1808 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1809 bfd_elf32_hppa_linux_vec.
1810
c46b7515
AM
1811 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1812 and data_segment_base fields.
1813 (elf32_hppa_link_hash_table_create ): Init them.
1814 (elf32_hppa_check_relocs): Update comments.
1815 (hppa_record_segment_addr): New function.
1816 (elf32_hppa_relocate_section): Call it.
1817 (final_link_relocate): Handle R_PARISC_SEGREL32.
1818 (elf32_hppa_final_link): New function.
1819 (bfd_elf32_bfd_final_link): Define to call it.
1820 (hppa_unwind_entry_compare): New function.
1821 * cache.c (bfd_open_file): Create files in write+read mode.
1822
1823 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1824 SEGREL32 and numerous other relocs. Change duplicate
1825 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1826
d768008d
AM
1827 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1828 O_ACCMODE.
1829
150ccafb
AM
1830 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1831 .plt entries for DT_INIT and DT_FINI.
1832 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1833 DT_INIT and DT_FINI.
1834
b352eebf
AM
1835 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1836 offsets for stub .plt access if wide mode. Check offset in range.
1837
b3b9a062
NC
18382001-01-13 Nick Clifton <[email protected]>
1839
b7ed8fad
NC
1840 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1841 line.
1842
b3b9a062
NC
1843 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1844 line.
1845
6e0b89ee
AM
18462001-01-12 Alan Modra <[email protected]>
1847
1848 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1849 * configure: Regenerate.
1850
0d2bcfaf
NC
18512001-01-11 Peter Targett <[email protected]>
1852
1853 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1854 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1855 * cpu-arc.c (arch_info_struct): Add entries for variants.
1856 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1857 (arc_get_mach) Don't assume machine names prefixed arc- before
1858 testing.
1859 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1860 selections.
1861 (arc_elf_final_write_processing) Likewise.
1862 (ELF_MACHINE_CODE) Use EM_ARC.
1863
c31c1f70
NC
18642001-01-10 Nick Clifton <[email protected]>
1865
2758140b 1866 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 1867
5ad083e3
PB
18682001-01-07 Philip Blundell <[email protected]>
1869
1870 * README: Replace `[email protected]' with
1871 `[email protected]'.
1872
7eae7d22
KH
18732001-01-04 Kazu Hirata <[email protected]>
1874
1875 * som.c: Fix formatting.
1876
509945ae
KH
18772001-01-03 Kazu Hirata <[email protected]>
1878
3e932841
KH
1879 * ecoffswap.h: Fix formatting.
1880 * elf-bfd.h: Likewise.
1881 * elfarm-nabi.c: Likewise.
1882 * elfarm-oabi.c: Likewise.
1883 * elfcode.h: Likewise.
1884 * elfcore.h: Likewise.
1885 * elflink.c: Likewise.
1886 * elflink.h: Likewise.
1887 * elfxx-ia64.c: Likewise.
1888 * elfxx-target.h: Likewise.
1889 * libbfd.c: Likewise
509945ae
KH
1890 * linker.c: Likewise.
1891 * lynx-core.c: Likewise.
1892
892339ee
KH
18932001-01-02 Kazu Hirata <[email protected]>
1894
1895 * pc532-mach.c: Fix formatting.
1896 * pe-arm.c: Likewise.
1897 * pe-i386.c: Likewise.
1898 * pe-mips.c: Likewise.
1899 * pe-ppc.c: Likewise.
1900 * pe-sh.c: Likewise.
1901 * pei-mips.c: Likewise.
1902 * pei-sh.c: Likewise.
ee91ed79 1903 * peicode.h: Likewise.
892339ee
KH
1904 * ppcboot.c: Likewise.
1905 * ptrace-core.c: Likewise.
1906
3d855632
KH
19072001-01-01 Kazu Hirata <[email protected]>
1908
1909 * reloc.c: Fix formatting.
1910 * riscix.c: Likewise.
1911 * rs6000-core.c: Likewise.
1912 * xcoff-target.h: Likewise.
1913
a77a9fef
HPN
19142000-12-29 Hans-Peter Nilsson <[email protected]>
1915
1916 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1917 error, by calling bfd_default_set_arch_mach with incoming
1918 values.
1919
558e161f
KH
19202000-12-26 Kazu Hirata <[email protected]>
1921
1922 * vaxnetbsd.c: Fix formatting.
1923 * versados.c: Likewise.
1924 * vms-gsd.c: Likewise.
1925 * vms-hdr.c: Likewise.
1926 * vms-misc.c: Likewise.
1927
3c579812
AO
19282000-12-25 Alexandre Oliva <[email protected]>
1929
1930 * archive.c (coff_write_armap): Don't write more than symbol_count
1931 `archive_member_file_ptr's.
1932
672579e9
KH
19332000-12-25 Kazu Hirata <[email protected]>
1934
1935 * vms-tir.c: Fix formatting.
1936
55f2d5ed
KH
19372000-12-23 Kazu Hirata <[email protected]>
1938
1939 * vms.c: Fix formatting.
1940 * vms.h: Likewise.
1941
23ccc829
NC
19422000-12-21 Santeri Paavolainen <[email protected]>
1943
1944 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1945
1946 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1947
1948 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1949 arithmetic.
1950
1951 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1952
1953 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1954
8c603c85
NC
19552000-12-21 Richard Sandiford <[email protected]>
1956
1957 * libbfd.c (bfd_get_bits): Added
1958 (bfd_put_bits): Likewise
1959 * bfd-in.h: Declared the above.
1960 * bfd-in2.h: Regenerated.
1961
5bff4f56
KH
19622000-12-20 Kazu Hirata <[email protected]>
1963
1964 * targets.c: Fix formatting.
1965 * tekhex.c: Likewise.
1966 * trad-core.c: Likewise.
1967
7b82c249
KH
19682000-12-19 Kazu Hirata <[email protected]>
1969
1970 * sco5-core.c: Fix formatting.
1971 * section.c: Likewise.
1972 * sparclinux.c: Likewise.
1973 * sparclynx.c: Likewise.
1974 * sparcnetbsd.c: Likewise.
1975 * srec.c: Likewise.
1976 * stabs.c: Likewise.
1977 * stab-syms.c: Likewise.
1978 * sunos.c: Likewise.
1979 * syms.c: Likewise.
1980 * sysdep.h: Likewise.
1981
f78c5281
NC
19822000-12-18 Nick Clifton <[email protected]>
1983
1984 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1985 defined.
1986 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1987 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1988
02b89dce
NC
19892000-12-18 Nick Clifton <[email protected]>
1990
1991 * vms-misc.c (_bfd_vms_get_record): Add default case to
1992 file_format switch.
1993
d20966a7
NC
19942000-12-15 Miloslav Trmac <[email protected]>
1995
1996 * elfcore.h (elf_core_file_p): Move to the start of the program
1997 headers before attempting to read them.
1998
6fa957a9
KH
19992000-12-14 Kazu Hirata <[email protected]>
2000
2001 * peigen.c: Fix formatting.
2002 * som.c: Likewise.
2003 * som.h: Likewise.
2004
9602af51
KH
20052000-12-13 Kazu Hirata <[email protected]>
2006
2007 * peigen.c: Fix formatting.
2008
514829c3
JW
20092000-12-12 Jim Wilson <[email protected]>
2010
2011 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2012
3a71aec8
NC
20132000-12-08 Mark Salter <[email protected]>
2014
2015 * binary.c (binary_set_section_contents): Ignore sections
2016 with zero size.
2017
1518639e
KH
20182000-12-12 Kazu Hirata <[email protected]>
2019
2020 * m68klinux.c: Fix formatting.
2021 * m68knetbsd.c: Likewise.
2022 * mipsbsd.c: Likewise.
2023 * netbsd-core.c: Likewise.
2024 * netbsd.h: Likewise.
2025 * newsos3.c: Likewise.
2026 * nlm32-alpha.c: Likewise.
2027 * nlm32-i386.c: Likewise.
2028 * nlm32-ppc.c: Likewise.
2029 * nlm32-sparc.c: Likewise.
2030 * nlmcode.h: Likewise.
2031 * nlmswap.h: Likewise.
2032 * nlm-target.h: Likewise.
2033 * ns32knetbsd.c: Likewise.
2034
b79e8c78
NC
20352000-12-10 Fred Fish <[email protected]>
2036
d952f17a
AM
2037 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2038 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 2039
38b1a46c
NC
20402000-12-12 Nick Clifton <[email protected]>
2041
2042 * cpu-sh.c: Fix formattng.
2043 * elf.c: Fix formattng.
2044 * elf32-mips.c: Fix formattng.
2045 * elf32-sh.c: Fix formattng.
2046 * elf64-alpha.c: Fix formattng.
2047
857ec808
NC
20482000-12-09 Nick Clifton <[email protected]>
2049
2050 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2051 dwarf2_find_line_info as last parameter to invocation of
2052 _bfd_dwarf2_find_nearest_line.
2053 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2054 dwarf2_find_line_info as last parameter to invocation of
2055 _bfd_dwarf2_find_nearest_line.
2056
51db3708
NC
20572000-12-08 Mark Elbrecht <[email protected]>
2058
2059 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
2060 (BFD_LIBS): ...to here.
2061 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2062 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
2063 * Makefile.in: Regenerate.
2064 * configure.in: Remove dwarf.lo from the elf shell variable.
2065 * configure: Regenerate.
2066 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2067 * libcoff.h: Regenerate.
d952f17a 2068 * coffgen.c (coff_find_nearest_line): Call
857ec808 2069 _bfd_dwarf2_find_nearest_line.
51db3708 2070 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
2071 accordingly.
2072 (read_abbrevs): Likewise
2073 (decode_line_info): Likewise.
2074 (parse_comp_unit): Likewise.
2075 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
2076 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2077 * libbfd.h: Regenerate.
2078 * elf.c (_bfd_elf_find_nearest_line): Update call.
2079 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2080 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2081 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
2082 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2083 (styp_to_sec_flags): Handle DWARF2 sections.
2084 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2085 to _bfd_find_nearest_line.
2086 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2087 call to _bfd_find_nearest_line.
d952f17a 2088
435b1e90
KH
20892000-12-08 Kazu Hirata <[email protected]>
2090
2091 * coffgen.c: Fix formatting.
fe8bc63d 2092 * elf-m10300.c: Likewise.
435b1e90
KH
2093 * elf32-i386.c: Likewise.
2094 * elf32-i960.c: Likewise.
2095 * elf32-m68k.c: Likewise.
2096 * elf32-mcore.c: Likewise.
2097 * elf32-ppc.c: Likewise.
2098 * elf32-sh.c: Likewise.
2099 * elf32-sparc.c: Likewise.
2100 * elf32-v850.c: Likewise.
fe8bc63d
KH
2101 * elf64-alpha.c: Likewise.
2102 * elf64-hppa.c: Likewise.
2103 * elf64-mips.c: Likewise.
435b1e90 2104 * elf64-sparc.c: Likewise.
435b1e90 2105
8da6118f
KH
21062000-12-07 Kazu Hirata <[email protected]>
2107
2108 * elf32-ppc.c: Fix formatting.
2109 * elf64-x86-64.c: Likewise.
2110
a9922e52
UC
21112000-12-06 Ulf Carlsson <[email protected]>
2112
2113 From Ralf Baechle <[email protected]>
2114
2115 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2116 BFDs containing no sections or empty .text, .data or .bss sections
2117 to be merged, regardless of their flags.
2118
c3668558
KH
21192000-12-06 Kazu Hirata <[email protected]>
2120
2121 * elf32-m32r.c: Fix formatting.
2122 * elf32-m68hc11.c: Likewise.
2123 * elf32-m68hc12.c: Likewise.
2124 * elf32-m68k.c: Likewise.
2125 * elf32-mcore.c: Likewise.
2126 * elf32-pj.c: Likewise.
2127 * elf32-ppc.c: Likewise.
2128
6609fa74
KH
21292000-12-05 Kazu Hirata <[email protected]>
2130
2131 * elf32-fr30.c: Fix formatting.
2132 * elf32-hppa.c: Likewise.
2133 * elf32-i370.c: Likewise.
2134 * elf32-i386.c: Likewise.
2135 * elf32-i860.c: Likewise.
2136 * elf32-i960.c: Likewise.
2137
a7c10850
KH
21382000-12-03 Kazu Hirata <[email protected]>
2139
2140 * elf32-arm.h: Fix formatting.
2141 * elf32-avr.c: Likewise.
2142 * elf32-cris.c: Likewise.
2143 * elf32-d10v.c: Likewise.
2144 * elf32-d30v.c: Likewise.
2145 * elf-hppa.h: Likewise.
2146 * elf-m10200.c: Likewise.
2147 * elf-m10300.c: Likewise.
2148
e7af610e
NC
21492000-12-01 Chris Demetriou <[email protected]>
2150
d952f17a
AM
2151 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2152 bfd_mach_mips32_4k. Update FIXME comment.
2153 * archures.c (bfd_mach_mips32): New constant.
2154 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2155 the latter, renumber it.
2156 * bfd-in2.h (bfd_mach_mips32): New constant.
2157 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2158 the latter, renumber it.
2159 * cpu-mips.c (I_mips32): New constant.
2160 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2161 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2162 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2163 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2164 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2165 with E_MIPS_MACH_MIPS32_4K.
2166 (_bfd_mips_elf_final_write_processing): Replace
2167 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2168 bfd_mach_mips32 case.
2169 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2170 comparison with support for MIPS32.
2171 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2172 MIPS32.
2173
2174 * aoutx.h (NAME(aout,machine_type)): Add cases for
2175 bfd_mach_mips5 and bfd_mach_mips64.
2176 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2177 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2178 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2179 (arch_info_struct): Add entries for bfd_mach_mips5 and
2180 bfd_mach_mips64.
2181 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2182 _bfd_mips_elf_print_private_bfd_data): Add cases for
2183 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2184 (_bfd_mips_elf_final_write_processing): Add cases for
2185 bfd_mach_mips5 and bfd_mach_mips64.
2186
7898deda 2187 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 2188 bfd_mach_mips_sb1 case.
7898deda
NC
2189 * archures.c (bfd_mach_mips_sb1): New constant.
2190 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2191 * cpu-mips.c (I_sb1): New constant.
d952f17a 2192 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 2193 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
2194 E_MIPS_MACH_SB1.
2195 (_bfd_mips_elf_final_write_processing): Add case for
2196 bfd_mach_mips_sb1.
2197
21982000-12-01 Joel Sherrill <[email protected]>
ddcfc5fc
NC
2199
2200 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2201 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2202 (sparc*-*-rtems*): Switched from a.out to ELF.
2203
8d88c4ca 22042000-11-30 Jan Hubicka <[email protected]>
d952f17a
AM
2205
2206 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2207 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2208 (elf64-x86-64.lo): Add dependencies.
2209 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2210 bfd_mach_x86_64_intel_syntax.
2211 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2212 * config.bfd (x86_64): Add.
2213 * configure.in: Add support for bfd_elf64_x86_64_vec.
2214 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2215 (bfd_i386_arch, i8086_ar): Link in.
2216 * elf64-x86-64.c: New file.
2217 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2218 * targets.c (bfd_elf64_x86_64_vec): Add.
2219 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 2220
fbc4fff4
KH
22212000-11-30 Kazu Hirata <[email protected]>
2222
2223 * xcofflink.c: Fix formatting.
2224
e60b52c6
KH
22252000-11-28 Kazu Hirata <[email protected]>
2226
2227 * aoutx.h: Fix formatting.
2228 * bfd-in.h: Likewise.
2229 * bfd-in2.h: Likewise.
2230 * cache.c: Likewise.
2231 * cisco-core.c: Likewise.
2232 * coff64-rs6000.c: Likewise.
2233 * coffcode.h: Likewise.
2234 * coffswap.h: Likewise.
2235 * corefile.c: Likewise.
be3ccd9c 2236 * elf32-mips.c: Likewise.
e60b52c6 2237
336eced2
KH
22382000-11-27 Kazu Hirata <[email protected]>
2239
2240 * aout-adobe.c: Fix formatting.
244148ad
KH
2241 * coff64-rs6000.c: Likewise.
2242 * coffgen.c: Likewise.
2243 * cofflink.c: Likewise.
336eced2 2244
d71f672e
PB
22452000-11-27 Philip Blundell <[email protected]>
2246
2247 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2248 (obj_coff_strings_written): New accessor macro for above.
2249 * libcoff.h: Regenerate.
2250 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2251 strings.
2252 * coffcode.h (coff_write_object_contents): No need to write out
2253 the string table if it's already been done.
2254
bc7a577d
PB
22552000-11-22 Philip Blundell <[email protected]>
2256
d952f17a 2257 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
2258 weak undefined symbols.
2259
077b8428
NC
22602000-11-24 Nick Clifton <[email protected]>
2261
2262 * archures.c (bfd_mach_arm_5TE): Define.
2263 (bfd_mach_arm+XScale): Define.
2264 * bfd-in2.h: Regenerate.
2265
2266 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2267 BFD_RELOC_ARM_PCREL_BLX.
2268
2269 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2270 XScale machine numbers.
2271
2272 * config.bfd (xscale-elf): Add target.
2273 (xscale-coff): Add target.
2274
2275 * cpu-arm.c: Add xscale machine name.
2276 Add v5t, v5te and XScale machine numbers.
2277
e9e41bd9
KH
22782000-11-23 Kazu Hirata <[email protected]>
2279
2280 * aix386-core.c: Fix formatting.
2281
64bf6ae6
JW
22822000-11-22 Jim Wilson <[email protected]>
2283
2284 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2285 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2286 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2287 (ins_imms_scaled): Initialize sign_bit at function entry.
2288 (elf64_ia64_operands): Add missing initializers.
2289 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2290 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2291 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2292 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2293 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2294 parameters.
2295 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2296 and free_extsyms at function entry.
2297 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2298 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2299 (get_got): Delete unused local srel.
2300 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2301 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 2302
1abaf976
KH
23032000-11-21 Kazu Hirata <[email protected]>
2304
6e301b2b
KH
2305 * coff-a29k.c: Fix formatting.
2306 * coff-h8500.c: Likewise.
2307 * coff-i960.c: Likewise.
2308 * coff-ppc.c: Likewise.
2309 * coff-rs6000.c: Likewise.
2310 * coff-stgo32.c: Likewise.
2311 * coff-tic54x.c: Likewise.
2312 * coff-w65.c: Likewise.
2313 * cpu-h8500.c: Likewise.
2314 * cpu-hppa.c: Likewise.
2315 * cpu-ns32k.c: Likewise.
2316 * ecoff.c: Likewise.
1abaf976
KH
2317 * ecofflink.c: Likewise.
2318
a0fc8ba1
NC
23192000-11-21 Nick Clifton <[email protected]>
2320
2321 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2322 remove possibility of infinite loop.
2323
beb0d161
KH
23242000-11-20 Kazu Hirata <[email protected]>
2325
2326 * aix386-core.c: Fix formatting.
2327 * aout-adobe.c: Likewise.
2328 * aout-arm.c: Likewise.
2329 * aout-encap.c: Likewise.
2330 * aout-ns32k.c: Likewise.
2331 * aout-target.h: Likewise.
2332 * aout-tic30.c: Likewise.
2333 * aoutf1.h: Likewise.
2334 * aoutx.h: Likewise.
2335 * archive.c: Likewise.
eb6e10cb
KH
2336 * bfd-in.h: Likewise.
2337 * bfd-in2.h: Likewise.
2338 * bfd.c: Likewise.
2339 * bout.c: Likewise.
beb0d161 2340
2c2475db
JW
23412000-11-17 H.J. Lu <[email protected]>
2342
2343 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2344 pltoff entries for DT_INIT and DT_FINI.
2345 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2346 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2347 entries.
2348
18b27f17
RH
23492000-11-16 Richard Henderson <[email protected]>
2350
2351 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2352 (allocate_dynrel_entries): Likewise.
2353 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2354 (set_pltoff_entry): Likewise.
2355 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2356 (elfNN_ia64_reloc_type_lookup): Likewise.
2357 (elfNN_ia64_install_value): Likewise.
2358 (elfNN_ia64_relocate_section): Likewise.
2359 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2360 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2361
98591c73
KH
23622000-11-16 Kazu Hirata <[email protected]>
2363
71f6b586
KH
2364 * cpu-a29k.c: Fix formatting.
2365 * cpu-alpha.c: Likewise.
2366 * cpu-arm.c: Likewise.
2367 * cpu-avr.c: Likewise.
2368 * cpu-d10v.c: Likewise.
2369 * cpu-h8500.c: Likewise.
2370 * cpu-hppa.c: Likewise.
2371 * cpu-i370.c: Likewise.
2372 * cpu-i386.c: Likewise.
2373 * cpu-i960.c: Likewise.
2374 * cpu-ia64-opc.c: Likewise.
2375 * cpu-ia64.c: Likewise.
2376 * cpu-m32r.c: Likewise.
2377 * cpu-m68hc11.c: Likewise.
2378 * cpu-m68hc12.c: Likewise.
2379 * cpu-m68k.c: Likewise.
2380 * cpu-m88k.c: Likewise.
2381 * cpu-mips.c: Likewise.
2382 * cpu-ns32k.c: Likewise.
2383 * cpu-pj.c: Likewise.
2384 * cpu-powerpc.c: Likewise.
2385 * cpu-sh.c: Likewise.
2386 * cpu-sparc.c: Likewise.
2387 * cpu-tic54x.c: Likewise.
2388 * cpu-v850.c: Likewise.
2389 * cpu-vax.c: Likewise.
2390 * cpu-w65.c: Likewise.
2391 * cpu-we32k.c: Likewise.
2392 * cpu-z8k.c: Likewise.
2393 * dwarf1.c: Likewise.
98591c73
KH
2394 * dwarf2.c: Likewise.
2395
c5930ee6
KH
23962000-11-15 Kazu Hirata <[email protected]>
2397
2398 * coff-arm.c: Fix formatting.
2399 * coff-ppc.c: Likewise.
2400 * coff-rs6000.c: Likewise.
cbfe05c4
KH
2401 * coff-sh.c: Likewise.
2402 * coff-sparc.c: Likewise.
2403 * coff-tic30.c: Likewise.
2404 * coff-tic54x.c: Likewise.
2405 * coff-tic80.c: Likewise.
2406 * coff-w65.c: Likewise.
2407 * coff-we32k.c: Likewise.
2408 * coff-z8k.c: Likewise.
c5930ee6 2409
dac544a8
RH
24102000-11-15 Richard Henderson <[email protected]>
2411
2412 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2413 section with the same ALLOC|LOAD flags as the source section.
2414
c810873d
JJ
24152000-11-14 Jakub Jelinek <[email protected]>
2416
2417 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2418 by STO_ALPHA constants.
2419
43646c9d
KH
24202000-11-14 Kazu Hirata <[email protected]>
2421
2422 * coff-pmac.c: Fix formatting.
2423 * coff-ppc.c: Likewise.
2424
051b8577
L
24252000-11-13 H.J. Lu <[email protected]>
2426
2427 * elflink.h (elf_link_add_object_symbols): Also add indirect
2428 symbols for common symbols with the default version.
2429
90460d97
PB
24302000-11-09 Philip Blundell <[email protected]>
2431
2432 * section.c (STD_SECTION): Set gc_mark flag.
2433
b48499ec
KH
24342000-11-11 Kazu Hirata <[email protected]>
2435
2436 * coff-i960.c: Likewise.
2437 * coff-m68k.c: Likewise.
2438 * coff-m88k.c: Likewise.
2439 * coff-mcore.c: Likewise.
2440 * coff-mips.c: Likewise.
2441
c5aeb40f
AO
24422000-11-11 Bernd Schmidt <[email protected]>
2443
2444 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2445
5fcfd273
KH
24462000-11-10 Kazu Hirata <[email protected]>
2447
2448 * coff-h8300.c: Fix formatting.
2449 * coff-h8500.c: Likewise.
2450 * coff-i386.c: Likewise.
2451 * coff-i860.c: Likewise.
2452 * coff-i960.c: Likewise.
2453 * coff-ia64.c: Likewise.
2454
047066e1
KH
24552000-11-09 Kazu Hirata <[email protected]>
2456
2457 * archive.c: Fix formatting.
2458 * archures.c: Likewise.
2459
9a951beb
RH
24602000-11-07 Richard Henderson <[email protected]>
2461
2462 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2463 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2464 * section.c (bfd_set_section_contents): Call memcpy if
2465 section->contents set and location not equal to contents plus offset.
2466
aebad5fe
KH
24672000-11-08 Kazu Hirata <[email protected]>
2468
8546af74
KH
2469 * bfd-in.h: Fix formatting.
2470 * bfd-in2.h: Likewise.
2471 * bfd.c: Likewise.
aebad5fe
KH
2472 * binary.c: Likewise.
2473 * bout.c: Likewise.
346ceb11
KH
2474 * coff-a29k.c: Likewise.
2475 * coff-alpha.c: Likewise.
2476 * coff-apollo.c: Likewise.
2477 * coff-aux.c: Likewise.
aebad5fe 2478
0ef5a5bd
KH
24792000-11-07 Kazu Hirata <[email protected]>
2480
2481 * aix386-core.c: Fix formatting.
2482 * aoutf1.h: Likewise.
2483 * aoutx.h: Likewise.
2484 * archures.c: Likewise.
2485 * armnetbsd.c: Likewise.
2486
d562d2fb
AM
24872000-11-07 Alan Modra <[email protected]>
2488
2489 * coff-h8300.c (special): Adjust reloc address.
2490
bbe66d08
JW
24912000-11-06 Steve Ellcey <[email protected]>
2492
4efc3e05 2493 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
2494 to differentiate elf32 and elf64 on ia64.
2495 * bfd-in2.h: Regenerate.
2496 * config.bfd: Add target for "ia64*-*-hpux*".
2497 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2498 * configure: Regenerate.
4efc3e05 2499 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
2500 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2501
2502 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2503 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2504 * Makefile.in: Regnerate.
4efc3e05 2505 * elf64-ia64.c: Deleted.
bbe66d08
JW
2506 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2507
c4dfa77f
KH
25082000-11-06 Kazu Hirata <[email protected]>
2509
2510 * aout-adobe.c: Fix formatting.
2511 * aout-arm.c: Likewise.
2512 * aout-cris.c: Likewise.
2513 * aout-encap.c: Likewise.
2514 * aout-ns32k.c: Likewise.
2515 * aout-target.h: Likewise.
2516 * aout-tic30.c: Likewise.
2517
cf919dfd
PB
25182000-11-05 Philip Blundell <[email protected]>
2519
2520 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2521 BFDs containing no sections to be merged, regardless of their flags.
2522
25232000-11-04 Philip Blundell <[email protected]>
2524
2525 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2526 if a relocation for an undefined symbol also results in an
2527 overflow.
2528
8d88c4ca 25292000-11-06 Christopher Faylor <[email protected]>
8848a8d0
CF
2530
2531 * config.bfd: Add support for Sun Chorus.
2532
46d59bfa
DB
25332000-11-05 David O'Brien <[email protected]>
2534
2535 * configure.in: Recognize alpha-*-freebsd*.
2536 * configure: Regenerate.
2537
d952f17a 25382000-11-02 Luciano Gemme <[email protected]>
420496c1
NC
2539
2540 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2541 (Chunk): New global variable set by a parameter in objcopy.c.
2542 (S3Forced): New global variable set by a parameter in
2543 objcopy.c.
2544 (srec_set_section_contents): If S3Forced is true, always generate
2545 S3 records.
2546 (srec_write_section): Use 'Chunk' to limit maximum length of S
2547 records.
2548
59ff2774
NC
25492000-11-02 Per Lundberg <[email protected]>
2550
2551 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2552 * Makefile.in: Regenerate.
2553 * bfd-in2.h: Regenerate.
2554 * po/bfd.pot: Regenerate.
d952f17a 2555
ee43f35e
PB
25562000-10-31 Philip Blundell <[email protected]>
2557
2558 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2559 EF_SOFT_FLOAT if it is defined.
2560
1006ba19
PB
25612000-10-27 Philip Blundell <[email protected]>
2562
2563 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2564 attempts to mix PIC code with non-PIC, just mark the output as
2565 being position dependent.
d952f17a
AM
2566 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2567 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 2568 all mismatches, not just the first one.
d952f17a 2569
c4920b97
NC
25702000-10-25 Chris Demetriou <[email protected]>
2571
2572 * ieee.c (ieee_archive_p): Plug one of many possible
2573 memory leaks in error handling.
2574
19f7b010
JJ
25752000-10-20 Jakub Jelinek <[email protected]>
2576
2577 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2578 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2579 Support v8plusb.
2580 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2581 sparc64_elf_object_p): Support v9b.
2582 * archures.c: Declare v8plusb and v9b machines.
2583 * bfd-in2.h: Ditto.
2584 * cpu-sparc.c: Ditto.
2585
e1e0340b
GK
25862000-10-16 Geoffrey Keating <[email protected]>
2587
ea5fbc67
GK
2588 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2589 of a GOT reloc.
2590
e1e0340b
GK
2591 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2592 (SYMBOL_CALLS_LOCAL): New macro.
2593 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2594 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2595 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2596 (ppc_elf_relocate_section): Use flag variable to determine
2597 whether the relocation refers to a local symbol.
2598 Test whether a PLTREL24 reloc will produce a reloc by looking
2599 to see whether a PLT entry was made.
2600
a4b120e1
GK
26012000-10-14 Geoffrey Keating <[email protected]>
2602
2603 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2604 entries that could serve as a definition for a weak symbol.
2605
5af5b85b
UC
26062000-10-13 Ulf Carlsson <[email protected]>
2607
2608 From Ralf Baechle <[email protected]>
2609
2610 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2611 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2612 against local symbols.
2613 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 2614
3ef20aaa
AM
26152000-10-12 Alan Modra <[email protected]>
2616
24376d1b
AM
2617 * section.c (struct sec): Add kept_section.
2618 (struct bfd_comdat_info): Remove sec, we can use above.
2619 (STD_SECTION): Add initializer.
2620 (bfd_make_section_anyway): Init here too.
2621
2622 * bfd-in2.h: Regenerate.
2623
2624 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 2625 zeroing of `flags'.
24376d1b
AM
2626 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2627 fudge values for discarded link-once section symbols.
2628
3ef20aaa
AM
2629 * elf64-hppa.c: Include alloca-conf.h
2630
c0e219cc
AM
26312000-10-11 Alan Modra <[email protected]>
2632
d01e2a23
AM
2633 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2634
c0e219cc
AM
2635 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2636
fe268b66
AM
26372000-10-10 Alan Modra <[email protected]>
2638
2639 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2640
4d7ce4dd
AM
26412000-10-10 Tom Rix <[email protected]>
2642
d952f17a 2643 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
2644 newsect->symbol fails to alloc. Use bfd_release instead of free.
2645
f3b6f7c3
RH
26462000-10-09 Richard Henderson <[email protected]
2647
2648 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2649 (elf64_ia64_unwind_entry_compare): New.
2650 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2651
44852b19
AM
26522000-10-07 Alan Modra <[email protected]>
2653
fc8c40a0
AM
2654 * elflink.h (size_dynamic_sections): Don't create various tags if
2655 .dynstr is excluded from the link. Don't set first dynsym entry
2656 if dynsymcount is zero.
2657 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2658 .dynsym excluded from the link. Don't try to write any dynamic
2659 sections excluded from the link.
2660
44852b19
AM
2661 * elf.c (swap_out_syms): Handle global section symbols.
2662
3e4554a2
DD
26632000-10-05 DJ Delorie <[email protected]>
2664
2665 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2666 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2667 (coff_write_relocs): write extended reloc count
2668 (coff_write_object_contents): account for extended relocs
2669
fa152c49
JW
26702000-10-05 Jim Wilson <[email protected]>
2671
2672 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2673 field.
2674 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2675 elf_backend_section_flags function.
2676 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2677 code.
2678 (elf64_ia64_section_flags): New function containing flag conversion
2679 code.
2680 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2681 * elfxx-target.h (elf_backend_section_flags): Define.
2682 (elfNN_bed): Initialize elf_backend_section_flags field.
2683
36605136
AM
26842000-10-02 Alan Modra <[email protected]>
2685
2686 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2687 _bfd_elf32_gc_record_vtable. Correct a comment.
2688
4b6609a0
UC
26892000-10-01 Ulf Carlsson <[email protected]>
2690
2691 From Ralf Baechle <[email protected]>
2692
2693 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2694 produces binaries with got[1] = 0x80000001 to differenciate them
2695 for the dynamic linker from the broken binaries produced by old
2696 versions.
36605136 2697
f572a39d
AM
26982000-09-30 Petr Sorfa <[email protected]>
2699
2700 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2701 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2702 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2703 * configure: Regenerate.
2704
4da81684
HPN
27052000-09-27 Hans-Peter Nilsson <[email protected]>
2706
2707 Define two bfd_targets for absence and presence of leading
2708 underscore on symbols. Make sure to only link same kind.
2709 * elf32-cris.c (cris_elf_object_p,
2710 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2711 cris_elf_merge_private_bfd_data): New.
2712 (elf_backend_object_p, elf_backend_final_write_processing,
2713 bfd_elf32_bfd_print_private_bfd_data,
2714 bfd_elf32_bfd_merge_private_bfd_data): Define.
2715 <Target vector definition>: Include elf32-target.h twice with
2716 different macro settings:
2717 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2718 bfd_elf32_us_cris_vec.
2719 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2720 (elf_symbol_leading_char): First as 0, then '_'.
2721 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2722 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2723 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2724 * configure: Regenerate.
2725 * targets.c: Declare bfd_elf32_us_cris_vec.
2726 * po/bfd.pot: Regenerate.
2727
9a5aca8c
AM
27282000-09-29 Momchil Velikov <[email protected]>
2729
2730 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2731 R_ARM_THM_PC22 relocations.
2732
512a2384
AM
27332000-09-29 NIIBE Yutaka <[email protected]>
2734
2735 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2736
6c99a5c3
AM
27372000-09-29 Momchil Velikov <[email protected]>
2738
2739 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2740 is has the SEC_HAS_CONTENTS flag set.
2741
64e9ece0 2742