Commit Ilya Golubev's clear_solib() fixes.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
c11cc227
AO
12001-09-13 Alexandre Oliva <aoliva@redhat.com>
2
3 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
4
aa4f99bb
AO
52001-09-12 Alexandre Oliva <aoliva@redhat.com>
6
7 * elf.c (prep_headers): Get the machine code from the elf
8 backend data.
9 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
10 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
11 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
12 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
13 * elf-arc.c (arc_elf_final_write_processing): Don't override
14 e_machine, it's now properly set in prep_headers.
15 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
16 EM_AVR_OLD.
17 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
18 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
19 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
20 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
21 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
22 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
23 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
24 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
25 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
26 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
27 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
28 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
29
204692d7
RH
302001-09-11 Richard Henderson <rth@redhat.com>
31
32 * elf64-alpha.c (elf64_alpha_section_flags): New.
33 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
34
f94952df
RH
352001-09-11 Richard Henderson <rth@redhat.com>
36
37 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
38 apply HINT relocations against dynamic symbols.
39
146f1a87
L
402001-09-11 H.J. Lu <hjl@gnu.org>
41
f94952df 42 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
146f1a87 43
1cd6895c
RH
442001-09-09 Richard Henderson <rth@redhat.com>
45
96e2734b
RH
46 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
47
1cd6895c
RH
48 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
49 following a call to a near function.
50
f16fbd61
RH
512001-09-08 Richard Henderson <rth@redhat.com>
52
53 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
54 relocation errors. Fail gp-relative relocations against
55 dynamic symbols.
56
56882138
AM
572001-09-08 Alan Modra <amodra@bigpond.net.au>
58
59 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
60 as well as DEF_DYNAMIC in test for avoided copy relocs.
61 (allocate_plt_and_got_and_discard_relocs): Likewise.
62 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
63 (allocate_plt_and_got_and_discard_relocs): Likewise.
64
cb56d3d3
TS
652001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
66
67 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
68 of R_MIPS_PC16.
56882138
AM
69
702001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
71
72 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
73 definitions.
74 (mips_elf64_howto_table_rel): Likewise.
75
762001-09-05 Tom Rix <trix@redhat.com>
77
78 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
79 and syscall symbols.
80 (write_global_symbol) : Same.
81 (bfd_xcoff_export_symbol): Remove unused syscall param.
82 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
83 bfd_xcoff_import_symbol.
84 * bfd-in.h: Same.
85 * bfd-in2.h : Regenerate.
86
872001-09-04 Richard Henderson <rth@redhat.com>
88
89 * elf64-alpha.c (SKIP_HOWTO): New.
90 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
91 Fix sizes of 16-bit mem format relocs.
92 (elf64_alpha_reloc_map): Update to match.
93 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
94 (elf64_alpha_relax_without_lituse): Likewise.
95 (elf64_alpha_check_relocs): Handle GPREL16.
96 (elf64_alpha_relocate_section): Likewise.
97 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
98 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
99 * bfd-in2.h, libbfd.h: Rebuild.
100
1012001-09-04 Jeff Law <law@redhat.com>
102
103 * elf32-h8300.c (elf32_h8_relax_section): New function.
104 (elf32_h8_relax_delete_bytes): Likewise.
105 (elf32_h8_symbol_address_p): Likewise.
106 (elf32_h8_get_relocated_section_contents): Likewise.
107 (bfd_elf32_bfd_relax_section): Define.
108 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
109
110 * elf32-h8300.c (special): New function.
111 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
112 all relocations.
113 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
114 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
115 Fix minor problems with 8bit and 16bit PC relative relocations.
116
1172001-09-01 Andreas Jaeger <aj@suse.de>
118
119 * vms-tir.c: Add missing prototypes.
120 * vms-hdr.c: Likewise.
121 * vms-gsd.c: Likewise.
122 * vms-misc.c: Likewise.
123
1242001-08-31 H.J. Lu <hjl@gnu.org>
125
126 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
127 with bad relocation.
128
1292001-08-31 Eric Christopher <echristo@redhat.com>
130 Jason Eckhardt <jle@redhat.com>
131
132 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
133 mips32_4k and mips64.
134 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
135 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
136 * bfd/cpu-mips.c: Ditto.
137 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
138 * bfd/bfd-in2.h: Regenerate.
139
1402001-08-31 Jakub Jelinek <jakub@redhat.com>
141
142 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
143 value into R_ALPHA_RELATIVE's addend.
144 (elf64_alpha_finish_dynamic_symbol): Likewise.
145
1462001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
147
148 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
149 recomputed addend during relocatable link if not USE_REL.
150
151 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
152 error.
153
1542001-08-30 H.J. Lu <hjl@gnu.org>
155
156 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
157 2 changes.
158 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
159 relocations for weak definitions.
160
1612001-08-30 H.J. Lu <hjl@gnu.org>
162
163 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
164 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
165 * Makefile.in: Rebuild.
166
1672001-08-30 H.J. Lu <hjl@gnu.org>
168
169 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
170 dynamic relocation for undefined weak symbols when creating
171 executables. Check h->root.root.type, instead of h->root.type.
172
1732001-08-29 Joel Sherrill <joel@OARcorp.com>
174
175 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
176 default from coff to elf.
177
1782001-08-29 Jeff Law <law@redhat.com>
179
180 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
181 relocations.
182 (h8_reloc_map): Similarly.
183 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
184 Add support for PC relative relocations.
185
186 * elf32-h8300.c: Put all prototypes together.
187 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
188 (elf32_h8_final_link_relocate): New function for linker.
189 (elf32_h8_relocate_section): Similarly.
190 (elf_backend_relocate_section): Define.
191
192 * cpu-h8300.c (h8300_scan, compatible): Prototype.
193 (h8300_scan): Handle architecture:machine encodings typically
194 found in linker scripts.
195 * elf.c (prep_headers): Do not try to do H8 machine recognition
196 here.
197 * elf32-h8300.c: Add some missing prototypes.
198 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
199 (elf32_h8_object_p): Similarly.
200
2012001-08-29 Tom Rix <trix@redhat.com>
202
203 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
204 does not follow a XTY_SD.
205
2062001-08-29 Alan Modra <amodra@bigpond.net.au>
207
208 * targmatch.sed: Delete case statements.
209 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
210 aix4.3 and above.
211
212Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
213
214 * Makefile.am (elf32-h8300.lo): New target.
215 * config.bfd (h8300*-*-elf): New case.
216 * configure.in (bfd_elf32_h8300_vec): New case.
217 * elf.c (prep_headers): Add case for bfd_arch_h8300.
218 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
219 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
220 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
221 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
222 * elf32-h8300.c: New file.
223 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
224
2252001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
226
227 * sparclynx.c: Add missing prototypes.
228 * coff-mcore.c: Add missing prototypes.
229 * elf32-pj.c: Add missing prototypes.
230 * nlm32-sparc.c: Add missing prototypes.
231 * oasys.c: Add missing prototypes.
232 * pdp11.c: Add missing prototypes.
233 * pe-mips.c: Add missing prototypes.
234 * riscix.c: Add missing prototypes.
235
2362001-08-27 Daniel Jacobowitz <drow@mvista.com>
237
238 * elf32-i386.c: Add missing prototypes.
239 * elf32-ppc.c: Likewise.
240 * elf32-sh-lin.c: Likewise.
241 * elfarm-nabi.c: Likewise.
242
2432001-08-27 Daniel Jacobowitz <drow@mvista.com>
244
245 * elf32-i386.c (elf_i386_grok_prstatus): New function.
246 (elf_i386_grok_psinfo): New function.
247 (elf_backend_grok_prstatus): Define.
248 (elf_backend_grok_psinfo): Likewise.
249 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
250 (ppc_elf_grok_psinfo): New function.
251 (elf_backend_grok_prstatus): Define.
252 (elf_backend_grok_psinfo): Likewise.
253 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
254 (elf32_shlin_grok_psinfo): New function.
255 (elf_backend_grok_prstatus): Define.
256 (elf_backend_grok_psinfo): Likewise.
257 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
258 (elf32_arm_nabi_grok_psinfo): New function.
259 (elf_backend_grok_prstatus): Define.
260 (elf_backend_grok_psinfo): Likewise.
261
2622001-08-27 H.J. Lu <hjl@gnu.org>
263
264 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
265 sanity check.
266 (mips_elf_calculate_relocation): Create dynamic relocation for
267 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
268 bit is not set.
269
2702001-08-27 H.J. Lu <hjl@gnu.org>
271
272 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
273 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
274 (_bfd_elf32_mips_grok_prstatus): Likewise.
275 (_bfd_elf32_mips_grok_psinfo): Likewise.
276 (_bfd_mips_elf_hide_symbol): Make it static and cast to
277 `struct mips_elf_link_hash_entry *'.
278 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
279
2802001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
281
282 * mipsbsd.c: Add missing prototypes.
283 * hp300hpux.c: Add missing prototypes.
284 * i386aout.c: Add missing prototypes.
285 * i386lynx.c: Add missing prototypes.
286 * i386mach3.c: Add missing prototypes.
287 * i386msdos.c: Add missing prototypes.
288 * i386os9k.c: Add missing prototypes.
289
2902001-08-27 Linus Nordberg <linus@swox.se>
291 Torbjorn Granlund <tege@swox.com>
292 Staffan Ulfberg <staffanu@swox.se>
293 Alan Modra <amodra@bigpond.net.au>
294
295 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
296 targ64_selvecs for 32 bit powerpc targets.
297 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
298 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
299 Run "make dep-am".
300 * Makefile.in: Regenerate.
301 * configure.in: Add elf64_powerpc vecs.
302 * configure: Regenerate.
303 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
304 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
305 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
306 * elf64-ppc.c: New file.
307 * reloc.c: Add powerpc64 relocs.
308 * libbfd.h: Regenerate.
309 * bfd-in2.h: Regenerate.
310
3112001-08-27 Andreas Schwab <schwab@suse.de>
312
313 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
314 reloc is against read-only section.
315 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
316 looking up section names for DT_TEXTREL.
317 (elf32_m68k_reloc_type_class): New function.
318 (elf_backend_reloc_type_class): Define.
319
3202001-08-27 Andreas Jaeger <aj@suse.de>
321
322 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
323 reloc is against read-only section.
324 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
325 looking up section names for DT_TEXTREL.
326 (elf_s390_reloc_type_class): New.
327 (elf_backend_reloc_type_class): Define.
328
329 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
330 reloc is against read-only section.
331 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
332 looking up section names for DT_TEXTREL.
333 (elf_s390_reloc_type_class): New.
334 (elf_backend_reloc_type_class): Define.
335
336 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
337 is against read-only section.
338 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
339 looking up section names for DT_TEXTREL.
340 (ppc_elf_reloc_type_class): New.
341 (elf_backend_reloc_type_class): Define.
342
3432001-08-26 Andreas Jaeger <aj@suse.de>
344
345 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
346 reloc is against read-only section.
347 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
348 looking up section names for DT_TEXTREL.
349 (elf_cris_reloc_type_class): New.
350 (elf_backend_reloc_type_class): Define.
351
352 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
353 against read-only section.
354 (elf_backend_reloc_type_class): Define.
355 (sh_elf_reloc_type_class): New.
356 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
357 looking up section names for DT_TEXTREL.
358
359 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
360 reloc is against read-only section.
361 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
362 looking up section names for DT_TEXTREL.
363 (elf32_arm_reloc_type_class): New.
364 (elf_backend_reloc_type_class): Define.
365
3662001-08-25 Andreas Jaeger <aj@suse.de>
367
368 * oasys.c: Add missing prototypes.
369
370 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
371 attribute for parameter.
372 * elf.c (_bfd_elf_reloc_type_class): Likewise.
373
374 * versados.c (get_4): Make static.
375 (get_10): Make static.
376 Add missing prototypes.
377 (process_esd): Fix call to versados_new_symbol.
378
3792001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
380
381 * coff-a29k.c: Add missing prototypes.
382 * coff-apollo.c: Add missing prototypes.
383 * coff-arm.c: Add missing prototypes.
384 * coff-i860.c: Add missing prototypes.
385 * coff-rs6000.c: Add missing prototypes.
386 * coff-tic80.c: Add missing prototypes.
387 * elf-m10200.c: Add missing prototypes.
388 * elf-m10300.c: Add missing prototypes.
389 * elf32-arm.h: Add missing prototypes.
390 * elf32-d10v.c: Add missing prototypes.
391 * elf32-m32r.c: Add missing prototypes.
392 * elf32-mcore.c: Add missing prototypes.
393 * elf32-openrisc.c: Add missing prototypes.
394 * elf32-sh.c: Add missing prototypes.
395 * elf32-sparc.c: Add missing prototypes.
396 * elf32-v850.c: Add missing prototypes.
397 * elfarm-nabi.c: Add missing prototypes.
398 * elfarm-oabi.c: Add missing prototypes.
399
4002001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
401
402 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
403 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
404
4052001-08-24 H.J. Lu <hjl@gnu.org>
406
407 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
408 hash structure.
409
4102001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
411
412 * elf-bfd.h (elf_hash_table): Revert definition.
413 (is_elf_hash_table): New macro.
414 * elflink.h (elf_link_add_object_symbols): Test
415 is_elf_hash_table before accessing ELF only fields in hash
416 structure.
417 (elf_link_create_dynamic_sections): Fail if not using an ELF
418 hash structure.
419 (elf_add_dynamic_entry): Fail if not using an ELF hash
420 structure.
421 (elf_link_record_local_dynamic_symbol): Fail if not using an
422 ELF hash structure.
423 (size_dynamic_sections): Fail if not using an ELF hash
424 structure.
425 (elf_adjust_dynamic_symbol): Fail if not using an ELF
426 hash structure.
427 (elf_bfd_final_link): Fail if not using an ELF hash
428 structure.
429
4302001-08-24 H.J. Lu <hjl@gnu.org>
431
432 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
433 table is not an ELF linker hash table.
434
435 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
436 table type to bfd_link_elf_hash_table.
437
438 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
439 the last change.
440
441 * linker.c (_bfd_link_hash_table_init): Set the linker hash
442 table type to bfd_link_generic_hash_table.
443
4442001-08-24 Alexandre Oliva <aoliva@redhat.com>
445
446 * bfd.c (bfd_alt_mach_code): New function.
447 * bfd-in2.h: Rebuilt.
448
4492001-08-24 Alexandre Oliva <aoliva@redhat.com>
450
451 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
452 `type' field in the hash entry when deciding whether to follow a
453 link.
454
4552001-08-24 Jakub Jelinek <jakub@redhat.com>
456
457 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
458 last.
459 (elf_link_sort_relocs): Adjust accordingly.
460
461 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
462 (elf64_alpha_check_relocs): Set it if section this reloc is against
463 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
464 read-only section.
465 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
466 is is against read-only section.
467 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
468 check section names.
469 (elf64_alpha_reloc_type_class): New.
470 (elf_backend_reloc_type_class): Define.
471
4722001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
473
474 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
475 by bfd_malloc().
476
4772001-08-23 Andreas Jaeger <aj@suse.de>
478
479 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
480 the reloc is against read-only section.
481 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
482 of looking up section names for DT_TEXTREL.
483 (elf64_x86_64_reloc_type_class): New.
484 (elf_backend_reloc_type_class): Define.
485
4862001-08-23 H.J. Lu <hjl@gnu.org>
487
488 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
489 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
490
491 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
492 bfd_print_symbol_vandf.
493 * coffgen.c (coff_print_symbol): Likewise.
494 * elf.c (bfd_elf_print_symbol): Likewise.
495 * ieee.c (ieee_print_symbol): Likewise.
496 * nlmcode.h (nlm_print_symbol): Likewise.
497 * oasys.c (oasys_print_symbol): Likewise.
498 * pdp11.c (NAME(aout,print_symbol)): Likewise.
499 * som.c (som_print_symbol): Likewise.
500 * srec.c (srec_print_symbol): Likewise.
501 * tekhex.c (tekhex_print_symbol): Likewise.
502 * versados.c (versados_print_symbol): Likewise.
503 * vms.c (vms_print_symbol): Likewise.
504
505 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
506 with bfd_fprintf_vma.
507 (bfd_elf_print_symbol): Likewise.
508 * syms.c (bfd_print_symbol_vandf): Likewise.
509
5102001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
511
512 * aoutf1.h (sunos_write_object_contents): Silence compile time
513 warning.
514 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
515
516 * bout.c: Add missing function prototypes. Fix formatting.
517 * coff-z8k.c: Add missing function prototypes. Fix formatting.
518 * coff-w65.c: Add missing function prototypes. Fix formatting.
519 * coff-h8500.c: Add missing function prototypes. Fix formatting.
520 * coff-h8300.c: Add missing function prototypes. Fix formatting.
521 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
522 * coff-tic30.c: Add missing function prototypes. Fix formatting.
523 * coff-m68k.c: Add missing function prototypes. Fix formatting.
524 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
525 * coff-sh.c: Add missing function prototypes. Fix formatting.
526
5272001-08-23 Jakub Jelinek <jakub@redhat.com>
528
529 * elf-bfd.h (enum elf_reloc_type_class): New.
530 (struct elf_backend_data): Add elf_backend_reloc_type_class.
531 (_bfd_elf_reloc_type_class): New.
532 * elfxx-target.h (elf_backend_reloc_type_class): Define.
533 (elfNN_bed): Add elf_backend_reloc_type_class.
534 * elf.c (_bfd_elf_reloc_type_class): New.
535 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
536 is against read-only section.
537 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
538 looking up section names for DT_TEXTREL.
539 (elf_i386_reloc_type_class): New.
540 (elf_backend_reloc_type_class): Define.
541 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
542 reloc is against read-only section.
543 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
544 looking up section names for DT_TEXTREL.
545 (elf32_sparc_reloc_type_class): New.
546 (elf_backend_reloc_type_class): Define.
547 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
548 reloc is against read-only section.
549 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
550 looking up section names for DT_TEXTREL.
551 (sparc64_elf_reloc_type_class): New.
552 (elf_backend_reloc_type_class): Define.
553 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
554 (elfNN_ia64_hash_table_create): Clear ia64_info.
555 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
556 section.
557 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
558 instead of looking up section names for DT_TEXTREL.
559 (elfNN_ia64_reloc_type_class): New.
560 (elf_backend_reloc_type_class): Define.
561 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
562 (struct elf_link_sort_rela): New.
563 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
564 (elf_bfd_final_link): Call elf_link_sort_relocs.
565 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
566 necessary.
567
5682001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
569
570 * configure.in (x86-bsdi): No corefile support.
571 * configure: Regenerate.
572
5732001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
574
575 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
576 comma.
577
5782001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
579
580 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
581 the alignment of dwarf2 linkonce sections to 0.
582 * coff-sto32.c: Likewise.
583
5842001-08-20 Andreas Jaeger <aj@suse.de>
585
586 * coff-sparc.c: Add missing prototypes.
587 * elf32-s390.c: Likewise.
588 * elf32-i960.c: Likewise.
589 * aout-target.h: Likewise.
590
5912001-08-20 H.J. Lu <hjl@gnu.org>
592
593 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
594 (elf_num_section_syms): New for num_section_syms.
595
596 * elf.c (elf_map_symbols): Set num_section_syms.
597 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
598 the section symbol index.
599
6002001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
601
602 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
603 select the generic has table creator. All elf backends need elf
604 specific fields in the hash table.
605
6062001-08-20 Alan Modra <amodra@bigpond.net.au>
607
608 * archive.c (offsetof): Remove define.
609 * elf.c: Likewise.
610 * oasys.c: Likewise
611 * sysdep.h (offsetof): Define.
612
6132001-08-17 Alan Modra <amodra@bigpond.net.au>
614
615 * bfd.c (bfd_get_gp_size): Return an unsigned int.
616 (bfd_set_gp_size): Make param unsigned.
617 * bfd-in2.h: Regenerate.
618 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
619 than calling bfd_get_gp_size.
620 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
621 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
622
6232001-08-17 Alan Modra <amodra@bigpond.net.au>
624
625 * linker.c (default_fill_link_order): Handle four byte fill value.
626
6272001-08-17 Alan Modra <amodra@bigpond.net.au>
628
629 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
630 prototype.
631 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
632
633 * elf64-mips.c (UNUSED_RELOC): Define.
634 (mips_elf64_howto_table_rel): Use it.
635 (mips_elf64_howto_table_rela): Here too.
636 (mips_elf64_write_relocs): Fix signed/unsigned warning.
637
638 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
639 silence warning.
640 * coffgen.c (coff_print_symbol): Fix warnings.
641 (coff_find_nearest_line): Likewise.
642 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
643 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
644 * format.c (bfd_check_format_matches): Likewise.
645 (bfd_set_format): Likewise.
646 * coff-ia64.c: Add missing prototypes.
647 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
648 signed to silence warnings.
649 (elf64_alpha_relocate_section): Likewise.
650 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
651 (elf64_alpha_add_symbol_hook): Likewise.
652 (elf64_alpha_final_link): Likewise.
653 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
654 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
655 (elf64_alpha_size_got_sections): Likewise.
656 * elfxx-ia64.c: Add missing prototypes.
657 (elfNN_ia64_relocate_section): Fix warning.
658 (elfNN_ia64_unwind_entry_compare): Make params const.
659
6602001-08-17 Alan Modra <amodra@bigpond.net.au>
661
662 * config.bfd (targ64_selvecs): New.
663 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
664
665 * bfd-in.h (BFD_VERSION): Remove wrong comment.
666 (BFD_DEFAULT_TARGET_SIZE): New.
667 (BFD_ARCH_SIZE): Comment.
668 * configure.in (target_size): New. Set instead of target64 in
669 selvecs case statement. Set target64 from it.
670 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
671 * bfd-in2.h: Regenerate.
672 * configure: Regenerate.
673
6742001-08-17 Alan Modra <amodra@bigpond.net.au>
675
676 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
677 (bfd_errmsgs): Add corresponding message.
678 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
679 finding an archive that contains different format object files.
680 Return bfd_error_wrong_object_format for this case.
681 * format.c: Formatting fixes. s/CONST/const/.
682 (bfd_check_format_matches): Accept archives that give
683 bfd_error_wrong_object_format if no full match is found. Tidy
684 code handling matching_vector. Don't return a pointer to freed
685 memory in `matching'. Handle ambiguous matches as for partial
686 archive matches.
687 * bfd-in2.h: Regenerate.
688
6892001-08-15 Alan Modra <amodra@bigpond.net.au>
690
691 * libieee.h (common_header_type): Add last_byte field.
692
693 * ieee.c: Add missing prototypes. Some format fixes.
694 (struct output_buffer_struct): Move for availability to prototypes.
695 (ieee_part_after): New function.
696 (ieee_slurp_debug): Use it here.
697 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
698 ieee_part_after to set last_byte to one past end of current part.
699 Update callers.
700 (ieee_pos): Pass in ieee_data_struct rather than bfd.
701 Update callers.
702 (parse_expression): Don't go beyond the end of the current part.
703 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
704 (ieee_get_symtab_upper_bound, ieee_get_symtab,
705 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
706 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
707 ieee_set_section_contents, ieee_write_object_contents,
708 ieee_make_empty_symbol): Make static.
709 (ieee_archive_p): Correct comments regarding bfd_read.
710 (ieee_object_p): Similarly.
711 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
712 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
713 input_bfd, output_bfd, output_buffer.
714 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
715 do_with_relocs, ie. as a symbol for relocatable files.
716 (ieee_vec): Add comments showing functions referenced by macros.
717
7182001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
719
720 * aout-tic30.c: Add missing prototypes. Fix formatting.
721 * aout-ns32k.c: Add missing prototypes. Fix formatting.
722 * peXXigen.c: Add missining prototypes. Fix formatting.
723 * aout-adobe.c: Add missining prototypes. Fix formatting.
724
7252001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
726
727 * elf32-v850.c: Add missing function prototypes.
728 Fix some formatting.
729
730 * cpu-v850.c: Add missing function prototype.
731 Fix some formatting.
732
7332001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
734
735 * elf-bfd.h (struct elf_backend_data): Add new fields
736 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
737 (bfd_elf_sprintf_vma): Rename function prototype to
738 '_bfd_elf_sprintf_vma'.
739 (bfd_elf_fprintf_vma): Rename function prototype to
740 '_bfd_elf_fprintf_vma'.
741 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
742 directly, instead indirect via the elf_backend_data structure.
743 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
744 instead indirect via the elf_backend_data structure.
745 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
746 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
747 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
748 already defined.
749 (elf_backend_fprintf_vma): Initialise if not already defined.
750 (struct elf_backend_data): Initialise the
751 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
752
7532001-08-10 Andreas Jaeger <aj@suse.de>
754
755 * elf64-sparc.c: Add missing prototypes.
756 * elf32-cris.c: Likewise.
757 * elf32-i370.c: Likewise.
758 * elf64-hppa.c: Likewise.
759 * elf64-s390.c: Likewise.
760
7612001-08-10 Andreas Jaeger <aj@suse.de>
762
763 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
764 Add prototypes where needed.
765
7662001-08-10 H.J. Lu <hjl@gnu.org>
767
768 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
769 (bfd_fprintf_vma): Likewise.
770
7712001-08-10 H.J. Lu <hjl@gnu.org>
772
773 * bfd.c (bfd_sprintf_vma): Don't return void.
774 (bfd_fprintf_vma): Likewise.
775
7762001-08-10 Andreas Jaeger <aj@suse.de>
777
778 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
779 to build warnings.
780 * configure: Regenerate.
781
7822001-08-10 Alan Modra <amodra@bigpond.net.au>
783
784 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
785 warning if not BFD64. Add braces so emacs auto format works.
786 (bfd_elf_fprintf_vma): Likewise.
787
788 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
789 of _xcoff_swap_ld*.
790 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
791 param to agree with libxcoff.h.
792 (xcoff_swap_ldhdr_out): Likewise.
793 (xcoff_swap_ldsym_in): Likewise.
794 (xcoff_swap_ldsym_out): Likewise.
795 (xcoff_swap_ldrel_in): Likewise.
796 (xcoff_swap_ldrel_out): Likewise.
797 (xcoff_create_csect_from_smclas): Likewise.
798 * coff64-rs6000.c: Add missing prototypes.
799 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
800 with libxcoff.h.
801 (xcoff64_swap_ldhdr_out): Likewise.
802 (xcoff64_swap_ldsym_in): Likewise.
803 (xcoff64_swap_ldsym_out): Likewise.
804 (xcoff64_swap_ldrel_in): Likewise.
805 (xcoff64_swap_ldrel_out): Likewise.
806 (xcoff64_ppc_relocate_section): Make static.
807 (xcoff64_slurp_armap): Likewise.
808 (xcoff64_archive_p): Likewise.
809 (xcoff64_openr_next_archived_file): Likewise.
810 (xcoff64_sizeof_headers): Likewise.
811 (xcoff64_is_lineno_count_overflow): Likewise.
812 (xcoff64_is_reloc_count_overflow): Likewise.
813 (xcoff64_loader_symbol_offset): Likewise.
814 (xcoff64_loader_reloc_offset): Likewise.
815 * elf64-gen.c: Add missing prototypes.
816
8172001-08-09 H.J. Lu <hjl@gnu.org>
818
819 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
820 (bfd_elf_fprintf_vma): Likewise.
821
8222001-08-09 H.J. Lu <hjl@gnu.org>
823
824 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
825 to ...
826 * elf-bfd.h: Here.
827 * bfd-in2.h: Regenerated.
828
8292001-08-09 H.J. Lu <hjl@gnu.org>
830
831 * bfd-in.h (bfd_sprintf_vma): New prototype.
832 (bfd_fprintf_vma): Likewise.
833 (bfd_elf_sprintf_vma): Likewise.
834 (bfd_elf_fprintf_vma): Likewise.
835 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
836 * bfd-in2.h: Regenerated.
837
838 * bfd.c (bfd_sprintf_vma): New. Defined.
839 (bfd_fprintf_vma): Likewise.
840
841 * elf.c (bfd_elf_sprintf_vma): New. Defined.
842 (bfd_elf_fprintf_vma): Likewise.
843
8442001-08-09 Alan Modra <amodra@bigpond.net.au>
845
846 * coff-rs6000.c: Add missing prototypes.
847 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
848 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
849 xcoff_loader_reloc_offset): Make static.
850 * dwarf1.c: Add missing prototypes.
851 * dwarf2.c: Add missing prototypes.
852 (struct abbrev_info): Move definition.
853 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
854 * elf.c: Add missing prototypes.
855 * elf32-gen.c: Likewise.
856 * elf32-i386.c: Likewise.
857 * elf32-ppc.c: Likewise.
858 (ppc_elf_sort_rela): Use PTR instead of "void *".
859 * elflink.h: Add missing prototypes. Formatting fixes.
860 * merge.c: Add missing prototypes.
861 (last4_eq): Use PTR instead of "void *".
862 (last_eq): Likewise.
863 * syms.c: Add missing prototypes.
864
8652001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
866
867 * bfd.c: Fix formatting.
868 * bfd-in2.h: Regenerate.
869
8702001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
871
872 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
873 true (this target uses REL relocations) and 'pcrel_offset' to
874 false (the PC is implied, not stored in the offset).
875
8762001-08-08 Alan Modra <amodra@bigpond.net.au>
877
878 1999-10-19 Linus Nordberg <linus@swox.se>
879 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
880 * elfxx-target.h (elf_backend_want_got_sym): Define.
881 (elfNN_bed): Add elf_backend_want_got_sym.
882 * elflink.c (_bfd_elf_create_got_section): Define
883 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
884
8852001-08-08 Alexandre Oliva <aoliva@redhat.com>
886
887 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
888 (find_rela_addend): New function.
889 (parse_comp_unit): Call it to find the abbrev offset addend.
890 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
891 members of dwarf2_debug as debugging information is read.
892
8932001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
894
895 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
896 targets as well as sh-pe.
897
8982001-08-03 Ben Harris <bjh21@netbsd.org>
899
900 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
901 reloc from start of section when computing value for R_ARM_REL32
902 reloc.
903
9042001-08-03 Alan Modra <amodra@bigpond.net.au>
905
906 From H.J. Lu <hjl@gnu.org>
907 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
908 keep relocs for undefined syms if there are no dynamic sections in
909 executable.
910 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
911
9122001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
913
914 * cofflink.c (coff_link_check_ar_symbols): also search for
915 __imp__symbol as well as _symbol.
916 * linker.c (_bfd_generic_link_add_archive_symbols): also
917 search for __imp__symbol as well as _symbol.
918
9192001-08-01 Adam Nemet <anemet@lnxw.com>
920
921 * elf.c (elf_sort_sections): Return zero only as the last step.
922
9232001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
924
925 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
926 ARM_COFF_BUGFIX.
927 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
928 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
929 ARM_COFF_BUGFIX.
930
9312001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
932
933 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
934 to match corresponding bfd_coff_backend data member.
935
9362001-07-24 Alan Modra <amodra@bigpond.net.au>
937
938 * Makefile.am: Update dependencies with "make dep-am".
939 * Makefile.in: Regenerate
940
9412001-07-15 H.J. Lu <hjl@gnu.org>
942
943 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
944 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
945 * Makefile.in: Regenerate.
946
9472001-07-11 H.J. Lu <hjl@gnu.org>
948
949 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
950 flags when creating the reloc section if the ALLOC flag in the
951 source section is set.
952
9532001-07-11 Steve Ellcey <sje@cup.hp.com>
954
955 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
956 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
957 * bfd-in2.h: Regenerate.
958 * libbfd.h: Regenerate.
959 * elfxx-ia64.c (ia64_howto_table): Define how to handle
960 new relocations.
961 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
962 (elfNN_ia64_check_relocs): Likewise.
963 (elfNN_ia64_install_value): Likewise.
964 (elfNN_ia64_relocate_section): Likewise.
965
9662001-07-11 Jakub Jelinek <jakub@redhat.com>
967
968 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
969 R_SPARC_UA64.
970 (elf32_sparc_check_relocs): Likewise.
971 Only create .rela section for alloced sections in shared libraries.
972 (elf32_sparc_relocate_section): Likewise.
973 Remove redundant check.
974 Optimize unaligned reloc usage.
975 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
976 check.
977
9782001-07-11 H.J. Lu <hjl@gnu.org>
979
980 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
981 ALLOC|LOAD flags as the source section for debugging sections
982 when creating the reloc section.
983
9842001-07-05 Jim Wilson <wilson@redhat.com>
985
986 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
987 the section of the bigger symbol.
988
989 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
990
9912001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
992
993 * peicode.h (coff_swap_scnhdr_in): For sections containing
994 uninitialised data, only set their size to s_paddr if this does
995 not reset their size to zero. MS's latest compilers will set
996 s_paddr to zero.
997
9982001-07-04 H.J. Lu <hjl@gnu.org>
999
1000 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1001 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1002 bfd_mach_mips5000.
1003
10042001-07-03 Mark Elbrecht <snowball3@softhome.net>
1005
1006 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1007
1008 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1009 sections being discarded.
1010
10112001-06-30 Alan Modra <amodra@bigpond.net.au>
1012
1013 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1014 instead of _bfd_elfcore_section_from_phdr.
1015 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1016 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1017 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1018 (elfcore_grok_prstatus): Likewise.
1019 (elfcore_grok_lwpstatus): Likewise.
1020 (bfd_get_elf_phdr_upper_bound): Likewise.
1021 (elfcore_make_note_pseudosection): Formatting.
1022 (_bfd_elfcore_strndup): Formatting.
1023 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1024 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1025
10262001-06-29 Daniel Jacobowitz <drow@mvista.com>
1027
1028 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1029 and _bfd_elfcore_strndup.
1030 (struct elf_backend_data): Add elf_backend_grok_prstatus
1031 and elf_backend_grok_psinfo.
1032 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1033 (elfcore_grok_prstatus): Use it.
1034 (elfcore_make_note_pseudosection): Likewise.
1035 (elfcore_strndup): Rename to...
1036 (_bfd_elfcore_strndup): Here, and make global.
1037 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1038 (elfcore_grok_note): Call elf_backend_grok_prstatus
1039 and elf_backend_grok_psinfo if available.
1040 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1041 (_bfd_elf32_mips_grok_psinfo): New function.
1042 (elf_backend_grok_prstatus): Define.
1043 (elf_backend_grok_psinfo): Define.
1044 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1045 (elf_backend_grok_psinfo): Likewise.
1046 (elfNN_bed): Include elf_backend_grok_prstatus and
1047 elf_backend_grok_psinfo.
1048
10492001-06-29 H.J. Lu <hjl@gnu.org>
1050
1051 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
1052 hplink->sgot is NULL before filling GOT. Check if hplink->splt
1053 is NULL before filling PLT.
1054
10552001-06-29 Alan Modra <amodra@bigpond.net.au>
1056
1057 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1058
10592001-06-27 Alan Modra <amodra@bigpond.net.au>
1060
1061 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
1062 here..
1063 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
1064 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1065 after gc has run.
1066
1067 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
1068 (IS_ABSOLUTE_RELOC): Define.
1069 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
1070 (hppa_link_hash_newfunc): Always init it.
1071 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
1072 create COPY relocs only when the reloc is in a read-only section.
1073 Instead, allocate space for a dynamic reloc to reference the
1074 library symbol directly. Keep track of space we allocate using
1075 relocs_entries.
1076 (hppa_discard_copies): Delete, and move code to..
1077 (allocate_plt_and_got): ..here. Rename to
1078 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1079 relocs for non-shared link.
1080 (elf32_hppa_size_dynamic_sections): Update calls to above.
1081 (elf32_hppa_relocate_section): Write out the dynamic relocs used
1082 in lieu of COPY relocs.
1083
1084 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
1085 here..
1086 (elf_i386_adjust_dynamic_symbol): ..nor here..
1087 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1088 after gc has run.
1089 (elf_i386_size_dynamic_sections): Fix a comment.
1090 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1091 involved in writing reloc out.
1092
10932001-06-25 Alan Modra <amodra@bigpond.net.au>
1094
1095 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
1096 Ensure syms are dynamic if we might be emitting a reloc.
1097 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
1098 for undefweak or undefined syms..
1099 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
1100
1101 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
1102 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
1103 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
1104 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
1105
11062001-06-24 H.J. Lu <hjl@gnu.org>
1107
1108 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
1109 strncasecmp/strcasecmp instead of strncmp/strcmp.
1110
11112001-06-23 H.J. Lu <hjl@gnu.org>
1112
1113 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
1114 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
1115 in the regular object file and treat the weak definition as
1116 the normal one.
1117
11182001-06-23 Alan Modra <amodra@bigpond.net.au>
1119
1120 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
1121 unresolved_reloc test to exclude cases where we use "relocation"
1122 before setting it to point into the .got. Reinstate fudge for
1123 unresolved relocs in debugging sections.
1124
1125 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
1126 complicated tests for unresolvable relocs with a simple direct
1127 scheme using "unresolved_reloc" var.
1128
1129 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
1130 elf_i386_dyn_relocs. Update comment.
1131 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
1132 dyn_relocs.
1133 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
1134 others to aborts.
1135 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
1136 abort.
1137 (elf_i386_size_dynamic_sections): Likewise.
1138 (elf_i386_finish_dynamic_symbol): Likewise.
1139 (elf_i386_finish_dynamic_sections): Likewise.
1140 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
1141 handling code.
1142
1143 Avoid creating COPY relocs if possible.
1144 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
1145 which .got created. Mark symbols used by R_386_32 and R_386_PC32
1146 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
1147 reloc is in a read-only section. Instead, allocate space for a
1148 dynamic reloc to reference the library symbol directly. Keep
1149 track of space we allocate using pcrel_relocs_copied.
1150 (discard_copies): Delete, and move code to ..
1151 (allocate_plt_and_got): ..here. Rename to
1152 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1153 relocs for non-shared link.
1154 (elf_i386_size_dynamic_sections): Update calls to above functions.
1155 (elf_i386_relocate_section): Write out the dynamic relocs. Add
1156 more ugly logic to avoid "unresolvable relocation" error. Use
1157 htab shortcut in place of elf_hash_table macro.
1158 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
1159 not always be created now.
1160
11612001-06-20 Bo Thorsen <bo@suse.co.uk>
1162
1163 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
1164 shared libraries.
1165
11662001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1167
1168 * configure.host (mips64-*-linux): Reformat.
1169
11702001-06-21 Alan Modra <amodra@bigpond.net.au>
1171
1172 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
1173 allocate local .got space. Use shortcuts from hash table for .got
1174 and .plt rather than comparing section names.
1175 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
1176 adjusting index into local_got_refcounts to document what we are
1177 really doing.
1178 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
1179 Tidy .got and .plt error checking.
1180
11812001-06-20 Catherine Moore <clm@redhat.com>
1182
1183 * elf-bfd.h (struct elf_backend_data):
1184 elf_backend_emit_relocs: New field: Function for emitting
1185 relocs.
1186 elf_backend_count_relocs: New field: Function for determining
1187 the number of relocs to be emitted.
1188 * elfxx-target.h: Provide default (NULL) values for
1189 elf_backend_emit_relocs and elf_backend_count_relocs.
1190 * elflink.h (elf_link_size_reloc_section): Make the hash table
1191 big enough to hold the relocs counted by either reloc_count or
1192 o->reloc_count.
1193 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
1194 should be emitted, either because of a command line option
1195 stored in the info structure or because the target provides a
1196 special reloc emitting function.
1197 If the target provides a reloc counting function use it,
1198 unless performing a relocatable link or emitting all relocs.
1199 Also set the SEC_RELOC flag on any output section which will
1200 contain relocs.
1201 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
1202 should be emitted, either because of a command line option
1203 stored in the info structure or because the target provides a
1204 special reloc emitting function.
1205 If the target provides a reloc emitting function, use it,
1206 unless performing a relocatable link or emitting all relocs.
1207
12082001-06-20 H.J. Lu <hjl@gnu.org>
1209
1210 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
1211 allocate local .got space.
1212
12132001-06-19 Andreas Jaeger <aj@suse.de>
1214
1215 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
1216 dynamic symbols.
1217
12182001-06-18 Hans-Peter Nilsson <hp@axis.com>
1219
1220 * elflink.h (struct elf_assign_sym_version_info): Remove member
1221 export_dynamic. All users changed to use info member.
1222 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
1223 export_dynamic, instead use member in parameter info.
1224 * bfd-in.h (bfd_elf32_size_dynamic_sections,
1225 bfd_elf64_size_dynamic_sections): Update prototype.
1226 * bfd-in2.h: Regenerate.
1227
12282001-06-18 H.J. Lu <hjl@gnu.org>
1229
1230 * elflink.h (elf_info_failed): Add a new field, verdefs.
1231 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
1232 elf_export_symbol.
1233 (elf_export_symbol): Check eif->verdefs to decide if a symbol
1234 should be exported.
1235
12362001-06-17 H.J. Lu <hjl@gnu.org>
1237
1238 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
1239 readonly_reloc, to record if a relocation in the .rel.dyn
1240 section is against a read-only section.
1241 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
1242 field to false.
1243 (_bfd_mips_elf_check_relocs): Record if there is a relocation
1244 in the .rel.dyn section against a read-only section by setting
1245 DF_TEXTREL or readonly_reloc.
1246 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
1247 it is true.
1248 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
1249 there is a relocation in the .rel.dyn section against a
1250 read-only section.
1251 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
1252 DF_TEXTREL is set.
1253
12542001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1255
1256 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
1257 function. Move flagword result into parameter list. Remove
1258 comment about setting bfd_error_handler to intercept failure
1259 results.
1260 * coffgen.c (make_a_section_from_file): Examine result of
1261 calling bfd_coff_styp_to_sec_flags and pass a failure back to
1262 caller.
1263 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
1264 function. Move flagword result into parameter list.
1265 * libcoff.h: Regenerate.
1266 * libecoff.h: Regenerate.
1267
12682001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
1269
1270 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
1271 section is going to follow it.
1272
12732001-06-12 Catherine Moore <clm@redhat.com>
1274
1275 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
1276 with the file_align entry from elf_backend_data.
1277 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1278 (elf_gc_record_vtentry): Likewise.
1279
12802001-06-10 Alan Modra <amodra@bigpond.net.au>
1281
1282 * elflink.h: Whitespace changes.
1283 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
1284 rather than "unsigned char".
1285 (elf_link_output_relocs): Likewise.
1286 (elf_link_input_bfd): Likewise.
1287 (elf_reloc_link_order): LIkewise.
1288 * elf.c: s/CONST/const/. Whitespace changes.
1289 * elf32-mips.c: Formatting fix.
1290
1291 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
1292 * Makefile.in: Regenerate.
1293 * po/Make-in: Remove trailing tab.
1294
12952001-06-09 Philip Blundell <philb@gnu.org>
1296
1297 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
1298 change.
1299 (elf32_arm_plt_entry): Likewise.
1300
13012001-06-08 H.J. Lu <hjl@gnu.org>
1302
1303 * elf.c (swap_out_syms): Keep names for global section symbols.
1304
13052001-06-07 H.J. Lu <hjl@gnu.org>
1306
1307 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
1308 MIPS-based machines need it.
1309
13102001-06-07 H.J. Lu <hjl@gnu.org>
1311
1312 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
1313 for SGI only.
1314
1315 * config.bfd: Remove ecoff from Linux/mips.
1316
13172001-06-07 Andreas Jaeger <aj@suse.de>
1318
1319 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
1320 assertion.
1321 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
1322 alignment of 8 for .rela sections; handle further relocations.
1323
13242001-06-06 Christian Groessler <cpg@aladdin.de>
1325
1326 * coff-z8k.c: Fix formatting.
1327 Fix howtos: howto->size was always 1.
1328
13292001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1330
1331 * configure.host (mips64*-*-linux*): Define.
1332
13332001-06-05 Alan Modra <amodra@bigpond.net.au>
1334
1335 * elf32-i386.c (elf_i386_discard_copies): Rename to
1336 discard_copies, and use elf_link_hash_entry arg rather than
1337 elf_i386_link_hash_entry.
1338 (elf_i386_link_hash_traverse): Delete.
1339 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
1340 Tidy sizing of dynamic sections.
1341 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
1342 possible .plt entries.
1343 (elf_i386_gc_sweep_hook): Likewise.
1344 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
1345 everything with plt.refcount <= 0.
1346
1347 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
1348 .relgot space here.
1349 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
1350 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
1351 .rel.plt here..
1352 (allocate_plt_and_got): ..instead do it all here. New function.
1353 (elf_i386_size_dynamic_sections): Allocate local .got space and
1354 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
1355 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
1356 rather than gc variety).
1357 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1358 (elf_i386_relocate_section): Use it here and correct handling of
1359 R_386_GOT32. Provide section and offset for "unresolvable
1360 relocation" error message.
1361 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
1362
1363 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
1364 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
1365 (elf_i386_link_hash_table_create): Init them.
1366 (create_got_section): New function.
1367 (elf_i386_create_dynamic_sections): New function.
1368 (elf_backend_create_dynamic_sections): Set to above.
1369 (elf_i386_check_relocs): Use shortcuts from hash table rather than
1370 calling bfd_get_section_by_name.
1371 (elf_i386_gc_sweep_hook): Likewise.
1372 (elf_i386_adjust_dynamic_symbol): Likewise.
1373 (elf_i386_size_dynamic_sections): Likewise.
1374 (elf_i386_relocate_section): Likewise.
1375 (elf_i386_finish_dynamic_sections): Likewise.
1376
1377 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
1378
13792001-06-02 H.J. Lu <hjl@gnu.org>
1380
1381 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
1382 and ELFOSABI_HPUX.
1383 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
1384
13852001-06-02 H.J. Lu <hjl@gnu.org>
1386
1387 * aout-cris.c (MACHTYPE_OK): New. Defined.
1388
13892001-06-02 Hans-Peter Nilsson <hp@axis.com>
1390
1391 * section.c (_bfd_strip_section_from_output): Handle NULL
1392 output_section.
1393
13942001-06-02 H.J. Lu <hjl@gnu.org>
1395
1396 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
1397 rs6000coff64_vec only if BFD64 is defined.
1398 (powerpc64-*-aix*): Enable only if BFD64 is defined.
1399
14002001-06-02 H.J. Lu <hjl@gnu.org>
1401
1402 * coff-ia64.c (ia64coff_object_p): Rewrite with
1403 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
1404
14052001-06-01 Andreas Jaeger <aj@suse.de>
1406
1407 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
1408 relocation, small reformatting.
1409
14102001-05-29 Andreas Jaeger <aj@suse.de>
1411
1412 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
1413 (elf64_x86_64_relocate_section): Likewise.
1414
14152001-05-30 Alan Modra <amodra@one.net.au>
1416
1417 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
1418 millicode. Don't allocate .got and .rela.got space here..
1419 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
1420 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
1421 .rela.plt here..
1422 (hppa_handle_PIC_calls): ..nor here..
1423 (allocate_plt_and_got): ..instead do it all here. New function.
1424 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
1425 call allocate_plt_and_got. No need to zap .got if not dynamic.
1426 (elf32_hppa_final_link): Call regular bfd_final_link instead of
1427 gc_common_final_link.
1428 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1429 (elf32_hppa_relocate_section): Use it here.
1430 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
1431 dynamic_sections_created.
1432 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
1433
14342001-05-28 Andreas Jaeger <aj@suse.de>
1435
1436 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
1437 generic version since we want a hashsize of 4.
1438 (elf_backend_size_info): Likewise.
1439
14402001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1441
1442 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
1443 a zeroing loop.
1444 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
1445 (elf_link_input_bfd): Likewise.
1446 (elf_reloc_link_order): Likewise.
1447 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
1448 relocations correctly.
1449
14502001-05-28 Nicolas Pitre <nico@cam.org>
1451
1452 * elf32-arm.h: fix PLT generation for big endian ARM
1453
14542001-05-28 Alan Modra <amodra@one.net.au>
1455
1456 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
1457 for symbols forced local that need plabels.
1458 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
1459 .plt.rela for local syms if non-shared.
1460 (hppa_build_one_stub): Mask lsb of plt.offset.
1461 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
1462 (clobber_millicode_symbols): Correct comment.
1463 (elf32_hppa_relocate_section): Likewise.
1464 (elf32_hppa_finish_dynamic_symbol): Likewise.
1465
14662001-05-28 Jeff Sturm <jsturm@one-point.com>
1467
1468 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
1469 * bfd-in2.h: Regenerate.
1470 * libbfd.h: Regenerate.
1471 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
1472 and BFD_RELOC_SPARC_UA64 mapping
1473 * elf64-sparc.c: Likewise.
1474
14752001-05-25 H.J. Lu <hjl@gnu.org>
1476
1477 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
1478 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
1479 (coff-rs6000.lo): Remove the old dependency.
1480 * Makefile.in: Rebuild.
1481
1482 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
1483 coff-rs6000.lo.
1484
14852001-05-25 H.J. Lu <hjl@gnu.org>
1486
1487 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
1488 rs6000coff_core_file_matches_executable_p,
1489 rs6000coff_core_file_failing_command and
1490 rs6000coff_core_file_failing_signal only if AIX_CORE is
1491 defined.
1492 (pmac_xcoff_vec): Likewise.
1493 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1494
14952001-05-25 Timothy Wall <twall@redhat.com>
1496
1497 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
1498 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
1499
15002001-05-25 H.J. Lu <hjl@gnu.org>
1501
1502 * bfd-in2.h: Regenerated.
1503 * libcoff.h: Likewise.
1504
15052001-05-25 Alan Modra <amodra@one.net.au>
1506
1507 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
1508 undefined millicode syms in shared libs.
1509 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
1510 (elf32_hppa_check_relocs): Likewise.
1511 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1512 (elf32_hppa_size_dynamic_sections): Likewise.
1513 (elf32_hppa_relocate_section): Likewise.
1514 (elf32_hppa_finish_dynamic_symbol): Likewise.
1515 (elf32_hppa_finish_dynamic_sections): Likewise.
1516
15172001-05-24 Tom Rix <trix@redhat.com>
1518
1519 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
1520 xcoff-target.h not used to define rs6000 or ppc bfd.
1521 * Makefile.in same
1522
1523 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
1524 to 64 bit.
1525
1526 * coff-rs6000.c : Many changes for 64 bit support. Move common
1527 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
1528 and pmac_xcoff_vec
1529
1530 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
1531 linker now supported. Explictly define the rs6000coff64_vec.
1532
1533 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
1534 (coff_print_aux) same
1535 (coff_write_object_contents) same
1536 (coff_slurp_line_table) same
1537
1538 * coffgen.c : (coff_fix_symbol_name) formatting
1539 (coff_mangle_symbols) xcoff 64 bit support
1540 (coff_write_symbol) same
1541 (coff_write_alien_symbol) same
1542 (coff_write_native_symbol) same
1543 (coff_write_symbols) same
1544 (coff_get_symbol_info) same
1545 (bfd_coff_get_syment) same
1546 (coff_print_symbol) same
1547
1548 * config.bfd : add powerpc64-*-aix* target
1549
1550 * libcoff-in.h : formatting
1551
1552 * libcoff.h : move xcoff extern declarations to libxcoff.h
1553
1554 * libxcoff.h : New file
1555
1556 * xcofflink.c : Many changes for xcoff64 support. Move common
1557 structures to include/coff/xcoff.h. Move specific structure to
1558 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
1559 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
1560
1561 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
1562 aix4.2+ -binitfini.
1563
1564 (xcoff_build_ldsyms) : handle special __rtinit symbol.
1565
15662001-05-23 Alexandre Oliva <aoliva@redhat.com>
1567
1568 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1569 s/ENTIRES/ENTRIES/.
1570
15712001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1572
1573 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
1574 * libbfd.h: Regenerate.
1575 * bfd-in2.h: Regenerate.
1576
1577 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
1578 * archures.c (bfd_mach_mips12000): Define.
1579 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
1580 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
1581 support.
1582 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
1583 * bfd-in2.h: Regenerate.
1584 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
1585
15862001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
1587
1588 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
1589 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1590 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1591 that is used by GCC.
1592
15932001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1594
1595 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1596 of entries in a structured section.
1597 * elf.c: Use new macro.
1598 * elf32-i386.c: Use new macro.
1599 * elf32-mips.c: Use new macro.
1600 * elf64-alpha.c: Use new macro.
1601 * elf64-sparc.c: Use new macro.
1602 * elfcode.h: Use new macro.
1603 * elflink.h: Use new macro.
1604
16052001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1606
1607 * bfdint.texi: Replace -oformat with --oformat.
1608
16092001-05-21 Andreas Jaeger <aj@suse.de>
1610
1611 * dwarf2.c (decode_line_info): Fix error message.
1612 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1613 adjust error message.
1614
16152001-05-18 H.J. Lu <hjl@gnu.org>
1616
1617 * elflink.h (elf_link_add_object_symbols): Revert the last
1618 change.
1619
16202001-05-17 Alan Modra <amodra@one.net.au>
1621
1622 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1623 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1624 (hppa_build_one_stub): Add an assert to check plt.offset.
1625
16262001-05-17 H.J. Lu <hjl@gnu.org>
1627
1628 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1629 version definition to basename of the output filename.
1630
16312001-05-17 H.J. Lu <hjl@gnu.org>
1632
1633 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1634 basename of the bfd filename.
1635
16362001-05-16 Alan Modra <amodra@one.net.au>
1637
1638 * section.c (asection): Add linker_has_input field.
1639 (STD_SECTION): Adjust initialization to suit.
1640 * ecoff.c (bfd_debug_section): Likewise.
1641 * bfd-in2.h: Regenerate.
1642
16432001-05-15 Alexandre Oliva <aoliva@redhat.com>
1644
1645 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1646 negative 32-bit operands to 16 operands when the operand is
1647 going to be zero-extended by the modified opcode.
1648
16492001-05-12 Peter Targett <peter.targett@arccores.com>
1650
1651 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1652 name for 'arc5' core versions.
1653 (bfd_arc_arch): Make bfd_mach_arc_6 default.
1654
1655 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1656 architecture.
1657 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1658
16592001-05-11 Jakub Jelinek <jakub@redhat.com>
1660
1661 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1662 sections as well.
1663 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1664 to .gnu.linkonce.t.FOO text section.
1665
16662001-05-11 Jakub Jelinek <jakub@redhat.com>
1667
1668 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1669 fields, change sec into secinfo.
1670 (struct sec_merge_info): Add chain, remove last fields.
1671 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1672 (sec_merge_hash_lookup): If lookup could not use a string only
1673 because it has bad alignment, mark the old string for deletion.
1674 (sec_merge_add): Add secinfo argument. Don't compute entry's
1675 position, instead record the section.
1676 (sec_merge_emit): Update for the sec into secinfo change in
1677 struct sec_merge_hash_entry.
1678 (_bfd_merge_section): Only record the section for merging, defer
1679 putting strings into the hash table.
1680 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1681 _bfd_merge_sections): New functions.
1682 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1683 changes.
1684 * libbfd-in.h (_bfd_merge_sections): Add prototype.
1685 (_bfd_nolink_bfd_merge_sections): Define.
1686 * libbfd.h: Likewise.
1687 (bfd_generic_merge_sections): Add prototype.
1688 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1689 (struct bfd_target): Likewise.
1690 * bfd.c (bfd_merge_sections): Define.
1691 * bfd-in2.h: Rebuilt.
1692 * elf.c (_bfd_elf_merge_sections): New function.
1693 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1694 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1695 * reloc.c (bfd_generic_merge_sections): New function.
1696 * vms.c (vms_bfd_merge_sections): New function.
1697 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1698 * aout-target.h (MY_bfd_merge_sections): Define.
1699 * aout-tic30.c (MY_bfd_merge_sections): Define.
1700 * binary.c (binary_bfd_merge_sections): Define.
1701 * bout.c (b_out_bfd_merge_sections): Define.
1702 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1703 * coffcode.c (coff_bfd_merge_sections): Define.
1704 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1705 * i386msdos.c (msdos_bfd_merge_sections): Define.
1706 * i386os9k.c (os9k_bfd_merge_sections): Define.
1707 * ieee.c (ieee_bfd_merge_sections): Define.
1708 * ihex.c (ihex_bfd_merge_sections): Define.
1709 * nlm-target.h (nlm_bfd_merge_sections): Define.
1710 * oasys.c (oasys_bfd_merge_sections): Define.
1711 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1712 * som.c (som_bfd_merge_sections): Define.
1713 * srec.c (srec_bfd_merge_sections): Define.
1714 * tekhex.c (tekhex_bfd_merge_sections): Define.
1715 * versados.c (versados_bfd_merge_sections): Define.
1716 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1717
17182001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1719
1720 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1721 to be unsigned long, in order to match its use.
1722
17232001-05-10 H.J. Lu <hjl@gnu.org>
1724
1725 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1726 indirect symbols.
1727
17282001-05-09 H.J. Lu <hjl@gnu.org>
1729
1730 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1731 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1732 Remove the unused veriable `dynver'.
1733
17342001-05-08 Ian Lance Taylor <ian@zembu.com>
1735
1736 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1737 NULL or is not COFF.
1738 (coff_i386_rtype_to_howto): Don't dump core if output section
1739 owner is not COFF.
1740
17412001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1742
1743 * ecoff.c (bfd_debug_section): Fix initialization.
1744 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1745 is always a positive integer. Cast away sign mismatch.
1746 * elf32-mips.c: Fix misleading comment and typo.
1747 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1748 correct data type.
1749 * elflink.c: Fix typo.
1750 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1751 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1752
17532001-05-04 Richard Henderson <rth@redhat.com>
1754
1755 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1756
17572001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
1758
1759 * elf32-arm.h (elf32_arm_final_link_relocate): Set
1760 EF_ARM_HASENTRY if the start address is set.
1761
17622001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1763
1764 * targets.c (_bfd_target_vector_entries): Compute value based on
1765 the size of the _bfd_target_vector and not bfd_target_vector.
1766
17672001-05-03 H.J. Lu <hjl@gnu.org>
1768
1769 * elfcode.h: Include "libiberty.h".
1770
1771 * elflink.h (elf_link_add_object_symbols): Set
1772 elf_dt_name (abfd) to basename of the bfd filename.
1773 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1774 of the bfd filename.
1775
17762001-05-03 Andreas Jaeger <aj@suse.de>
1777
1778 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1779 (elf_generic_info_to_howto_rel): Likewise.
1780 * coff-alpha.c (reloc_nil): Likewise.
1781 (alpha_ecoff_bad_format_hook): Likewise.
1782 (alpha_adjust_reloc_out): Likewise.
1783 (alpha_bfd_reloc_type_lookup): Likewise.
1784 (alpha_convert_external_reloc): Likewise.
1785 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1786 (elf64_alpha_reloc_bad): Likewise.
1787 (elf64_alpha_reloc_gpdisp): Likewise.
1788 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1789 (elf64_alpha_info_to_howto): Likewise.
1790 (elf64_alpha_add_symbol_hook): Likewise.
1791 (elf64_alpha_create_got_section): Likewise.
1792 (elf64_alpha_is_local_label_name): Likewise.
1793 (elf64_alpha_merge_ind_symbols): Likewise.
1794 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1795 (mips_elf64_get_reloc_upper_bound): Likewise.
1796 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1797 (nlm_alpha_get_public_offset): Likewise.
1798
17992001-05-02 Johan Rydberg <jrydberg@opencores.org>
1800
1801 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1802 about overflow in R_OPENRISC_LO_16_IN_INSN and
1803 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1804
18052001-04-30 H.J. Lu <hjl@gnu.org>
1806
1807 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1808 only for ELF_LINK_FORCED_LOCAL.
1809 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1810 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1811 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1812
1813 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1814 if the symbol has hidden or internal visibility.
1815
18162001-04-30 Alan Modra <amodra@one.net.au>
1817
1818 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1819 calls to undefined weak symbols.
1820
18212001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1822
1823 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1824 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1825
18262001-04-27 Andreas Jaeger <aj@suse.de>
1827
1828 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1829 out handled entries.
1830 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1831 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1832 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1833 GOT32.
1834
18352001-04-27 Sean McNeil <sean@mcneil.com>
1836
1837 * config.bfd: Add arm-vxworks target.
1838 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1839 addend (fro VXworks targets).
1840
18412001-04-26 H.J. Lu <hjl@gnu.org>
1842
1843 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1844 valid.
1845
18462001-04-25 Frank Ch. Eigler <fche@redhat.com>
1847
1848 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1849 * bfd-in2.h: Regenerated.
1850
18512001-04-24 Jakub Jelinek <jakub@redhat.com>
1852
1853 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1854 (struct sec_merge_hash): Remove alignment_power.
1855 (sec_merge_hash_newfunc): Clear alignment.
1856 (sec_merge_hash_lookup): Pass alignment as argument.
1857 Use hashp->root.next, not hashp->next to walk the hash chain.
1858 If a string already in the hashtable does not have required
1859 alignment, create a new hashtable entry.
1860 (sec_merge_init): Remove alignment_power argument.
1861 (sec_merge_add): Add alignment argument.
1862 (sec_merge_emit): Alignment is now a per-entity thing, not per
1863 section.
1864 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1865 for proper alignment.
1866 Pass alignment information to sec_merge_add.
1867
18682001-04-24 Christian Groessler <cpg@aladdin.de>
1869
1870 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1871 and R_REL16 reloc types; accept odd values for R_REL16 type
1872
18732001-04-24 Johan Rydberg <jrydberg@opencores.org>
1874
1875 * cpu-openrisc.c: New file.
1876 * elf32-openrisc.c: Likewise.
1877
1878 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1879 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1880 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1881 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1882 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1883 * Makefile.in: Regenerated.
1884 * config.bfd: (openrisc-*-elf): New target.
1885 * configure.in (bfd_elf32_openrisc_vec): New vector.
1886 * configure: Regenerated.
1887 * libbfd.h: Regenerated.
1888 * bfd-in2.h: Regenerated.
1889 * reloc.c: Add OpenRISC relocations.
1890 * targets.c (bfd_elf32_openrisc_vec): Declare.
1891 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1892 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1893 (bfd_openrisc_arch): Declare.
1894 (bfd_archures_list): Add bfd_openrisc_arch.
1895 * elf.c (prep_headers): Add bfd_arch_openrisc.
1896
18972001-04-23 Bo Thorsen <bo@suse.de>
1898
1899 * elf64-x86-64.c: Add c++ vtable hack.
1900 Small whitespace and comment changes.
1901
19022001-04-19 Andreas Jaeger <aj@suse.de>
1903
1904 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1905 (elf64_x86_64_plt_entry): Likewise.
1906 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1907 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1908
19092001-04-17 Hans-Peter Nilsson <hp@axis.com>
1910
1911 * elf32-cris.c: Tweak comments related to dynamic linking.
1912 (cris_elf_relocate_section): When not creating shared object, fill
1913 in the .got table for any symbol not in the dynamic symbol table.
1914 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1915 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1916 table.
1917 (cris_elf_check_relocs): Use variable r_type in all places rather
1918 than the original expression. Add default case in switch for
1919 reloc types.
1920 (elf_cris_size_dynamic_sections): Iterate over
1921 elf_cris_discard_excess_program_dynamics when not creating shared
1922 library.
1923 (elf_cris_discard_excess_dso_dynamics): Renamed from
1924 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1925 (elf_cris_discard_excess_program_dynamics): New.
1926
19272001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1928
1929 * coffcode.h (coff_write_object_contents): Use
1930 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1931
19322001-04-14 H.J. Lu <hjl@gnu.org>
1933
1934 * bfd-in2.h: Regenerate.
1935
19362001-04-14 Jakub Jelinek <jakub@redhat.com>
1937
1938 * section.c (STD_SECTION): Add entsize.
1939
19402001-04-13 H.J. Lu <hjl@gnu.org>
1941
1942 * section.c (SEC_MERGE): Define new flag for merging.
1943 (SEC_STRINGS): Likewise.
1944 (entsize): New field.
1945
19462001-04-13 Roger Sayle <roger@metaphorics.com>
1947
1948 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1949 flag on pe-i386 targets.
1950
19512001-04-13 Jakub Jelinek <jakub@redhat.com>
1952
1953 * libbfd-in.h (_bfd_merge_section): New.
1954 (_bfd_write_merged_section): New.
1955 (_bfd_merged_section_offset): New.
1956 * libbfd.h: Rebuilt.
1957 * linker.c (_bfd_generic_link_output_symbols): Handle
1958 discard_sec_merge.
1959 * aoutx.h (aout_link_write_symbols): Likewise.
1960 * pdp11.c (aout_link_write_symbols): Likewise.
1961 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1962 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1963 sections.
1964 (elf_link_sec_merge_syms): New.
1965 (elf_link_input_bfd): Call _bfd_merged_section_offset
1966 and _bfd_write_merged_section.
1967 Handle discard_sec_merge.
1968 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1969 field.
1970 (struct bfd_elf_section_data): Likewise.
1971 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1972 SEC_STRINGS section flags and entsize from their ELF counterparts.
1973 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1974 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1975 from their BFD counterparts.
1976 * merge.c: New file.
1977 * Makefile.am: Add strtab.lo.
1978 * Makefile.in: Rebuilt.
1979
19802001-04-09 Hans-Peter Nilsson <hp@axis.com>
1981
1982 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1983 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1984
19852001-04-05 Steven J. Hill <sjhill@cotw.com>
1986
1987 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1988 endian MIPS ELF target.
1989 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1990 MIPS ELF target.
1991
1992 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1993 64bit big endian MIPS ELF target.
1994 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1995 endian MIPS ELF target.
1996 * configure: Regenerated.
1997
1998 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1999 little endian targets.
2000 (mips_elf_sym_is_global): Handle traditional targets.
2001
2002 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2003 64bit big endian MIPS ELF target.
2004 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2005 endian MIPS ELF target.
2006
2007 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2008 and bfd_elf64_tradlittlemips_vec.
2009
20102001-04-05 David Mosberger <davidm@hpl.hp.com>
2011
2012 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2013 ordinary "progbits" section.
2014
20152001-04-04 Alan Modra <alan@linuxcare.com.au>
2016
2017 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2018 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2019
20202001-04-03 David Mosberger <davidm@hpl.hp.com>
2021
2022 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2023
20242001-03-30 H.J. Lu <hjl@gnu.org>
2025
2026 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2027 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2028
20292001-03-26 H.J. Lu <hjl@gnu.org>
2030
2031 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2032 if there are any relocations for generic ELF.
2033 (bfd_elf32_bfd_link_add_symbols): Defined to
2034 elf32_generic_link_add_symbols.
2035 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2036 if there are any relocations for generic ELF.
2037 (bfd_elf64_bfd_link_add_symbols): Defined to
2038 elf64_generic_link_add_symbols.
2039
20402001-03-23 Nick Clifton <nickc@redhat.com>
2041
2042 * Makefile.am (BUILD_CFILES): New variable: List of C source
2043 files created in build directory.
2044 (BUILD_HFILES): New variable: List of header files created in
2045 build directory.
2046 (POTFILES): Delete.
2047 (po/POTFILES.in): Replace rule with empty entry.
2048 (po/SRC-POTFILES.in): New rule: Create a list of source files
2049 in the source directory.
2050 (po/BLD-POTFILES.in): New rule: Create a list of source files
2051 in the build directory.
2052 (MOSTLYCLEAN): Do not delete source files created in build
2053 directory.
2054 * Makefile.in: Regenerate.
2055 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
2056 into po/Makefile.
2057 * configure: Regenerate.
2058
2059 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
2060 and BLD_POTFILES.
2061 Add .. to the search path when building bfd.pot.
2062 Delete POTFILES when performing distclean.
2063 Add comment describing why distclean is broken in maintainer mode.
2064 * po/POTFILES.in: Delete.
2065 * po/SRC-POTFILES.in: New file.
2066 * po/BLD-POTFILES.in: New file.
2067 * po/bfd.pot: Regenerate.
2068
20692001-03-22 Hans-Peter Nilsson <hp@axis.com>
2070
2071 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2072 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
2073 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
2074 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
2075 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
2076 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
2077 functions.
2078 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
2079 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
2080 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
2081 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
2082 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
2083 New HOWTO members for new relocs.
2084 (cris_reloc_map): Map new relocs.
2085 (ELF_DYNAMIC_INTERPRETER): Define.
2086 (PLT_ENTRY_SIZE): Define.
2087 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2088 elf_cris_pic_plt_entry): New, PLT templates.
2089 (struct elf_cris_pcrel_relocs_copied, struct
2090 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2091 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2092 (cris_final_link_relocate): Check that 16-bit GOT relocs have
2093 positive values. Adjust PCREL relocs to be relative to location
2094 after relocation.
2095 (cris_elf_relocate_section): Handle relocations to dynamic
2096 objects. Handle new relocations. Call error handler when seeing
2097 non-PIC relocation for read-only sections while generating shared
2098 object.
2099 (cris_elf_check_relocs): Set reference counts for GOT and PLT
2100 entries.
2101 (bfd_elf32_bfd_link_hash_table_create,
2102 elf_backend_adjust_dynamic_symbol,
2103 elf_backend_size_dynamic_sections,
2104 elf_backend_finish_dynamic_symbol,
2105 elf_backend_finish_dynamic_sections,
2106 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
2107 elf_backend_hide_symbol, elf_backend_want_got_plt,
2108 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2109 elf_backend_got_header_size, elf_backend_plt_header_size):
2110 Define.
2111
2112 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
2113 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
2114 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
2115 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
2116 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
2117 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
2118 * bfd-in2.h, libbfd.h: Regenerate.
2119
21202001-03-21 Diego Novillo <dnovillo@redhat.com>
2121
2122 (_bfd_mips_elf_relocate_section): Give a better error message when
2123 a relocation is not recognized.
2124
21252001-03-21 Alan Modra <alan@linuxcare.com.au>
2126
2127 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
2128 non-NULL before attempting to dereference.
2129
21302001-03-20 H.J. Lu <hjl@gnu.org>
2131
2132 * configure.in: Remove the redundent AC_ARG_PROGRAM.
2133 * configure: Rebuild.
2134
21352001-03-20 Andreas Schwab <schwab@suse.de>
2136
2137 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
2138 relocation value when resolving a reference from a debugging
2139 section.
2140
21412001-03-16 Scott Thomason <SThomaso@hii.com>
2142
2143 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
2144 (xcoff64_swap_sym_out): Fix syntax errors.
2145
21462001-03-16 Richard Sandiford <rsandifo@redhat.com>
2147
2148 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
2149
21502001-03-15 Alan Modra <alan@linuxcare.com.au>
2151
2152 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
2153 (hppa_link_hash_newfunc): Init it.
2154 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
2155 section appears to be non-PIC.
2156 (final_link_relocate): Likewise.
2157 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
2158 possible candidate function, and set pic_call for those that will
2159 only have a .plt entry for the PIC call stub.
2160 (hppa_handle_PIC_calls): Set maybe_pic_call.
2161
21622001-03-12 DJ Delorie <dj@redhat.com>
2163
2164 * elf32-sh.c (sh_elf_relocate_section): Only relocation
2165 R_SH_DIR8WP* relocs if they're against external symbols, else
2166 they're just for relaxing. Validate the reloc values.
2167
21682001-03-12 Stefan Geuken <mail@stefan-geuken.de>
2169
2170 * binary.c (bfd_external_binary_architecture): Declare.
2171 (binary_object_p): If bfd_external_binary_architecture is defined,
2172 set the architecture to this string.
2173
21742001-03-11 Philip Blundell <philb@gnu.org>
2175
2176 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
2177 entries that could serve as a definition for a weak symbol.
2178
21792001-03-08 Nick Clifton <nickc@redhat.com>
2180
2181 * Most files: Update copyright notices using Perl script created
2182 by Kevin Buettner <kevinb@redhat.com>.
2183
21842001-03-07 Nick Clifton <nickc@redhat.com>
2185
2186 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
2187 prior patch on ! defined OLD_ARM_ABI.
2188
21892001-03-07 Andreas Jaeger <aj@suse.de>
2190
2191 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
2192 some relocation values.
2193
21942001-03-06 Nick Clifton <nickc@redhat.com>
2195
2196 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
2197 of offset in BLX(1) instruction.
2198 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
2199 offset in BLX(1) instruction.
2200 Fix formatting.
2201
22022001-03-06 Nick Clifton <nickc@redhat.com>
2203
2204 * coff-arm.c (coff_arm_reloc_type_lookup): Add
2205 BFD_RELOC_THUMB_PCREL_BLX.
2206
22072001-03-06 Igor Shevlyakov <igor@windriver.com>
2208
2209 * archures.c (bfd_default_scan): Add Coldfire CPUs.
2210 * bfd-in2.h: Regenerate.
2211 * cpu-m68k.c: Add Coldfire CPUs for arch table.
2212 * ieee.c (ieee_write_processor): Set proper id for
2213 Coldfire CPUs.
2214
22152001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
2216
2217 * configure.in: Add s390 target.
2218 * configure: Regenerate.
2219
22202001-02-28 Andreas Jaeger <aj@suse.de>
2221
2222 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
2223 to addend.
2224
22252001-02-28 Philip Blundell <pb@futuretv.com>
2226
2227 * elf32-arm.h: Update mentions of renamed EF_xx constants.
2228 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
2229
22302001-02-27 H.J. Lu <hjl@gnu.org>
2231
2232 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
2233 abfd->tdata.aout_data == NULL.
2234
22352001-02-27 Alan Modra <alan@linuxcare.com.au>
2236
2237 * elf32-hppa.c: Correct field selector in stub comments.
2238 (clobber_millicode_symbols): Formatting fix.
2239
2240 * configure.in: Bump version to 2.11.90.
2241 * configure: Regenerate.
2242 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
2243 (CFILES): $SOURCE_CFILES + generated C files.
2244 (POTFILES): Include $HFILES not $SOURCE_HFILES.
2245 Run "make dep-am"
2246 * Makefile.in: Regenerate.
2247 * doc/Makefile.in: This too.
2248
22492001-02-26 Timothy Wall <twall@cygnus.com>
2250
2251 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
2252 comments.
2253
22542001-02-26 Nick Clifton <nickc@redhat.com>
2255
2256 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
2257 up, replacing multiple if statements with a switch.
2258 (handle_COMDAT): New function.
2259
22602001-02-26 H.J. Lu <hjl@gnu.org>
2261
2262 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
2263 a warning for section flags we do not handle instead of
2264 aborting.
2265
22662001-02-26 Andreas Jaeger <aj@suse.de>
2267
2268 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
2269
22702001-02-22 Timothy Wall <twall@cygnus.com>
2271
2272 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
2273 * configure.in: Add objects for elf64_ia64_aix vectors.
2274 * configure: Regenerated.
2275 * configure.host: Recognize ia64-*-aix*.
2276 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
2277 for AIX. AIX5 requires most relocations to be dynamic (*all*
2278 binaries are somewhat similar to shared libraries).
2279 * targets.c: Add elf64_ia64_aix vectors.
2280
22812001-02-21 David Mosberger <davidm@hpl.hp.com>
2282
2283 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
2284 C8 said "1" instead of "8". Clarify error string for IMM22:
2285 "signed integer" instead of just "integer".
2286
22872001-02-20 Andreas Jaeger <aj@suse.de>
2288
2289 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
2290 PLT entries that could serve as a definition for a weak symbol.
2291
22922001-02-19 Jakub Jelinek <jakub@redhat.com>
2293
2294 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
2295 entries that could serve as a definition for a weak symbol.
2296 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
2297
22982001-02-18 David O'Brien <obrien@FreeBSD>
2299
2300 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
2301 FreeBSD/i386-CURRENT differently until I can figure out the needed
2302 corefile changes.
2303 * configure: Regenerate.
2304 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
2305 FreeBSD/PowerPC, and FreeBSD/sparc64.
2306
23072001-02-18 lars brinkhoff <lars@nocrew.org>
2308
2309 * Makefile.am: Add PDP-11 a.out target.
2310 * config.bfd: Likewise.
2311 * configure.in: Likewise.
2312 * targets.c: Likewise.
2313 * archures.c: Likewise.
2314 * bfd-in2.h: Likewise. Add PDP-11 relocations.
2315 * libbfd.h: Add PDP-11 relocations.
2316 * reloc.c: Likewise.
2317 * cpu-pdp11.c: New file.
2318 * pdp11.c: New file.
2319
2320 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
2321 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2322 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2323 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
2324 (GET_MAGIC): New macro.
2325 (PUT_MAGIC): Likewise.
2326 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
2327
23282001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
2329
2330 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
2331 multiarch needs it).
2332
23332001-02-18 H.J. Lu <hjl@gnu.org>
2334
2335 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
2336 index.
2337
23382001-02-18 Kazu Hirata <kazu@hxi.com>
2339
2340 * vms-misc.c: Fix formatting.
2341
23422001-02-16 Kazu Hirata <kazu@hxi.com>
2343
2344 * vms.c: Fix formatting.
2345
23462001-02-14 H.J. Lu <hjl@gnu.org>
2347
2348 * elf.c (elf_find_function): New function.
2349 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
2350 the file name and function name.
2351
23522001-02-14 Nick Clifton <nickc@redhat.com>
2353
2354 * ecoff.c (bfd_debug_section): Update to initialise new fields in
2355 asection structure.
2356
2357 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
2358 (BFD64_BACKENDS): Add pepigen.c
2359 Add rules to create peigen.c and pepigen.c from peXXigen.c.
2360
2361 * Makefile.in: Regenerate.
2362 * configure: Regenerate.
2363 * po/POTFILES.in: Regenerate.
2364 * po/bfd.pot: Regenerate.
2365
23662001-02-14 H.J. Lu <hjl@gnu.org>
2367
2368 * libcoff-in.h (pe_tdata): Add members target_subsystem and
2369 force_minimum_alignment.
2370
23712001-02-14 Bo Thorsen <bo@suse.de>
2372
2373 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
2374 (elf64_86_64_size_info): Struct added to fix a problem
2375 with the hashtable string entries.
2376 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
2377 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
2378 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
2379 remove the FIXME for this.
2380 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
2381 section. Also removed the FIXME for it.
2382 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
2383 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
2384 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
2385
23862001-02-13 Richard Henderson <rth@redhat.com>
2387
2388 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
2389 and not user provided.
2390
23912001-02-13 Kazu Hirata <kazu@hxi.com>
2392
2393 * vms.c (vms_print_symbol): Remove unreachable code.
2394
2395 * rs6000-core.c: Fix formatting.
2396
23972001-02-13 David Mosberger <davidm@hpl.hp.com>
2398
2399 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
2400 as _bfd_XXi_only_swap_filehdr_out.
2401 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
2402 pe->force_minimum_alignment to TRUE.
2403 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
2404 PEI_TARGET_SUBSYSTEM.
2405 (pe_print_private_bfd_data): Call
2406 _bfd_XX_print_private_bfd_data_common() instead of
2407 _bfd_pe_print_private_bfd_data_common().
2408 (pe_bfd_copy_private_bfd_data): Call
2409 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
2410 _bfd_pe_bfd_copy_private_bfd_data_common().
2411 (coff_bfd_copy_private_section_data): Define as
2412 _bfd_XX_bfd_copy_private_section_data instead of
2413 _bfd_pe_bfd_copy_private_section_data.
2414 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
2415 of a _bfd_pe_get_symbol_info.
2416
2417 * peigen.c: Delete.
2418
2419 * peXXigen.c: Renamed from peigen.c.
2420 (COFF_WITH_XX): Define this macro (will get expanded into
2421 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
2422 compiled as peigen.c or pepigen.c.
2423 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
2424 define the canonical PEP structures and definitions.
2425 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
2426 effect, enforce minimum file and section alignments. If
2427 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
2428 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
2429 so, by default, this is a no-op).
2430
2431 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
2432 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
2433 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
2434 _bfd_pefoo if it's not defined. Use these macros to define
2435 coff swap macros.
2436
2437 * libcoff.h (pe_tdata): Add members target_subsystem and
2438 force_minimum_alignment.
2439
2440 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
2441 COFF_WITH_pep.
2442 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
2443
2444 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
2445 peigen.lo.
2446
2447 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
2448 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
2449 PEPAOUTHDR.
2450
2451 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
2452 (BFD64_BACKENDS_CFILES): Mention pepigen.c
2453 (peigen.c): Add rule to generate from peXXigen.c.
2454 (pepigen.c): Ditto.
2455 (pepigen.lo): List dependencies for pepigen.lo.
2456
24572001-02-13 Alan Modra <alan@linuxcare.com.au>
2458
2459 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
2460 $global$ referenced but not defined, set its value here.
2461
24622001-02-09 Bo Thorsen <bo@suse.de>
2463
2464 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
2465 alignment to 3.
2466 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
2467 and relocation.
2468 (elf64_x86_64_relocate_section): Fix formatting.
2469 (elf64_x86_64_relocate_section): Fix addend for relocation of
2470 R_X86_64_(8|16|32|PC8|PC16|PC32).
2471
24722001-02-12 Jan Hubicka <jh@suse.cz>
2473
2474 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
2475
24762001-02-11 H.J. Lu <hjl@gnu.org>
2477
2478 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
2479 alignment.
2480
24812001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2482
2483 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
2484 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
2485 relocations against dynsym symbols.
2486
2487 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
2488 the R_MIPS_26 relocation.
2489 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
2490 the R_MIPS_26 relocation.
2491 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
2492 relocation.
2493 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
2494 the R_MIPS_26 relocation.
2495 (mips_elf64_howto_table_rela): Likewise.
2496
2497 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
2498 member to mark symbols that have non-CALL relocations against
2499 them.
2500 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
2501 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
2502 R_MIPS_GOT16.
2503 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
2504 non-CALL relocation against it is encountered.
2505 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
2506 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
2507 no_fn_stub is not set.
2508
2509 * elf32-mips.c (mips_elf_output_extsym): Get the output section
2510 information from the real symbol for indirect ones.
2511 Check no_fn_stub to find out if a symbol has a function stub
2512 indeed.
2513
25142001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2515
2516 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
2517 * Makefile.in: Regenerate.
2518
25192001-02-09 David Mosberger <davidm@hpl.hp.com>
2520
2521 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
2522 true if section name is an unwind table section name.
2523 (elfNN_ia64_additional_program_headers): Count each unwind section
2524 separately.
2525 (elfNN_ia64_modify_segment_map): Install one unwind program header
2526 for each unwind separate section. Note: normally the linker
2527 script merges the unwind sections that go into a single segment,
2528 so this still generates at most one unwind program header per
2529 segment.
2530
2531 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
2532 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
2533 (elfNN_ia64_fake_sections): Mark sections with names that start
2534 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
2535 unwind section.
2536
2537 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
2538 Use it to make sh_info in unwind section point to the text section
2539 it applies to.
2540
25412001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2542
2543 * Makefile.am: Add linux target for S/390.
2544 * archures.c: Likewise.
2545 * bfd-in2.h: Likewise.
2546 * config.bfd: Likewise.
2547 * configure.in: Likewise.
2548 * elf.c: Likewise.
2549 * libbfd.h: Likewise.
2550 * targets.c: Likewise.
2551 * cpu-s390.c: New file.
2552 * elf32-s390.c: New file.
2553 * elf64-s390.c: New file.
2554
25552001-02-09 Nick Clifton <nickc@redhat.com>
2556
2557 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
2558 ImageBase. This has already been done by coff_swap_hdr_in.
2559
25602001-02-09 Jakub Jelinek <jakub@redhat.com>
2561
2562 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2563
25642001-02-09 Jakub Jelinek <jakub@redhat.com>
2565
2566 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
2567 (sparc64_elf_relocate_section): Likewise.
2568
25692001-02-09 Mark Kettenis <kettenis@gnu.org>
2570
2571 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
2572 similar to R_SPARC_32.
2573 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2574
25752001-02-08 H.J. Lu <hjl@gnu.org>
2576
2577 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
2578 relocation entries for weak definitions when building DSO with
2579 -Bsymbolic.
2580
25812001-02-08 Richard Henderson <rth@redhat.com>
2582
2583 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
2584 before visibility. Locally defined protected symbols are not
2585 dynamic.
2586
25872001-02-08 Geoffrey Keating <geoffk@redhat.com>
2588
2589 * config.bfd: Enable coff64 for rs6000-*. Patch from
2590 <hzoli@austin.ibm.com>.
2591
25922001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
2593
2594 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2595 found, do not attempt to find dwarf2 info before returning.
2596
25972001-02-07 Jakub Jelinek <jakub@redhat.com>
2598
2599 * elflink.h (is_global_symbol_definition): Rename to
2600 is_global_data_symbol_definition and have it reject function
2601 symbols.
2602 (elf_link_is_defined_archive_symbol): Use renamed function.
2603
26042001-02-07 Todd Vierling <tv@wasabisystems.com>
2605
2606 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2607 * libbfd.h (bfd_target_vector): Likewise.
2608 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
2609 make static; create pointer reference named bfd_target_vector.
2610 (_bfd_target_vector_entries): Calculate this based on the array
2611 typed _bfd_target_vector.
2612
26132001-02-06 H.J. Lu <hjl@gnu.org>
2614
2615 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2616 internal symbols are not dynamic.
2617 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2618
26192001-02-06 Nick Clifton <nickc@redhat.com>
2620
2621 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2622 that it will not be pulled into the list of files that make up
2623 po/POTFILES.in.
2624 * Makefile.in: Regenerate.
2625 * po/bfd.pot: Regenerate.
2626
26272001-02-06 H.J. Lu <hjl@gnu.org>
2628
2629 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
2630 checking.
2631 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2632 external_PEI_IMAGE_hdr.
2633
26342001-02-06 Kazu Hirata <kazu@hxi.com>
2635
2636 * elf-m10200.c: Fix formatting.
2637
26382001-02-04 Nick Clifton <nickc@redhat.com>
2639
2640 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2641 rel, it will be handled later on.
2642
26432001-02-02 Fred Fish <fnf@ninemoons.com>
2644
2645 * Makefile.in: Fix typo.
2646
26472001-02-01 Kazu Hirata <kazu@hxi.com>
2648
2649 * elf-m10300.c: Fix formatting.
2650
26512001-01-30 Alan Modra <alan@linuxcare.com.au>
2652
2653 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2654 (elf_backend_get_symbol_type): Define.
2655 (elf64_hppa_object_p): Set architecture and machine from elf
2656 header flags.
2657
26582001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
2659
2660 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2661 before mdebug.
2662
26632001-01-26 Richard Henderson <rth@redhat.com>
2664
2665 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2666 for non-default visibility.
2667 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2668 delete ugly macro and replace with pretty function.
2669
26702001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
2671
2672 * coff-go32.c: Update copyright.
2673 * coff-stgo32.c: Likewise.
2674 * coff-go32.c (COFF_LONG_FILENAMES): Define.
2675 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2676 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2677 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2678
26792001-01-25 Kazu Hirata <kazu@hxi.com>
2680
2681 * bfd-in2.h: Rebuild.
2682 * libbfd.h: Likewise.
2683
26842001-01-23 H.J. Lu <hjl@gnu.org>
2685
2686 * bfd-in2.h: Rebuild.
2687
26882001-01-23 H.J. Lu <hjl@gnu.org>
2689
2690 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2691 is NULL or PRIV(vms_rec) is outside of the buffer.
2692
26932001-01-23 Kazu Hirata <kazu@hxi.com>
2694
2695 * coff64-rs6000.c: Fix formatting.
2696 * coff-arm.c: Likewise.
2697 * coffgen.c: Likewise.
2698 * cofflink.c: Likewise.
2699 * coff-mcore.c: Likewise.
2700 * coff-mips.c: Likewise.
2701 * coff-pmac.c: Likewise.
2702 * coff-ppc.c: Likewise.
2703 * coff-rs6000.c: Likewise.
2704 * elf32.c: Likewise.
2705 * elf32-fr30.c: Likewise.
2706 * elf32-i370.c: Likewise.
2707 * elf32-i860.c: Likewise.
2708 * elf32-m32r.c: Likewise.
2709 * elf32-m68k.c: Likewise.
2710 * elf32-mcore.c: Likewise.
2711 * elf32-ppc.c: Likewise.
2712 * elf32-sh.c: Likewise.
2713 * elf32-v850.c: Likewise.
2714 * elf64-alpha.c: Likewise.
2715 * elf64-sparc.c: Likewise.
2716 * elflink.c: Likewise.
2717 * elflink.h: Likewise.
2718 * elf-m10200.c: Likewise.
2719 * elf-m10300.c: Likewise.
2720 * elfxx-ia64.c: Likewise.
2721
2722 * aoutx.h: Fix formatting.
2723 * bfd.c: Likewise.
2724 * bfd-in2.h: Likewise.
2725 * bfd-in.h: Likewise.
2726 * cpu-i386.c: Likewise.
2727 * cpu-m68hc11.c: Likewise.
2728 * dwarf2.c: Likewise.
2729 * elf64-x86-64.c: Likewise.
2730 * format.c: Likewise.
2731 * freebsd.h: Likewise.
2732 * hash.c: Likewise.
2733 * hp300hpux.c: Likewise.
2734 * hppabsd-core.c: Likewise.
2735 * hpux-core.c: Likewise.
2736
27372001-01-22 Bo Thorsen <bo@suse.de>
2738
2739 * elf64-x86-64.c: Added PIC support for X86-64.
2740 (elf64_x86_64_link_hash_newfunc): Function added.
2741 (elf64_x86_64_link_hash_table_create): Likewise.
2742 (elf64_x86_64_check_relocs): Likewise.
2743 (elf64_x86_64_gc_mark_hook): Likewise.
2744 (elf64_x86_64_gc_sweep_hook): Likewise.
2745 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2746 (elf64_x86_64_size_dynamic_sections): Likewise.
2747 (elf64_x86_64_discard_copies): Likewise.
2748 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2749 (elf64_x86_64_finish_dynamic_sections): Likewise.
2750 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2751
27522001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2753
2754 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2755 * Makefile.in: Regenerate.
2756
27572001-01-21 Kazu Hirata <kazu@hxi.com>
2758
2759 * coff-a29k.c: Fix formatting.
2760
27612001-01-19 H.J. Lu <hjl@gnu.org>
2762
2763 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2764 relocation section names.
2765 (elf_i386_relocate_section): Report files with bad relocation
2766 section names and return false.
2767
27682001-01-17 Bo Thorsen <bo@suse.de>
2769
2770 * targets.c: Alphabetize list of xvecs.
2771
27722001-01-14 Alan Modra <alan@linuxcare.com.au>
2773
2774 * config.bfd: Add linux target variant for elfxx-hppa.
2775 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2776 bfd_elf64_hppa_linux_vec.
2777 * configure: Regenerate.
2778 * elf64-hppa.c: Include elf64-target.h again to support linux
2779 target variant.
2780 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2781 * elf32-hppa.c: Include elf32-target.h again to support linux
2782 target variant.
2783 (elf32_hppa_post_process_headers): New function.
2784 (elf_backend_post_process_headers): Define.
2785 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2786 bfd_elf32_hppa_linux_vec.
2787
2788 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2789 and data_segment_base fields.
2790 (elf32_hppa_link_hash_table_create ): Init them.
2791 (elf32_hppa_check_relocs): Update comments.
2792 (hppa_record_segment_addr): New function.
2793 (elf32_hppa_relocate_section): Call it.
2794 (final_link_relocate): Handle R_PARISC_SEGREL32.
2795 (elf32_hppa_final_link): New function.
2796 (bfd_elf32_bfd_final_link): Define to call it.
2797 (hppa_unwind_entry_compare): New function.
2798 * cache.c (bfd_open_file): Create files in write+read mode.
2799
2800 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2801 SEGREL32 and numerous other relocs. Change duplicate
2802 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2803
2804 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2805 O_ACCMODE.
2806
2807 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2808 .plt entries for DT_INIT and DT_FINI.
2809 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2810 DT_INIT and DT_FINI.
2811
2812 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2813 offsets for stub .plt access if wide mode. Check offset in range.
2814
28152001-01-13 Nick Clifton <nickc@redhat.com>
2816
2817 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2818 line.
2819
2820 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2821 line.
2822
28232001-01-12 Alan Modra <alan@linuxcare.com.au>
2824
2825 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2826 * configure: Regenerate.
2827
28282001-01-11 Peter Targett <peter.targett@arccores.com>
2829
2830 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2831 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2832 * cpu-arc.c (arch_info_struct): Add entries for variants.
2833 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2834 (arc_get_mach) Don't assume machine names prefixed arc- before
2835 testing.
2836 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2837 selections.
2838 (arc_elf_final_write_processing) Likewise.
2839 (ELF_MACHINE_CODE) Use EM_ARC.
2840
28412001-01-10 Nick Clifton <nickc@redhat.com>
2842
2843 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2844
28452001-01-07 Philip Blundell <philb@gnu.org>
2846
2847 * README: Replace `bug-gnu-utils@gnu.org' with
2848 `bug-binutils@gnu.org'.
2849
28502001-01-04 Kazu Hirata <kazu@hxi.com>
2851
2852 * som.c: Fix formatting.
2853
28542001-01-03 Kazu Hirata <kazu@hxi.com>
2855
2856 * ecoffswap.h: Fix formatting.
2857 * elf-bfd.h: Likewise.
2858 * elfarm-nabi.c: Likewise.
2859 * elfarm-oabi.c: Likewise.
2860 * elfcode.h: Likewise.
2861 * elfcore.h: Likewise.
2862 * elflink.c: Likewise.
2863 * elflink.h: Likewise.
2864 * elfxx-ia64.c: Likewise.
2865 * elfxx-target.h: Likewise.
2866 * libbfd.c: Likewise
2867 * linker.c: Likewise.
2868 * lynx-core.c: Likewise.
2869
28702001-01-02 Kazu Hirata <kazu@hxi.com>
2871
2872 * pc532-mach.c: Fix formatting.
2873 * pe-arm.c: Likewise.
2874 * pe-i386.c: Likewise.
2875 * pe-mips.c: Likewise.
2876 * pe-ppc.c: Likewise.
2877 * pe-sh.c: Likewise.
2878 * pei-mips.c: Likewise.
2879 * pei-sh.c: Likewise.
2880 * peicode.h: Likewise.
2881 * ppcboot.c: Likewise.
2882 * ptrace-core.c: Likewise.
2883
28842001-01-01 Kazu Hirata <kazu@hxi.com>
2885
2886 * reloc.c: Fix formatting.
2887 * riscix.c: Likewise.
2888 * rs6000-core.c: Likewise.
2889 * xcoff-target.h: Likewise.
2890
28912000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2892
2893 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2894 error, by calling bfd_default_set_arch_mach with incoming
2895 values.
2896
28972000-12-26 Kazu Hirata <kazu@hxi.com>
2898
2899 * vaxnetbsd.c: Fix formatting.
2900 * versados.c: Likewise.
2901 * vms-gsd.c: Likewise.
2902 * vms-hdr.c: Likewise.
2903 * vms-misc.c: Likewise.
2904
29052000-12-25 Alexandre Oliva <aoliva@redhat.com>
2906
2907 * archive.c (coff_write_armap): Don't write more than symbol_count
2908 `archive_member_file_ptr's.
2909
29102000-12-25 Kazu Hirata <kazu@hxi.com>
2911
2912 * vms-tir.c: Fix formatting.
2913
29142000-12-23 Kazu Hirata <kazu@hxi.com>
2915
2916 * vms.c: Fix formatting.
2917 * vms.h: Likewise.
2918
29192000-12-21 Santeri Paavolainen <santtu@ssh.com>
2920
2921 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2922
2923 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2924
2925 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2926 arithmetic.
2927
2928 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2929
2930 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2931
29322000-12-21 Richard Sandiford <rsandifo@redhat.com>
2933
2934 * libbfd.c (bfd_get_bits): Added
2935 (bfd_put_bits): Likewise
2936 * bfd-in.h: Declared the above.
2937 * bfd-in2.h: Regenerated.
2938
29392000-12-20 Kazu Hirata <kazu@hxi.com>
2940
2941 * targets.c: Fix formatting.
2942 * tekhex.c: Likewise.
2943 * trad-core.c: Likewise.
2944
29452000-12-19 Kazu Hirata <kazu@hxi.com>
2946
2947 * sco5-core.c: Fix formatting.
2948 * section.c: Likewise.
2949 * sparclinux.c: Likewise.
2950 * sparclynx.c: Likewise.
2951 * sparcnetbsd.c: Likewise.
2952 * srec.c: Likewise.
2953 * stabs.c: Likewise.
2954 * stab-syms.c: Likewise.
2955 * sunos.c: Likewise.
2956 * syms.c: Likewise.
2957 * sysdep.h: Likewise.
2958
29592000-12-18 Nick Clifton <nickc@redhat.com>
2960
2961 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2962 defined.
2963 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2964 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2965
29662000-12-18 Nick Clifton <nickc@redhat.com>
2967
2968 * vms-misc.c (_bfd_vms_get_record): Add default case to
2969 file_format switch.
2970
29712000-12-15 Miloslav Trmac <mitr@volny.cz>
2972
2973 * elfcore.h (elf_core_file_p): Move to the start of the program
2974 headers before attempting to read them.
2975
29762000-12-14 Kazu Hirata <kazu@hxi.com>
2977
2978 * peigen.c: Fix formatting.
2979 * som.c: Likewise.
2980 * som.h: Likewise.
2981
29822000-12-13 Kazu Hirata <kazu@hxi.com>
2983
2984 * peigen.c: Fix formatting.
2985
29862000-12-12 Jim Wilson <wilson@redhat.com>
2987
2988 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2989
29902000-12-08 Mark Salter <msalter@redhat.com>
2991
2992 * binary.c (binary_set_section_contents): Ignore sections
2993 with zero size.
2994
29952000-12-12 Kazu Hirata <kazu@hxi.com>
2996
2997 * m68klinux.c: Fix formatting.
2998 * m68knetbsd.c: Likewise.
2999 * mipsbsd.c: Likewise.
3000 * netbsd-core.c: Likewise.
3001 * netbsd.h: Likewise.
3002 * newsos3.c: Likewise.
3003 * nlm32-alpha.c: Likewise.
3004 * nlm32-i386.c: Likewise.
3005 * nlm32-ppc.c: Likewise.
3006 * nlm32-sparc.c: Likewise.
3007 * nlmcode.h: Likewise.
3008 * nlmswap.h: Likewise.
3009 * nlm-target.h: Likewise.
3010 * ns32knetbsd.c: Likewise.
3011
30122000-12-10 Fred Fish <fnf@be.com>
3013
3014 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3015 symbols in shared objects if allow_shlib_undefined is true.
3016
30172000-12-12 Nick Clifton <nickc@redhat.com>
3018
3019 * cpu-sh.c: Fix formattng.
3020 * elf.c: Fix formattng.
3021 * elf32-mips.c: Fix formattng.
3022 * elf32-sh.c: Fix formattng.
3023 * elf64-alpha.c: Fix formattng.
3024
30252000-12-09 Nick Clifton <nickc@redhat.com>
3026
3027 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3028 dwarf2_find_line_info as last parameter to invocation of
3029 _bfd_dwarf2_find_nearest_line.
3030 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3031 dwarf2_find_line_info as last parameter to invocation of
3032 _bfd_dwarf2_find_nearest_line.
3033
30342000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3035
3036 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3037 (BFD_LIBS): ...to here.
3038 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3039 (BFD_LIBS_CFILES): ...to here.
3040 * Makefile.in: Regenerate.
3041 * configure.in: Remove dwarf.lo from the elf shell variable.
3042 * configure: Regenerate.
3043 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3044 * libcoff.h: Regenerate.
3045 * coffgen.c (coff_find_nearest_line): Call
3046 _bfd_dwarf2_find_nearest_line.
3047 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
3048 accordingly.
3049 (read_abbrevs): Likewise
3050 (decode_line_info): Likewise.
3051 (parse_comp_unit): Likewise.
3052 (comp_unit_find_nearest_line): Likewise.
3053 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3054 * libbfd.h: Regenerate.
3055 * elf.c (_bfd_elf_find_nearest_line): Update call.
3056 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
3057 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
3058 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
3059 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
3060 (styp_to_sec_flags): Handle DWARF2 sections.
3061 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
3062 to _bfd_find_nearest_line.
3063 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
3064 call to _bfd_find_nearest_line.
3065
30662000-12-08 Kazu Hirata <kazu@hxi.com>
3067
3068 * coffgen.c: Fix formatting.
3069 * elf-m10300.c: Likewise.
3070 * elf32-i386.c: Likewise.
3071 * elf32-i960.c: Likewise.
3072 * elf32-m68k.c: Likewise.
3073 * elf32-mcore.c: Likewise.
3074 * elf32-ppc.c: Likewise.
3075 * elf32-sh.c: Likewise.
3076 * elf32-sparc.c: Likewise.
3077 * elf32-v850.c: Likewise.
3078 * elf64-alpha.c: Likewise.
3079 * elf64-hppa.c: Likewise.
3080 * elf64-mips.c: Likewise.
3081 * elf64-sparc.c: Likewise.
3082
30832000-12-07 Kazu Hirata <kazu@hxi.com>
3084
3085 * elf32-ppc.c: Fix formatting.
3086 * elf64-x86-64.c: Likewise.
3087
30882000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3089
3090 From Ralf Baechle <ralf@gnu.org>
3091
3092 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
3093 BFDs containing no sections or empty .text, .data or .bss sections
3094 to be merged, regardless of their flags.
3095
30962000-12-06 Kazu Hirata <kazu@hxi.com>
3097
3098 * elf32-m32r.c: Fix formatting.
3099 * elf32-m68hc11.c: Likewise.
3100 * elf32-m68hc12.c: Likewise.
3101 * elf32-m68k.c: Likewise.
3102 * elf32-mcore.c: Likewise.
3103 * elf32-pj.c: Likewise.
3104 * elf32-ppc.c: Likewise.
3105
31062000-12-05 Kazu Hirata <kazu@hxi.com>
3107
3108 * elf32-fr30.c: Fix formatting.
3109 * elf32-hppa.c: Likewise.
3110 * elf32-i370.c: Likewise.
3111 * elf32-i386.c: Likewise.
3112 * elf32-i860.c: Likewise.
3113 * elf32-i960.c: Likewise.
3114
31152000-12-03 Kazu Hirata <kazu@hxi.com>
3116
3117 * elf32-arm.h: Fix formatting.
3118 * elf32-avr.c: Likewise.
3119 * elf32-cris.c: Likewise.
3120 * elf32-d10v.c: Likewise.
3121 * elf32-d30v.c: Likewise.
3122 * elf-hppa.h: Likewise.
3123 * elf-m10200.c: Likewise.
3124 * elf-m10300.c: Likewise.
3125
31262000-12-01 Chris Demetriou <cgd@sibyte.com>
3127
3128 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
3129 bfd_mach_mips32_4k. Update FIXME comment.
3130 * archures.c (bfd_mach_mips32): New constant.
3131 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3132 the latter, renumber it.
3133 * bfd-in2.h (bfd_mach_mips32): New constant.
3134 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3135 the latter, renumber it.
3136 * cpu-mips.c (I_mips32): New constant.
3137 (I_mips4K, I_mips32_4k): Rename the former to the latter.
3138 (arch_info_struct): Add bfd_mach_mips32 entry, replace
3139 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
3140 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
3141 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
3142 with E_MIPS_MACH_MIPS32_4K.
3143 (_bfd_mips_elf_final_write_processing): Replace
3144 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
3145 bfd_mach_mips32 case.
3146 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
3147 comparison with support for MIPS32.
3148 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
3149 MIPS32.
3150
3151 * aoutx.h (NAME(aout,machine_type)): Add cases for
3152 bfd_mach_mips5 and bfd_mach_mips64.
3153 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
3154 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
3155 * cpu_mips.c (I_mips5, I_mips64): New definitions.
3156 (arch_info_struct): Add entries for bfd_mach_mips5 and
3157 bfd_mach_mips64.
3158 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
3159 _bfd_mips_elf_print_private_bfd_data): Add cases for
3160 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
3161 (_bfd_mips_elf_final_write_processing): Add cases for
3162 bfd_mach_mips5 and bfd_mach_mips64.
3163
3164 * aoutx.h (NAME(aout,machine_type)): Add a
3165 bfd_mach_mips_sb1 case.
3166 * archures.c (bfd_mach_mips_sb1): New constant.
3167 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
3168 * cpu-mips.c (I_sb1): New constant.
3169 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
3170 * elf32-mips.c (elf_mips_mach): Add case for
3171 E_MIPS_MACH_SB1.
3172 (_bfd_mips_elf_final_write_processing): Add case for
3173 bfd_mach_mips_sb1.
3174
31752000-12-01 Joel Sherrill <joel@OARcorp.com>
3176
3177 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
3178 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3179 (sparc*-*-rtems*): Switched from a.out to ELF.
3180
31812000-11-30 Jan Hubicka <jh@suse.cz>
3182
3183 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
3184 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
3185 (elf64-x86-64.lo): Add dependencies.
3186 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
3187 bfd_mach_x86_64_intel_syntax.
3188 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
3189 * config.bfd (x86_64): Add.
3190 * configure.in: Add support for bfd_elf64_x86_64_vec.
3191 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
3192 (bfd_i386_arch, i8086_ar): Link in.
3193 * elf64-x86-64.c: New file.
3194 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
3195 * targets.c (bfd_elf64_x86_64_vec): Add.
3196 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
3197
31982000-11-30 Kazu Hirata <kazu@hxi.com>
3199
3200 * xcofflink.c: Fix formatting.
3201
32022000-11-28 Kazu Hirata <kazu@hxi.com>
3203
3204 * aoutx.h: Fix formatting.
3205 * bfd-in.h: Likewise.
3206 * bfd-in2.h: Likewise.
3207 * cache.c: Likewise.
3208 * cisco-core.c: Likewise.
3209 * coff64-rs6000.c: Likewise.
3210 * coffcode.h: Likewise.
3211 * coffswap.h: Likewise.
3212 * corefile.c: Likewise.
3213 * elf32-mips.c: Likewise.
3214
32152000-11-27 Kazu Hirata <kazu@hxi.com>
3216
3217 * aout-adobe.c: Fix formatting.
3218 * coff64-rs6000.c: Likewise.
3219 * coffgen.c: Likewise.
3220 * cofflink.c: Likewise.
3221
32222000-11-27 Philip Blundell <pb@futuretv.com>
3223
3224 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
3225 (obj_coff_strings_written): New accessor macro for above.
3226 * libcoff.h: Regenerate.
3227 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
3228 strings.
3229 * coffcode.h (coff_write_object_contents): No need to write out
3230 the string table if it's already been done.
3231
32322000-11-22 Philip Blundell <pb@futuretv.com>
3233
3234 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
3235 weak undefined symbols.
3236
32372000-11-24 Nick Clifton <nickc@redhat.com>
3238
3239 * archures.c (bfd_mach_arm_5TE): Define.
3240 (bfd_mach_arm+XScale): Define.
3241 * bfd-in2.h: Regenerate.
3242
3243 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
3244 BFD_RELOC_ARM_PCREL_BLX.
3245
3246 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
3247 XScale machine numbers.
3248
3249 * config.bfd (xscale-elf): Add target.
3250 (xscale-coff): Add target.
3251
3252 * cpu-arm.c: Add xscale machine name.
3253 Add v5t, v5te and XScale machine numbers.
3254
32552000-11-23 Kazu Hirata <kazu@hxi.com>
3256
3257 * aix386-core.c: Fix formatting.
3258
32592000-11-22 Jim Wilson <wilson@redhat.com>
3260
3261 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
3262 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
3263 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
3264 (ins_imms_scaled): Initialize sign_bit at function entry.
3265 (elf64_ia64_operands): Add missing initializers.
3266 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
3267 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
3268 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
3269 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
3270 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
3271 parameters.
3272 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
3273 and free_extsyms at function entry.
3274 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
3275 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
3276 (get_got): Delete unused local srel.
3277 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
3278 (elfNN_ia64_relocate_section): Delete unused local dynindx.
3279
32802000-11-21 Kazu Hirata <kazu@hxi.com>
3281
3282 * coff-a29k.c: Fix formatting.
3283 * coff-h8500.c: Likewise.
3284 * coff-i960.c: Likewise.
3285 * coff-ppc.c: Likewise.
3286 * coff-rs6000.c: Likewise.
3287 * coff-stgo32.c: Likewise.
3288 * coff-tic54x.c: Likewise.
3289 * coff-w65.c: Likewise.
3290 * cpu-h8500.c: Likewise.
3291 * cpu-hppa.c: Likewise.
3292 * cpu-ns32k.c: Likewise.
3293 * ecoff.c: Likewise.
3294 * ecofflink.c: Likewise.
3295
32962000-11-21 Nick Clifton <nickc@redhat.com>
3297
3298 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
3299 remove possibility of infinite loop.
3300
33012000-11-20 Kazu Hirata <kazu@hxi.com>
3302
3303 * aix386-core.c: Fix formatting.
3304 * aout-adobe.c: Likewise.
3305 * aout-arm.c: Likewise.
3306 * aout-encap.c: Likewise.
3307 * aout-ns32k.c: Likewise.
3308 * aout-target.h: Likewise.
3309 * aout-tic30.c: Likewise.
3310 * aoutf1.h: Likewise.
3311 * aoutx.h: Likewise.
3312 * archive.c: Likewise.
3313 * bfd-in.h: Likewise.
3314 * bfd-in2.h: Likewise.
3315 * bfd.c: Likewise.
3316 * bout.c: Likewise.
3317
33182000-11-17 H.J. Lu <hjl@gnu.org>
3319
3320 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
3321 pltoff entries for DT_INIT and DT_FINI.
3322 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
3323 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
3324 entries.
3325
33262000-11-16 Richard Henderson <rth@redhat.com>
3327
3328 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
3329 (allocate_dynrel_entries): Likewise.
3330 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
3331 (set_pltoff_entry): Likewise.
3332 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
3333 (elfNN_ia64_reloc_type_lookup): Likewise.
3334 (elfNN_ia64_install_value): Likewise.
3335 (elfNN_ia64_relocate_section): Likewise.
3336 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
3337 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
3338
33392000-11-16 Kazu Hirata <kazu@hxi.com>
3340
3341 * cpu-a29k.c: Fix formatting.
3342 * cpu-alpha.c: Likewise.
3343 * cpu-arm.c: Likewise.
3344 * cpu-avr.c: Likewise.
3345 * cpu-d10v.c: Likewise.
3346 * cpu-h8500.c: Likewise.
3347 * cpu-hppa.c: Likewise.
3348 * cpu-i370.c: Likewise.
3349 * cpu-i386.c: Likewise.
3350 * cpu-i960.c: Likewise.
3351 * cpu-ia64-opc.c: Likewise.
3352 * cpu-ia64.c: Likewise.
3353 * cpu-m32r.c: Likewise.
3354 * cpu-m68hc11.c: Likewise.
3355 * cpu-m68hc12.c: Likewise.
3356 * cpu-m68k.c: Likewise.
3357 * cpu-m88k.c: Likewise.
3358 * cpu-mips.c: Likewise.
3359 * cpu-ns32k.c: Likewise.
3360 * cpu-pj.c: Likewise.
3361 * cpu-powerpc.c: Likewise.
3362 * cpu-sh.c: Likewise.
3363 * cpu-sparc.c: Likewise.
3364 * cpu-tic54x.c: Likewise.
3365 * cpu-v850.c: Likewise.
3366 * cpu-vax.c: Likewise.
3367 * cpu-w65.c: Likewise.
3368 * cpu-we32k.c: Likewise.
3369 * cpu-z8k.c: Likewise.
3370 * dwarf1.c: Likewise.
3371 * dwarf2.c: Likewise.
3372
33732000-11-15 Kazu Hirata <kazu@hxi.com>
3374
3375 * coff-arm.c: Fix formatting.
3376 * coff-ppc.c: Likewise.
3377 * coff-rs6000.c: Likewise.
3378 * coff-sh.c: Likewise.
3379 * coff-sparc.c: Likewise.
3380 * coff-tic30.c: Likewise.
3381 * coff-tic54x.c: Likewise.
3382 * coff-tic80.c: Likewise.
3383 * coff-w65.c: Likewise.
3384 * coff-we32k.c: Likewise.
3385 * coff-z8k.c: Likewise.
3386
33872000-11-15 Richard Henderson <rth@redhat.com>
3388
3389 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
3390 section with the same ALLOC|LOAD flags as the source section.
3391
33922000-11-14 Jakub Jelinek <jakub@redhat.com>
3393
3394 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
3395 by STO_ALPHA constants.
3396
33972000-11-14 Kazu Hirata <kazu@hxi.com>
3398
3399 * coff-pmac.c: Fix formatting.
3400 * coff-ppc.c: Likewise.
3401
34022000-11-13 H.J. Lu <hjl@gnu.org>
3403
3404 * elflink.h (elf_link_add_object_symbols): Also add indirect
3405 symbols for common symbols with the default version.
3406
34072000-11-09 Philip Blundell <pb@futuretv.com>
3408
3409 * section.c (STD_SECTION): Set gc_mark flag.
3410
34112000-11-11 Kazu Hirata <kazu@hxi.com>
3412
3413 * coff-i960.c: Likewise.
3414 * coff-m68k.c: Likewise.
3415 * coff-m88k.c: Likewise.
3416 * coff-mcore.c: Likewise.
3417 * coff-mips.c: Likewise.
3418
34192000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
3420
3421 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
3422
34232000-11-10 Kazu Hirata <kazu@hxi.com>
3424
3425 * coff-h8300.c: Fix formatting.
3426 * coff-h8500.c: Likewise.
3427 * coff-i386.c: Likewise.
3428 * coff-i860.c: Likewise.
3429 * coff-i960.c: Likewise.
3430 * coff-ia64.c: Likewise.
3431
34322000-11-09 Kazu Hirata <kazu@hxi.com>
3433
3434 * archive.c: Fix formatting.
3435 * archures.c: Likewise.
3436
34372000-11-07 Richard Henderson <rth@redhat.com>
3438
3439 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
3440 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
3441 * section.c (bfd_set_section_contents): Call memcpy if
3442 section->contents set and location not equal to contents plus offset.
3443
34442000-11-08 Kazu Hirata <kazu@hxi.com>
3445
3446 * bfd-in.h: Fix formatting.
3447 * bfd-in2.h: Likewise.
3448 * bfd.c: Likewise.
3449 * binary.c: Likewise.
3450 * bout.c: Likewise.
3451 * coff-a29k.c: Likewise.
3452 * coff-alpha.c: Likewise.
3453 * coff-apollo.c: Likewise.
3454 * coff-aux.c: Likewise.
3455
34562000-11-07 Kazu Hirata <kazu@hxi.com>
3457
3458 * aix386-core.c: Fix formatting.
3459 * aoutf1.h: Likewise.
3460 * aoutx.h: Likewise.
3461 * archures.c: Likewise.
3462 * armnetbsd.c: Likewise.
3463
34642000-11-07 Alan Modra <alan@linuxcare.com.au>
3465
3466 * coff-h8300.c (special): Adjust reloc address.
3467
34682000-11-06 Steve Ellcey <sje@cup.hp.com>
3469
3470 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
3471 to differentiate elf32 and elf64 on ia64.
3472 * bfd-in2.h: Regenerate.
3473 * config.bfd: Add target for "ia64*-*-hpux*".
3474 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
3475 * configure: Regenerate.
3476 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
3477 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
3478
3479 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
3480 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
3481 * Makefile.in: Regnerate.
3482 * elf64-ia64.c: Deleted.
3483 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
3484
34852000-11-06 Kazu Hirata <kazu@hxi.com>
3486
3487 * aout-adobe.c: Fix formatting.
3488 * aout-arm.c: Likewise.
3489 * aout-cris.c: Likewise.
3490 * aout-encap.c: Likewise.
3491 * aout-ns32k.c: Likewise.
3492 * aout-target.h: Likewise.
3493 * aout-tic30.c: Likewise.
3494
34952000-11-05 Philip Blundell <philb@gnu.org>
3496
3497 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
3498 BFDs containing no sections to be merged, regardless of their flags.
3499
35002000-11-04 Philip Blundell <philb@gnu.org>
3501
3502 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
3503 if a relocation for an undefined symbol also results in an
3504 overflow.
3505
35062000-11-06 Christopher Faylor <cgf@cygnus.com>
3507
3508 * config.bfd: Add support for Sun Chorus.
3509
35102000-11-05 David O'Brien <obrien@FreeBSD.org>
3511
3512 * configure.in: Recognize alpha-*-freebsd*.
3513 * configure: Regenerate.
3514
35152000-11-02 Luciano Gemme <ishitawa@yahoo.com>
3516
3517 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
3518 (Chunk): New global variable set by a parameter in objcopy.c.
3519 (S3Forced): New global variable set by a parameter in
3520 objcopy.c.
3521 (srec_set_section_contents): If S3Forced is true, always generate
3522 S3 records.
3523 (srec_write_section): Use 'Chunk' to limit maximum length of S
3524 records.
3525
35262000-11-02 Per Lundberg <plundis@chaosdev.org>
3527
3528 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
3529 * Makefile.in: Regenerate.
3530 * bfd-in2.h: Regenerate.
3531 * po/bfd.pot: Regenerate.
3532
35332000-10-31 Philip Blundell <philb@gnu.org>
3534
3535 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
3536 EF_SOFT_FLOAT if it is defined.
3537
35382000-10-27 Philip Blundell <philb@gnu.org>
3539
3540 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
3541 attempts to mix PIC code with non-PIC, just mark the output as
3542 being position dependent.
3543 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
3544 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
3545 all mismatches, not just the first one.
3546
35472000-10-25 Chris Demetriou <cgd@sibyte.com>
3548
3549 * ieee.c (ieee_archive_p): Plug one of many possible
3550 memory leaks in error handling.
3551
35522000-10-20 Jakub Jelinek <jakub@redhat.com>
3553
3554 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
3555 elf32_sparc_object_p, elf32_sparc_final_write_processing):
3556 Support v8plusb.
3557 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
3558 sparc64_elf_object_p): Support v9b.
3559 * archures.c: Declare v8plusb and v9b machines.
3560 * bfd-in2.h: Ditto.
3561 * cpu-sparc.c: Ditto.
3562
35632000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3564
3565 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
3566 of a GOT reloc.
3567
3568 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
3569 (SYMBOL_CALLS_LOCAL): New macro.
3570 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
3571 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
3572 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
3573 (ppc_elf_relocate_section): Use flag variable to determine
3574 whether the relocation refers to a local symbol.
3575 Test whether a PLTREL24 reloc will produce a reloc by looking
3576 to see whether a PLT entry was made.
3577
35782000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3579
3580 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
3581 entries that could serve as a definition for a weak symbol.
3582
35832000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
3584
3585 From Ralf Baechle <ralf@gnu.org>
3586
3587 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
3588 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
3589 against local symbols.
3590 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
3591
35922000-10-12 Alan Modra <alan@linuxcare.com.au>
3593
3594 * section.c (struct sec): Add kept_section.
3595 (struct bfd_comdat_info): Remove sec, we can use above.
3596 (STD_SECTION): Add initializer.
3597 (bfd_make_section_anyway): Init here too.
3598
3599 * bfd-in2.h: Regenerate.
3600
3601 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
3602 zeroing of `flags'.
3603 (elf_link_input_bfd): Set all asection->symbol->value's here, and
3604 fudge values for discarded link-once section symbols.
3605
3606 * elf64-hppa.c: Include alloca-conf.h
3607
36082000-10-11 Alan Modra <alan@linuxcare.com.au>
3609
3610 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3611
3612 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3613
36142000-10-10 Alan Modra <alan@linuxcare.com.au>
3615
3616 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3617
36182000-10-10 Tom Rix <trix@redhat.com>
3619
3620 * section.c (bfd_make_section_anyway): Release newsect ptr when
3621 newsect->symbol fails to alloc. Use bfd_release instead of free.
3622
36232000-10-09 Richard Henderson <rth@cygnus.com
3624
3625 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3626 (elf64_ia64_unwind_entry_compare): New.
3627 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3628
36292000-10-07 Alan Modra <alan@linuxcare.com.au>
3630
3631 * elflink.h (size_dynamic_sections): Don't create various tags if
3632 .dynstr is excluded from the link. Don't set first dynsym entry
3633 if dynsymcount is zero.
3634 (elf_bfd_final_link): Don't try to swap out dynamic syms if
3635 .dynsym excluded from the link. Don't try to write any dynamic
3636 sections excluded from the link.
3637
3638 * elf.c (swap_out_syms): Handle global section symbols.
3639
36402000-10-05 DJ Delorie <dj@redhat.com>
3641
3642 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3643 * coffcode.h (coff_set_alignment_hook): read extended reloc count
3644 (coff_write_relocs): write extended reloc count
3645 (coff_write_object_contents): account for extended relocs
3646
36472000-10-05 Jim Wilson <wilson@cygnus.com>
3648
3649 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3650 field.
3651 * elf.c (_bfd_elf_make_section_from_shdr): Call the
3652 elf_backend_section_flags function.
3653 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3654 code.
3655 (elf64_ia64_section_flags): New function containing flag conversion
3656 code.
3657 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3658 * elfxx-target.h (elf_backend_section_flags): Define.
3659 (elfNN_bed): Initialize elf_backend_section_flags field.
3660
36612000-10-02 Alan Modra <alan@linuxcare.com.au>
3662
3663 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3664 _bfd_elf32_gc_record_vtable. Correct a comment.
3665
36662000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
3667
3668 From Ralf Baechle <ralf@gnu.org>
3669
3670 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3671 produces binaries with got[1] = 0x80000001 to differenciate them
3672 for the dynamic linker from the broken binaries produced by old
3673 versions.
3674
36752000-09-30 Petr Sorfa <petrs@sco.com>
3676
3677 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3678 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3679 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3680 * configure: Regenerate.
3681
36822000-09-27 Hans-Peter Nilsson <hp@axis.com>
3683
3684 Define two bfd_targets for absence and presence of leading
3685 underscore on symbols. Make sure to only link same kind.
3686 * elf32-cris.c (cris_elf_object_p,
3687 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3688 cris_elf_merge_private_bfd_data): New.
3689 (elf_backend_object_p, elf_backend_final_write_processing,
3690 bfd_elf32_bfd_print_private_bfd_data,
3691 bfd_elf32_bfd_merge_private_bfd_data): Define.
3692 <Target vector definition>: Include elf32-target.h twice with
3693 different macro settings:
3694 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3695 bfd_elf32_us_cris_vec.
3696 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3697 (elf_symbol_leading_char): First as 0, then '_'.
3698 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3699 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3700 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3701 * configure: Regenerate.
3702 * targets.c: Declare bfd_elf32_us_cris_vec.
3703 * po/bfd.pot: Regenerate.
3704
37052000-09-29 Momchil Velikov <velco@fadata.bg>
3706
3707 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3708 R_ARM_THM_PC22 relocations.
3709
37102000-09-29 NIIBE Yutaka <gniibe@chroot.org>
3711
3712 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3713
37142000-09-29 Momchil Velikov <velco@fadata.bg>
3715
3716 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3717 is has the SEC_HAS_CONTENTS flag set.
3718