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