]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/ChangeLog
/bfd/ChangeLog
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
1 2001-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
6 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
7
8 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
9
10 2001-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
35 2001-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
40 2001-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
45 2001-09-11 H.J. Lu <hjl@gnu.org>
46
47 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
48
49 2001-09-09 Richard Henderson <rth@redhat.com>
50
51 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
52
53 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
54 following a call to a near function.
55
56 2001-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
62 2001-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
70 2001-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.
74
75 2001-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
81 2001-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
92 2001-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
106 2001-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
122 2001-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
129 2001-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
134 2001-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
145 2001-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
151 2001-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
159 2001-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
166 2001-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
172 2001-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
178 2001-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
183 2001-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
206 2001-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
211 2001-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
217 Wed 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
230 2001-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
241 2001-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
248 2001-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
267 2001-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
275 2001-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
285 2001-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
295 2001-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
316 2001-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
325 2001-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
348 2001-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
371 2001-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
384 2001-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
405 2001-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
410 2001-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
415 2001-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
435 2001-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
449 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
450
451 * bfd.c (bfd_alt_mach_code): New function.
452 * bfd-in2.h: Rebuilt.
453
454 2001-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
460 2001-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
477 2001-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
482 2001-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
491 2001-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
515 2001-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
532 2001-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
573 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
574
575 * configure.in (x86-bsdi): No corefile support.
576 * configure: Regenerate.
577
578 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
579
580 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
581 comma.
582
583 2001-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
589 2001-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
596 2001-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
605 2001-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
611 2001-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
618 2001-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
628 2001-08-17 Alan Modra <amodra@bigpond.net.au>
629
630 * linker.c (default_fill_link_order): Handle four byte fill value.
631
632 2001-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
665 2001-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
679 2001-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
694 2001-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
723 2001-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
730 2001-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
738 2001-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
758 2001-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
766 2001-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
771 2001-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
776 2001-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
781 2001-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
787 2001-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
822 2001-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
827 2001-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
834 2001-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
849 2001-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
870 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
871
872 * bfd.c: Fix formatting.
873 * bfd-in2.h: Regenerate.
874
875 2001-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
881 2001-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
890 2001-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
898 2001-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
903 2001-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
909 2001-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
917 2001-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
924 2001-08-01 Adam Nemet <anemet@lnxw.com>
925
926 * elf.c (elf_sort_sections): Return zero only as the last step.
927
928 2001-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
936 2001-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
941 2001-07-24 Alan Modra <amodra@bigpond.net.au>
942
943 * Makefile.am: Update dependencies with "make dep-am".
944 * Makefile.in: Regenerate
945
946 2001-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
952 2001-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
958 2001-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
971 2001-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
983 2001-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
989 2001-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
996 2001-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
1003 2001-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
1009 2001-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
1016 2001-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
1031 2001-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
1054 2001-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
1060 2001-06-29 Alan Modra <amodra@bigpond.net.au>
1061
1062 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1063
1064 2001-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
1098 2001-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
1111 2001-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
1116 2001-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
1123 2001-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
1166 2001-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
1171 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1172
1173 * configure.host (mips64-*-linux): Reformat.
1174
1175 2001-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
1186 2001-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
1213 2001-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
1218 2001-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
1223 2001-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
1233 2001-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
1241 2001-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
1259 2001-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
1273 2001-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
1278 2001-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
1285 2001-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
1300 2001-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
1306 2001-06-08 H.J. Lu <hjl@gnu.org>
1307
1308 * elf.c (swap_out_syms): Keep names for global section symbols.
1309
1310 2001-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
1315 2001-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
1322 2001-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
1329 2001-06-06 Christian Groessler <cpg@aladdin.de>
1330
1331 * coff-z8k.c: Fix formatting.
1332 Fix howtos: howto->size was always 1.
1333
1334 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1335
1336 * configure.host (mips64*-*-linux*): Define.
1337
1338 2001-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
1384 2001-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
1390 2001-06-02 H.J. Lu <hjl@gnu.org>
1391
1392 * aout-cris.c (MACHTYPE_OK): New. Defined.
1393
1394 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
1395
1396 * section.c (_bfd_strip_section_from_output): Handle NULL
1397 output_section.
1398
1399 2001-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
1405 2001-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
1410 2001-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
1415 2001-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
1420 2001-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
1439 2001-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
1445 2001-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
1455 2001-05-28 Nicolas Pitre <nico@cam.org>
1456
1457 * elf32-arm.h: fix PLT generation for big endian ARM
1458
1459 2001-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
1471 2001-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
1480 2001-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
1490 2001-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
1500 2001-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
1505 2001-05-25 H.J. Lu <hjl@gnu.org>
1506
1507 * bfd-in2.h: Regenerated.
1508 * libcoff.h: Likewise.
1509
1510 2001-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
1522 2001-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
1571 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1572
1573 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1574 s/ENTIRES/ENTRIES/.
1575
1576 2001-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
1591 2001-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
1598 2001-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
1610 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1611
1612 * bfdint.texi: Replace -oformat with --oformat.
1613
1614 2001-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
1620 2001-05-18 H.J. Lu <hjl@gnu.org>
1621
1622 * elflink.h (elf_link_add_object_symbols): Revert the last
1623 change.
1624
1625 2001-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
1631 2001-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
1636 2001-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
1641 2001-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
1648 2001-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
1654 2001-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
1664 2001-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
1671 2001-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
1723 2001-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
1728 2001-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
1733 2001-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
1739 2001-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
1746 2001-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
1758 2001-05-04 Richard Henderson <rth@redhat.com>
1759
1760 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1761
1762 2001-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
1767 2001-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
1772 2001-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
1781 2001-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
1804 2001-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
1810 2001-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
1821 2001-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
1826 2001-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
1831 2001-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
1840 2001-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
1846 2001-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
1851 2001-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
1856 2001-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
1873 2001-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
1878 2001-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
1902 2001-04-23 Bo Thorsen <bo@suse.de>
1903
1904 * elf64-x86-64.c: Add c++ vtable hack.
1905 Small whitespace and comment changes.
1906
1907 2001-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
1914 2001-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
1932 2001-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
1937 2001-04-14 H.J. Lu <hjl@gnu.org>
1938
1939 * bfd-in2.h: Regenerate.
1940
1941 2001-04-14 Jakub Jelinek <jakub@redhat.com>
1942
1943 * section.c (STD_SECTION): Add entsize.
1944
1945 2001-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
1951 2001-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
1956 2001-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
1985 2001-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
1990 2001-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
2015 2001-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
2020 2001-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
2025 2001-04-03 David Mosberger <davidm@hpl.hp.com>
2026
2027 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2028
2029 2001-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
2034 2001-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
2045 2001-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
2074 2001-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
2125 2001-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
2130 2001-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
2135 2001-03-20 H.J. Lu <hjl@gnu.org>
2136
2137 * configure.in: Remove the redundent AC_ARG_PROGRAM.
2138 * configure: Rebuild.
2139
2140 2001-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
2146 2001-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
2151 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
2152
2153 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
2154
2155 2001-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
2167 2001-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
2173 2001-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
2179 2001-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
2184 2001-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
2189 2001-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
2194 2001-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
2199 2001-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
2207 2001-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
2212 2001-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
2220 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
2221
2222 * configure.in: Add s390 target.
2223 * configure: Regenerate.
2224
2225 2001-02-28 Andreas Jaeger <aj@suse.de>
2226
2227 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
2228 to addend.
2229
2230 2001-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
2235 2001-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
2240 2001-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
2254 2001-02-26 Timothy Wall <twall@cygnus.com>
2255
2256 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
2257 comments.
2258
2259 2001-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
2265 2001-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
2271 2001-02-26 Andreas Jaeger <aj@suse.de>
2272
2273 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
2274
2275 2001-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
2286 2001-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
2292 2001-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
2297 2001-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
2303 2001-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
2312 2001-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
2333 2001-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
2338 2001-02-18 H.J. Lu <hjl@gnu.org>
2339
2340 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
2341 index.
2342
2343 2001-02-18 Kazu Hirata <kazu@hxi.com>
2344
2345 * vms-misc.c: Fix formatting.
2346
2347 2001-02-16 Kazu Hirata <kazu@hxi.com>
2348
2349 * vms.c: Fix formatting.
2350
2351 2001-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
2357 2001-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
2371 2001-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
2376 2001-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
2391 2001-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
2396 2001-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
2402 2001-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
2462 2001-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
2467 2001-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
2477 2001-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
2481 2001-02-11 H.J. Lu <hjl@gnu.org>
2482
2483 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
2484 alignment.
2485
2486 2001-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
2519 2001-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
2524 2001-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
2546 2001-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
2560 2001-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
2565 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2566
2567 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2568
2569 2001-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
2574 2001-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
2580 2001-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
2586 2001-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
2592 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2593
2594 * config.bfd: Enable coff64 for rs6000-*. Patch from
2595 <hzoli@austin.ibm.com>.
2596
2597 2001-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
2602 2001-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
2609 2001-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
2618 2001-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
2624 2001-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
2632 2001-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
2639 2001-02-06 Kazu Hirata <kazu@hxi.com>
2640
2641 * elf-m10200.c: Fix formatting.
2642
2643 2001-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
2648 2001-02-02 Fred Fish <fnf@ninemoons.com>
2649
2650 * Makefile.in: Fix typo.
2651
2652 2001-02-01 Kazu Hirata <kazu@hxi.com>
2653
2654 * elf-m10300.c: Fix formatting.
2655
2656 2001-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
2663 2001-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
2668 2001-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
2675 2001-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
2684 2001-01-25 Kazu Hirata <kazu@hxi.com>
2685
2686 * bfd-in2.h: Rebuild.
2687 * libbfd.h: Likewise.
2688
2689 2001-01-23 H.J. Lu <hjl@gnu.org>
2690
2691 * bfd-in2.h: Rebuild.
2692
2693 2001-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
2698 2001-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
2742 2001-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
2757 2001-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
2762 2001-01-21 Kazu Hirata <kazu@hxi.com>
2763
2764 * coff-a29k.c: Fix formatting.
2765
2766 2001-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
2773 2001-01-17 Bo Thorsen <bo@suse.de>
2774
2775 * targets.c: Alphabetize list of xvecs.
2776
2777 2001-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
2820 2001-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
2828 2001-01-12 Alan Modra <alan@linuxcare.com.au>
2829
2830 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2831 * configure: Regenerate.
2832
2833 2001-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
2846 2001-01-10 Nick Clifton <nickc@redhat.com>
2847
2848 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2849
2850 2001-01-07 Philip Blundell <philb@gnu.org>
2851
2852 * README: Replace `bug-gnu-utils@gnu.org' with
2853 `bug-binutils@gnu.org'.
2854
2855 2001-01-04 Kazu Hirata <kazu@hxi.com>
2856
2857 * som.c: Fix formatting.
2858
2859 2001-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
2875 2001-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
2889 2001-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
2896 2000-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
2902 2000-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
2910 2000-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
2915 2000-12-25 Kazu Hirata <kazu@hxi.com>
2916
2917 * vms-tir.c: Fix formatting.
2918
2919 2000-12-23 Kazu Hirata <kazu@hxi.com>
2920
2921 * vms.c: Fix formatting.
2922 * vms.h: Likewise.
2923
2924 2000-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
2937 2000-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
2944 2000-12-20 Kazu Hirata <kazu@hxi.com>
2945
2946 * targets.c: Fix formatting.
2947 * tekhex.c: Likewise.
2948 * trad-core.c: Likewise.
2949
2950 2000-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
2964 2000-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
2971 2000-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
2976 2000-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
2981 2000-12-14 Kazu Hirata <kazu@hxi.com>
2982
2983 * peigen.c: Fix formatting.
2984 * som.c: Likewise.
2985 * som.h: Likewise.
2986
2987 2000-12-13 Kazu Hirata <kazu@hxi.com>
2988
2989 * peigen.c: Fix formatting.
2990
2991 2000-12-12 Jim Wilson <wilson@redhat.com>
2992
2993 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2994
2995 2000-12-08 Mark Salter <msalter@redhat.com>
2996
2997 * binary.c (binary_set_section_contents): Ignore sections
2998 with zero size.
2999
3000 2000-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
3017 2000-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
3022 2000-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
3030 2000-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
3039 2000-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
3071 2000-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
3088 2000-12-07 Kazu Hirata <kazu@hxi.com>
3089
3090 * elf32-ppc.c: Fix formatting.
3091 * elf64-x86-64.c: Likewise.
3092
3093 2000-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
3101 2000-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
3111 2000-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
3120 2000-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
3131 2000-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
3180 2000-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
3186 2000-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
3203 2000-11-30 Kazu Hirata <kazu@hxi.com>
3204
3205 * xcofflink.c: Fix formatting.
3206
3207 2000-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
3220 2000-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
3227 2000-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
3237 2000-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
3242 2000-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
3260 2000-11-23 Kazu Hirata <kazu@hxi.com>
3261
3262 * aix386-core.c: Fix formatting.
3263
3264 2000-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
3285 2000-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
3301 2000-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
3306 2000-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
3323 2000-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
3331 2000-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
3344 2000-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
3378 2000-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
3392 2000-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
3397 2000-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
3402 2000-11-14 Kazu Hirata <kazu@hxi.com>
3403
3404 * coff-pmac.c: Fix formatting.
3405 * coff-ppc.c: Likewise.
3406
3407 2000-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
3412 2000-11-09 Philip Blundell <pb@futuretv.com>
3413
3414 * section.c (STD_SECTION): Set gc_mark flag.
3415
3416 2000-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
3424 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
3425
3426 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
3427
3428 2000-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
3437 2000-11-09 Kazu Hirata <kazu@hxi.com>
3438
3439 * archive.c: Fix formatting.
3440 * archures.c: Likewise.
3441
3442 2000-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
3449 2000-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
3461 2000-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
3469 2000-11-07 Alan Modra <alan@linuxcare.com.au>
3470
3471 * coff-h8300.c (special): Adjust reloc address.
3472
3473 2000-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
3490 2000-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
3500 2000-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
3505 2000-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
3511 2000-11-06 Christopher Faylor <cgf@cygnus.com>
3512
3513 * config.bfd: Add support for Sun Chorus.
3514
3515 2000-11-05 David O'Brien <obrien@FreeBSD.org>
3516
3517 * configure.in: Recognize alpha-*-freebsd*.
3518 * configure: Regenerate.
3519
3520 2000-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
3531 2000-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
3538 2000-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
3543 2000-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
3552 2000-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
3557 2000-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
3568 2000-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
3583 2000-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
3588 2000-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
3597 2000-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
3613 2000-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
3619 2000-10-10 Alan Modra <alan@linuxcare.com.au>
3620
3621 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3622
3623 2000-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
3628 2000-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
3634 2000-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
3645 2000-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
3652 2000-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
3666 2000-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
3671 2000-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
3680 2000-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
3687 2000-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
3710 2000-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
3715 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
3716
3717 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3718
3719 2000-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 2000-09-28 \81Örjan Friberg <orjanf@axis.com>
3725 Hans-Peter Nilsson <hp@axis.com>
3726
3727 * aout-cris.c (N_TXTADDR): Define.
3728
3729 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3730
3731 * som.c: Include alloca-conf.h.
3732 * Makefile.am: "make dep-am"
3733 * Makefile.in: Regenerate.
3734
3735 2000-09-27 Alan Modra <alan@linuxcare.com.au>
3736
3737 * elf32-hppa.c (plt_stub): New.
3738 (PLT_STUB_ENTRY): Define.
3739 (elf32_hppa_link_hash_table): Change multi_subspace to packed
3740 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
3741 (elf32_hppa_link_hash_table_create): Init to suit.
3742 (elf32_hppa_check_relocs): Set has_12bit_branch and
3743 has_17bit_branch as appropriate.
3744 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
3745 non-local functions.
3746 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
3747 Add space for plt_stub as needed.
3748 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
3749 functions at plt_stub.
3750 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
3751 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
3752
3753 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
3754 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
3755 of fixed size, and if negative, disable handling of input sections
3756 before stub section. Set up default stub group size depending
3757 on detected branch relocs.
3758 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
3759 ensure different offsets from sym_value aren't rounded to
3760 different 2k blocks. Use lrsel and rrsel for other stubs too for
3761 consistency rather than necessity.
3762 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
3763 (final_link_relocate): Likewise.
3764 (elf32_hppa_relocate_section): Likewise.
3765
3766 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
3767 (_bfd_elf_hppa_gen_reloc_type): Generate them.
3768 (elf_hppa_final_link_relocate): Handle them.
3769 (elf_hppa_relocate_insn): Likewise.
3770 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
3771
3772 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
3773
3774 * elfcode.h (elf_object_p): Preserve and clear abfd section
3775 information. Restore at error.
3776
3777 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3778
3779 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
3780 is empty, make sure that its rva also 0. NT loader dislikes
3781 having otherwise.
3782
3783 2000-09-26 Steve Ellcey <sje@cup.hp.com>
3784
3785 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
3786 global by default.
3787
3788 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3789
3790 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
3791 currently unused RELATIVE_DYNAMIC_RELOCS code.
3792 (hppa_discard_copies): Likewise.
3793 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
3794 comments. Don't check non-code output sections for stub grouping.
3795
3796 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3797
3798 * section.c (bfd_get_unique_section_name): Return NULL if
3799 bfd_malloc fails.
3800
3801 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3802
3803 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
3804 instruction sequence to actually work.
3805 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
3806 accordingly.
3807
3808 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3809
3810 * elf32-sh.c (sh_elf_relocate_section): Use
3811 _bfd_final_link_relocate to apply the relocation against a section
3812 symbol, when doing relocatable links.
3813
3814 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3815
3816 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
3817 to id_sec.
3818 (stub_hash_newfunc): Here too.
3819 (hppa_add_stub): And here.
3820 (elf32_hppa_link_hash_table): Remove stub_section_created,
3821 reloc_section_created, first_init_sec and first_fini_sec. Add
3822 stub_group.
3823 (elf32_hppa_link_hash_table_create): Init to suit.
3824 (hppa_get_stub_entry): Add support for grouping stub sections.
3825 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
3826 section code. Index stub vars by section->id.
3827 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
3828 exit paths. Zap allocation of above removed vars. Refine
3829 link-once test.
3830
3831 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
3832 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
3833 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
3834 rather than pointer to bfd_link_info.
3835 (hppa_add_stub): Likewise.
3836 (final_link_relocate): Likewise.
3837
3838 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
3839
3840 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
3841 link-once sections.
3842
3843 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
3844
3845 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
3846 ld/emulparams/shelf.sh.
3847
3848 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3849
3850 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
3851 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
3852 * bfd-in2.h: Regenerate.
3853
3854 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
3855
3856 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
3857 LITUSE relocations incorrectly if -relax is specified on the ld
3858 command line and the displacement field of the load or store
3859 instruction is non-zero. (Patch by paul.winalski@compaq.com)
3860
3861 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3862
3863 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
3864 first_fini_sec here.
3865 (elf32_hppa_size_stubs): Instead correctly find the first .init
3866 and .fini section here.
3867
3868 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
3869
3870 * elf32-hppa.c (clobber_millicode_symbols): New function.
3871 (elf32_hppa_size_dynamic_sections): Call it.
3872
3873 2000-09-14 Alan Modra <alan@linuxcare.com.au>
3874
3875 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
3876 packed. Add plabel, plt_abs packed booleans.
3877 (hppa_link_hash_newfunc): Init new fields.
3878 (PLABEL_PLT_ENTRY_SIZE): Define.
3879 (hppa_stub_name): Use size_t len vars.
3880 (hppa_add_stub): Likewise.
3881 (elf32_hppa_build_stubs): Likewise.
3882 (hppa_build_one_stub): Kill some compiler warnings.
3883 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
3884 if dynamic linking. Munge the local plt offsets into
3885 local_got_refcounts. Set h->plabel for all global PLABELs. Use
3886 size_t len vars. Add assert for plabel addend.
3887 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
3888 (elf32_hppa_hide_symbol): New function.
3889 (elf_backend_hide_symbol): Define.
3890 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
3891 with h->plabel set. Don't make plt entries to have dynamic syms
3892 when they have been forced local. If plt entry is used by a
3893 plabel, make it PLABEL_PLT_ENTRY_SIZE.
3894 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
3895 Set up .plt offsets for local syms.
3896 (elf32_hppa_relocate_section): Initialise plt entries for local
3897 syms. Leave weak undefined plabels zero. Make global plabel
3898 relocs against function symbol, and leave the addend zero.
3899 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
3900 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
3901 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
3902 relocs instead of SEGREL32 for dynamic got relocs.
3903 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
3904 (elf_backend_got_header_size): Adjust.
3905 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
3906
3907 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
3908 (hppa_type_of_stub): Use it instead of #if 0
3909 (hppa_discard_copies): Use it here too.
3910 (elf32_hppa_size_dynamic_sections): And here.
3911
3912 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
3913 (elf32_hppa_link_hash_table_create): And here.
3914 (hppa_build_one_stub): And here. Instead keep track of stub
3915 offset using _raw_size.
3916 (elf32_hppa_size_stubs): Likewise.
3917 (elf32_hppa_build_stubs): Likewise.
3918 (hppa_size_one_stub): Likewise. Resize reloc section too.
3919
3920 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
3921 first_fini_sec handling. Don't search for reloc section or set
3922 hplink->reloc_section_created here.
3923 (elf32_hppa_size_stubs): Instead search for reloc sections, and
3924 set reloc_section_created here.
3925 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
3926 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
3927 and DT_FINI.
3928 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
3929
3930 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
3931 with `hplink->root.'.
3932 (elf32_hppa_check_relocs): Likewise.
3933 (elf32_hppa_gc_sweep_hook): Likewise.
3934 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3935 (hppa_handle_PIC_calls): Likewise.
3936 (elf32_hppa_size_dynamic_sections): Likewise.
3937 (elf32_hppa_set_gp): Likewise.
3938 (elf32_hppa_relocate_section): Likewise.
3939 (elf32_hppa_finish_dynamic_symbol): Likewise.
3940 (elf32_hppa_finish_dynamic_sections): Likewise.
3941
3942 From David Huggins-Daines <dhd@linuxcare.com>
3943 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
3944 defined weak symbols in shared links.
3945 (final_link_relocate): Calls to defined weak symbols in shared
3946 objects must go via import stubs, as the target might not be known
3947 at link time.
3948
3949 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3950
3951 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
3952 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
3953 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
3954 the original entries with EMPTY_HOWTOs, and added new ones to fill
3955 in the gap.
3956 (sh_elf_info_to_howto): Make sure the new gap isn't used.
3957 (sh_elf_relocate_section): Likewise.
3958
3959 2000-09-13 Anders Norlander <anorland@acc.umu.se>
3960
3961 * cpu-mips.c (arch_info_struct): Add mips:4K
3962 * bfd-in2.h (bfd_mach_mips4K): New define.
3963 * archures.c: Add bfd_mach_mips4K to comment.
3964 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
3965 E_MIPS_ARCH_2 for bfd_mach_mips4K.
3966
3967 2000-09-13 Marco Franzen <marcof@thyron.com>
3968
3969 * som.c (som_write_symbol_strings): Do not used fixed buffers,
3970 use size_t as a counter.
3971 (som_write_space_strings): Similarly.
3972
3973 2000-09-12 Jason Eckhardt <jle@cygnus.com>
3974
3975 * elf32-i860.c (elf32_i860_relocate_pc26): New function
3976 and prototype.
3977 (elf32_i860_relocate_section): Invoke new function from here.
3978
3979 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3980
3981 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3982 static.
3983
3984 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3985
3986 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3987 target section name instead of dumping core when the target symbol is
3988 undefined.
3989
3990 2000-09-09 Kazu Hirata <kazu@hxi.com>
3991
3992 * riscix.c: Remove DEFUN.
3993
3994 2000-09-08 Nick Clifton <nickc@redhat.com>
3995
3996 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
3997 initialise flags in output bfd if the input bfd is the default
3998 architecture with the default flags.
3999
4000 2000-09-08 Kazu Hirata <kazu@hxi.com>
4001
4002 * archive.c: Fix formatting.
4003 * coff-arm.c: Likewise.
4004 * doc/chew.c: Likewise.
4005
4006 2000-09-08 Alan Modra <alan@linuxcare.com.au>
4007
4008 * section.c (bfd_get_unique_section_name): Put a dot before the
4009 numeric suffix.
4010
4011 2000-09-07 Kazu Hirata <kazu@hxi.com>
4012
4013 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
4014 * elf.c: Fix formatting.
4015
4016 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4017
4018 * config.bfd (sh-*-linux*): Added.
4019 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
4020 * targets.c: Declare them.
4021 * elf32-sh-lin.c: New file.
4022 * Makefile.am: Compile it.
4023 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
4024 * configure, Makefile.in: Rebuilt.
4025
4026 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
4027
4028 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
4029 pseduo-section when determining where the TOC ends.
4030
4031 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
4032 output x_tvndx as it is only two bytes wide.
4033
4034 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
4035 reloc is 26 or 32 bits wide.
4036
4037 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
4038 for relocs that don't change anything. Also look at the full
4039 6 bits of bitsize.
4040
4041 2000-09-06 Philip Blundell <philb@gnu.org>
4042
4043 * config.bfd (arm*-*-uclinux*): New target.
4044
4045 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4046
4047 * configure: Rebuilt with new libtool.m4.
4048
4049 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4050
4051 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
4052 word for variable name.
4053 * bfd-in2.h: Regenerate.
4054
4055 2000-09-05 Nick Clifton <nickc@redhat.com>
4056
4057 * config.in: Regenerate.
4058 * libbfd.h: Regenerate.
4059 * po/bfd.pot: Regenerate.
4060 * doc/bfdint.texi: Remove CVS date string - it foils compares with
4061 local versions.
4062
4063 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
4064
4065 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
4066
4067 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4068
4069 Shared library and PIC support.
4070 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
4071 (GOT_ENTRY_SIZE): New.
4072 (ELF_DYNAMIC_INTERPRETER): New.
4073 (STUB_SUFFIX): Define.
4074 (LONG_BRANCH_PIC_IN_SHLIB): Define.
4075 (RELATIVE_DYNAMIC_RELOCS): Define.
4076 (enum elf32_hppa_stub_type): New.
4077 (struct elf32_hppa_stub_hash_entry): Rename offset to
4078 stub_offset. Add a number of new fields.
4079 (struct elf32_hppa_link_hash_entry): New.
4080 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
4081 global_value.
4082 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
4083 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
4084 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
4085 new fields.
4086 (hppa_link_hash_newfunc): New function.
4087 (elf32_hppa_link_hash_table_create): Use above function. Init new
4088 fields.
4089 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
4090 instead of addend, and remove sym_name from args. Don't use
4091 symbol name for local syms, instead use sym index.
4092 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
4093 stub type rather than size. Pass in hash and handle import stub
4094 case. Also pass in reloc instead of offset so we can calculate
4095 PCREL22F and PCREL12F branches properly.
4096 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
4097 import and export stubs too.
4098 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
4099 import and export stub sizing.
4100 (elf32_hppa_check_relocs): New function.
4101 (elf32_hppa_adjust_dynamic_symbol): New function.
4102 (hppa_discard_copies): New function.
4103 (elf32_hppa_size_dynamic_sections): New function.
4104 (elf_backend_size_dynamic_sections): Define.
4105 (elf32_hppa_finish_dynamic_symbol): New function.
4106 (elf_backend_finish_dynamic_symbol): Define.
4107 (elf32_hppa_size_stubs): Stash params in link hash table, and move
4108 some local vars into the link hash table too. For shared links,
4109 trundle over function syms, generating export stubs. Handle
4110 PCREL22F branches. Break out stub creation code from here..
4111 (hppa_add_stub): .. to here. New function.
4112 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
4113 call the bfd linker. Use elf_gp to record global pointer.
4114 Calculate a value from sections if $global$ is missing.
4115 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
4116 (elf32_hppa_gc_mark_hook): New function.
4117 (elf_backend_gc_mark_hook): Define.
4118 (elf32_hppa_gc_sweep_hook): New function.
4119 (elf_backend_gc_sweep_hook): Define.
4120 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
4121 Add rel to args, and remove howto, input_bfd, offset, addend,
4122 sym_name as we can recalculate these locally. Handle calls to
4123 dynamic objects, extra PIC relocs, PCREL22F branches. Change
4124 handling of undefined weak syms. Check that stubs are in range.
4125 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
4126 message on hitting a DPREL21L reloc that needs fixing. Subtract
4127 off PC for PCREL14F. Break out code that does a stub lookup from
4128 here..
4129 (hppa_get_stub_entry): ..to here. New function.
4130 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
4131 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
4132 relocs, etc. etc.
4133 (elf32_hppa_finish_dynamic_sections): New function.
4134 (elf_backend_finish_dynamic_sections): Define.
4135 (elf_backend_final_write_processing) Define.
4136 (hppa_handle_PIC_calls): New function.
4137 (elf32_hppa_build_stubs): Call it. Pass link_info to
4138 hppa_build_one_stub.
4139 (elf32_hppa_create_dynamic_sections): New function
4140 to create .plt and .got then set .plt flags correctly.
4141 (elf_backend_create_dynamic_sections): Define.
4142 (elf32_hppa_object_p): New function.
4143 (elf_backend_object_p): Define.
4144 (elf32_hppa_elf_get_symbol_type): New function.
4145 (elf_backend_get_symbol_type): Define.
4146 (elf_backend_can_gc_sections): Define.
4147 (elf_backend_want_got_plt): Define.
4148 (elf_backend_plt_alignment): Set to 2.
4149 (elf_backend_plt_readonly): Define.
4150 (elf_backend_want_plt_sym): Define.
4151 (elf_backend_got_header_size): Reserve one entry.
4152
4153 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
4154 (elf32_hppa_size_stubs): Pass in multi_subspace.
4155 (elf32_hppa_set_gp): Declare.
4156
4157 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
4158 (bfd_get_unique_section_name): New function.
4159 * bfd-in2.h: Regenerate.
4160
4161 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
4162 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
4163 comment.
4164
4165 From David Huggins-Daines <dhd@linuxcare.com>
4166 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
4167 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
4168 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
4169 been updated in finish_dynamic_symbol before modifying function
4170 symbol.
4171
4172 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
4173 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
4174 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
4175 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
4176 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
4177 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
4178 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
4179 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
4180
4181 From David Huggins-Daines <dhd@linuxcare.com>
4182 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
4183 style of local labels as well.
4184
4185 2000-09-03 Philip Blundell <philb@gnu.org>
4186
4187 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
4188 references to undefined symbols in debugging sections.
4189
4190 2000-09-02 H.J. Lu <hjl@gnu.org>
4191
4192 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
4193 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
4194 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
4195 section.
4196
4197 2000-09-02 Jason Eckhardt <jle@cygnus.com>
4198
4199 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
4200 (elf32_i860_is_local_label_name): New function and prototype.
4201
4202 2000-09-02 Nick Clifton <nickc@redhat.com>
4203
4204 * configure.in: Increase version number to 2.10.91.
4205 * configure: Regenerate.
4206 * aclocal.m4: Regenerate.
4207 * config.in: Regenerate.
4208 * po/bfd.pot: Regenerate.
4209
4210 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4211
4212 * elf.c (_bfd_elf_make_section_from_shdr): Add
4213 .gnu.linkobce.wi. to the list of debug section names.
4214
4215 2000-09-02 Nick Clifton <nickc@redhat.com>
4216
4217 * dwarf2.c (find_debug_info): New function: Locate a section
4218 containing dwarf2 debug information.
4219 (bfd_dwarf2_find_nearest_line): Find all sections containing
4220 debug information and include them in the stash.
4221
4222 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4223
4224 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
4225 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
4226 (sh_reloc_map): Add new relocs.
4227 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
4228 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
4229 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
4230 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
4231 functions.
4232 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
4233 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
4234 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
4235 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
4236 New array constants.
4237 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
4238 New variables.
4239 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
4240 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
4241 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
4242 elf_sh_plt_reloc_offset): Define.
4243 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
4244 elf_sh_link_hash_table): New structs.
4245 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
4246 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
4247 relocation types.
4248 (elf_backend_create_dynamic_sections,
4249 bfd_elf32_bfd_link_hash_table_create,
4250 elf_backend_adjust_dynamic_symbol,
4251 elf_backend_size_dynamic_sections,
4252 elf_backend_finish_dynamic_symbol,
4253 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
4254 elf_backend_plt_readonly, elf_backend_want_plt_sym,
4255 elf_backend_got_header_size, elf_backend_plt_header_size):
4256 Define.
4257 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
4258 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
4259 New relocs.
4260 * bfd-in2.h, libbfd.h: Rebuilt.
4261
4262 2000-09-01 Alan Modra <alan@linuxcare.com.au>
4263
4264 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
4265 change.
4266
4267 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
4268
4269 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
4270 not initialized, set them to indicate the SH1 instruction set.
4271
4272 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4273
4274 * acinclude.m4: Include libtool and gettext macros from the
4275 top level.
4276 * aclocal.m4, configure: Rebuilt.
4277
4278 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
4279
4280 * elf.c: Eliminate references to __sparcv9 macro; replace with
4281 autoconf variables HAVE_PSINFO32_T etc.
4282 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
4283 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
4284 * config.in: Ditto.
4285 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
4286 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
4287 * aclocal.m4: Ditto.
4288 * configure: Regenerate.
4289
4290 2000-08-27 Alan Modra <alan@linuxcare.com.au>
4291
4292 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
4293 for any shared link, not just shared -Bsymbolic.
4294 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
4295 any shared link, and pass link info to it.
4296 (elf_i386_size_dynamic_sections): Update comment.
4297 (elf_i386_discard_copies): Modify to discard relocs for symbols
4298 that have been forced local.
4299 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
4300 that have been forced local.
4301
4302 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
4303
4304 * elflink.h (elf_link_add_object_symbols): Allow common
4305 symbols to have an alignment of 1 if explicitly requested, and
4306 not overridden by other definitions.
4307
4308 2000-08-22 Doug Kwan <dkwan@transmeta.com>
4309
4310 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
4311 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
4312
4313 2000-08-22 H.J. Lu <hjl@gnu.org>
4314
4315 * elf-bfd.h (elf_link_hash_table): Add runpath.
4316
4317 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
4318 * bfd-in2.h: Rebuilt.
4319
4320 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
4321 "runpath" field to NULL.
4322 (bfd_elf_get_runpath_list): New function.
4323
4324 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
4325 DT_RUNPATH entries.
4326
4327 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
4328
4329 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
4330 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
4331 explicitly. Improve validation of r_type.
4332
4333 2000-08-21 H.J. Lu <hjl@gnu.org>
4334
4335 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
4336 dynamic allocated content space. Add a comment to remind us that
4337 one day this ought to be fixed.
4338 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4339 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4340 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4341
4342 2000-08-21 Jason Eckhardt <jle@cygnus.com>
4343
4344 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
4345 field with the newly relocated value instead of adding it to the
4346 existing immediate field.
4347 (elf32_i860_relocate_splitn): Likewise.
4348 (elf32_i860_relocate_highadj): Likewise.
4349
4350 2000-08-16 Jason Eckhardt <jle@cygnus.com>
4351
4352 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
4353 was previously just a stub).
4354
4355 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
4356
4357 * elflink.c (_bfd_elf_create_got_section): Don't abort().
4358 Formatting fixes.
4359 (_bfd_elf_create_dynamic_sections): Likewise.
4360
4361 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
4362
4363 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
4364 for undefined symbols to be the beginning of the section.
4365
4366 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
4367 four extra entries at the beginning of the .rela.plt section.
4368 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
4369 section to account for the four reserved entries in the .plt section.
4370
4371 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
4372
4373 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
4374 to the list of NOPs we recognize after a branch-and-link.
4375 Use the ori NOP when one is needed.
4376
4377 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
4378 for large archives.
4379
4380 2000-08-14 Jim Wilson <wilson@cygnus.com>
4381
4382 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
4383 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
4384 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
4385 EF_IA_64_ABSOLUTE.
4386
4387 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
4388
4389 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
4390
4391 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4392
4393 * elf32-i860.c (elf32_i860_relocate_section): New function.
4394 (i860_final_link_relocate): New function.
4395 (elf32_i860_relocate_splitn): New function.
4396 (elf32_i860_relocate_pc16): New function.
4397 (elf32_i860_relocate_highadj): New function.
4398 (elf32_i860_howto): Minor adjustments to some relocations.
4399 (elf_info_to_howto_rel): Define.
4400 (elf_backend_relocate_section): Define.
4401
4402 2000-08-10 Nick Clifton <nickc@cygnus.com>
4403
4404 * elf32-arm.h: Fix formatting.
4405
4406 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
4407
4408 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
4409
4410 2000-08-08 Jason Eckhardt <jle@cygnus.com>
4411
4412 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
4413
4414 2000-08-07 Kazu Hirata <kazu@hxi.com>
4415
4416 * ieee.c (ieee_write_debug_part): Rewrite a comment.
4417 * elf64-ia64.c: Fix a typo.
4418
4419 2000-08-05 Jason Eckhardt <jle@cygnus.com>
4420
4421 * elf32-i860.c (elf32_i860_howto_table): New structure.
4422 (lookup_howto): New function.
4423 (elf32_i860_reloc_type_lookup): New function.
4424 (elf32_i860_info_to_howto_rela): New function.
4425 (elf_code_to_howto_index): New structure.
4426 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
4427 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
4428 elf32_i860_reloc_type_lookup.
4429
4430 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
4431
4432 * som.c (struct fixup_format): Constify `format'.
4433 (som_hppa_howto_table): Use SOM_HOWTO macro.
4434 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
4435 (som_bfd_reloc_type_lookup): Likewise.
4436 (compare_subspaces): Remove unused `count1', `count2'.
4437 (som_begin_writing): Remove unused `total_reloc_size'.
4438 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
4439 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
4440 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
4441 (som_find_nearest_line): Decorate unused parameter(s).
4442 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
4443 (som_bfd_link_split_section): Likewise.
4444
4445 2000-08-03 Nick Clifton <nickc@cygnus.com>
4446
4447 * section.c: Restore backed out code.
4448 * elf.c: Restore backed out code.
4449 (copy_private_bfd_data): Fix bug preventing stipped dynamic
4450 binaries from working.
4451 * bfd-in2.h: Regenerate.
4452
4453 2000-08-03 H.J. Lu <hjl@gnu.org>
4454
4455 * section.c: Back out the change made by Nick Clifton
4456 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
4457 binaries.
4458 * bfd-in2.h: Likewise.
4459 * elf.c: Likewise.
4460
4461 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
4462
4463 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
4464
4465 2000-07-31 Jason Eckhardt <jle@cygnus.com>
4466
4467 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
4468 * bfd-in2.h, libbfd.h: Regenerate.
4469
4470 2000-07-31 Nick Clifton <nickc@cygnus.com>
4471
4472 * section.c (struct sec): Add new boolean field 'segment_mark'.
4473 (STD_SECTION): Initialise new field to zero.
4474
4475 * bfd-in2.h: Regenerate.
4476
4477 * elf.c (copy_private_bfd_data): Reorganise section to segment
4478 mapping to cope with moved sections requiring new segments,
4479 and overlapping segments.
4480 (SEGMENT_END): New macro: Return the end address of a segment.
4481 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
4482 contains a section by comparing their VMA addresses.
4483 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
4484 contains a section by comparing their LMA addresses.
4485 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
4486 section should be included in a segment.
4487 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
4488 follows another in memory.
4489 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
4490 segments overlap.
4491
4492 2000-07-22 Jason Eckhardt <jle@cygnus.com>
4493
4494 * cpu-i860.c: Added comments.
4495
4496 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
4497 bfd_elf32_i860_little_vec.
4498 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
4499 (ELF_MAXPAGESIZE): Changed to 4096.
4500
4501 * targets.c (bfd_elf32_i860_little_vec): Declaration of
4502 new target.
4503 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
4504
4505 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
4506 config for little endian elf32 i860.
4507 (targ_defvec): Define for the new config above
4508 as "bfd_elf32_i860_little_vec".
4509 (targ_selvecs): Define for the new config above
4510 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
4511
4512 * configure.in (bfd_elf32_i860_little_vec): Added recognition
4513 of new target vec.
4514
4515 * configure: Regenerated.
4516
4517 2000-07-27 H.J. Lu <hjl@gnu.org>
4518
4519 * elflink.h (elf_merge_symbol): Take one more argument,
4520 dt_needed, to indicate if the symbol comes from a DT_NEEDED
4521 entry. Don't overide the existing weak definition if dt_needed
4522 is true.
4523 (elf_link_add_object_symbols): Pass dt_needed to
4524 elf_merge_symbol ().
4525
4526 2000-07-27 Nick Clifton <nickc@cygnus.com>
4527
4528 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
4529 allocated contents.
4530
4531 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
4532
4533 * configure.host (*-*-aix*): AIX has 'long long' always.
4534
4535 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
4536 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
4537 (xcoff_write_archive_contents_big): Don't update the offset
4538 of the symbol table, xcoff_write_armap will do it.
4539
4540 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
4541
4542 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
4543 of dynobj for SGI_COMPAT checks.
4544
4545 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4546
4547 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
4548 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
4549 * bfd-in2.h: Regenerate.
4550
4551 2000-07-21 Nick Clifton <nickc@cygnus.com>
4552
4553 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
4554 range symbol indices in relocs and issue an error message.
4555
4556 2000-07-20 H.J. Lu <hjl@gnu.org>
4557
4558 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
4559 info->new_dtags when setting DT_FLAGS_1. It will only be set
4560 by the new linker options. It shouldn't break anything.
4561
4562 2000-07-20 H.J. Lu <hjl@gnu.org>
4563
4564 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
4565 only if info->new_dtags is true.
4566
4567 2000-07-20 H.J. Lu <hjl@gnu.org>
4568
4569 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
4570 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
4571
4572 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4573
4574 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
4575 (ALL_MACHINES_CFILES): Add cpu-cris.c.
4576 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
4577 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
4578 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
4579 * Makefile.in: Rebuild.
4580 * aclocal.m4: Rebuild.
4581 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
4582 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
4583 (bfd_cris_arch): Declare.
4584 (bfd_archures_list): Add bfd_cris_arch.
4585 * bfd-in2.h: Rebuild.
4586 * config.bfd: (cris-*-*): New target.
4587 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
4588 * configure: Rebuild.
4589 * elf.c (prep_headers): Add bfd_arch_cris.
4590 * libbfd.h: Rebuild.
4591 * libaout.h (enum machine_type): Add M_CRIS.
4592 * reloc.c: Add CRIS relocations.
4593 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
4594 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
4595 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
4596 * po/POTFILES.in, po/bfd.pot: Regenerate.
4597
4598 2000-07-19 H.J. Lu <hjl@gnu.org>
4599
4600 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
4601 DF_TEXTREL if DT_TEXTREL is set.
4602 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
4603 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
4604 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4605 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
4606 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4607 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4608 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
4609 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4610 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
4611 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
4612
4613 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
4614 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
4615 DT_RPATH is set.
4616 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
4617
4618 2000-07-19 H.J. Lu <hjl@gnu.org>
4619
4620 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
4621 * bfd-in2.h: Rebuild.
4622
4623 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
4624 (elf_dt_soname): New.
4625
4626 * elf.c (bfd_elf_set_dt_needed_soname): New.
4627
4628 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
4629 entry if the shared object loaded by DT_NEEDED is used to
4630 resolve the reference in a regular object.
4631
4632 2000-07-19 H.J. Lu <hjl@gnu.org>
4633
4634 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
4635 DT_DEPAUDIT and DT_AUDIT as strings.
4636
4637 2000-07-19 Nick Clifton <nickc@cygnus.com>
4638
4639 * format.c: Fix formatting.
4640
4641 2000-07-19 H.J. Lu <hjl@gnu.org>
4642
4643 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
4644
4645 2000-07-19 H.J. Lu <hjl@gnu.org>
4646
4647 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
4648 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
4649 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
4650 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
4651 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
4652 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
4653 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
4654
4655 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
4656
4657 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
4658 renamed functions from here...
4659 (assign_section_numbers): Use renamed functions.
4660 (prep_headers): Use renamed functions.
4661
4662 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
4663 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
4664 * bfd-in2.h: Regenerate.
4665
4666 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
4667
4668 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
4669 parenthesis in if statement.
4670
4671 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
4672
4673 Enable the support for Traditional MIPS.
4674 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
4675 return ict_none appropriately for traditional mips targets.
4676 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
4677 (STUB_MOVE): Conditionalize for traditonal mips.
4678 (STUB_LI16): Likewise.
4679 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
4680 room for RTPROC header.
4681 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
4682 the permission for the PT_DYNAMIC as read, write and execute.
4683 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
4684 for traditonal mips.
4685 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
4686 _DYNAMIC_LINKING for traditonal mips.
4687 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
4688 in case of traditonal mips.
4689 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
4690 entry is required. For a function if PLT is not required then set the
4691 corresponding hash table entry to 0.
4692 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
4693 traditonal mips.
4694 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
4695 shared object set the value to 0.
4696 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
4697 _DYNAMIC_LINKING for traditonal mips.
4698 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
4699 for traditonal mips.
4700
4701 2000-07-15 H.J. Lu <hjl@gnu.org>
4702
4703 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
4704
4705 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4706
4707 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
4708 out a structure that is BFD_IN_MEMORY.
4709
4710 2000-07-11 Alan Modra <alan@linuxcare.com.au>
4711
4712 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
4713 bfd pointer. Print section id instead of bfd pointer for local
4714 syms. Prefix addend with `+' for global syms as well as local.
4715 Correct calculation of name component lengths.
4716 (elf64_hppa_check_relocs): Update call to get_dyn_name.
4717
4718 From David Huggins-Daines <dhd@linuxcare.com>
4719 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
4720 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
4721 (elf64_hppa_modify_segment_map): Likewise.
4722
4723 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4724
4725 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
4726 addresses to be "naturally" sign extended. Return -1 if unknown.
4727 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
4728 * bfd-in2.h: Regenerate.
4729
4730 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4731
4732 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
4733 and ECOF_SIGNED_64 to list ways to extract an offset.
4734 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
4735 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
4736 Update.
4737 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
4738 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
4739
4740 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4741
4742 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
4743 bfd_get_start_address.
4744 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
4745 (elf_swap_ehdr_out): Ditto.
4746
4747 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
4748
4749 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
4750 compatibility with older binutils.
4751
4752 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4753
4754 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
4755 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
4756
4757 From Ryan Bradetich <rbradetich@uswest.net>
4758 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
4759 (parse_line_table): Ditto.
4760 (_bfd_dwarf1_find_nearest_line): Ditto.
4761 * syms.c (cmpindexentry): Remove extra `*' from params.
4762
4763 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
4764
4765 * elf32-mips.c (sort_dynamic_relocs): New Function.
4766 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
4767 via qsort to sort the dynamic relocations in increasing r_symndx
4768 value.
4769
4770 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4771
4772 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
4773 ATTRIBUTE_UNUSED to unused args.
4774 (get_opd): Likewise.
4775 (get_plt): Likewise.
4776 (get_dlt): Likewise.
4777 (get_stub): Likewise.
4778 (elf64_hppa_adjust_dynamic_symbol): Likewise.
4779 (elf64_hppa_link_output_symbol_hook): Likewise.
4780 (elf64_hppa_check_relocs): Delete unused var.
4781 (elf64_hppa_size_dynamic_sections): Likewise.
4782 (elf64_hppa_finalize_opd): Likewise.
4783 (elf64_hppa_finalize_dynreloc): Likewise.
4784 (elf64_hppa_modify_segment_map): Likewise.
4785 (elf64_hppa_finish_dynamic_sections): Likewise.
4786
4787 * elf-hppa.h (elf_hppa_final_write_processing): Add
4788 ATTRIBUTE_UNUSED to unused args.
4789 (elf_hppa_final_link_relocate): Likewise.
4790 (elf_hppa_record_segment_addrs): Add paretheses.
4791 (elf_hppa_relocate_section): Constify dyn_name.
4792
4793 From David Huggins-Daines <dhd@linuxcare.com>
4794 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
4795 rearrange case statement so that it gets preferred to 32-bit ones.
4796
4797 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
4798 asection->id instead of address of asection structure.
4799 (elf32_hppa_size_stubs): Likewise.
4800
4801 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
4802 for .init* and .fini*.
4803
4804 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
4805 and addends used in stub names to 32 bits.
4806 (elf32_hppa_size_stubs): Likewise.
4807
4808 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
4809 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
4810 not bfd_put_64. Fix minor comment typo and formatting.
4811
4812 Changes to create multiple linker stubs, positioned immediately
4813 before the section where they are required.
4814 * elf32-hppa.c: Don't include hppa_stubs.h.
4815 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
4816 (elf32_hppa_stub_hash_table): Delete.
4817 (elf32_hppa_link_hash_entry): Delete.
4818 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
4819 stub_hash_table, and store the struct here rather than a pointer.
4820 Delete output_symbol_count. Add offset array. Change
4821 global_value to a bfd_vma.
4822 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
4823 (elf32_hppa_stub_hash_traverse): Delete.
4824 (elf32_hppa_name_of_stub): Delete.
4825 (elf32_hppa_link_hash_lookup): Delete.
4826 (elf32_hppa_link_hash_traverse): Delete.
4827 (elf32_hppa_stub_hash_table_init): Delete.
4828 (elf32_hppa_size_of_stub): Pass input section and offset rather
4829 than location and calculate location here. Don't pass name as all
4830 stubs are now the same size.
4831 (elf32_hppa_stub_hash_newfunc): Init new fields.
4832 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
4833 too.
4834 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
4835 comparing against ints. Rewrite stub handling code.
4836 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
4837 Case enums to int before comparing against ints. Remove
4838 bfd_reloc_dangerous case.
4839 (elf32_hppa_build_one_stub): Rewrite.
4840 (elf32_hppa_size_one_stub): New function.
4841 (elf32_hppa_build_stubs): Rewrite.
4842 (elf32_hppa_size_stubs): Pass in linker call-back functions.
4843 Rewrite stub-handling specific code.
4844
4845 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
4846
4847 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
4848
4849 * hppa_stubs.h: Delete.
4850 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
4851 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
4852 * Makefile.in: Regenerate.
4853
4854 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
4855 e_nlrsel.
4856
4857 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
4858
4859 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
4860 and section name for bfd_reloc_notsupported error message.
4861 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
4862 bfd_reloc_notsupported.
4863 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
4864
4865 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
4866 undefined weak symbols for all relocs.
4867 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
4868 offsets are relative to one past the delay slot.
4869 (elf32_hppa_size_stubs): Account for reloc addend when calculating
4870 branch destination. Put addend into stub name too.
4871 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
4872 adjust by 8 when deciding whether a linker stub is needed. Put
4873 addend into stub name as for above.
4874
4875 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
4876 various args and vars.
4877 (elf32_hppa_bfd_final_link_relocate): Here too.
4878 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
4879 inner block var to avoid shadowing.
4880
4881 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
4882 unsigned.
4883 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
4884 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
4885 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
4886
4887 * libhppa.h: Change practically all unsigned ints to plain ints.
4888 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
4889 prototypes.
4890
4891 From Ryan Bradetich <rbradetich@uswest.net>
4892 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
4893 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
4894 suit above.
4895 From David Huggins-Daines <dhd@linuxcare.com>
4896 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
4897 to the new OP_* ones.
4898
4899 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
4900 error exit. Bail out earlier on plabel relocs that we aren't
4901 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
4902 string, and then don't free our copy.
4903 (elf32_hppa_build_one_stub): Make insn unsigned int.
4904
4905 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
4906 available with BL, not BE and BLE.
4907
4908 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
4909 code for elf arg relocs.
4910 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
4911 argument with elf_link_hash_entry h. Handle undefined weak
4912 symbols. Move $global$ lookup from here...
4913 (elf32_hppa_relocate_section): ...to here. Return correct error
4914 message for non-handled relocs.
4915 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
4916 wrong test was -0x3ffff to +0x40000.
4917
4918 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
4919 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
4920 Handle them as such.
4921 (elf_hppa_relocate_insn): Fix a typo.
4922
4923 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
4924 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4925 assemble_17, assemble_21): Delete.
4926 Supply defines for all 64 possible opcodes.
4927 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
4928 formats. Handle COMICLR.
4929 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
4930 -10, -16, 16, 22.
4931
4932 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
4933 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
4934 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
4935 to suit.
4936 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
4937 the local syms - did this code get deleted accidentally? Ignore
4938 undefined and undefweak syms.
4939
4940 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
4941 block. Use it instead of elf64_hppa_hash_table (info).
4942 (elf_hppa_final_link_relocate): Use hppa_info instead of
4943 elf64_hppa_hash_table (info).
4944
4945 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4946 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4947 (hppa_rebuild_insn): Mask immediate bits here instead.
4948 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4949
4950 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4951
4952 * section.c (struct sec): Add id field. Tidy comment formatting.
4953 (bfd_make_section_anyway): Set id.
4954 (STD_SECTION): Init id too.
4955 Change CONST to const throughout.
4956 * archures.c (bfd_arch_info): Tidy comment.
4957 (bfd_arch_list): Change a CONST to const.
4958 * libbfd-in.h: Tidy comments and replace CONST with const.
4959 * elf-bfd.h: Likewise.
4960 * libbfd.h: Regenerate.
4961 * bfd-in2.h: Regenerate.
4962 * libcoff.h: Regenerate.
4963
4964 2000-07-07 DJ Delorie <dj@redhat.com>
4965
4966 * archive.c (_bfd_write_archive_contents): Add an informative
4967 comment.
4968
4969 2000-07-06 Kazu Hirata <kazu@hxi.com>
4970
4971 * srec.c: Fix formatting.
4972
4973 2000-06-05 DJ Delorie <dj@redhat.com>
4974
4975 * MAINTAINERS: new
4976
4977 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
4978
4979 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
4980 value of PC-relative offsets.
4981
4982 2000-07-03 Jim Wilson <wilson@cygnus.com>
4983
4984 * elf64-alpha.c (alpha_elf_size_info): New.
4985 (elf_backend_size_info): Define to alpha_elf_size_info.
4986 * elfcode.h (elf_size_info): Change hash bucket size to 4.
4987
4988 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
4989
4990 * elf32-mips.c: Include elf32-target.h again for the traditional
4991 MIPS targets.
4992
4993 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
4994
4995 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
4996 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
4997 (avr_info_to_howto_rela): Likewise.
4998 (elf32_avr_gc_mark_hook): Likewise.
4999 (elf32_avr_gc_sweep_hook): Likewise.
5000 (elf32_avr_relocate_section): Likewise.
5001
5002 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
5003
5004 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
5005 an external symbol for a non-shared, non-relocatable link.
5006
5007 2000-07-03 Nick Clifton <nickc@redhat.com>
5008
5009 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
5010 is an external symbol.
5011 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
5012 external symbol.
5013
5014 2000-07-03 Kazu Hirata <kazu@hxi.com>
5015
5016 * reloc16.c: Fix formatting.
5017
5018 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5019
5020 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
5021 to add a new target for traditional mips i.e
5022 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
5023 * configure.in: Likewise.
5024 * configure: Rebuild.
5025 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
5026 bfd_target_vector.
5027 (bfd_elf32_tradlittlemips_vec): Likewise.
5028 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
5029 to see that elfNN_bed does not get redefined even if the target file
5030 is included twice for a chip. See elf32-mips.c.
5031
5032 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5033
5034 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5035 (CLEANFILES): Add DEPA.
5036 * Makefile.in: Regenerate.
5037
5038 2000-06-30 DJ Delorie <dj@cygnus.com>
5039
5040 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
5041 can't assume the PE header is at 0x80.
5042
5043 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5044
5045 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
5046
5047 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
5048
5049 * go32stub.h: Update stub.
5050
5051 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5052
5053 * archures.c (bfd_mach_avr5): Define.
5054 * bfd-in2.h (bfd_mach_avr5): Define.
5055 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
5056 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
5057 (compatible): Update comment. Add missing test.
5058 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
5059 for avr2 and avr4. Simplify 8K wrap code.
5060 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
5061 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
5062
5063 2000-06-26 Kazu Hirata <kazu@hxi.com>
5064
5065 * coff-h8300.c: Fix formatting.
5066 * cpu-h8300.c: Likewise.
5067
5068 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
5069
5070 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
5071 for local symbols whose names are unknown.
5072
5073 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5074
5075 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5076 find one.
5077 * Makefile.in: Regenerate.
5078 * doc/Makefile.in: Regenerate.
5079
5080 2000-06-20 H.J. Lu <hjl@gnu.org>
5081
5082 * Makefile.am: Rebuild dependency.
5083 * Makefile.in: Rebuild.
5084
5085 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5086
5087 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
5088 (elf_backend_copy_indirect_symbol): Map to the new function.
5089
5090 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5091
5092 * archive.c (normalize): Correct pointer comparison when checking
5093 for backslashes.
5094 (bfd_bsd_truncate_arname): Likewise.
5095 (bfd_gnu_truncate_arname): Likewise.
5096
5097 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
5098
5099 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
5100 sections elf_{text,data}_{section,symbol}.
5101 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
5102 (_bfd_mips_elf_hide_symbol): New function.
5103 (elf_backend_hide_symbol): Map to the new function.
5104 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
5105 definitions of mips_elf_{text,data}_{section,symbol}.
5106 (mips_elf_local_relocation_p): Try to find the direct symbol
5107 based on new check_forced argument.
5108 (mips_elf_calculate_relocation): Use new version of
5109 mips_elf_local_relocation_p.
5110 (mips_elf_relocate_section): Likewise.
5111 (_bfd_mips_elf_relocate_section): Likewise.
5112 (mips_elf_sort_hash_table): Only assert that have enough GOT
5113 space.
5114 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
5115 entry if the relocation based on the new external argument.
5116 (mips_elf_create_dynamic_relocation): Assert that we have a
5117 section contents allocated where we can swap out the dynamic
5118 relocations.
5119 (mips_elf_calculate_relocation): Find the real hash-table entry
5120 correctly by using h->root.root.type. Only create a dynamic
5121 relocation entry if the symbol is defined in a shared library.
5122 Create an external GOT entry for the GOT16 relocation if the
5123 symbol was forced local.
5124 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
5125 dynamic index if the symbol was forced local.
5126
5127 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5128
5129 * elf32-mips.c: Fix typos in comments.
5130
5131 2000-06-19 Mark Kettenis <kettenis@gnu.org>
5132
5133 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
5134 CORE_VERSION_1.
5135
5136 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5137
5138 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
5139 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
5140 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
5141 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
5142 (bfd_elf32_m68hc11_vec): Likewise.
5143 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
5144 Supports 68hc11 & 68hc12 at the same time.
5145 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
5146 bfd_target_vector.
5147 (bfd_elf32_m68hc11_vec): Likewise.
5148 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
5149 * archures.c (bfd_m68hc12_arch): Define and register in global list
5150 (bfd_m68hc11_arch): Likewise.
5151 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
5152 BFD_RELOC_M68HC11_3B): Define.
5153 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
5154 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
5155
5156 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
5157
5158 * elf_bfd.h (struct elf_backend_data): Add info argument to
5159 elf_backend_hide_symbol.
5160 (_bfd_elf_link_hash_hide_symbol): Likewise.
5161 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
5162 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
5163 * elflink.h (elf_link_add_object_symbols): Likewise.
5164 (elf_link_assign_sym_version): Likewise.
5165
5166 2000-06-18 H.J. Lu <hjl@gnu.org>
5167
5168 * coff-i386.c (coff_i386_reloc): Don't return in case of
5169 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
5170 Compensate PE relocations when linking with non-PE object
5171 files to generate a non-PE executable.
5172
5173 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
5174
5175 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
5176 GOT entries if we're doing a static link or -Bsymbolic link.
5177
5178 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
5179
5180 * elflink.h (elf_link_adjust_relocs): Check for and call backend
5181 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
5182 available.
5183 (elf_link_output_relocs): Likewise.
5184 (elf_reloc_link_order): Likewise.
5185
5186 2000-06-16 Nicholas Duffek <nsd@redhat.com>
5187
5188 * archures.c (enum bfd_architecture): #define constants for
5189 PowerPc and RS6000 machine numbers.
5190 * bfd-in2.h: Regenerate.
5191 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
5192 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
5193 and RS6000 machine numbers using #defined constants from
5194 archures.c.
5195 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
5196 machine numbers using #defined constants from archures.c. Add
5197 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
5198 64-bit words in 620 entry.
5199 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
5200 RSC, and RS2.
5201 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
5202
5203 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
5204
5205 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
5206 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
5207 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
5208
5209 2000-06-16 Nicholas Duffek <nsd@redhat.com>
5210
5211 * bfd-in.h (bfd_family_coff): Define.
5212 * bfd-in2.h: Regenerate.
5213 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
5214 coff_find_nearest_line): Check COFFness using bfd_family_coff()
5215 instead of bfd_target_coff_flavour.
5216 * cofflink.c (_bfd_coff_final_link): Likewise.
5217 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
5218 exclude XCOFF files.
5219 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5220 Likewise.
5221 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
5222 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
5223 * xcofflink.c (XCOFF_XVECP): Delete.
5224 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
5225 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
5226 bfd_xcoff_record_link_assignment,
5227 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
5228 check for bfd_target_xcoff_flavour.
5229
5230 2000-06-16 Nicholas Duffek <nsd@redhat.com>
5231
5232 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
5233 files on AIX 4.3.
5234 (read_hdr): New function.
5235 (rs6000coff_core_p): Store mstsave or __context64 struct instead
5236 of trying to extract individual registers. Set abfd->arch_info
5237 to match the architecture that created the core file.
5238 (rs6000coff_get_section_contents): Delete.
5239 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
5240
5241 2000-06-14 H.J. Lu <hjl@gnu.org>
5242
5243 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
5244 is NULL.
5245
5246 2000-06-13 H.J. Lu <hjl@gnu.org>
5247
5248 * configure: Regenerate.
5249
5250 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
5251
5252 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
5253 armpei_little_vec.
5254
5255 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5256
5257 * configure.in (VERSION): Update to show this is the CVS mainline.
5258
5259 2000-06-07 Alan Modra <alan@linuxcare.com.au>
5260
5261 * elf32-d10v.c: Include elf/d10v.h
5262 (enum reloc_type): Delete.
5263 * elf32-d30v.c: Include elf/d30v.h
5264 (enum reloc_type): Delete.
5265
5266 * Makefile.am: Run "make dep-am" to regenerate dependencies.
5267 * Makefile.in: Regenerate.
5268
5269 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
5270 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
5271 move HOWTOs into elf_howto_table.
5272 (R_386_standard, R_386_ext_offset): Define.
5273 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
5274 (elf_i386_reloc_type_lookup): Modify calculation of index into
5275 elf_howto_table since we've removed the padding.
5276 (elf_i386_info_to_howto_rel): Likewise.
5277 (elf_i386_relocate_section): Likewise.
5278
5279 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
5280
5281 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
5282
5283 2000-06-05 H.J. Lu <hjl@gnu.org>
5284
5285 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
5286 an error when seeing an undefined symbol with hidden/internal
5287 attribute. It is handled in *_relocate_section ().
5288
5289 2000-06-05 H.J. Lu <hjl@gnu.org>
5290
5291 * elflink.h (elf_fix_symbol_flags): Follow the link for the
5292 indirect symbol for the ELF_LINK_NON_ELF bit.
5293 (elf_link_output_extsym): Don't output the indirect symbol even
5294 if the ELF_LINK_NON_ELF bit is set.
5295
5296 2000-06-01 J.T. Conklin <jtc@redback.com>
5297
5298 * config.bfd (i[3456]86-*-netbsdelf*): New target.
5299 (i[3456]86-*-netbsdaout*): New target.
5300 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
5301 (i[3456]86-*-openbsd*): Likewise.
5302
5303 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
5304
5305 * trad-core.c: From hpux-core.c, include <dirent.h> or
5306 <sys/ndir.h> when possible.
5307
5308 2000-05-31 Ulrich Drepper <drepper@redhat.com>
5309
5310 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
5311 definitions. We must not assume they are sorted in the file
5312 according to their index numbers.
5313
5314 2000-05-31 Alan Modra <alan@linuxcare.com.au>
5315
5316 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
5317 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
5318 R_PARISC_DIR17F are for absolute branches; Handle them as such.
5319
5320 2000-05-30 Nick Clifton <nickc@cygnus.com>
5321
5322 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
5323 80960CA, 80960MC as valid machine names.
5324
5325 2000-05-30 H.J. Lu <hjl@gnu.org>
5326
5327 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
5328 visibility bits if the symbol is undefined. Correctly handle
5329 weak undefined symbols with hidden and internal attributes.
5330
5331 * elflink.h (elf_link_add_object_symbols): Always turn the
5332 symbol into local if it has the hidden or internal attribute.
5333
5334 2000-05-29 Philip Blundell <philb@gnu.org>
5335
5336 * ppcboot.c: Add packed attribute if compiling with GCC.
5337
5338 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
5339
5340 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
5341
5342 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
5343
5344 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
5345 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
5346 corefile on a 64-bit (Sparc Solaris) host. Also clean up
5347 a few old comments.
5348
5349 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5350
5351 * Makefile.am: Update dependencies with "make dep-am"
5352 * Makefile.in: Regenerate.
5353
5354 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
5355 bindtextdomain): Replace defines with those from intl/libgettext.h
5356 to quieten gcc warnings.
5357
5358 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5359
5360 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
5361
5362 * archive.c (normalize, bfd_bsd_truncate_arname,
5363 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
5364 file names with backslashes.
5365
5366 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
5367 before opening it.
5368
5369 * sysdep.h: Include filenames.h.
5370
5371 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5372
5373 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
5374
5375 2000-05-26 Jakub Jelinek <jakub@redhat.com>
5376
5377 * elf64-sparc.c (sparc64_elf_relax_section): New.
5378 (sparc64_elf_relocate_section): Optimize tail call into branch always
5379 if possible.
5380 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5381 (elf32_sparc_relax_section): New.
5382
5383 2000-05-26 Jakub Jelinek <jakub@redhat.com>
5384
5385 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
5386 Remove unusued variables.
5387 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
5388 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
5389 previous fix, so that shared libs really don't influence targets
5390 extension mask and memory model.
5391
5392 2000-05-23 H.J. Lu <hjl@gnu.org>
5393
5394 * elf64-alpha.c (elf64_alpha_relocate_section): Check
5395 h->root.other not h->other.
5396 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5397
5398 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
5399
5400 2000-05-23 H.J. Lu <hjl@gnu.org>
5401
5402 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
5403 undefined symbol with the non-default visibility attributes.
5404 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
5405 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5406 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5407 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5408 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5409 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5410 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5411 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5412 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5413 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
5414 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5415
5416 2000-05-22 Richard Henderson <rth@cygnus.com>
5417
5418 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
5419 PCREL22, PCREL64I. Zero size of special relocs.
5420 (elf64_ia64_reloc_type_lookup): Likewise.
5421 (USE_BRL, oor_brl, oor_ip): New.
5422 (elf64_ia64_relax_section): New.
5423 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
5424 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
5425 (elf64_ia64_relocate_section): Likewise.
5426 (bfd_elf64_bfd_relax_section): New.
5427 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
5428 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
5429 * bfd-in2.h, libbfd.h: Regenerate.
5430
5431 2000-05-22 Nick Clifton <nickc@cygnus.com>
5432
5433 * configure.in : Add peigen.lo to MIPS PE targets.
5434 * configure: Regenerate.
5435
5436 2000-05-22 Momchil Velikov <velco@fadata.bg>
5437
5438 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
5439 only if it is known for both input and output bfds. Separate
5440 error message strings as in some languages, it may be necessary
5441 to change more than one place in the string to change between
5442 'big' and 'little'.
5443
5444 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
5445 endianess checks, call _bfd_generic_verify_endian_match() instead.
5446
5447 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
5448
5449 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
5450
5451 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
5452 endianess before checking bfd flavours.
5453
5454 2000-05-22 H.J. Lu <hjl@gnu.org>
5455
5456 * elflink.h (elf_link_output_extsym): Clear the visibility
5457 field for symbols not defined locally.
5458
5459 2000-05-18 Alan Modra <alan@linuxcare.com.au>
5460
5461 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5462 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5463 (hppa_rebuild_insn): Mask immediate bits here instead.
5464 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5465
5466 2000-05-18 Momchil Velikov <velco@fadata.bg>
5467
5468 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
5469 relocs for an executable, ensure that they are virtual addresses.
5470
5471 2000-05-18 Jeffrey A Law (law@cygnus.com)
5472
5473 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
5474
5475 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5476 Rick Gorton <gorton@scrugs.lkg.dec.com>
5477
5478 * elflink.h: Add emitrelocations support: when enabled, relocation
5479 information and relocation sections are put into final output
5480 executables. If the emitrelocations flag is set, do the following:
5481 (elf_bfd_final_link): Emit relocation sections.
5482 (elf_link_input_bfd): Compute relocation section contents.
5483 (elf_gc_sections): Don't clean relocation sections.
5484
5485 2000-05-16 Catherine Moore <clm@cygnus.com>
5486
5487 * som.c (som_decode_symclass): Recognize weak symbols.
5488
5489 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
5490
5491 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
5492 read idata section only from dataoff.
5493 (pe_print_edata): Correctly check for valid eat_member.
5494
5495 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
5496
5497 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
5498
5499 2000-05-14 Philip Blundell <philb@gnu.org>
5500
5501 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
5502
5503 2000-05-12 Alan Modra <alan@linuxcare.com.au>
5504
5505 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
5506
5507 * peigen.c (pe_print_idata): Look for .idata section and print
5508 info even if data directory has zero entries. Read idata section
5509 starting from dataoff, and adjust all data offsets to suit. Cast
5510 all bfd_vma vars to unsigned long before passing to fprintf.
5511 * peigen.c (pe_print_edata): Similarly, look for .edata section
5512 and print info even if data directory has zero entries. Cast
5513 all bfd_vma vars to unsigned long before passing to fprintf.
5514
5515 From Szabolcs Szakacsits <szaka@F-Secure.com>
5516 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
5517 directory size which may be bogus.
5518 * peigen.c (pe_print_edata): Similarly.
5519
5520 2000-05-09 Alan Modra <alan@linuxcare.com.au>
5521
5522 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
5523 section is empty.
5524 (copy_private_bfd_data): Allow for space possibly taken up by elf
5525 headers when calculating segment physical address from lma.
5526
5527 2000-05-08 Alan Modra <alan@linuxcare.com.au>
5528
5529 * versados.c (versados_scan): Init stringlen and pass_2_done.
5530
5531 * trad-core.c (trad_unix_core_file_p): Return
5532 bfd_error_wrong_format rather than bfd_error_file_truncated.
5533
5534 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
5535 add_data_entry. DataDirectory virtual address is relative.
5536 (pe_print_idata): Account for relative DataDirectory virtual
5537 addresses. Don't trash datasize inside POWERPC_LE_PE code.
5538 (pe_print_edata): Similarly.
5539
5540 From Szabolcs Szakacsits <szaka@F-Secure.com>
5541 * peigen.c (dir_names): Add Delay Import Directory.
5542 (pe_print_idata): Always search for bfd section containing
5543 idata address rather than looking up section name. Print this
5544 section name rather than .idata.
5545 (pe_print_edata): Similarly. Also print some fields as %08lx.
5546 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
5547 Win32Version.
5548
5549 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5550
5551 * xcoff.h: Rename to xcoff-target.h
5552 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
5553 * coff-rs6000.c: Ditto.
5554 * coff64-rs6000.c: Ditto.
5555 * coff-pmac.c: Ditto.
5556 * Makefile.in: Regenerate.
5557
5558 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5559
5560 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
5561 Change U802TOC64MAGIC to U803XTOCMAGIC.
5562
5563 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
5564
5565 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
5566 * bfd-in.h: Prototype bfd_elf_get_arch_size.
5567 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
5568
5569 2000-05-04 Alan Modra <alan@linuxcare.com.au>
5570
5571 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
5572
5573 2000-05-03 Martin v. L\81öwis <loewis@informatik.hu-berlin.de>
5574
5575 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
5576 hidden and internal symbols.
5577 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
5578 visibility.
5579 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
5580 assign a PLT or GOT entry to symbols with hidden and
5581 internal visibility.
5582
5583 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
5584
5585 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
5586 the .bss section.
5587 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
5588
5589 2000-05-02 H.J. Lu <hjl@gnu.org>
5590
5591 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
5592 ELFOSABI_SYSV.
5593
5594 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5595
5596 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
5597 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
5598 dependencies.
5599 * Makefile.in: Regenerate.
5600
5601 2000-05-01 Jim Wilson <wilson@cygnus.com>
5602
5603 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
5604 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
5605 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
5606 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
5607 * Makefile.in: Rebuild.
5608
5609 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5610
5611 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
5612 doesn't work very well.
5613
5614 * elf-hppa.h (elf_hppa_internal_shdr): Define.
5615 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
5616 Set hdr->s_type to 1 if ARCH_SIZE == 32.
5617 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
5618 (elf_hppa_info_to_howto): Likewise.
5619 (elf_hppa_info_to_howto_rel): Likewise.
5620 (elf_hppa_reloc_type_lookup): Likewise.
5621 (elf_hppa_is_local_label_name): Likewise.
5622 (elf_hppa_fake_sections): Likewise.
5623 (elf_hppa_final_write_processing): Likewise.
5624 (elf_hppa_howto_table): Fully initialise all entries.
5625 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
5626 (elf_hppa_info_to_howto): Likewise.
5627 (elf_hppa_info_to_howto_rel): Likewise.
5628 (elf_hppa_reloc_type_lookup): Likewise.
5629 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
5630 elf_hppa_unmark_useless_dynamic_symbols,
5631 elf_hppa_remark_useless_dynamic_symbols,
5632 elf_hppa_record_segment_addrs, elf_hppa_final_link,
5633 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
5634 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
5635 elf32-hppa.c mess is cleaned up.
5636 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
5637 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
5638 r_field then call hppa_field_adjust inline func with variable
5639 r_field arg, instead call hppa_field_adjust with fixed arg.
5640 In case R_PARISC_PCREL22F, don't set r_field.
5641 (elf_hppa_relocate_insn): Change args and return type to unsigned
5642 int. Call re_assemble_* funcs to do the work.
5643
5644 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
5645 sign extending.
5646
5647 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
5648 extending.
5649 (sign_extend): Mask first before sign extending.
5650 (low_sign_extend): Rewrite without condition expression.
5651 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
5652 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
5653 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5654 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
5655 result as function return value rather than through pointer arg.
5656 Accept unsigned int args, and return unsigned int.
5657 (re_assemble_3): New. Combines function of dis_assemble_3 with
5658 re-assembly of opcode and immediate.
5659 (re_assemble_12): Likewise.
5660 (re_assemble_16): Likewise.
5661 (re_assemble_17): Likewise.
5662 (re_assemble_21): Likewise.
5663 (re_assemble_22): Likewise.
5664 (hppa_field_adjust): Rewrite and document, paying attention to
5665 size of types and signed/unsigned issues.
5666 (get_opcode): Shift before masking.
5667 (FDLW): Rename to FLDW.
5668 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
5669 (hppa_rebuild_insn): Change args and return value to unsigned
5670 int. Make use of re_assemble_*. Correct case 11.
5671
5672 * dep-in.sed: Handle ../opcodes/.
5673 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
5674 elf64-hppa.h, hppa_stubs.h, xcoff.h.
5675 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
5676 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
5677 elfarm-nabi.lo dependencies outside of auto-dependency area.
5678 Regenerate dependencies.
5679 * Makefile.in: Regenerate.
5680
5681 * configure.in (TRAD_HEADER): Test non-null before
5682 AC_DEFINE_UNQUOTED.
5683 * configure: Regenerate.
5684
5685 * reloc.c: Fix mis-spelling in comment.
5686
5687 2000-05-01 Alan Modra <alan@linuxcare.com.au>
5688
5689 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
5690 * vms.c (vms_openr_next_archived_file): Return NULL.
5691
5692 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5693
5694 * coffcode.h Copy changes mistakenly done to libcoff.h in
5695 4/24/2000 patch.
5696
5697 2000-04-29 Andreas Jaeger <aj@suse.de>
5698
5699 * libbfd-in.h: Correctly check GCC version.
5700 * bfd-in.h: Likewise.
5701 * libhppa.h: Likewise.
5702 * libbfd.h: Regenerate.
5703 * bfd-in2.h: Regenerate.
5704
5705 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5706
5707 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
5708 coffdu-rs6000.{lo,c}.
5709 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
5710 on xcoff.h
5711 * Makefile.in: Regenerate.
5712 * xcoff.h: New file.
5713 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
5714 * coff-rs6000.c: Move all declarations and defines that are
5715 common to the xcoff backends into xcoff.h
5716 * coff64-rs6000.c: Ditto,
5717
5718 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5719
5720 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
5721 _bfd_coff_force_symnames in strings and
5722 _bfd_coff_debug_string_prefix_length to their default values.
5723 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
5724
5725 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5726
5727 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
5728 _bfd_coff_force_symnames in strings and
5729 _bfd_coff_debug_string_prefix_length to their default values.
5730
5731 2000-04-27 Alan Modra <alan@linuxcare.com.au>
5732
5733 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
5734 Check local_got_refcounts before dereferencing.
5735
5736 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
5737 before deciding we don't need R_PPC_PLT32 relocation.
5738 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
5739 dereferencing.
5740
5741 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
5742
5743 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
5744 .plt entries.
5745 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
5746 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
5747 (elf_i386_relocate_section): Allow for .plt to go missing.
5748 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
5749 can use a relative reloc for got as elf_i386_relocate_section.
5750 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
5751
5752 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
5753
5754 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
5755
5756 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
5757
5758 * Makefile.am (coff64-rs6000.lo): New rule.
5759 * Makefile.in: Regenerate.
5760 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
5761 xcoff_is_local_label_name, xcoff_rtype2howto,
5762 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
5763 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
5764 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
5765 (NO_COFF_SYMBOLS): Define.
5766 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
5767 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
5768 internally.
5769 (MINUS_ONE): New macro.
5770 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
5771 relocation.
5772 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
5773 coff_SWAP_aux_out): Map to the new functions.
5774 * coff64-rs6000.c: New file.
5775 * libcoff.h (bfd_coff_backend_data): Add new fields
5776 _bfd_coff_force_symnames_in_strings and
5777 _bfd_coff_debug_string_prefix_length.
5778 (bfd_coff_force_symnames_in_strings,
5779 bfd_coff_debug_string_prefix_length): New macros for above fields.
5780 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
5781 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
5782 of using coff_swap_sym_in directly.
5783 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
5784 (coff_set_flags) Set magic for XCOFF64.
5785 (coff_compute_section_file_positions): Add symbol name length to
5786 string section length if bfd_coff_debug_string_prefix_length is
5787 true.
5788 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
5789 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
5790 using coff_swap_lineno_in directly.
5791 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
5792 and _bfd_coff_debug_string_prefix_length fields.
5793 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
5794 symbol names into strings table when
5795 bfd_coff_force_symnames_in_strings is true.
5796 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
5797 SET_RELOC_VADDR): New macros.
5798 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
5799 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
5800 code.
5801 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
5802 changes within RS6000COFF_C specific code.
5803 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
5804 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
5805 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5806 Extend existing hack on target name.
5807 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
5808 target name.
5809 * coff-tic54x.c (ticof): Keep up to date with new fields
5810 in bfd_coff_backend_data.
5811 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
5812 targ_selvecs to include rs6000coff64_vec for rs6000.
5813 * configure.in: Add rs6000coff64_vec case.
5814 * cpu-powerpc.c: New bfd_arch_info_type.
5815
5816 2000-04-24 Jeffrey A Law (law@cygnus.com)
5817
5818 * config.bfd: Only disable elf32-hppa vectors, not all of the
5819 BSD and OSF configuration support. Provide (disabled) clauses
5820 for PA64 support.
5821 * configure.in: Add clause for PA64 support.
5822 * configure: Rebuilt.
5823
5824 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
5825 (bfd_elf64_hppa_vec): Declare.
5826
5827 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
5828 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
5829 (elf64-hppa.lo): Add dependencies.
5830 * Makefile.in: Rebuilt.
5831
5832 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
5833
5834 2000-04-24 Jason Eckhardt <jle@cygnus.com>
5835
5836 * libhppa.h (dis_assemble_16): New function.
5837 (pa_arch): Added pa20w element.
5838
5839 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
5840
5841 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
5842 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
5843 bfd_elf64_slurp_reloc_table.
5844
5845 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
5846 definitions to get external names.
5847 (elf_write_relocs): Renamed from write_relocs and make global.
5848 (elf_slurp_reloc_table): Make global.
5849 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
5850
5851 * archive.c (hpux_uid_gid_encode): New function.
5852 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
5853 defined and the ID is greater than 99999.
5854 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
5855 special uid/gid fields into 32 bit values.
5856
5857 2000-04-21 Matthew Green <mrg@cygnus.com>
5858
5859 * config.bfd: Add NetBSD/sparc64 support.
5860
5861 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
5862 David Mosberger <davidm@hpl.hp.com>
5863 Timothy Wall <twall@cygnus.com>
5864 Jim Wilson <wilson@cygnus.com>
5865
5866 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
5867 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
5868 (BFD64_BACKENDS): Add elf64-ia64.lo.
5869 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
5870 (cpu-ia64.lo, elf64-ia64.lo): New rules.
5871 * Makefile.in: Rebuild.
5872 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
5873 (bfd_ia64_arch): Declare.
5874 (bfd_archures_list): Add bfd_ia64_arch.
5875 * bfd-in2.h: Rebuild.
5876 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
5877 * configure: Rebuild.
5878 * configure.host: (ia64-*-linux*): New host.
5879 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
5880 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
5881 * elf.c (prep_headers): Add bfd_arch_ia64.
5882 * libbfd.h: Rebuild.
5883 * reloc.c: Add IA-64 relocations.
5884 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
5885 Declare.
5886 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
5887 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
5888
5889 2000-04-21 Richard Henderson <rth@cygnus.com>
5890
5891 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
5892 contents when performing a partial link.
5893 (bfd_elf_d30v_reloc_21): Likewise.
5894
5895 2000-04-20 H.J. Lu <hjl@gnu.org>
5896
5897 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
5898 patch to symbols defined by a shared object.
5899 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
5900
5901 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5902
5903 K&R compiler fixes.
5904 * dwarf2.c (concat_filename): Avoid string literal concatenation.
5905 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
5906
5907 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
5908
5909 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
5910 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
5911 (coff-ia64.lo): Add dependency.
5912 * Makefile.in: Regenerate.
5913 * coff-ia64.c: New file.
5914 * efi-app-ia32.c: Ditto.
5915 * efi-app-ia64.c: Ditto.
5916 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
5917 (coff_set_flags): Ditto.
5918 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
5919 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
5920 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
5921 * configure: Regenerate.
5922 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
5923 (PUT_OPTHDR_IMAGE_BASE): Ditto.
5924 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5925 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5926 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5927 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5928 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5929 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5930 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5931 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5932 (GET_PDATA_ENTRY): Ditto.
5933 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
5934 data_start. Use above macros to read fields that are 64 bit wide for
5935 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
5936 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
5937 FileAlignment and SectionAlignment to minimum alignment if they
5938 are zero.
5939 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
5940 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
5941 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
5942 Use above macros to write fields that are 64 bit wide for
5943 COFF_WITH_PEP64.
5944 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5945 5*4 otherwise. This should be right for IA-32 and IA-64, but may
5946 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
5947 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
5948 begin address, end address, and unwind info address only. Use
5949 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
5950 print addresses.
5951 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
5952 HIGH3ADJ relocation names.
5953 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
5954 * targets.c: Declare bfd_efi_app_ia32_vec and
5955 bfd_efi_app_ia64_vec.
5956 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
5957 bfd_efi_app_ia64_vec.
5958
5959 2000-04-17 Timothy Wall <twall@cygnus.com>
5960
5961 * bfd-in2.h: Add prototypes for tic54x load page access.
5962 * bfd-in.h: Regenerate.
5963 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
5964 in customized _set_arch_mach function.
5965 * coffcode.h (coff_set_alignment_hook): Set section load page if
5966 the appropriate macro is defined.
5967 (write_object_contents): Read section load page.
5968
5969 2000-04-13 Alan Modra <alan@linuxcare.com.au>
5970
5971 * elf32-hppa.h: Update copyright date.
5972
5973 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
5974 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
5975
5976 * elf32-d30v.c (MAX32): Don't use LL suffix.
5977 (MIN32): Define in terms of MAX32.
5978 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
5979
5980 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5981 expression.
5982
5983 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5984
5985 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5986
5987 * dep-in.sed: Match space before file name, not after.
5988 * Makefile.am: Regenerate dependencies.
5989 * Makefile.in: Regenerate.
5990
5991 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
5992 case, allow address wrap-around stupidly removed 2000-03-17. Sign
5993 extend without an if statement.
5994
5995 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5996
5997 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
5998 signed quantites.
5999 * elf32-mips.c (gprel16_with_gp): Likewise.
6000 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
6001 here using -0x40000, not (int)0xfffc0000.
6002 (elf32_hppa_size_of_stub): Likewise.
6003
6004 2000-04-11 Timothy Wall <twall@cygnus.com>
6005
6006 * coff-tic54x.c: Now builds with all targets.
6007 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
6008 * Makefile.in: Regenerate.
6009 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
6010 unitialized variable.
6011
6012 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6013
6014 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6015 --enable-build-warnings option.
6016 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6017 * Makefile.in, configure: Re-generate.
6018
6019 2000-04-07 Nick Clifton <nickc@cygnus.com>
6020
6021 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
6022 BFD_RELOC_THUMB_PCREL_BLX.
6023
6024 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
6025 R_ARM_XPC25 and R_ARM_THM_PC22.
6026
6027 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
6028 R_ARM_XPC25 and R_ARM_THM_XPC22.
6029 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
6030 R_ARM_[XPC25|THM_XPC22].
6031
6032 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
6033 elf/arm-oabi.h to elf/arm.h
6034
6035 * Makefile.am: Fix dependency for elfarm-oabi.c
6036 * Makefile.in: Regenerate.
6037
6038 * bfd-in2.h: Regenerate.
6039 * libbfd.h: Regenerate.
6040
6041 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6042
6043 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
6044 and restore it on failure. Release newly allocated tdata on
6045 failure.
6046
6047 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
6048
6049 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
6050 (decode_line_info): Set it. Report error if unit->line_offset is
6051 equal to or larger than it.
6052
6053 2000-04-07 Timothy Wall <twall@cygnus.com>
6054
6055 * targets.c: Added vecs for tic54x.
6056 * reloc.c: Added relocs for tic54x.
6057 * libbfd.h: Regenerated.
6058 * configure: Add TI COFF vecs for tic54x.
6059 * configure.in: Ditto.
6060 * config.bfd (targ_cpu): Recognize new tic54x target.
6061 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
6062 * bfd-in2.h: Add tic54x target and relocations.
6063 * Makefile.am, Makefile.in: Add tic54x target.
6064 * archures.c (bfd_archures_list): Add tic54x target.
6065 * coff-tic54x.c: New.
6066 * cpu-tic54x.c: New.
6067
6068 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6069
6070 * elfcore.h (elf_core_file_p): call backend_object_p which
6071 thereby gets an opportunity to update the arch/machine type.
6072
6073 2000-04-06 Timothy Wall <twall@cygnus.com>
6074
6075 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
6076 class. Handle SEC_CLINK and SEC_BLOCK flags.
6077 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
6078 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
6079
6080 2000-04-06 Nick Clifton <nickc@cygnus.com>
6081
6082 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
6083 EF_INTERWORK if this is an unknown EABI.
6084 (elf32_arm_merge_private_bfd_data): Check EABI version
6085 numbers. Only check EF_xxx flags if the EABI version number
6086 is unknown.
6087 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
6088 if the EABI version number is unknown.
6089 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
6090 if the EABI version number is unknown.
6091
6092 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6093
6094 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
6095 BFD_RELOC_SH_LOOP_END.
6096 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
6097 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
6098 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
6099 (sh_elf_reloc_loop): New function.
6100 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
6101 any more.
6102 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
6103 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
6104 * bfd-in2.h, libbfd.h: Regenerate.
6105
6106 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6107
6108 * po/bfd.pot: Regenerate.
6109
6110 * Makefile.am: Remove extraneous mkdep comment.
6111 (MKDEP): Use gcc -MM rather than mkdep.
6112 (DEP): Quote when passing vars to sub-make. Add warning
6113 message to end.
6114 (DEP1): Rewrite for "gcc -MM".
6115 (CLEANFILES): Add DEP2.
6116 Update dependencies.
6117 * Makefile.in: Regenerate.
6118
6119 2000-04-03 Kevin Buettner <kevinb@redhat.com>
6120
6121 * configure.in: Added corefile support for AIX 4.3. In particular,
6122 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
6123 compiling rs6000-core.c.
6124 * configure: Regenerated.
6125
6126 2000-04-03 H.J. Lu <hjl@gnu.org>
6127
6128 * cache.c (bfd_open_file): Unlink the output file only if
6129 it has non-zero size.
6130
6131 2000-04-01 Ken Block USG <block@zk3.dec.com>
6132
6133 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
6134 relative relocations for non-loaded sections in shared objects.
6135 (elf64_alpha_check_relocs): Similarly.
6136
6137 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
6138
6139 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
6140 BFD_RELOC_16 to switch for extended relocs.
6141 (MY_swap_ext_reloc_in): New.
6142 (MY_swap_ext_reloc_out): New.
6143 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
6144 than NAME(aout,swap_ext_reloc_in) for extended relocs.
6145 (NAME(aout,squirt_out_relocs)): Similarly use
6146 MY_swap_ext_reloc_out.
6147 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
6148
6149 2000-04-03 Kazu Hirata <kazu@hxi.com>
6150
6151 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
6152 the R_PCRWORD_B case.
6153
6154 2000-03-31 Thomas de Lellis <tdel@wrs.com>
6155
6156 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
6157 on some targets.
6158 * ihex.c : Ditto.
6159
6160 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
6161
6162 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
6163 HOWTO references to bfd_elf_generic_reloc, that have
6164 partial_inplace == true, now use the new function. The function
6165 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
6166 extends its fixes to the R_M32R_{16,24,32} relocs.
6167 The new logic in m32r_elf_lo16_reloc() has been removed, and
6168 it instead calls the new routine to obtain that functionality.
6169
6170 2000-03-27 Alan Modra <alan@linuxcare.com.au>
6171
6172 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
6173 elf32_avr_check_relocs, avr_final_link_relocate,
6174 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
6175 elf32_avr_object_p): Add prototypes.
6176 (elf32_avr_gc_mark_hook): Add default for h->root.type.
6177 (bfd_elf_avr_final_write_processing): Make static.
6178
6179 2000-03-27 Denis Chertykov <denisc@overta.ru>
6180
6181 * cpu-avr.c: New file. BFD support routines for AVR architecture.
6182 * archures.c (bfd_architecture): Add AVR architecture.
6183 (bfd_archures_list): Add reference to AVR architecture info.
6184 * elf.c (prep_headers): Handle bfd_arch_avr.
6185 * reloc.c: Add various AVR relocation enums.
6186 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
6187 list.
6188 * Makefile.am: Add support for AVR elf.
6189 * configure.in: Likewise.
6190 * config.bfd: Likewise.
6191 * Makefile.in: Regenerate.
6192 * configure: This too.
6193 * bfd-in2.h: And this.
6194 * libbfd.h: And this.
6195
6196 2000-03-24 H.J. Lu <hjl@gnu.org>
6197
6198 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
6199 (elf64_alpha_find_reloc_at_ofs): Likewise.
6200
6201 2000-03-17 Alan Modra <alan@linuxcare.com.au>
6202
6203 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
6204 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
6205 allowable range used to be -2**(n-1) to 2**n-1.
6206 * reloc.c (_bfd_relocate_contents): Same here. Also replace
6207 "boolean overflow" with "bfd_reloc_status_type flag".
6208
6209 2000-03-14 Doug Evans <dje@casey.transmeta.com>
6210
6211 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
6212
6213 2000-03-14 Kazu Hirata <kazu@hxi.com>
6214
6215 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
6216 of shrinks properly, including the last reloc.
6217
6218 2000-03-13 Kazu Hirata <kazu@hxi.com>
6219
6220 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
6221 check for R_MOVL2.
6222
6223 2000-03-11 Alan Modra <alan@linuxcare.com.au>
6224
6225 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
6226 a format mismatch rather than an "error" from bfd_read such as
6227 bfd_error_file_truncated.
6228
6229 2000-03-10 Geoff Keating <geoffk@cygnus.com>
6230
6231 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
6232 sign-extension and big-endian compensation for
6233 R_MIPS_64 even in ld -r.
6234
6235 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
6236
6237 * elf32-mips.c (mips_elf_next_relocation): Rename from
6238 mips_elf_next_lo16_relocation, and generalize to look
6239 for any relocation type.
6240 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
6241 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
6242 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
6243 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
6244 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
6245 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
6246 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
6247 (mips_rtype_to_howto): Likewise.
6248 (mips_elf_calculate_relocation): Handle new relocs.
6249 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
6250 are paired. The addend for R_MIPS_GNU_REL16_S2
6251 is shifted right two bits.
6252
6253 2000-03-10 Alan Modra <alan@linuxcare.com.au>
6254
6255 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
6256 comment, and ensure it doesn't happen again.
6257 (bfd_install_relocation): Same here.
6258 (_bfd_relocate_contents): Don't bother assigning unused signmask
6259 shift result. Fix typos in comments.
6260 Remove trailing whitespace throughout file.
6261
6262 2000-03-07 Doug Evans <dje@casey.transmeta.com>
6263
6264 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
6265 * bfd-in2.h: Rebuild.
6266
6267 2000-03-06 Nick Clifton <nickc@cygnus.com>
6268
6269 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
6270 sym_ptr_ptr fields.
6271 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
6272 (SIZEOF_ILF_STRINGS): Redefine.
6273 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
6274 relative reloc, as opposed to a section relative reloc.
6275 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
6276 not C_LABEL.
6277 Add length of symbol's prefix to string pointer.
6278 Store a pointer to the symbol in the symbol pointer table.
6279 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
6280 Initialise the symbol pointer table.
6281 Store the hint in the Hint/Name table.
6282 Make the jump reloc be symbol realtive, not section relative.
6283 Create an import symbol for imported code.
6284
6285 2000-03-06 Catherine Moore <clm@cygnus.com>
6286
6287 * elf.c (swap_out_syms): Check for null type_ptr.
6288
6289 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
6290
6291 * aout-target.h (MY(write_object_contents)): Remove unused
6292 and unusable "#if CHOOSE_RELOC_SIZE".
6293 * pc532-mach.c (MY(write_object_contents)): Ditto.
6294 * netbsd.h (MY(write_object_contents)): Ditto.
6295 * hp300hpux.c (MY(write_object_contents)): Ditto.
6296 * freebsd.h (MY(write_object_contents)): Ditto.
6297 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
6298
6299 2000-02-29 H.J. Lu <hjl@gnu.org>
6300
6301 * peicode.h (jtab): Make it static.
6302
6303 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
6304 defined and COFF_IMAGE_WITH_PE is not defined.
6305 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
6306 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
6307
6308 2000-03-01 Nick Clifton <nickc@cygnus.com>
6309
6310 * coff-arm.c (bfd_arm_process_before_allocation): Make
6311 'symndx' signed to prevent compile time warning.
6312
6313 * coff-mcore.c: Remove unused prototype for pe_object_p.
6314
6315 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
6316 functions that are not used when COFF_IMAGE_WITH_PE is
6317 defined.
6318 (struct sh_opcode): Change type of 'flags' field to unsigned
6319 long so that it can hold the USESAS flag.
6320
6321 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
6322
6323 * elf-m10300.c (mn10300_elf_relax_section): Initialise
6324 'sym_sec'.
6325
6326 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
6327 parameters.
6328 Remove unusued variables and code.
6329 (elf_backend_add_symbol_hook): Fix prototype.
6330
6331 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
6332 'srelgot'.
6333
6334 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
6335 'oldinst'.
6336
6337 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
6338 parameters.
6339 Remove unusued variables and code.
6340 (elf_backend_add_symbol_hook): Fix prototype.
6341
6342 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
6343
6344 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
6345 to unused function parameter.
6346
6347 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
6348 parameters.
6349 Use EMPTY_HOWTO to initialise empty howto slots.
6350 Remove unused variables.
6351
6352 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
6353
6354 2000-03-01 H.J. Lu <hjl@gnu.org>
6355
6356 * aoutx.h (aout_link_input_section_std): Pass "true" to
6357 the undefined_symbol callback.
6358 (aout_link_input_section_ext): Likewise.
6359 * bout.c (get_value): Likewise.
6360 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
6361 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
6362 Likewise.
6363 (alpha_relocate_section): Likewise.
6364 * coff-arm.c (coff_arm_relocate_section): Likewise.
6365 * coff-i960.c (coff_i960_relocate_section): Likewise.
6366 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
6367 * coff-mips.c (mips_relocate_section): Likewise.
6368 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
6369 * coff-sh.c (sh_relocate_section): Likewise.
6370 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
6371 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
6372 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
6373 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
6374 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
6375 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
6376 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
6377 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6378 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
6379 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6380 * elf32-sh.c (sh_elf_relocate_section): Likewise.
6381 * elf32-v850.c (v850_elf_relocate_section): Likewise.
6382 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
6383 * elflink.h (elf_link_output_extsym): Likewise.
6384 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
6385 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
6386 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
6387
6388 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
6389 undefined_symbol callback when building shared library with
6390 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
6391 "true".
6392 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6393 * elf32-i386.c (elf_i386_relocate_section): Likewise.
6394 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6395 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6396 (elf32_mips_get_relocated_section_content): Likewise.
6397 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6398 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6399 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6400 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6401
6402 2000-02-28 Nick Clifton <nickc@cygnus.com>
6403
6404 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
6405 * Makefile.in: Regenerate.
6406
6407 * configure.in: Add support for mips and sh pe vectors.
6408 * configure: regenerate.
6409
6410 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
6411 targets.
6412
6413 * targets.c: Add mips and sh pe vectors.
6414
6415 * libpei.h (coff_final_link_postscript): Only define if not
6416 already defined.
6417
6418 * coffcode.h: Add support for WinCE magic numbers.
6419
6420 * peigen.c (pe_print_reloc): Update comment and rearrange
6421 appending of newline character.
6422
6423 * peicode.h: Add support for Image Library Format.
6424 (pe_ILF_vars): Structure containing data used by ILF code.
6425 (pe_ILF_make_a_section): New function. Create a section based
6426 on ILF data.
6427 (pe_ILF_make_a_reloc): New function. Create a reloc based on
6428 ILF data.
6429 (pe_ILF_make_a_symbol): New function. Create a symbol based
6430 on ILF data.
6431 (pe_ILF_save_relocs): New function. Store the relocs created
6432 by pe_ILF_make_a_reloc in a section.
6433 (pe_ILF_build_a_bfd): New function. Create a BFD describing
6434 an ILF object.
6435 (pe_ILF_object_p): New function. Return a bfd_target pointer
6436 for an ILF object.
6437 (pe_bfd_object_p): If an ILF object is detected call
6438 pe_ILF_object_p on it.
6439
6440 * coff-arm.c: Add support for WinCE relocs which are different
6441 from normal ARM COFF relocs.
6442 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
6443
6444 * coff-sh.c: Add support for sh-pe target.
6445 * pe-sh.c: New file. Support code for sh-pe target.
6446 * pei-sh.c: New file. Support code for sh-pe target.
6447
6448 * pe-mips.c: New file. Support code for mips-pe target.
6449 * pei-mips.c: New file. Support code for mips-pe target.
6450
6451 2000-02-27 Jakub Jelinek <jakub@redhat.com>
6452
6453 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
6454 architecture if the object causing the bump is dynamic.
6455 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
6456 and also don't it for memory ordering.
6457 (sparc64_elf_write_relocs): Take src_rela out of the loop.
6458
6459 2000-02-27 Ian Lance Taylor <ian@zembu.com>
6460
6461 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
6462 calling bfd_get_section_size_before_reloc.
6463 (decode_line_info): Likewise.
6464 (_bfd_dwarf2_find_nearest_line): Likewise.
6465
6466 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
6467
6468 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
6469 name of the libtool directory.
6470 * Makefile.in: Rebuild.
6471
6472 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
6473
6474 * som.c (SOM_HOWTO): Define.
6475 (som_hppa_howto_table): Use it.
6476
6477 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6478
6479 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
6480
6481 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
6482
6483 2000-02-24 Catherine Moore <clm@cygnus.com>
6484
6485 * som.c (som_misc_symbol_info): Add field
6486 secondary_def.
6487 (som_bfd_derive_misc_symbol_info): Initialize
6488 secondary_def.
6489 (som_build_and_write_symbol_table): Keep track
6490 of secondary_def field.
6491 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
6492 if secondary_def field is set.
6493 (som_bfd_ar_write_symbol_stuff): Initialize
6494 secondary_def.
6495
6496 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
6497
6498 * dwarf2.c (read_address): Read 16-bits addresses.
6499 (parse_comp_unit): Accept addr_size == 2.
6500
6501 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6502
6503 * bfd-in.h: Update copyright date.
6504
6505 2000-02-23 Linas Vepstas <linas@linas.org>
6506
6507 * cpu-i370.c: New file.
6508 * elf32-i370.c: New file.
6509 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
6510 (bfd_i370_arch): New.
6511 (bfd_archures_list): Add bfd_i370_arch.
6512 * elf.c (prep_headers): Add bfd_arch_i370.
6513 * Makefile.am: Add support for IBM 370 elf.
6514 * config.bfd: Likewise.
6515 * configure.in: Likewise.
6516 * libbfd.h (bfd_reloc_code_real_names): Likewise.
6517 * reloc.c (bfd_reloc_code_type): Likewise.
6518 * targets.c: Likewise.
6519
6520 * Makefile.in: Regenerate.
6521 * configure: Regenerate.
6522 * bfd-in2.h: Regenerate.
6523
6524 2000-02-22 Ian Lance Taylor <ian@zembu.com>
6525
6526 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
6527 invalid relocation types, and change them to R_386_NONE.
6528
6529 2000-02-22 H.J. Lu <hjl@gnu.org>
6530
6531 * elflink.h (elf_link_add_object_symbols): If a version symbol is
6532 not defined, don't add a second ELF_VER_CHR.
6533
6534 * elflink.h (elf_bfd_final_link): Call output_extsym for global
6535 symbols converted to local symbols even when stripping all
6536 symbols.
6537 (elf_link_output_extsym): Process global symbols converted to
6538 local symbols even if they are being stripped.
6539
6540 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6541
6542 * archures.c (bfd_octets_per_byte): Return unsigned int.
6543 (bfd_arch_mach_octets_per_byte): Ditto.
6544 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
6545 comparison warning.
6546 * section.c (bfd_get_section_size_before_reloc): Quell signed
6547 vs. unsigned comparison warning.
6548 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
6549 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
6550 change. What was I thinking?
6551 * bfd-in2.h: Regenerate.
6552
6553 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
6554 (elf_gc_sections): Same here.
6555 (elf_gc_common_finalize_got_offsets): And here.
6556
6557 2000-02-21 Ian Lance Taylor <ian@zembu.com>
6558
6559 ELF HPPA doesn't work at present; remove it until it does.
6560 * config.bfd: Comment out setting targ_defvec to
6561 bfd_elf32_hppa_vec.
6562 * Makefile.am: Rebuild dependencies.
6563 (BFD32_BACKENDS): Remove elf32-hppa.lo.
6564 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
6565 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
6566 * Makefile.in: Rebuild.
6567 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
6568
6569 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6570
6571 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
6572 is no bfd_free(). Revert bfd_free part of previous change.
6573
6574 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6575
6576 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
6577 arrays.
6578 (coff_compute_section_file_positions): Use bfd_free to pair
6579 bfd_malloc.
6580 (coff_write_object_contents): Likewise.
6581
6582 * coff-rs6000.c (xcoff_howto_table_16): New variable.
6583 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
6584
6585 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
6586
6587 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
6588 (xcoff_ar_file_hdr_big): New structure.
6589 (SIZEOF_AR_FILE_HDR_BIG): New macro.
6590 (xcoff_ar_hdr_big): New structure.
6591 (SIZEOF_AR_HDR_BIG): New macro.
6592 (xcoff_big_format_p): New macro.
6593 (xcoff_ardata_big): New macro.
6594 (arch_xhdr_big): New macro.
6595 (xcoff_slurp_armap): Handle large archives.
6596 (xcoff_archive_p): Detect large archives.
6597 (xcoff_read_ar_hdr): Handle large archives.
6598 (xcoff_openr_next_archived_file): Handle large archives.
6599 (xcoff_generic_stat_arch_elt): Handle large archives.
6600 (xcoff_write_armap_old): Rename from xcoff_write_armap.
6601 (xcoff_write_armap_big): New function.
6602 (xcoff_write_armap): New function, dispatch to _old or _big.
6603 (xcoff_write_archive_contents_old): Rename from
6604 xcoff_write_archive_contents.
6605 (xcoff_write_archive_contents_big): New function.
6606 (xcoff_write_archive_contents): New function, dispatch to _old or
6607 _big.
6608
6609 2000-02-18 Richard Henderson <rth@cygnus.com>
6610
6611 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
6612 and hide_symbol members.
6613 (elf_link_hash_copy_indirect): Remove.
6614 (elf_link_hash_hide_symbol): Remove.
6615 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
6616 and elf_backend_hide_symbol.
6617 (_bfd_elf_link_hash_copy_indirect): Declare.
6618 (_bfd_elf_link_hash_hide_symbol): Declare.
6619 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
6620 (_bfd_elf_link_hash_hide_symbol): Likewise.
6621 (_bfd_elf_link_hash_table_init): Don't init killed members.
6622 * elflink.h (elf_link_add_object_symbols): Use the bed function
6623 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
6624 (elf_link_assign_sym_version): Likewise.
6625 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
6626 (elf_backend_hide_symbol): Likewise.
6627 (elfNN_bed): Update for new members.
6628
6629 2000-02-17 Kevin Buettner <kevinb@redhat.com>
6630
6631 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
6632 STACK_END_ADDR): Define for new core file format.
6633 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
6634 for handling the vagaries of the various core file structures used
6635 by AIX over the years.
6636 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
6637 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
6638 core_dumpx structure.
6639
6640 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6641
6642 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
6643 (bfd_mach_sh3_dsp): Likewise.
6644 (bfd_mach_sh4): Reinstate.
6645 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
6646 * bfd-in2.h: Regenerate.
6647 * coff-sh.c (struct sh_opcode): flags is no longer short.
6648 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
6649 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
6650 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
6651 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
6652 (sh_opcodes): No longer const.
6653 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
6654 (sh_insn_uses_reg): Check for USESAS and USESR8.
6655 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
6656 (_bfd_sh_align_load_span): Return early for SH4.
6657 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
6658 Take into account that field b of a parallel processing insn
6659 could be mistaken for a separate insn.
6660 * cpu-sh.c (arch_info_struct): New array elements for
6661 sh2, sh-dsp and sh3-dsp.
6662 Reinstate element for sh4.
6663 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
6664 (SH4_NEXT): Reinstate.
6665 (SH3_NEXT, SH3E_NEXT): Adjust.
6666 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
6667 * elf32-sh.c (sh_elf_set_private_flags): New function.
6668 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
6669 (sh_elf_merge_private_data): New function.
6670 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
6671 (bfd_elf32_bfd_copy_private_bfd_data): Define.
6672 (bfd_elf32_bfd_merge_private_bfd_data): Change to
6673 sh_elf_merge_private_data.
6674
6675 2000-02-13 Richard Henderson <rth@cygnus.com>
6676
6677 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
6678 hide_symbol members.
6679 (elf_link_hash_copy_indirect): New.
6680 (elf_link_hash_hide_symbol): New.
6681 * elflink.h (elf_link_add_object_symbols): Break out copy from
6682 indirect new new symbol to elf.c.
6683 (elf_link_assign_sym_version): Break out privatization of
6684 non-exported symbol to elf.c.
6685 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
6686 (_bfd_elf_link_hash_hide_symbol): New.
6687 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
6688
6689 2000-02-13 Ian Lance Taylor <ian@zembu.com>
6690
6691 * section.c (_bfd_strip_section_from_output): Add info parameter.
6692 If it passed as non-NULL, use it to check whether any input BFD
6693 has an input section which uses this output section. Change all
6694 callers.
6695 * bfd-in2.h: Rebuild.
6696
6697 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
6698 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
6699 1999-11-29.
6700 * bfd-in2.h: Rebuild.
6701
6702 2000-02-10 Timothy Wall <twall@cygnus.com>
6703
6704 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
6705 allow final modifications of swapped-in symbol.
6706 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
6707 * coffcode.h (coff_write_relocs): Use macro
6708 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
6709 symbol index should be set to -1.
6710
6711 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
6712
6713 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
6714 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
6715 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
6716 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
6717 sh_insns_uses_or_sets_freg): New functions.
6718 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
6719 * (sh_insns_conflict): Use new functions and new macros to
6720 detect conflicts when two instructions both set same integer registers,
6721 both set same fp register, and both set special register.
6722
6723 2000-02-09 Timothy Wall <twall@cygnus.com>
6724
6725 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
6726 swapping in sections, so that the swapping routines have access to
6727 the arch/mach info.
6728
6729 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
6730
6731 * coff-go32.c: Update comment. Update copyright.
6732
6733 2000-01-27 Thomas de Lellis <tdel@windriver.com>
6734
6735 * syms.c (bfd_decode_symclass)
6736 Two new class characters were added - 'V' and 'v'. The
6737 meaning of 'W' is now restricted to just weak non-object
6738 symbols. This allows differentiation between, for example,
6739 weak functions vs weak objects. nm for example now dumps:
6740 'W' = weak global
6741 'w' = weak unresolved
6742 'V' = weak global object
6743 'v' = weak unresolved object
6744
6745 (bfd_is_undefined_symclass): New function. Return true if the
6746 given symbol class represents and undefined/unresolved symbol.
6747
6748 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
6749 unresolved symbols.
6750
6751 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
6752
6753 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
6754 STT_ARM_16BIT flag set, but it is not attached to a data object
6755 return STT_ARM_16BIT so that it will be treated as code by the
6756 disassembler.
6757
6758 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6759
6760 * coff-i386.c (i3coff_object_p): Remove prototype.
6761 Update copyright.
6762
6763 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
6764 to name. Update copyright.
6765
6766 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
6767 assignment to avoid warning. Update copyright.
6768
6769 2000-01-24 Robert Lipe (robertl@sco.com)
6770
6771 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
6772 instead of using GNU C extension.
6773
6774 2000-01-21 Nick Clifton <nickc@cygnus.com>
6775
6776 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
6777 amount from a bfd_in_memory structure.
6778 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
6779 structure.
6780
6781 2000-01-14 Nick Clifton <nickc@cygnus.com>
6782
6783 * linker.c (default_indirect_link_order): oops - fix incorrectly
6784 applied patch from Tim Wall.
6785
6786 2000-01-13 Timothy Wall (twall@tiac.net>
6787
6788 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
6789 = scnhsz, filhsz, relsz, aoutsz, etc)
6790
6791 * coffswap.h: Ditto.
6792
6793 2000-01-13 Nick Clifton <nickc@cygnus.com>
6794
6795 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
6796 interwork thumb to arm stub.
6797
6798 2000-01-13 Timothy Wall (twall@tiac.net>
6799
6800 * archures.c (bfd_octets_per_byte): New function: Return
6801 target byte size.
6802 (bfd_arch_mach_octets_per_byte): New function: Return target
6803 byte size.
6804
6805 * section.c: Distinguish between octets and bytes for usage of
6806 _cooked_size, _raw_size, and output_offset. Clarify
6807 description of bfd_set_section_contents.
6808
6809 * bfd-in2.h: Regenerate.
6810
6811 * coffgen.c: Indicate that the offset parameter is in bytes, not
6812 octets.
6813
6814 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
6815 where appropriate to get the octet offset when calling
6816 bfd_set_section_contents.
6817 (bfd_coff_reloc_link_order): Ditto.
6818
6819 * linker.c (bfd_generic_reloc_link_order): Ditto.
6820 (_bfd_default_link_order): Ditto.
6821
6822 * reloc.c (bfd_perform_relocation): Distinguish between octets
6823 and bytes. Use octets when indexing into octet data; use bytes
6824 when calculating target addresses.
6825 (bfd_install_relocation): Ditto.
6826
6827 * srec.c (srec_write_section): Ditto.
6828
6829 2000-01-13 Nick Clifton <nickc@cygnus.com>
6830
6831 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
6832 3 to 2. This allows 4 byte sized sections, which is necessary for
6833 dlltool to build functioning DLLs.
6834
6835 2000-01-10 Philip Blundell <pb@futuretv.com>
6836
6837 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
6838 (arm*-*-conix*): New target.
6839
6840 2000-01-10 Egor Duda <deo@logos-m.ru>
6841
6842 * config.bfd: Include elf32_i386 vector to target list for cygwin
6843 and mingw.
6844
6845 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
6846 * configure.in: Test for structure win32_pstatus_t in
6847 <sys/procfs.h>
6848 * configure: Regenerate.
6849
6850 * elf.c (elfcore_grok_win32pstatus): New function: process
6851 win32_pstatus_t notes in elf core file.
6852 (elfcore_grok_note): Detect win32_pstatus notes.
6853
6854 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
6855
6856 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
6857 visibility.
6858 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
6859 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
6860
6861 For older changes see ChangeLog-9899
6862 \f
6863 Local Variables:
6864 mode: change-log
6865 left-margin: 8
6866 fill-column: 74
6867 version-control: never
6868 End: