Fix bug emitting R_SPARC_UA32 relocs into shared objects
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2001-09-14 Michael Rauch <mrauch@netbsd.org>
2
3 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
4 just like R_SPARC_32.
5
6 2001-09-14 Kevin Lo <kevlo@openbsd.org>
7
8 * configure.bfd: Add arm-openbsd target.
9
10 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
11
12 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
13 Add support for mips64.
14
15 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
16
17 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
18
19 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
20
21 * elf.c (prep_headers): Get the machine code from the elf
22 backend data.
23 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
24 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
25 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
26 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
27 * elf-arc.c (arc_elf_final_write_processing): Don't override
28 e_machine, it's now properly set in prep_headers.
29 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
30 EM_AVR_OLD.
31 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
32 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
33 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
34 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
35 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
36 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
37 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
38 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
39 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
40 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
41 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
42 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
43
44 2001-09-11 Richard Henderson <rth@redhat.com>
45
46 * elf64-alpha.c (elf64_alpha_section_flags): New.
47 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
48
49 2001-09-11 Richard Henderson <rth@redhat.com>
50
51 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
52 apply HINT relocations against dynamic symbols.
53
54 2001-09-11 H.J. Lu <hjl@gnu.org>
55
56 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
57
58 2001-09-09 Richard Henderson <rth@redhat.com>
59
60 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
61
62 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
63 following a call to a near function.
64
65 2001-09-08 Richard Henderson <rth@redhat.com>
66
67 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
68 relocation errors. Fail gp-relative relocations against
69 dynamic symbols.
70
71 2001-09-08 Alan Modra <amodra@bigpond.net.au>
72
73 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
74 as well as DEF_DYNAMIC in test for avoided copy relocs.
75 (allocate_plt_and_got_and_discard_relocs): Likewise.
76 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
77 (allocate_plt_and_got_and_discard_relocs): Likewise.
78
79 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
80
81 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
82 of R_MIPS_PC16.
83
84 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
85
86 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
87 definitions.
88 (mips_elf64_howto_table_rel): Likewise.
89
90 2001-09-05 Tom Rix <trix@redhat.com>
91
92 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
93 and syscall symbols.
94 (write_global_symbol) : Same.
95 (bfd_xcoff_export_symbol): Remove unused syscall param.
96 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
97 bfd_xcoff_import_symbol.
98 * bfd-in.h: Same.
99 * bfd-in2.h : Regenerate.
100
101 2001-09-04 Richard Henderson <rth@redhat.com>
102
103 * elf64-alpha.c (SKIP_HOWTO): New.
104 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
105 Fix sizes of 16-bit mem format relocs.
106 (elf64_alpha_reloc_map): Update to match.
107 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
108 (elf64_alpha_relax_without_lituse): Likewise.
109 (elf64_alpha_check_relocs): Handle GPREL16.
110 (elf64_alpha_relocate_section): Likewise.
111 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
112 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
113 * bfd-in2.h, libbfd.h: Rebuild.
114
115 2001-09-04 Jeff Law <law@redhat.com>
116
117 * elf32-h8300.c (elf32_h8_relax_section): New function.
118 (elf32_h8_relax_delete_bytes): Likewise.
119 (elf32_h8_symbol_address_p): Likewise.
120 (elf32_h8_get_relocated_section_contents): Likewise.
121 (bfd_elf32_bfd_relax_section): Define.
122 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
123
124 * elf32-h8300.c (special): New function.
125 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
126 all relocations.
127 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
128 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
129 Fix minor problems with 8bit and 16bit PC relative relocations.
130
131 2001-09-01 Andreas Jaeger <aj@suse.de>
132
133 * vms-tir.c: Add missing prototypes.
134 * vms-hdr.c: Likewise.
135 * vms-gsd.c: Likewise.
136 * vms-misc.c: Likewise.
137
138 2001-08-31 H.J. Lu <hjl@gnu.org>
139
140 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
141 with bad relocation.
142
143 2001-08-31 Eric Christopher <echristo@redhat.com>
144 Jason Eckhardt <jle@redhat.com>
145
146 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
147 mips32_4k and mips64.
148 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
149 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
150 * bfd/cpu-mips.c: Ditto.
151 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
152 * bfd/bfd-in2.h: Regenerate.
153
154 2001-08-31 Jakub Jelinek <jakub@redhat.com>
155
156 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
157 value into R_ALPHA_RELATIVE's addend.
158 (elf64_alpha_finish_dynamic_symbol): Likewise.
159
160 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
161
162 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
163 recomputed addend during relocatable link if not USE_REL.
164
165 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
166 error.
167
168 2001-08-30 H.J. Lu <hjl@gnu.org>
169
170 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
171 2 changes.
172 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
173 relocations for weak definitions.
174
175 2001-08-30 H.J. Lu <hjl@gnu.org>
176
177 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
178 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
179 * Makefile.in: Rebuild.
180
181 2001-08-30 H.J. Lu <hjl@gnu.org>
182
183 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
184 dynamic relocation for undefined weak symbols when creating
185 executables. Check h->root.root.type, instead of h->root.type.
186
187 2001-08-29 Joel Sherrill <joel@OARcorp.com>
188
189 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
190 default from coff to elf.
191
192 2001-08-29 Jeff Law <law@redhat.com>
193
194 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
195 relocations.
196 (h8_reloc_map): Similarly.
197 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
198 Add support for PC relative relocations.
199
200 * elf32-h8300.c: Put all prototypes together.
201 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
202 (elf32_h8_final_link_relocate): New function for linker.
203 (elf32_h8_relocate_section): Similarly.
204 (elf_backend_relocate_section): Define.
205
206 * cpu-h8300.c (h8300_scan, compatible): Prototype.
207 (h8300_scan): Handle architecture:machine encodings typically
208 found in linker scripts.
209 * elf.c (prep_headers): Do not try to do H8 machine recognition
210 here.
211 * elf32-h8300.c: Add some missing prototypes.
212 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
213 (elf32_h8_object_p): Similarly.
214
215 2001-08-29 Tom Rix <trix@redhat.com>
216
217 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
218 does not follow a XTY_SD.
219
220 2001-08-29 Alan Modra <amodra@bigpond.net.au>
221
222 * targmatch.sed: Delete case statements.
223 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
224 aix4.3 and above.
225
226 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
227
228 * Makefile.am (elf32-h8300.lo): New target.
229 * config.bfd (h8300*-*-elf): New case.
230 * configure.in (bfd_elf32_h8300_vec): New case.
231 * elf.c (prep_headers): Add case for bfd_arch_h8300.
232 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
233 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
234 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
235 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
236 * elf32-h8300.c: New file.
237 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
238
239 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
240
241 * sparclynx.c: Add missing prototypes.
242 * coff-mcore.c: Add missing prototypes.
243 * elf32-pj.c: Add missing prototypes.
244 * nlm32-sparc.c: Add missing prototypes.
245 * oasys.c: Add missing prototypes.
246 * pdp11.c: Add missing prototypes.
247 * pe-mips.c: Add missing prototypes.
248 * riscix.c: Add missing prototypes.
249
250 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
251
252 * elf32-i386.c: Add missing prototypes.
253 * elf32-ppc.c: Likewise.
254 * elf32-sh-lin.c: Likewise.
255 * elfarm-nabi.c: Likewise.
256
257 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
258
259 * elf32-i386.c (elf_i386_grok_prstatus): New function.
260 (elf_i386_grok_psinfo): New function.
261 (elf_backend_grok_prstatus): Define.
262 (elf_backend_grok_psinfo): Likewise.
263 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
264 (ppc_elf_grok_psinfo): New function.
265 (elf_backend_grok_prstatus): Define.
266 (elf_backend_grok_psinfo): Likewise.
267 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
268 (elf32_shlin_grok_psinfo): New function.
269 (elf_backend_grok_prstatus): Define.
270 (elf_backend_grok_psinfo): Likewise.
271 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
272 (elf32_arm_nabi_grok_psinfo): New function.
273 (elf_backend_grok_prstatus): Define.
274 (elf_backend_grok_psinfo): Likewise.
275
276 2001-08-27 H.J. Lu <hjl@gnu.org>
277
278 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
279 sanity check.
280 (mips_elf_calculate_relocation): Create dynamic relocation for
281 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
282 bit is not set.
283
284 2001-08-27 H.J. Lu <hjl@gnu.org>
285
286 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
287 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
288 (_bfd_elf32_mips_grok_prstatus): Likewise.
289 (_bfd_elf32_mips_grok_psinfo): Likewise.
290 (_bfd_mips_elf_hide_symbol): Make it static and cast to
291 `struct mips_elf_link_hash_entry *'.
292 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
293
294 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
295
296 * mipsbsd.c: Add missing prototypes.
297 * hp300hpux.c: Add missing prototypes.
298 * i386aout.c: Add missing prototypes.
299 * i386lynx.c: Add missing prototypes.
300 * i386mach3.c: Add missing prototypes.
301 * i386msdos.c: Add missing prototypes.
302 * i386os9k.c: Add missing prototypes.
303
304 2001-08-27 Linus Nordberg <linus@swox.se>
305 Torbjorn Granlund <tege@swox.com>
306 Staffan Ulfberg <staffanu@swox.se>
307 Alan Modra <amodra@bigpond.net.au>
308
309 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
310 targ64_selvecs for 32 bit powerpc targets.
311 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
312 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
313 Run "make dep-am".
314 * Makefile.in: Regenerate.
315 * configure.in: Add elf64_powerpc vecs.
316 * configure: Regenerate.
317 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
318 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
319 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
320 * elf64-ppc.c: New file.
321 * reloc.c: Add powerpc64 relocs.
322 * libbfd.h: Regenerate.
323 * bfd-in2.h: Regenerate.
324
325 2001-08-27 Andreas Schwab <schwab@suse.de>
326
327 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
328 reloc is against read-only section.
329 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
330 looking up section names for DT_TEXTREL.
331 (elf32_m68k_reloc_type_class): New function.
332 (elf_backend_reloc_type_class): Define.
333
334 2001-08-27 Andreas Jaeger <aj@suse.de>
335
336 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
337 reloc is against read-only section.
338 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
339 looking up section names for DT_TEXTREL.
340 (elf_s390_reloc_type_class): New.
341 (elf_backend_reloc_type_class): Define.
342
343 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
344 reloc is against read-only section.
345 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
346 looking up section names for DT_TEXTREL.
347 (elf_s390_reloc_type_class): New.
348 (elf_backend_reloc_type_class): Define.
349
350 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
351 is against read-only section.
352 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
353 looking up section names for DT_TEXTREL.
354 (ppc_elf_reloc_type_class): New.
355 (elf_backend_reloc_type_class): Define.
356
357 2001-08-26 Andreas Jaeger <aj@suse.de>
358
359 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
360 reloc is against read-only section.
361 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
362 looking up section names for DT_TEXTREL.
363 (elf_cris_reloc_type_class): New.
364 (elf_backend_reloc_type_class): Define.
365
366 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
367 against read-only section.
368 (elf_backend_reloc_type_class): Define.
369 (sh_elf_reloc_type_class): New.
370 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
371 looking up section names for DT_TEXTREL.
372
373 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
374 reloc is against read-only section.
375 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
376 looking up section names for DT_TEXTREL.
377 (elf32_arm_reloc_type_class): New.
378 (elf_backend_reloc_type_class): Define.
379
380 2001-08-25 Andreas Jaeger <aj@suse.de>
381
382 * oasys.c: Add missing prototypes.
383
384 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
385 attribute for parameter.
386 * elf.c (_bfd_elf_reloc_type_class): Likewise.
387
388 * versados.c (get_4): Make static.
389 (get_10): Make static.
390 Add missing prototypes.
391 (process_esd): Fix call to versados_new_symbol.
392
393 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
394
395 * coff-a29k.c: Add missing prototypes.
396 * coff-apollo.c: Add missing prototypes.
397 * coff-arm.c: Add missing prototypes.
398 * coff-i860.c: Add missing prototypes.
399 * coff-rs6000.c: Add missing prototypes.
400 * coff-tic80.c: Add missing prototypes.
401 * elf-m10200.c: Add missing prototypes.
402 * elf-m10300.c: Add missing prototypes.
403 * elf32-arm.h: Add missing prototypes.
404 * elf32-d10v.c: Add missing prototypes.
405 * elf32-m32r.c: Add missing prototypes.
406 * elf32-mcore.c: Add missing prototypes.
407 * elf32-openrisc.c: Add missing prototypes.
408 * elf32-sh.c: Add missing prototypes.
409 * elf32-sparc.c: Add missing prototypes.
410 * elf32-v850.c: Add missing prototypes.
411 * elfarm-nabi.c: Add missing prototypes.
412 * elfarm-oabi.c: Add missing prototypes.
413
414 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
415
416 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
417 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
418
419 2001-08-24 H.J. Lu <hjl@gnu.org>
420
421 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
422 hash structure.
423
424 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
425
426 * elf-bfd.h (elf_hash_table): Revert definition.
427 (is_elf_hash_table): New macro.
428 * elflink.h (elf_link_add_object_symbols): Test
429 is_elf_hash_table before accessing ELF only fields in hash
430 structure.
431 (elf_link_create_dynamic_sections): Fail if not using an ELF
432 hash structure.
433 (elf_add_dynamic_entry): Fail if not using an ELF hash
434 structure.
435 (elf_link_record_local_dynamic_symbol): Fail if not using an
436 ELF hash structure.
437 (size_dynamic_sections): Fail if not using an ELF hash
438 structure.
439 (elf_adjust_dynamic_symbol): Fail if not using an ELF
440 hash structure.
441 (elf_bfd_final_link): Fail if not using an ELF hash
442 structure.
443
444 2001-08-24 H.J. Lu <hjl@gnu.org>
445
446 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
447 table is not an ELF linker hash table.
448
449 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
450 table type to bfd_link_elf_hash_table.
451
452 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
453 the last change.
454
455 * linker.c (_bfd_link_hash_table_init): Set the linker hash
456 table type to bfd_link_generic_hash_table.
457
458 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
459
460 * bfd.c (bfd_alt_mach_code): New function.
461 * bfd-in2.h: Rebuilt.
462
463 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
464
465 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
466 `type' field in the hash entry when deciding whether to follow a
467 link.
468
469 2001-08-24 Jakub Jelinek <jakub@redhat.com>
470
471 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
472 last.
473 (elf_link_sort_relocs): Adjust accordingly.
474
475 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
476 (elf64_alpha_check_relocs): Set it if section this reloc is against
477 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
478 read-only section.
479 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
480 is is against read-only section.
481 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
482 check section names.
483 (elf64_alpha_reloc_type_class): New.
484 (elf_backend_reloc_type_class): Define.
485
486 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
487
488 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
489 by bfd_malloc().
490
491 2001-08-23 Andreas Jaeger <aj@suse.de>
492
493 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
494 the reloc is against read-only section.
495 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
496 of looking up section names for DT_TEXTREL.
497 (elf64_x86_64_reloc_type_class): New.
498 (elf_backend_reloc_type_class): Define.
499
500 2001-08-23 H.J. Lu <hjl@gnu.org>
501
502 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
503 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
504
505 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
506 bfd_print_symbol_vandf.
507 * coffgen.c (coff_print_symbol): Likewise.
508 * elf.c (bfd_elf_print_symbol): Likewise.
509 * ieee.c (ieee_print_symbol): Likewise.
510 * nlmcode.h (nlm_print_symbol): Likewise.
511 * oasys.c (oasys_print_symbol): Likewise.
512 * pdp11.c (NAME(aout,print_symbol)): Likewise.
513 * som.c (som_print_symbol): Likewise.
514 * srec.c (srec_print_symbol): Likewise.
515 * tekhex.c (tekhex_print_symbol): Likewise.
516 * versados.c (versados_print_symbol): Likewise.
517 * vms.c (vms_print_symbol): Likewise.
518
519 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
520 with bfd_fprintf_vma.
521 (bfd_elf_print_symbol): Likewise.
522 * syms.c (bfd_print_symbol_vandf): Likewise.
523
524 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
525
526 * aoutf1.h (sunos_write_object_contents): Silence compile time
527 warning.
528 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
529
530 * bout.c: Add missing function prototypes. Fix formatting.
531 * coff-z8k.c: Add missing function prototypes. Fix formatting.
532 * coff-w65.c: Add missing function prototypes. Fix formatting.
533 * coff-h8500.c: Add missing function prototypes. Fix formatting.
534 * coff-h8300.c: Add missing function prototypes. Fix formatting.
535 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
536 * coff-tic30.c: Add missing function prototypes. Fix formatting.
537 * coff-m68k.c: Add missing function prototypes. Fix formatting.
538 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
539 * coff-sh.c: Add missing function prototypes. Fix formatting.
540
541 2001-08-23 Jakub Jelinek <jakub@redhat.com>
542
543 * elf-bfd.h (enum elf_reloc_type_class): New.
544 (struct elf_backend_data): Add elf_backend_reloc_type_class.
545 (_bfd_elf_reloc_type_class): New.
546 * elfxx-target.h (elf_backend_reloc_type_class): Define.
547 (elfNN_bed): Add elf_backend_reloc_type_class.
548 * elf.c (_bfd_elf_reloc_type_class): New.
549 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
550 is against read-only section.
551 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
552 looking up section names for DT_TEXTREL.
553 (elf_i386_reloc_type_class): New.
554 (elf_backend_reloc_type_class): Define.
555 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
556 reloc is against read-only section.
557 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
558 looking up section names for DT_TEXTREL.
559 (elf32_sparc_reloc_type_class): New.
560 (elf_backend_reloc_type_class): Define.
561 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
562 reloc is against read-only section.
563 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
564 looking up section names for DT_TEXTREL.
565 (sparc64_elf_reloc_type_class): New.
566 (elf_backend_reloc_type_class): Define.
567 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
568 (elfNN_ia64_hash_table_create): Clear ia64_info.
569 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
570 section.
571 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
572 instead of looking up section names for DT_TEXTREL.
573 (elfNN_ia64_reloc_type_class): New.
574 (elf_backend_reloc_type_class): Define.
575 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
576 (struct elf_link_sort_rela): New.
577 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
578 (elf_bfd_final_link): Call elf_link_sort_relocs.
579 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
580 necessary.
581
582 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
583
584 * configure.in (x86-bsdi): No corefile support.
585 * configure: Regenerate.
586
587 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
588
589 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
590 comma.
591
592 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
593
594 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
595 the alignment of dwarf2 linkonce sections to 0.
596 * coff-sto32.c: Likewise.
597
598 2001-08-20 Andreas Jaeger <aj@suse.de>
599
600 * coff-sparc.c: Add missing prototypes.
601 * elf32-s390.c: Likewise.
602 * elf32-i960.c: Likewise.
603 * aout-target.h: Likewise.
604
605 2001-08-20 H.J. Lu <hjl@gnu.org>
606
607 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
608 (elf_num_section_syms): New for num_section_syms.
609
610 * elf.c (elf_map_symbols): Set num_section_syms.
611 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
612 the section symbol index.
613
614 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
615
616 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
617 select the generic has table creator. All elf backends need elf
618 specific fields in the hash table.
619
620 2001-08-20 Alan Modra <amodra@bigpond.net.au>
621
622 * archive.c (offsetof): Remove define.
623 * elf.c: Likewise.
624 * oasys.c: Likewise
625 * sysdep.h (offsetof): Define.
626
627 2001-08-17 Alan Modra <amodra@bigpond.net.au>
628
629 * bfd.c (bfd_get_gp_size): Return an unsigned int.
630 (bfd_set_gp_size): Make param unsigned.
631 * bfd-in2.h: Regenerate.
632 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
633 than calling bfd_get_gp_size.
634 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
635 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
636
637 2001-08-17 Alan Modra <amodra@bigpond.net.au>
638
639 * linker.c (default_fill_link_order): Handle four byte fill value.
640
641 2001-08-17 Alan Modra <amodra@bigpond.net.au>
642
643 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
644 prototype.
645 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
646
647 * elf64-mips.c (UNUSED_RELOC): Define.
648 (mips_elf64_howto_table_rel): Use it.
649 (mips_elf64_howto_table_rela): Here too.
650 (mips_elf64_write_relocs): Fix signed/unsigned warning.
651
652 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
653 silence warning.
654 * coffgen.c (coff_print_symbol): Fix warnings.
655 (coff_find_nearest_line): Likewise.
656 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
657 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
658 * format.c (bfd_check_format_matches): Likewise.
659 (bfd_set_format): Likewise.
660 * coff-ia64.c: Add missing prototypes.
661 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
662 signed to silence warnings.
663 (elf64_alpha_relocate_section): Likewise.
664 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
665 (elf64_alpha_add_symbol_hook): Likewise.
666 (elf64_alpha_final_link): Likewise.
667 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
668 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
669 (elf64_alpha_size_got_sections): Likewise.
670 * elfxx-ia64.c: Add missing prototypes.
671 (elfNN_ia64_relocate_section): Fix warning.
672 (elfNN_ia64_unwind_entry_compare): Make params const.
673
674 2001-08-17 Alan Modra <amodra@bigpond.net.au>
675
676 * config.bfd (targ64_selvecs): New.
677 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
678
679 * bfd-in.h (BFD_VERSION): Remove wrong comment.
680 (BFD_DEFAULT_TARGET_SIZE): New.
681 (BFD_ARCH_SIZE): Comment.
682 * configure.in (target_size): New. Set instead of target64 in
683 selvecs case statement. Set target64 from it.
684 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
685 * bfd-in2.h: Regenerate.
686 * configure: Regenerate.
687
688 2001-08-17 Alan Modra <amodra@bigpond.net.au>
689
690 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
691 (bfd_errmsgs): Add corresponding message.
692 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
693 finding an archive that contains different format object files.
694 Return bfd_error_wrong_object_format for this case.
695 * format.c: Formatting fixes. s/CONST/const/.
696 (bfd_check_format_matches): Accept archives that give
697 bfd_error_wrong_object_format if no full match is found. Tidy
698 code handling matching_vector. Don't return a pointer to freed
699 memory in `matching'. Handle ambiguous matches as for partial
700 archive matches.
701 * bfd-in2.h: Regenerate.
702
703 2001-08-15 Alan Modra <amodra@bigpond.net.au>
704
705 * libieee.h (common_header_type): Add last_byte field.
706
707 * ieee.c: Add missing prototypes. Some format fixes.
708 (struct output_buffer_struct): Move for availability to prototypes.
709 (ieee_part_after): New function.
710 (ieee_slurp_debug): Use it here.
711 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
712 ieee_part_after to set last_byte to one past end of current part.
713 Update callers.
714 (ieee_pos): Pass in ieee_data_struct rather than bfd.
715 Update callers.
716 (parse_expression): Don't go beyond the end of the current part.
717 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
718 (ieee_get_symtab_upper_bound, ieee_get_symtab,
719 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
720 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
721 ieee_set_section_contents, ieee_write_object_contents,
722 ieee_make_empty_symbol): Make static.
723 (ieee_archive_p): Correct comments regarding bfd_read.
724 (ieee_object_p): Similarly.
725 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
726 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
727 input_bfd, output_bfd, output_buffer.
728 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
729 do_with_relocs, ie. as a symbol for relocatable files.
730 (ieee_vec): Add comments showing functions referenced by macros.
731
732 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
733
734 * aout-tic30.c: Add missing prototypes. Fix formatting.
735 * aout-ns32k.c: Add missing prototypes. Fix formatting.
736 * peXXigen.c: Add missining prototypes. Fix formatting.
737 * aout-adobe.c: Add missining prototypes. Fix formatting.
738
739 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
740
741 * elf32-v850.c: Add missing function prototypes.
742 Fix some formatting.
743
744 * cpu-v850.c: Add missing function prototype.
745 Fix some formatting.
746
747 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
748
749 * elf-bfd.h (struct elf_backend_data): Add new fields
750 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
751 (bfd_elf_sprintf_vma): Rename function prototype to
752 '_bfd_elf_sprintf_vma'.
753 (bfd_elf_fprintf_vma): Rename function prototype to
754 '_bfd_elf_fprintf_vma'.
755 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
756 directly, instead indirect via the elf_backend_data structure.
757 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
758 instead indirect via the elf_backend_data structure.
759 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
760 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
761 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
762 already defined.
763 (elf_backend_fprintf_vma): Initialise if not already defined.
764 (struct elf_backend_data): Initialise the
765 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
766
767 2001-08-10 Andreas Jaeger <aj@suse.de>
768
769 * elf64-sparc.c: Add missing prototypes.
770 * elf32-cris.c: Likewise.
771 * elf32-i370.c: Likewise.
772 * elf64-hppa.c: Likewise.
773 * elf64-s390.c: Likewise.
774
775 2001-08-10 Andreas Jaeger <aj@suse.de>
776
777 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
778 Add prototypes where needed.
779
780 2001-08-10 H.J. Lu <hjl@gnu.org>
781
782 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
783 (bfd_fprintf_vma): Likewise.
784
785 2001-08-10 H.J. Lu <hjl@gnu.org>
786
787 * bfd.c (bfd_sprintf_vma): Don't return void.
788 (bfd_fprintf_vma): Likewise.
789
790 2001-08-10 Andreas Jaeger <aj@suse.de>
791
792 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
793 to build warnings.
794 * configure: Regenerate.
795
796 2001-08-10 Alan Modra <amodra@bigpond.net.au>
797
798 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
799 warning if not BFD64. Add braces so emacs auto format works.
800 (bfd_elf_fprintf_vma): Likewise.
801
802 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
803 of _xcoff_swap_ld*.
804 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
805 param to agree with libxcoff.h.
806 (xcoff_swap_ldhdr_out): Likewise.
807 (xcoff_swap_ldsym_in): Likewise.
808 (xcoff_swap_ldsym_out): Likewise.
809 (xcoff_swap_ldrel_in): Likewise.
810 (xcoff_swap_ldrel_out): Likewise.
811 (xcoff_create_csect_from_smclas): Likewise.
812 * coff64-rs6000.c: Add missing prototypes.
813 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
814 with libxcoff.h.
815 (xcoff64_swap_ldhdr_out): Likewise.
816 (xcoff64_swap_ldsym_in): Likewise.
817 (xcoff64_swap_ldsym_out): Likewise.
818 (xcoff64_swap_ldrel_in): Likewise.
819 (xcoff64_swap_ldrel_out): Likewise.
820 (xcoff64_ppc_relocate_section): Make static.
821 (xcoff64_slurp_armap): Likewise.
822 (xcoff64_archive_p): Likewise.
823 (xcoff64_openr_next_archived_file): Likewise.
824 (xcoff64_sizeof_headers): Likewise.
825 (xcoff64_is_lineno_count_overflow): Likewise.
826 (xcoff64_is_reloc_count_overflow): Likewise.
827 (xcoff64_loader_symbol_offset): Likewise.
828 (xcoff64_loader_reloc_offset): Likewise.
829 * elf64-gen.c: Add missing prototypes.
830
831 2001-08-09 H.J. Lu <hjl@gnu.org>
832
833 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
834 (bfd_elf_fprintf_vma): Likewise.
835
836 2001-08-09 H.J. Lu <hjl@gnu.org>
837
838 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
839 to ...
840 * elf-bfd.h: Here.
841 * bfd-in2.h: Regenerated.
842
843 2001-08-09 H.J. Lu <hjl@gnu.org>
844
845 * bfd-in.h (bfd_sprintf_vma): New prototype.
846 (bfd_fprintf_vma): Likewise.
847 (bfd_elf_sprintf_vma): Likewise.
848 (bfd_elf_fprintf_vma): Likewise.
849 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
850 * bfd-in2.h: Regenerated.
851
852 * bfd.c (bfd_sprintf_vma): New. Defined.
853 (bfd_fprintf_vma): Likewise.
854
855 * elf.c (bfd_elf_sprintf_vma): New. Defined.
856 (bfd_elf_fprintf_vma): Likewise.
857
858 2001-08-09 Alan Modra <amodra@bigpond.net.au>
859
860 * coff-rs6000.c: Add missing prototypes.
861 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
862 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
863 xcoff_loader_reloc_offset): Make static.
864 * dwarf1.c: Add missing prototypes.
865 * dwarf2.c: Add missing prototypes.
866 (struct abbrev_info): Move definition.
867 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
868 * elf.c: Add missing prototypes.
869 * elf32-gen.c: Likewise.
870 * elf32-i386.c: Likewise.
871 * elf32-ppc.c: Likewise.
872 (ppc_elf_sort_rela): Use PTR instead of "void *".
873 * elflink.h: Add missing prototypes. Formatting fixes.
874 * merge.c: Add missing prototypes.
875 (last4_eq): Use PTR instead of "void *".
876 (last_eq): Likewise.
877 * syms.c: Add missing prototypes.
878
879 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
880
881 * bfd.c: Fix formatting.
882 * bfd-in2.h: Regenerate.
883
884 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
885
886 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
887 true (this target uses REL relocations) and 'pcrel_offset' to
888 false (the PC is implied, not stored in the offset).
889
890 2001-08-08 Alan Modra <amodra@bigpond.net.au>
891
892 1999-10-19 Linus Nordberg <linus@swox.se>
893 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
894 * elfxx-target.h (elf_backend_want_got_sym): Define.
895 (elfNN_bed): Add elf_backend_want_got_sym.
896 * elflink.c (_bfd_elf_create_got_section): Define
897 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
898
899 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
900
901 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
902 (find_rela_addend): New function.
903 (parse_comp_unit): Call it to find the abbrev offset addend.
904 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
905 members of dwarf2_debug as debugging information is read.
906
907 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
908
909 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
910 targets as well as sh-pe.
911
912 2001-08-03 Ben Harris <bjh21@netbsd.org>
913
914 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
915 reloc from start of section when computing value for R_ARM_REL32
916 reloc.
917
918 2001-08-03 Alan Modra <amodra@bigpond.net.au>
919
920 From H.J. Lu <hjl@gnu.org>
921 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
922 keep relocs for undefined syms if there are no dynamic sections in
923 executable.
924 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
925
926 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
927
928 * cofflink.c (coff_link_check_ar_symbols): also search for
929 __imp__symbol as well as _symbol.
930 * linker.c (_bfd_generic_link_add_archive_symbols): also
931 search for __imp__symbol as well as _symbol.
932
933 2001-08-01 Adam Nemet <anemet@lnxw.com>
934
935 * elf.c (elf_sort_sections): Return zero only as the last step.
936
937 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
938
939 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
940 ARM_COFF_BUGFIX.
941 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
942 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
943 ARM_COFF_BUGFIX.
944
945 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
946
947 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
948 to match corresponding bfd_coff_backend data member.
949
950 2001-07-24 Alan Modra <amodra@bigpond.net.au>
951
952 * Makefile.am: Update dependencies with "make dep-am".
953 * Makefile.in: Regenerate
954
955 2001-07-15 H.J. Lu <hjl@gnu.org>
956
957 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
958 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
959 * Makefile.in: Regenerate.
960
961 2001-07-11 H.J. Lu <hjl@gnu.org>
962
963 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
964 flags when creating the reloc section if the ALLOC flag in the
965 source section is set.
966
967 2001-07-11 Steve Ellcey <sje@cup.hp.com>
968
969 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
970 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
971 * bfd-in2.h: Regenerate.
972 * libbfd.h: Regenerate.
973 * elfxx-ia64.c (ia64_howto_table): Define how to handle
974 new relocations.
975 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
976 (elfNN_ia64_check_relocs): Likewise.
977 (elfNN_ia64_install_value): Likewise.
978 (elfNN_ia64_relocate_section): Likewise.
979
980 2001-07-11 Jakub Jelinek <jakub@redhat.com>
981
982 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
983 R_SPARC_UA64.
984 (elf32_sparc_check_relocs): Likewise.
985 Only create .rela section for alloced sections in shared libraries.
986 (elf32_sparc_relocate_section): Likewise.
987 Remove redundant check.
988 Optimize unaligned reloc usage.
989 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
990 check.
991
992 2001-07-11 H.J. Lu <hjl@gnu.org>
993
994 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
995 ALLOC|LOAD flags as the source section for debugging sections
996 when creating the reloc section.
997
998 2001-07-05 Jim Wilson <wilson@redhat.com>
999
1000 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
1001 the section of the bigger symbol.
1002
1003 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
1004
1005 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
1006
1007 * peicode.h (coff_swap_scnhdr_in): For sections containing
1008 uninitialised data, only set their size to s_paddr if this does
1009 not reset their size to zero. MS's latest compilers will set
1010 s_paddr to zero.
1011
1012 2001-07-04 H.J. Lu <hjl@gnu.org>
1013
1014 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1015 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1016 bfd_mach_mips5000.
1017
1018 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
1019
1020 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1021
1022 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1023 sections being discarded.
1024
1025 2001-06-30 Alan Modra <amodra@bigpond.net.au>
1026
1027 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1028 instead of _bfd_elfcore_section_from_phdr.
1029 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1030 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1031 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1032 (elfcore_grok_prstatus): Likewise.
1033 (elfcore_grok_lwpstatus): Likewise.
1034 (bfd_get_elf_phdr_upper_bound): Likewise.
1035 (elfcore_make_note_pseudosection): Formatting.
1036 (_bfd_elfcore_strndup): Formatting.
1037 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1038 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1039
1040 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
1041
1042 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1043 and _bfd_elfcore_strndup.
1044 (struct elf_backend_data): Add elf_backend_grok_prstatus
1045 and elf_backend_grok_psinfo.
1046 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1047 (elfcore_grok_prstatus): Use it.
1048 (elfcore_make_note_pseudosection): Likewise.
1049 (elfcore_strndup): Rename to...
1050 (_bfd_elfcore_strndup): Here, and make global.
1051 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1052 (elfcore_grok_note): Call elf_backend_grok_prstatus
1053 and elf_backend_grok_psinfo if available.
1054 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1055 (_bfd_elf32_mips_grok_psinfo): New function.
1056 (elf_backend_grok_prstatus): Define.
1057 (elf_backend_grok_psinfo): Define.
1058 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1059 (elf_backend_grok_psinfo): Likewise.
1060 (elfNN_bed): Include elf_backend_grok_prstatus and
1061 elf_backend_grok_psinfo.
1062
1063 2001-06-29 H.J. Lu <hjl@gnu.org>
1064
1065 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
1066 hplink->sgot is NULL before filling GOT. Check if hplink->splt
1067 is NULL before filling PLT.
1068
1069 2001-06-29 Alan Modra <amodra@bigpond.net.au>
1070
1071 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1072
1073 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1074
1075 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
1076 here..
1077 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
1078 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1079 after gc has run.
1080
1081 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
1082 (IS_ABSOLUTE_RELOC): Define.
1083 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
1084 (hppa_link_hash_newfunc): Always init it.
1085 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
1086 create COPY relocs only when the reloc is in a read-only section.
1087 Instead, allocate space for a dynamic reloc to reference the
1088 library symbol directly. Keep track of space we allocate using
1089 relocs_entries.
1090 (hppa_discard_copies): Delete, and move code to..
1091 (allocate_plt_and_got): ..here. Rename to
1092 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1093 relocs for non-shared link.
1094 (elf32_hppa_size_dynamic_sections): Update calls to above.
1095 (elf32_hppa_relocate_section): Write out the dynamic relocs used
1096 in lieu of COPY relocs.
1097
1098 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
1099 here..
1100 (elf_i386_adjust_dynamic_symbol): ..nor here..
1101 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1102 after gc has run.
1103 (elf_i386_size_dynamic_sections): Fix a comment.
1104 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1105 involved in writing reloc out.
1106
1107 2001-06-25 Alan Modra <amodra@bigpond.net.au>
1108
1109 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
1110 Ensure syms are dynamic if we might be emitting a reloc.
1111 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
1112 for undefweak or undefined syms..
1113 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
1114
1115 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
1116 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
1117 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
1118 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
1119
1120 2001-06-24 H.J. Lu <hjl@gnu.org>
1121
1122 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
1123 strncasecmp/strcasecmp instead of strncmp/strcmp.
1124
1125 2001-06-23 H.J. Lu <hjl@gnu.org>
1126
1127 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
1128 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
1129 in the regular object file and treat the weak definition as
1130 the normal one.
1131
1132 2001-06-23 Alan Modra <amodra@bigpond.net.au>
1133
1134 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
1135 unresolved_reloc test to exclude cases where we use "relocation"
1136 before setting it to point into the .got. Reinstate fudge for
1137 unresolved relocs in debugging sections.
1138
1139 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
1140 complicated tests for unresolvable relocs with a simple direct
1141 scheme using "unresolved_reloc" var.
1142
1143 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
1144 elf_i386_dyn_relocs. Update comment.
1145 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
1146 dyn_relocs.
1147 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
1148 others to aborts.
1149 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
1150 abort.
1151 (elf_i386_size_dynamic_sections): Likewise.
1152 (elf_i386_finish_dynamic_symbol): Likewise.
1153 (elf_i386_finish_dynamic_sections): Likewise.
1154 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
1155 handling code.
1156
1157 Avoid creating COPY relocs if possible.
1158 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
1159 which .got created. Mark symbols used by R_386_32 and R_386_PC32
1160 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
1161 reloc is in a read-only section. Instead, allocate space for a
1162 dynamic reloc to reference the library symbol directly. Keep
1163 track of space we allocate using pcrel_relocs_copied.
1164 (discard_copies): Delete, and move code to ..
1165 (allocate_plt_and_got): ..here. Rename to
1166 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1167 relocs for non-shared link.
1168 (elf_i386_size_dynamic_sections): Update calls to above functions.
1169 (elf_i386_relocate_section): Write out the dynamic relocs. Add
1170 more ugly logic to avoid "unresolvable relocation" error. Use
1171 htab shortcut in place of elf_hash_table macro.
1172 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
1173 not always be created now.
1174
1175 2001-06-20 Bo Thorsen <bo@suse.co.uk>
1176
1177 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
1178 shared libraries.
1179
1180 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1181
1182 * configure.host (mips64-*-linux): Reformat.
1183
1184 2001-06-21 Alan Modra <amodra@bigpond.net.au>
1185
1186 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
1187 allocate local .got space. Use shortcuts from hash table for .got
1188 and .plt rather than comparing section names.
1189 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
1190 adjusting index into local_got_refcounts to document what we are
1191 really doing.
1192 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
1193 Tidy .got and .plt error checking.
1194
1195 2001-06-20 Catherine Moore <clm@redhat.com>
1196
1197 * elf-bfd.h (struct elf_backend_data):
1198 elf_backend_emit_relocs: New field: Function for emitting
1199 relocs.
1200 elf_backend_count_relocs: New field: Function for determining
1201 the number of relocs to be emitted.
1202 * elfxx-target.h: Provide default (NULL) values for
1203 elf_backend_emit_relocs and elf_backend_count_relocs.
1204 * elflink.h (elf_link_size_reloc_section): Make the hash table
1205 big enough to hold the relocs counted by either reloc_count or
1206 o->reloc_count.
1207 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
1208 should be emitted, either because of a command line option
1209 stored in the info structure or because the target provides a
1210 special reloc emitting function.
1211 If the target provides a reloc counting function use it,
1212 unless performing a relocatable link or emitting all relocs.
1213 Also set the SEC_RELOC flag on any output section which will
1214 contain relocs.
1215 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
1216 should be emitted, either because of a command line option
1217 stored in the info structure or because the target provides a
1218 special reloc emitting function.
1219 If the target provides a reloc emitting function, use it,
1220 unless performing a relocatable link or emitting all relocs.
1221
1222 2001-06-20 H.J. Lu <hjl@gnu.org>
1223
1224 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
1225 allocate local .got space.
1226
1227 2001-06-19 Andreas Jaeger <aj@suse.de>
1228
1229 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
1230 dynamic symbols.
1231
1232 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1233
1234 * elflink.h (struct elf_assign_sym_version_info): Remove member
1235 export_dynamic. All users changed to use info member.
1236 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
1237 export_dynamic, instead use member in parameter info.
1238 * bfd-in.h (bfd_elf32_size_dynamic_sections,
1239 bfd_elf64_size_dynamic_sections): Update prototype.
1240 * bfd-in2.h: Regenerate.
1241
1242 2001-06-18 H.J. Lu <hjl@gnu.org>
1243
1244 * elflink.h (elf_info_failed): Add a new field, verdefs.
1245 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
1246 elf_export_symbol.
1247 (elf_export_symbol): Check eif->verdefs to decide if a symbol
1248 should be exported.
1249
1250 2001-06-17 H.J. Lu <hjl@gnu.org>
1251
1252 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
1253 readonly_reloc, to record if a relocation in the .rel.dyn
1254 section is against a read-only section.
1255 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
1256 field to false.
1257 (_bfd_mips_elf_check_relocs): Record if there is a relocation
1258 in the .rel.dyn section against a read-only section by setting
1259 DF_TEXTREL or readonly_reloc.
1260 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
1261 it is true.
1262 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
1263 there is a relocation in the .rel.dyn section against a
1264 read-only section.
1265 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
1266 DF_TEXTREL is set.
1267
1268 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1269
1270 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
1271 function. Move flagword result into parameter list. Remove
1272 comment about setting bfd_error_handler to intercept failure
1273 results.
1274 * coffgen.c (make_a_section_from_file): Examine result of
1275 calling bfd_coff_styp_to_sec_flags and pass a failure back to
1276 caller.
1277 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
1278 function. Move flagword result into parameter list.
1279 * libcoff.h: Regenerate.
1280 * libecoff.h: Regenerate.
1281
1282 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
1283
1284 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
1285 section is going to follow it.
1286
1287 2001-06-12 Catherine Moore <clm@redhat.com>
1288
1289 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
1290 with the file_align entry from elf_backend_data.
1291 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1292 (elf_gc_record_vtentry): Likewise.
1293
1294 2001-06-10 Alan Modra <amodra@bigpond.net.au>
1295
1296 * elflink.h: Whitespace changes.
1297 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
1298 rather than "unsigned char".
1299 (elf_link_output_relocs): Likewise.
1300 (elf_link_input_bfd): Likewise.
1301 (elf_reloc_link_order): LIkewise.
1302 * elf.c: s/CONST/const/. Whitespace changes.
1303 * elf32-mips.c: Formatting fix.
1304
1305 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
1306 * Makefile.in: Regenerate.
1307 * po/Make-in: Remove trailing tab.
1308
1309 2001-06-09 Philip Blundell <philb@gnu.org>
1310
1311 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
1312 change.
1313 (elf32_arm_plt_entry): Likewise.
1314
1315 2001-06-08 H.J. Lu <hjl@gnu.org>
1316
1317 * elf.c (swap_out_syms): Keep names for global section symbols.
1318
1319 2001-06-07 H.J. Lu <hjl@gnu.org>
1320
1321 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
1322 MIPS-based machines need it.
1323
1324 2001-06-07 H.J. Lu <hjl@gnu.org>
1325
1326 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
1327 for SGI only.
1328
1329 * config.bfd: Remove ecoff from Linux/mips.
1330
1331 2001-06-07 Andreas Jaeger <aj@suse.de>
1332
1333 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
1334 assertion.
1335 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
1336 alignment of 8 for .rela sections; handle further relocations.
1337
1338 2001-06-06 Christian Groessler <cpg@aladdin.de>
1339
1340 * coff-z8k.c: Fix formatting.
1341 Fix howtos: howto->size was always 1.
1342
1343 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1344
1345 * configure.host (mips64*-*-linux*): Define.
1346
1347 2001-06-05 Alan Modra <amodra@bigpond.net.au>
1348
1349 * elf32-i386.c (elf_i386_discard_copies): Rename to
1350 discard_copies, and use elf_link_hash_entry arg rather than
1351 elf_i386_link_hash_entry.
1352 (elf_i386_link_hash_traverse): Delete.
1353 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
1354 Tidy sizing of dynamic sections.
1355 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
1356 possible .plt entries.
1357 (elf_i386_gc_sweep_hook): Likewise.
1358 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
1359 everything with plt.refcount <= 0.
1360
1361 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
1362 .relgot space here.
1363 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
1364 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
1365 .rel.plt here..
1366 (allocate_plt_and_got): ..instead do it all here. New function.
1367 (elf_i386_size_dynamic_sections): Allocate local .got space and
1368 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
1369 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
1370 rather than gc variety).
1371 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1372 (elf_i386_relocate_section): Use it here and correct handling of
1373 R_386_GOT32. Provide section and offset for "unresolvable
1374 relocation" error message.
1375 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
1376
1377 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
1378 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
1379 (elf_i386_link_hash_table_create): Init them.
1380 (create_got_section): New function.
1381 (elf_i386_create_dynamic_sections): New function.
1382 (elf_backend_create_dynamic_sections): Set to above.
1383 (elf_i386_check_relocs): Use shortcuts from hash table rather than
1384 calling bfd_get_section_by_name.
1385 (elf_i386_gc_sweep_hook): Likewise.
1386 (elf_i386_adjust_dynamic_symbol): Likewise.
1387 (elf_i386_size_dynamic_sections): Likewise.
1388 (elf_i386_relocate_section): Likewise.
1389 (elf_i386_finish_dynamic_sections): Likewise.
1390
1391 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
1392
1393 2001-06-02 H.J. Lu <hjl@gnu.org>
1394
1395 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
1396 and ELFOSABI_HPUX.
1397 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
1398
1399 2001-06-02 H.J. Lu <hjl@gnu.org>
1400
1401 * aout-cris.c (MACHTYPE_OK): New. Defined.
1402
1403 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
1404
1405 * section.c (_bfd_strip_section_from_output): Handle NULL
1406 output_section.
1407
1408 2001-06-02 H.J. Lu <hjl@gnu.org>
1409
1410 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
1411 rs6000coff64_vec only if BFD64 is defined.
1412 (powerpc64-*-aix*): Enable only if BFD64 is defined.
1413
1414 2001-06-02 H.J. Lu <hjl@gnu.org>
1415
1416 * coff-ia64.c (ia64coff_object_p): Rewrite with
1417 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
1418
1419 2001-06-01 Andreas Jaeger <aj@suse.de>
1420
1421 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
1422 relocation, small reformatting.
1423
1424 2001-05-29 Andreas Jaeger <aj@suse.de>
1425
1426 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
1427 (elf64_x86_64_relocate_section): Likewise.
1428
1429 2001-05-30 Alan Modra <amodra@one.net.au>
1430
1431 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
1432 millicode. Don't allocate .got and .rela.got space here..
1433 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
1434 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
1435 .rela.plt here..
1436 (hppa_handle_PIC_calls): ..nor here..
1437 (allocate_plt_and_got): ..instead do it all here. New function.
1438 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
1439 call allocate_plt_and_got. No need to zap .got if not dynamic.
1440 (elf32_hppa_final_link): Call regular bfd_final_link instead of
1441 gc_common_final_link.
1442 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1443 (elf32_hppa_relocate_section): Use it here.
1444 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
1445 dynamic_sections_created.
1446 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
1447
1448 2001-05-28 Andreas Jaeger <aj@suse.de>
1449
1450 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
1451 generic version since we want a hashsize of 4.
1452 (elf_backend_size_info): Likewise.
1453
1454 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1455
1456 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
1457 a zeroing loop.
1458 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
1459 (elf_link_input_bfd): Likewise.
1460 (elf_reloc_link_order): Likewise.
1461 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
1462 relocations correctly.
1463
1464 2001-05-28 Nicolas Pitre <nico@cam.org>
1465
1466 * elf32-arm.h: fix PLT generation for big endian ARM
1467
1468 2001-05-28 Alan Modra <amodra@one.net.au>
1469
1470 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
1471 for symbols forced local that need plabels.
1472 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
1473 .plt.rela for local syms if non-shared.
1474 (hppa_build_one_stub): Mask lsb of plt.offset.
1475 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
1476 (clobber_millicode_symbols): Correct comment.
1477 (elf32_hppa_relocate_section): Likewise.
1478 (elf32_hppa_finish_dynamic_symbol): Likewise.
1479
1480 2001-05-28 Jeff Sturm <jsturm@one-point.com>
1481
1482 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
1483 * bfd-in2.h: Regenerate.
1484 * libbfd.h: Regenerate.
1485 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
1486 and BFD_RELOC_SPARC_UA64 mapping
1487 * elf64-sparc.c: Likewise.
1488
1489 2001-05-25 H.J. Lu <hjl@gnu.org>
1490
1491 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
1492 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
1493 (coff-rs6000.lo): Remove the old dependency.
1494 * Makefile.in: Rebuild.
1495
1496 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
1497 coff-rs6000.lo.
1498
1499 2001-05-25 H.J. Lu <hjl@gnu.org>
1500
1501 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
1502 rs6000coff_core_file_matches_executable_p,
1503 rs6000coff_core_file_failing_command and
1504 rs6000coff_core_file_failing_signal only if AIX_CORE is
1505 defined.
1506 (pmac_xcoff_vec): Likewise.
1507 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1508
1509 2001-05-25 Timothy Wall <twall@redhat.com>
1510
1511 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
1512 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
1513
1514 2001-05-25 H.J. Lu <hjl@gnu.org>
1515
1516 * bfd-in2.h: Regenerated.
1517 * libcoff.h: Likewise.
1518
1519 2001-05-25 Alan Modra <amodra@one.net.au>
1520
1521 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
1522 undefined millicode syms in shared libs.
1523 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
1524 (elf32_hppa_check_relocs): Likewise.
1525 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1526 (elf32_hppa_size_dynamic_sections): Likewise.
1527 (elf32_hppa_relocate_section): Likewise.
1528 (elf32_hppa_finish_dynamic_symbol): Likewise.
1529 (elf32_hppa_finish_dynamic_sections): Likewise.
1530
1531 2001-05-24 Tom Rix <trix@redhat.com>
1532
1533 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
1534 xcoff-target.h not used to define rs6000 or ppc bfd.
1535 * Makefile.in same
1536
1537 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
1538 to 64 bit.
1539
1540 * coff-rs6000.c : Many changes for 64 bit support. Move common
1541 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
1542 and pmac_xcoff_vec
1543
1544 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
1545 linker now supported. Explictly define the rs6000coff64_vec.
1546
1547 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
1548 (coff_print_aux) same
1549 (coff_write_object_contents) same
1550 (coff_slurp_line_table) same
1551
1552 * coffgen.c : (coff_fix_symbol_name) formatting
1553 (coff_mangle_symbols) xcoff 64 bit support
1554 (coff_write_symbol) same
1555 (coff_write_alien_symbol) same
1556 (coff_write_native_symbol) same
1557 (coff_write_symbols) same
1558 (coff_get_symbol_info) same
1559 (bfd_coff_get_syment) same
1560 (coff_print_symbol) same
1561
1562 * config.bfd : add powerpc64-*-aix* target
1563
1564 * libcoff-in.h : formatting
1565
1566 * libcoff.h : move xcoff extern declarations to libxcoff.h
1567
1568 * libxcoff.h : New file
1569
1570 * xcofflink.c : Many changes for xcoff64 support. Move common
1571 structures to include/coff/xcoff.h. Move specific structure to
1572 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
1573 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
1574
1575 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
1576 aix4.2+ -binitfini.
1577
1578 (xcoff_build_ldsyms) : handle special __rtinit symbol.
1579
1580 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1581
1582 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1583 s/ENTIRES/ENTRIES/.
1584
1585 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1586
1587 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
1588 * libbfd.h: Regenerate.
1589 * bfd-in2.h: Regenerate.
1590
1591 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
1592 * archures.c (bfd_mach_mips12000): Define.
1593 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
1594 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
1595 support.
1596 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
1597 * bfd-in2.h: Regenerate.
1598 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
1599
1600 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
1601
1602 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
1603 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1604 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1605 that is used by GCC.
1606
1607 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1608
1609 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1610 of entries in a structured section.
1611 * elf.c: Use new macro.
1612 * elf32-i386.c: Use new macro.
1613 * elf32-mips.c: Use new macro.
1614 * elf64-alpha.c: Use new macro.
1615 * elf64-sparc.c: Use new macro.
1616 * elfcode.h: Use new macro.
1617 * elflink.h: Use new macro.
1618
1619 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1620
1621 * bfdint.texi: Replace -oformat with --oformat.
1622
1623 2001-05-21 Andreas Jaeger <aj@suse.de>
1624
1625 * dwarf2.c (decode_line_info): Fix error message.
1626 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1627 adjust error message.
1628
1629 2001-05-18 H.J. Lu <hjl@gnu.org>
1630
1631 * elflink.h (elf_link_add_object_symbols): Revert the last
1632 change.
1633
1634 2001-05-17 Alan Modra <amodra@one.net.au>
1635
1636 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1637 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1638 (hppa_build_one_stub): Add an assert to check plt.offset.
1639
1640 2001-05-17 H.J. Lu <hjl@gnu.org>
1641
1642 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1643 version definition to basename of the output filename.
1644
1645 2001-05-17 H.J. Lu <hjl@gnu.org>
1646
1647 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1648 basename of the bfd filename.
1649
1650 2001-05-16 Alan Modra <amodra@one.net.au>
1651
1652 * section.c (asection): Add linker_has_input field.
1653 (STD_SECTION): Adjust initialization to suit.
1654 * ecoff.c (bfd_debug_section): Likewise.
1655 * bfd-in2.h: Regenerate.
1656
1657 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
1658
1659 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1660 negative 32-bit operands to 16 operands when the operand is
1661 going to be zero-extended by the modified opcode.
1662
1663 2001-05-12 Peter Targett <peter.targett@arccores.com>
1664
1665 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1666 name for 'arc5' core versions.
1667 (bfd_arc_arch): Make bfd_mach_arc_6 default.
1668
1669 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1670 architecture.
1671 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1672
1673 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1674
1675 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1676 sections as well.
1677 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1678 to .gnu.linkonce.t.FOO text section.
1679
1680 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1681
1682 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1683 fields, change sec into secinfo.
1684 (struct sec_merge_info): Add chain, remove last fields.
1685 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1686 (sec_merge_hash_lookup): If lookup could not use a string only
1687 because it has bad alignment, mark the old string for deletion.
1688 (sec_merge_add): Add secinfo argument. Don't compute entry's
1689 position, instead record the section.
1690 (sec_merge_emit): Update for the sec into secinfo change in
1691 struct sec_merge_hash_entry.
1692 (_bfd_merge_section): Only record the section for merging, defer
1693 putting strings into the hash table.
1694 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1695 _bfd_merge_sections): New functions.
1696 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1697 changes.
1698 * libbfd-in.h (_bfd_merge_sections): Add prototype.
1699 (_bfd_nolink_bfd_merge_sections): Define.
1700 * libbfd.h: Likewise.
1701 (bfd_generic_merge_sections): Add prototype.
1702 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1703 (struct bfd_target): Likewise.
1704 * bfd.c (bfd_merge_sections): Define.
1705 * bfd-in2.h: Rebuilt.
1706 * elf.c (_bfd_elf_merge_sections): New function.
1707 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1708 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1709 * reloc.c (bfd_generic_merge_sections): New function.
1710 * vms.c (vms_bfd_merge_sections): New function.
1711 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1712 * aout-target.h (MY_bfd_merge_sections): Define.
1713 * aout-tic30.c (MY_bfd_merge_sections): Define.
1714 * binary.c (binary_bfd_merge_sections): Define.
1715 * bout.c (b_out_bfd_merge_sections): Define.
1716 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1717 * coffcode.c (coff_bfd_merge_sections): Define.
1718 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1719 * i386msdos.c (msdos_bfd_merge_sections): Define.
1720 * i386os9k.c (os9k_bfd_merge_sections): Define.
1721 * ieee.c (ieee_bfd_merge_sections): Define.
1722 * ihex.c (ihex_bfd_merge_sections): Define.
1723 * nlm-target.h (nlm_bfd_merge_sections): Define.
1724 * oasys.c (oasys_bfd_merge_sections): Define.
1725 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1726 * som.c (som_bfd_merge_sections): Define.
1727 * srec.c (srec_bfd_merge_sections): Define.
1728 * tekhex.c (tekhex_bfd_merge_sections): Define.
1729 * versados.c (versados_bfd_merge_sections): Define.
1730 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1731
1732 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1733
1734 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1735 to be unsigned long, in order to match its use.
1736
1737 2001-05-10 H.J. Lu <hjl@gnu.org>
1738
1739 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1740 indirect symbols.
1741
1742 2001-05-09 H.J. Lu <hjl@gnu.org>
1743
1744 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1745 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1746 Remove the unused veriable `dynver'.
1747
1748 2001-05-08 Ian Lance Taylor <ian@zembu.com>
1749
1750 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1751 NULL or is not COFF.
1752 (coff_i386_rtype_to_howto): Don't dump core if output section
1753 owner is not COFF.
1754
1755 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1756
1757 * ecoff.c (bfd_debug_section): Fix initialization.
1758 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1759 is always a positive integer. Cast away sign mismatch.
1760 * elf32-mips.c: Fix misleading comment and typo.
1761 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1762 correct data type.
1763 * elflink.c: Fix typo.
1764 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1765 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1766
1767 2001-05-04 Richard Henderson <rth@redhat.com>
1768
1769 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1770
1771 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
1772
1773 * elf32-arm.h (elf32_arm_final_link_relocate): Set
1774 EF_ARM_HASENTRY if the start address is set.
1775
1776 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1777
1778 * targets.c (_bfd_target_vector_entries): Compute value based on
1779 the size of the _bfd_target_vector and not bfd_target_vector.
1780
1781 2001-05-03 H.J. Lu <hjl@gnu.org>
1782
1783 * elfcode.h: Include "libiberty.h".
1784
1785 * elflink.h (elf_link_add_object_symbols): Set
1786 elf_dt_name (abfd) to basename of the bfd filename.
1787 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1788 of the bfd filename.
1789
1790 2001-05-03 Andreas Jaeger <aj@suse.de>
1791
1792 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1793 (elf_generic_info_to_howto_rel): Likewise.
1794 * coff-alpha.c (reloc_nil): Likewise.
1795 (alpha_ecoff_bad_format_hook): Likewise.
1796 (alpha_adjust_reloc_out): Likewise.
1797 (alpha_bfd_reloc_type_lookup): Likewise.
1798 (alpha_convert_external_reloc): Likewise.
1799 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1800 (elf64_alpha_reloc_bad): Likewise.
1801 (elf64_alpha_reloc_gpdisp): Likewise.
1802 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1803 (elf64_alpha_info_to_howto): Likewise.
1804 (elf64_alpha_add_symbol_hook): Likewise.
1805 (elf64_alpha_create_got_section): Likewise.
1806 (elf64_alpha_is_local_label_name): Likewise.
1807 (elf64_alpha_merge_ind_symbols): Likewise.
1808 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1809 (mips_elf64_get_reloc_upper_bound): Likewise.
1810 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1811 (nlm_alpha_get_public_offset): Likewise.
1812
1813 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1814
1815 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1816 about overflow in R_OPENRISC_LO_16_IN_INSN and
1817 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1818
1819 2001-04-30 H.J. Lu <hjl@gnu.org>
1820
1821 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1822 only for ELF_LINK_FORCED_LOCAL.
1823 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1824 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1825 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1826
1827 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1828 if the symbol has hidden or internal visibility.
1829
1830 2001-04-30 Alan Modra <amodra@one.net.au>
1831
1832 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1833 calls to undefined weak symbols.
1834
1835 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1836
1837 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1838 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1839
1840 2001-04-27 Andreas Jaeger <aj@suse.de>
1841
1842 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1843 out handled entries.
1844 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1845 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1846 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1847 GOT32.
1848
1849 2001-04-27 Sean McNeil <sean@mcneil.com>
1850
1851 * config.bfd: Add arm-vxworks target.
1852 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1853 addend (fro VXworks targets).
1854
1855 2001-04-26 H.J. Lu <hjl@gnu.org>
1856
1857 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1858 valid.
1859
1860 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
1861
1862 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1863 * bfd-in2.h: Regenerated.
1864
1865 2001-04-24 Jakub Jelinek <jakub@redhat.com>
1866
1867 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1868 (struct sec_merge_hash): Remove alignment_power.
1869 (sec_merge_hash_newfunc): Clear alignment.
1870 (sec_merge_hash_lookup): Pass alignment as argument.
1871 Use hashp->root.next, not hashp->next to walk the hash chain.
1872 If a string already in the hashtable does not have required
1873 alignment, create a new hashtable entry.
1874 (sec_merge_init): Remove alignment_power argument.
1875 (sec_merge_add): Add alignment argument.
1876 (sec_merge_emit): Alignment is now a per-entity thing, not per
1877 section.
1878 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1879 for proper alignment.
1880 Pass alignment information to sec_merge_add.
1881
1882 2001-04-24 Christian Groessler <cpg@aladdin.de>
1883
1884 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1885 and R_REL16 reloc types; accept odd values for R_REL16 type
1886
1887 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
1888
1889 * cpu-openrisc.c: New file.
1890 * elf32-openrisc.c: Likewise.
1891
1892 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1893 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1894 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1895 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1896 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1897 * Makefile.in: Regenerated.
1898 * config.bfd: (openrisc-*-elf): New target.
1899 * configure.in (bfd_elf32_openrisc_vec): New vector.
1900 * configure: Regenerated.
1901 * libbfd.h: Regenerated.
1902 * bfd-in2.h: Regenerated.
1903 * reloc.c: Add OpenRISC relocations.
1904 * targets.c (bfd_elf32_openrisc_vec): Declare.
1905 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1906 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1907 (bfd_openrisc_arch): Declare.
1908 (bfd_archures_list): Add bfd_openrisc_arch.
1909 * elf.c (prep_headers): Add bfd_arch_openrisc.
1910
1911 2001-04-23 Bo Thorsen <bo@suse.de>
1912
1913 * elf64-x86-64.c: Add c++ vtable hack.
1914 Small whitespace and comment changes.
1915
1916 2001-04-19 Andreas Jaeger <aj@suse.de>
1917
1918 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1919 (elf64_x86_64_plt_entry): Likewise.
1920 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1921 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1922
1923 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
1924
1925 * elf32-cris.c: Tweak comments related to dynamic linking.
1926 (cris_elf_relocate_section): When not creating shared object, fill
1927 in the .got table for any symbol not in the dynamic symbol table.
1928 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1929 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1930 table.
1931 (cris_elf_check_relocs): Use variable r_type in all places rather
1932 than the original expression. Add default case in switch for
1933 reloc types.
1934 (elf_cris_size_dynamic_sections): Iterate over
1935 elf_cris_discard_excess_program_dynamics when not creating shared
1936 library.
1937 (elf_cris_discard_excess_dso_dynamics): Renamed from
1938 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1939 (elf_cris_discard_excess_program_dynamics): New.
1940
1941 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1942
1943 * coffcode.h (coff_write_object_contents): Use
1944 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1945
1946 2001-04-14 H.J. Lu <hjl@gnu.org>
1947
1948 * bfd-in2.h: Regenerate.
1949
1950 2001-04-14 Jakub Jelinek <jakub@redhat.com>
1951
1952 * section.c (STD_SECTION): Add entsize.
1953
1954 2001-04-13 H.J. Lu <hjl@gnu.org>
1955
1956 * section.c (SEC_MERGE): Define new flag for merging.
1957 (SEC_STRINGS): Likewise.
1958 (entsize): New field.
1959
1960 2001-04-13 Roger Sayle <roger@metaphorics.com>
1961
1962 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1963 flag on pe-i386 targets.
1964
1965 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1966
1967 * libbfd-in.h (_bfd_merge_section): New.
1968 (_bfd_write_merged_section): New.
1969 (_bfd_merged_section_offset): New.
1970 * libbfd.h: Rebuilt.
1971 * linker.c (_bfd_generic_link_output_symbols): Handle
1972 discard_sec_merge.
1973 * aoutx.h (aout_link_write_symbols): Likewise.
1974 * pdp11.c (aout_link_write_symbols): Likewise.
1975 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1976 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1977 sections.
1978 (elf_link_sec_merge_syms): New.
1979 (elf_link_input_bfd): Call _bfd_merged_section_offset
1980 and _bfd_write_merged_section.
1981 Handle discard_sec_merge.
1982 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1983 field.
1984 (struct bfd_elf_section_data): Likewise.
1985 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1986 SEC_STRINGS section flags and entsize from their ELF counterparts.
1987 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1988 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1989 from their BFD counterparts.
1990 * merge.c: New file.
1991 * Makefile.am: Add strtab.lo.
1992 * Makefile.in: Rebuilt.
1993
1994 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
1995
1996 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1997 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1998
1999 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2000
2001 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
2002 endian MIPS ELF target.
2003 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
2004 MIPS ELF target.
2005
2006 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
2007 64bit big endian MIPS ELF target.
2008 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2009 endian MIPS ELF target.
2010 * configure: Regenerated.
2011
2012 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
2013 little endian targets.
2014 (mips_elf_sym_is_global): Handle traditional targets.
2015
2016 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2017 64bit big endian MIPS ELF target.
2018 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2019 endian MIPS ELF target.
2020
2021 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2022 and bfd_elf64_tradlittlemips_vec.
2023
2024 2001-04-05 David Mosberger <davidm@hpl.hp.com>
2025
2026 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2027 ordinary "progbits" section.
2028
2029 2001-04-04 Alan Modra <alan@linuxcare.com.au>
2030
2031 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2032 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2033
2034 2001-04-03 David Mosberger <davidm@hpl.hp.com>
2035
2036 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2037
2038 2001-03-30 H.J. Lu <hjl@gnu.org>
2039
2040 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2041 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2042
2043 2001-03-26 H.J. Lu <hjl@gnu.org>
2044
2045 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2046 if there are any relocations for generic ELF.
2047 (bfd_elf32_bfd_link_add_symbols): Defined to
2048 elf32_generic_link_add_symbols.
2049 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2050 if there are any relocations for generic ELF.
2051 (bfd_elf64_bfd_link_add_symbols): Defined to
2052 elf64_generic_link_add_symbols.
2053
2054 2001-03-23 Nick Clifton <nickc@redhat.com>
2055
2056 * Makefile.am (BUILD_CFILES): New variable: List of C source
2057 files created in build directory.
2058 (BUILD_HFILES): New variable: List of header files created in
2059 build directory.
2060 (POTFILES): Delete.
2061 (po/POTFILES.in): Replace rule with empty entry.
2062 (po/SRC-POTFILES.in): New rule: Create a list of source files
2063 in the source directory.
2064 (po/BLD-POTFILES.in): New rule: Create a list of source files
2065 in the build directory.
2066 (MOSTLYCLEAN): Do not delete source files created in build
2067 directory.
2068 * Makefile.in: Regenerate.
2069 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
2070 into po/Makefile.
2071 * configure: Regenerate.
2072
2073 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
2074 and BLD_POTFILES.
2075 Add .. to the search path when building bfd.pot.
2076 Delete POTFILES when performing distclean.
2077 Add comment describing why distclean is broken in maintainer mode.
2078 * po/POTFILES.in: Delete.
2079 * po/SRC-POTFILES.in: New file.
2080 * po/BLD-POTFILES.in: New file.
2081 * po/bfd.pot: Regenerate.
2082
2083 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
2084
2085 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2086 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
2087 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
2088 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
2089 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
2090 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
2091 functions.
2092 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
2093 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
2094 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
2095 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
2096 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
2097 New HOWTO members for new relocs.
2098 (cris_reloc_map): Map new relocs.
2099 (ELF_DYNAMIC_INTERPRETER): Define.
2100 (PLT_ENTRY_SIZE): Define.
2101 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2102 elf_cris_pic_plt_entry): New, PLT templates.
2103 (struct elf_cris_pcrel_relocs_copied, struct
2104 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2105 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2106 (cris_final_link_relocate): Check that 16-bit GOT relocs have
2107 positive values. Adjust PCREL relocs to be relative to location
2108 after relocation.
2109 (cris_elf_relocate_section): Handle relocations to dynamic
2110 objects. Handle new relocations. Call error handler when seeing
2111 non-PIC relocation for read-only sections while generating shared
2112 object.
2113 (cris_elf_check_relocs): Set reference counts for GOT and PLT
2114 entries.
2115 (bfd_elf32_bfd_link_hash_table_create,
2116 elf_backend_adjust_dynamic_symbol,
2117 elf_backend_size_dynamic_sections,
2118 elf_backend_finish_dynamic_symbol,
2119 elf_backend_finish_dynamic_sections,
2120 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
2121 elf_backend_hide_symbol, elf_backend_want_got_plt,
2122 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2123 elf_backend_got_header_size, elf_backend_plt_header_size):
2124 Define.
2125
2126 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
2127 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
2128 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
2129 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
2130 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
2131 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
2132 * bfd-in2.h, libbfd.h: Regenerate.
2133
2134 2001-03-21 Diego Novillo <dnovillo@redhat.com>
2135
2136 (_bfd_mips_elf_relocate_section): Give a better error message when
2137 a relocation is not recognized.
2138
2139 2001-03-21 Alan Modra <alan@linuxcare.com.au>
2140
2141 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
2142 non-NULL before attempting to dereference.
2143
2144 2001-03-20 H.J. Lu <hjl@gnu.org>
2145
2146 * configure.in: Remove the redundent AC_ARG_PROGRAM.
2147 * configure: Rebuild.
2148
2149 2001-03-20 Andreas Schwab <schwab@suse.de>
2150
2151 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
2152 relocation value when resolving a reference from a debugging
2153 section.
2154
2155 2001-03-16 Scott Thomason <SThomaso@hii.com>
2156
2157 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
2158 (xcoff64_swap_sym_out): Fix syntax errors.
2159
2160 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
2161
2162 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
2163
2164 2001-03-15 Alan Modra <alan@linuxcare.com.au>
2165
2166 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
2167 (hppa_link_hash_newfunc): Init it.
2168 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
2169 section appears to be non-PIC.
2170 (final_link_relocate): Likewise.
2171 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
2172 possible candidate function, and set pic_call for those that will
2173 only have a .plt entry for the PIC call stub.
2174 (hppa_handle_PIC_calls): Set maybe_pic_call.
2175
2176 2001-03-12 DJ Delorie <dj@redhat.com>
2177
2178 * elf32-sh.c (sh_elf_relocate_section): Only relocation
2179 R_SH_DIR8WP* relocs if they're against external symbols, else
2180 they're just for relaxing. Validate the reloc values.
2181
2182 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
2183
2184 * binary.c (bfd_external_binary_architecture): Declare.
2185 (binary_object_p): If bfd_external_binary_architecture is defined,
2186 set the architecture to this string.
2187
2188 2001-03-11 Philip Blundell <philb@gnu.org>
2189
2190 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
2191 entries that could serve as a definition for a weak symbol.
2192
2193 2001-03-08 Nick Clifton <nickc@redhat.com>
2194
2195 * Most files: Update copyright notices using Perl script created
2196 by Kevin Buettner <kevinb@redhat.com>.
2197
2198 2001-03-07 Nick Clifton <nickc@redhat.com>
2199
2200 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
2201 prior patch on ! defined OLD_ARM_ABI.
2202
2203 2001-03-07 Andreas Jaeger <aj@suse.de>
2204
2205 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
2206 some relocation values.
2207
2208 2001-03-06 Nick Clifton <nickc@redhat.com>
2209
2210 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
2211 of offset in BLX(1) instruction.
2212 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
2213 offset in BLX(1) instruction.
2214 Fix formatting.
2215
2216 2001-03-06 Nick Clifton <nickc@redhat.com>
2217
2218 * coff-arm.c (coff_arm_reloc_type_lookup): Add
2219 BFD_RELOC_THUMB_PCREL_BLX.
2220
2221 2001-03-06 Igor Shevlyakov <igor@windriver.com>
2222
2223 * archures.c (bfd_default_scan): Add Coldfire CPUs.
2224 * bfd-in2.h: Regenerate.
2225 * cpu-m68k.c: Add Coldfire CPUs for arch table.
2226 * ieee.c (ieee_write_processor): Set proper id for
2227 Coldfire CPUs.
2228
2229 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
2230
2231 * configure.in: Add s390 target.
2232 * configure: Regenerate.
2233
2234 2001-02-28 Andreas Jaeger <aj@suse.de>
2235
2236 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
2237 to addend.
2238
2239 2001-02-28 Philip Blundell <pb@futuretv.com>
2240
2241 * elf32-arm.h: Update mentions of renamed EF_xx constants.
2242 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
2243
2244 2001-02-27 H.J. Lu <hjl@gnu.org>
2245
2246 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
2247 abfd->tdata.aout_data == NULL.
2248
2249 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2250
2251 * elf32-hppa.c: Correct field selector in stub comments.
2252 (clobber_millicode_symbols): Formatting fix.
2253
2254 * configure.in: Bump version to 2.11.90.
2255 * configure: Regenerate.
2256 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
2257 (CFILES): $SOURCE_CFILES + generated C files.
2258 (POTFILES): Include $HFILES not $SOURCE_HFILES.
2259 Run "make dep-am"
2260 * Makefile.in: Regenerate.
2261 * doc/Makefile.in: This too.
2262
2263 2001-02-26 Timothy Wall <twall@cygnus.com>
2264
2265 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
2266 comments.
2267
2268 2001-02-26 Nick Clifton <nickc@redhat.com>
2269
2270 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
2271 up, replacing multiple if statements with a switch.
2272 (handle_COMDAT): New function.
2273
2274 2001-02-26 H.J. Lu <hjl@gnu.org>
2275
2276 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
2277 a warning for section flags we do not handle instead of
2278 aborting.
2279
2280 2001-02-26 Andreas Jaeger <aj@suse.de>
2281
2282 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
2283
2284 2001-02-22 Timothy Wall <twall@cygnus.com>
2285
2286 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
2287 * configure.in: Add objects for elf64_ia64_aix vectors.
2288 * configure: Regenerated.
2289 * configure.host: Recognize ia64-*-aix*.
2290 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
2291 for AIX. AIX5 requires most relocations to be dynamic (*all*
2292 binaries are somewhat similar to shared libraries).
2293 * targets.c: Add elf64_ia64_aix vectors.
2294
2295 2001-02-21 David Mosberger <davidm@hpl.hp.com>
2296
2297 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
2298 C8 said "1" instead of "8". Clarify error string for IMM22:
2299 "signed integer" instead of just "integer".
2300
2301 2001-02-20 Andreas Jaeger <aj@suse.de>
2302
2303 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
2304 PLT entries that could serve as a definition for a weak symbol.
2305
2306 2001-02-19 Jakub Jelinek <jakub@redhat.com>
2307
2308 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
2309 entries that could serve as a definition for a weak symbol.
2310 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
2311
2312 2001-02-18 David O'Brien <obrien@FreeBSD>
2313
2314 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
2315 FreeBSD/i386-CURRENT differently until I can figure out the needed
2316 corefile changes.
2317 * configure: Regenerate.
2318 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
2319 FreeBSD/PowerPC, and FreeBSD/sparc64.
2320
2321 2001-02-18 lars brinkhoff <lars@nocrew.org>
2322
2323 * Makefile.am: Add PDP-11 a.out target.
2324 * config.bfd: Likewise.
2325 * configure.in: Likewise.
2326 * targets.c: Likewise.
2327 * archures.c: Likewise.
2328 * bfd-in2.h: Likewise. Add PDP-11 relocations.
2329 * libbfd.h: Add PDP-11 relocations.
2330 * reloc.c: Likewise.
2331 * cpu-pdp11.c: New file.
2332 * pdp11.c: New file.
2333
2334 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
2335 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2336 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2337 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
2338 (GET_MAGIC): New macro.
2339 (PUT_MAGIC): Likewise.
2340 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
2341
2342 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
2343
2344 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
2345 multiarch needs it).
2346
2347 2001-02-18 H.J. Lu <hjl@gnu.org>
2348
2349 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
2350 index.
2351
2352 2001-02-18 Kazu Hirata <kazu@hxi.com>
2353
2354 * vms-misc.c: Fix formatting.
2355
2356 2001-02-16 Kazu Hirata <kazu@hxi.com>
2357
2358 * vms.c: Fix formatting.
2359
2360 2001-02-14 H.J. Lu <hjl@gnu.org>
2361
2362 * elf.c (elf_find_function): New function.
2363 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
2364 the file name and function name.
2365
2366 2001-02-14 Nick Clifton <nickc@redhat.com>
2367
2368 * ecoff.c (bfd_debug_section): Update to initialise new fields in
2369 asection structure.
2370
2371 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
2372 (BFD64_BACKENDS): Add pepigen.c
2373 Add rules to create peigen.c and pepigen.c from peXXigen.c.
2374
2375 * Makefile.in: Regenerate.
2376 * configure: Regenerate.
2377 * po/POTFILES.in: Regenerate.
2378 * po/bfd.pot: Regenerate.
2379
2380 2001-02-14 H.J. Lu <hjl@gnu.org>
2381
2382 * libcoff-in.h (pe_tdata): Add members target_subsystem and
2383 force_minimum_alignment.
2384
2385 2001-02-14 Bo Thorsen <bo@suse.de>
2386
2387 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
2388 (elf64_86_64_size_info): Struct added to fix a problem
2389 with the hashtable string entries.
2390 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
2391 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
2392 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
2393 remove the FIXME for this.
2394 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
2395 section. Also removed the FIXME for it.
2396 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
2397 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
2398 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
2399
2400 2001-02-13 Richard Henderson <rth@redhat.com>
2401
2402 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
2403 and not user provided.
2404
2405 2001-02-13 Kazu Hirata <kazu@hxi.com>
2406
2407 * vms.c (vms_print_symbol): Remove unreachable code.
2408
2409 * rs6000-core.c: Fix formatting.
2410
2411 2001-02-13 David Mosberger <davidm@hpl.hp.com>
2412
2413 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
2414 as _bfd_XXi_only_swap_filehdr_out.
2415 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
2416 pe->force_minimum_alignment to TRUE.
2417 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
2418 PEI_TARGET_SUBSYSTEM.
2419 (pe_print_private_bfd_data): Call
2420 _bfd_XX_print_private_bfd_data_common() instead of
2421 _bfd_pe_print_private_bfd_data_common().
2422 (pe_bfd_copy_private_bfd_data): Call
2423 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
2424 _bfd_pe_bfd_copy_private_bfd_data_common().
2425 (coff_bfd_copy_private_section_data): Define as
2426 _bfd_XX_bfd_copy_private_section_data instead of
2427 _bfd_pe_bfd_copy_private_section_data.
2428 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
2429 of a _bfd_pe_get_symbol_info.
2430
2431 * peigen.c: Delete.
2432
2433 * peXXigen.c: Renamed from peigen.c.
2434 (COFF_WITH_XX): Define this macro (will get expanded into
2435 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
2436 compiled as peigen.c or pepigen.c.
2437 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
2438 define the canonical PEP structures and definitions.
2439 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
2440 effect, enforce minimum file and section alignments. If
2441 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
2442 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
2443 so, by default, this is a no-op).
2444
2445 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
2446 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
2447 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
2448 _bfd_pefoo if it's not defined. Use these macros to define
2449 coff swap macros.
2450
2451 * libcoff.h (pe_tdata): Add members target_subsystem and
2452 force_minimum_alignment.
2453
2454 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
2455 COFF_WITH_pep.
2456 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
2457
2458 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
2459 peigen.lo.
2460
2461 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
2462 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
2463 PEPAOUTHDR.
2464
2465 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
2466 (BFD64_BACKENDS_CFILES): Mention pepigen.c
2467 (peigen.c): Add rule to generate from peXXigen.c.
2468 (pepigen.c): Ditto.
2469 (pepigen.lo): List dependencies for pepigen.lo.
2470
2471 2001-02-13 Alan Modra <alan@linuxcare.com.au>
2472
2473 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
2474 $global$ referenced but not defined, set its value here.
2475
2476 2001-02-09 Bo Thorsen <bo@suse.de>
2477
2478 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
2479 alignment to 3.
2480 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
2481 and relocation.
2482 (elf64_x86_64_relocate_section): Fix formatting.
2483 (elf64_x86_64_relocate_section): Fix addend for relocation of
2484 R_X86_64_(8|16|32|PC8|PC16|PC32).
2485
2486 2001-02-12 Jan Hubicka <jh@suse.cz>
2487
2488 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
2489
2490 2001-02-11 H.J. Lu <hjl@gnu.org>
2491
2492 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
2493 alignment.
2494
2495 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2496
2497 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
2498 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
2499 relocations against dynsym symbols.
2500
2501 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
2502 the R_MIPS_26 relocation.
2503 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
2504 the R_MIPS_26 relocation.
2505 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
2506 relocation.
2507 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
2508 the R_MIPS_26 relocation.
2509 (mips_elf64_howto_table_rela): Likewise.
2510
2511 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
2512 member to mark symbols that have non-CALL relocations against
2513 them.
2514 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
2515 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
2516 R_MIPS_GOT16.
2517 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
2518 non-CALL relocation against it is encountered.
2519 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
2520 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
2521 no_fn_stub is not set.
2522
2523 * elf32-mips.c (mips_elf_output_extsym): Get the output section
2524 information from the real symbol for indirect ones.
2525 Check no_fn_stub to find out if a symbol has a function stub
2526 indeed.
2527
2528 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2529
2530 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
2531 * Makefile.in: Regenerate.
2532
2533 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2534
2535 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
2536 true if section name is an unwind table section name.
2537 (elfNN_ia64_additional_program_headers): Count each unwind section
2538 separately.
2539 (elfNN_ia64_modify_segment_map): Install one unwind program header
2540 for each unwind separate section. Note: normally the linker
2541 script merges the unwind sections that go into a single segment,
2542 so this still generates at most one unwind program header per
2543 segment.
2544
2545 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
2546 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
2547 (elfNN_ia64_fake_sections): Mark sections with names that start
2548 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
2549 unwind section.
2550
2551 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
2552 Use it to make sh_info in unwind section point to the text section
2553 it applies to.
2554
2555 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2556
2557 * Makefile.am: Add linux target for S/390.
2558 * archures.c: Likewise.
2559 * bfd-in2.h: Likewise.
2560 * config.bfd: Likewise.
2561 * configure.in: Likewise.
2562 * elf.c: Likewise.
2563 * libbfd.h: Likewise.
2564 * targets.c: Likewise.
2565 * cpu-s390.c: New file.
2566 * elf32-s390.c: New file.
2567 * elf64-s390.c: New file.
2568
2569 2001-02-09 Nick Clifton <nickc@redhat.com>
2570
2571 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
2572 ImageBase. This has already been done by coff_swap_hdr_in.
2573
2574 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2575
2576 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2577
2578 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2579
2580 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
2581 (sparc64_elf_relocate_section): Likewise.
2582
2583 2001-02-09 Mark Kettenis <kettenis@gnu.org>
2584
2585 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
2586 similar to R_SPARC_32.
2587 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2588
2589 2001-02-08 H.J. Lu <hjl@gnu.org>
2590
2591 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
2592 relocation entries for weak definitions when building DSO with
2593 -Bsymbolic.
2594
2595 2001-02-08 Richard Henderson <rth@redhat.com>
2596
2597 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
2598 before visibility. Locally defined protected symbols are not
2599 dynamic.
2600
2601 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2602
2603 * config.bfd: Enable coff64 for rs6000-*. Patch from
2604 <hzoli@austin.ibm.com>.
2605
2606 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
2607
2608 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2609 found, do not attempt to find dwarf2 info before returning.
2610
2611 2001-02-07 Jakub Jelinek <jakub@redhat.com>
2612
2613 * elflink.h (is_global_symbol_definition): Rename to
2614 is_global_data_symbol_definition and have it reject function
2615 symbols.
2616 (elf_link_is_defined_archive_symbol): Use renamed function.
2617
2618 2001-02-07 Todd Vierling <tv@wasabisystems.com>
2619
2620 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2621 * libbfd.h (bfd_target_vector): Likewise.
2622 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
2623 make static; create pointer reference named bfd_target_vector.
2624 (_bfd_target_vector_entries): Calculate this based on the array
2625 typed _bfd_target_vector.
2626
2627 2001-02-06 H.J. Lu <hjl@gnu.org>
2628
2629 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2630 internal symbols are not dynamic.
2631 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2632
2633 2001-02-06 Nick Clifton <nickc@redhat.com>
2634
2635 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2636 that it will not be pulled into the list of files that make up
2637 po/POTFILES.in.
2638 * Makefile.in: Regenerate.
2639 * po/bfd.pot: Regenerate.
2640
2641 2001-02-06 H.J. Lu <hjl@gnu.org>
2642
2643 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
2644 checking.
2645 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2646 external_PEI_IMAGE_hdr.
2647
2648 2001-02-06 Kazu Hirata <kazu@hxi.com>
2649
2650 * elf-m10200.c: Fix formatting.
2651
2652 2001-02-04 Nick Clifton <nickc@redhat.com>
2653
2654 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2655 rel, it will be handled later on.
2656
2657 2001-02-02 Fred Fish <fnf@ninemoons.com>
2658
2659 * Makefile.in: Fix typo.
2660
2661 2001-02-01 Kazu Hirata <kazu@hxi.com>
2662
2663 * elf-m10300.c: Fix formatting.
2664
2665 2001-01-30 Alan Modra <alan@linuxcare.com.au>
2666
2667 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2668 (elf_backend_get_symbol_type): Define.
2669 (elf64_hppa_object_p): Set architecture and machine from elf
2670 header flags.
2671
2672 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
2673
2674 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2675 before mdebug.
2676
2677 2001-01-26 Richard Henderson <rth@redhat.com>
2678
2679 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2680 for non-default visibility.
2681 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2682 delete ugly macro and replace with pretty function.
2683
2684 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
2685
2686 * coff-go32.c: Update copyright.
2687 * coff-stgo32.c: Likewise.
2688 * coff-go32.c (COFF_LONG_FILENAMES): Define.
2689 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2690 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2691 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2692
2693 2001-01-25 Kazu Hirata <kazu@hxi.com>
2694
2695 * bfd-in2.h: Rebuild.
2696 * libbfd.h: Likewise.
2697
2698 2001-01-23 H.J. Lu <hjl@gnu.org>
2699
2700 * bfd-in2.h: Rebuild.
2701
2702 2001-01-23 H.J. Lu <hjl@gnu.org>
2703
2704 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2705 is NULL or PRIV(vms_rec) is outside of the buffer.
2706
2707 2001-01-23 Kazu Hirata <kazu@hxi.com>
2708
2709 * coff64-rs6000.c: Fix formatting.
2710 * coff-arm.c: Likewise.
2711 * coffgen.c: Likewise.
2712 * cofflink.c: Likewise.
2713 * coff-mcore.c: Likewise.
2714 * coff-mips.c: Likewise.
2715 * coff-pmac.c: Likewise.
2716 * coff-ppc.c: Likewise.
2717 * coff-rs6000.c: Likewise.
2718 * elf32.c: Likewise.
2719 * elf32-fr30.c: Likewise.
2720 * elf32-i370.c: Likewise.
2721 * elf32-i860.c: Likewise.
2722 * elf32-m32r.c: Likewise.
2723 * elf32-m68k.c: Likewise.
2724 * elf32-mcore.c: Likewise.
2725 * elf32-ppc.c: Likewise.
2726 * elf32-sh.c: Likewise.
2727 * elf32-v850.c: Likewise.
2728 * elf64-alpha.c: Likewise.
2729 * elf64-sparc.c: Likewise.
2730 * elflink.c: Likewise.
2731 * elflink.h: Likewise.
2732 * elf-m10200.c: Likewise.
2733 * elf-m10300.c: Likewise.
2734 * elfxx-ia64.c: Likewise.
2735
2736 * aoutx.h: Fix formatting.
2737 * bfd.c: Likewise.
2738 * bfd-in2.h: Likewise.
2739 * bfd-in.h: Likewise.
2740 * cpu-i386.c: Likewise.
2741 * cpu-m68hc11.c: Likewise.
2742 * dwarf2.c: Likewise.
2743 * elf64-x86-64.c: Likewise.
2744 * format.c: Likewise.
2745 * freebsd.h: Likewise.
2746 * hash.c: Likewise.
2747 * hp300hpux.c: Likewise.
2748 * hppabsd-core.c: Likewise.
2749 * hpux-core.c: Likewise.
2750
2751 2001-01-22 Bo Thorsen <bo@suse.de>
2752
2753 * elf64-x86-64.c: Added PIC support for X86-64.
2754 (elf64_x86_64_link_hash_newfunc): Function added.
2755 (elf64_x86_64_link_hash_table_create): Likewise.
2756 (elf64_x86_64_check_relocs): Likewise.
2757 (elf64_x86_64_gc_mark_hook): Likewise.
2758 (elf64_x86_64_gc_sweep_hook): Likewise.
2759 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2760 (elf64_x86_64_size_dynamic_sections): Likewise.
2761 (elf64_x86_64_discard_copies): Likewise.
2762 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2763 (elf64_x86_64_finish_dynamic_sections): Likewise.
2764 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2765
2766 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2767
2768 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2769 * Makefile.in: Regenerate.
2770
2771 2001-01-21 Kazu Hirata <kazu@hxi.com>
2772
2773 * coff-a29k.c: Fix formatting.
2774
2775 2001-01-19 H.J. Lu <hjl@gnu.org>
2776
2777 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2778 relocation section names.
2779 (elf_i386_relocate_section): Report files with bad relocation
2780 section names and return false.
2781
2782 2001-01-17 Bo Thorsen <bo@suse.de>
2783
2784 * targets.c: Alphabetize list of xvecs.
2785
2786 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2787
2788 * config.bfd: Add linux target variant for elfxx-hppa.
2789 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2790 bfd_elf64_hppa_linux_vec.
2791 * configure: Regenerate.
2792 * elf64-hppa.c: Include elf64-target.h again to support linux
2793 target variant.
2794 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2795 * elf32-hppa.c: Include elf32-target.h again to support linux
2796 target variant.
2797 (elf32_hppa_post_process_headers): New function.
2798 (elf_backend_post_process_headers): Define.
2799 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2800 bfd_elf32_hppa_linux_vec.
2801
2802 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2803 and data_segment_base fields.
2804 (elf32_hppa_link_hash_table_create ): Init them.
2805 (elf32_hppa_check_relocs): Update comments.
2806 (hppa_record_segment_addr): New function.
2807 (elf32_hppa_relocate_section): Call it.
2808 (final_link_relocate): Handle R_PARISC_SEGREL32.
2809 (elf32_hppa_final_link): New function.
2810 (bfd_elf32_bfd_final_link): Define to call it.
2811 (hppa_unwind_entry_compare): New function.
2812 * cache.c (bfd_open_file): Create files in write+read mode.
2813
2814 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2815 SEGREL32 and numerous other relocs. Change duplicate
2816 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2817
2818 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2819 O_ACCMODE.
2820
2821 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2822 .plt entries for DT_INIT and DT_FINI.
2823 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2824 DT_INIT and DT_FINI.
2825
2826 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2827 offsets for stub .plt access if wide mode. Check offset in range.
2828
2829 2001-01-13 Nick Clifton <nickc@redhat.com>
2830
2831 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2832 line.
2833
2834 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2835 line.
2836
2837 2001-01-12 Alan Modra <alan@linuxcare.com.au>
2838
2839 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2840 * configure: Regenerate.
2841
2842 2001-01-11 Peter Targett <peter.targett@arccores.com>
2843
2844 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2845 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2846 * cpu-arc.c (arch_info_struct): Add entries for variants.
2847 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2848 (arc_get_mach) Don't assume machine names prefixed arc- before
2849 testing.
2850 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2851 selections.
2852 (arc_elf_final_write_processing) Likewise.
2853 (ELF_MACHINE_CODE) Use EM_ARC.
2854
2855 2001-01-10 Nick Clifton <nickc@redhat.com>
2856
2857 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2858
2859 2001-01-07 Philip Blundell <philb@gnu.org>
2860
2861 * README: Replace `bug-gnu-utils@gnu.org' with
2862 `bug-binutils@gnu.org'.
2863
2864 2001-01-04 Kazu Hirata <kazu@hxi.com>
2865
2866 * som.c: Fix formatting.
2867
2868 2001-01-03 Kazu Hirata <kazu@hxi.com>
2869
2870 * ecoffswap.h: Fix formatting.
2871 * elf-bfd.h: Likewise.
2872 * elfarm-nabi.c: Likewise.
2873 * elfarm-oabi.c: Likewise.
2874 * elfcode.h: Likewise.
2875 * elfcore.h: Likewise.
2876 * elflink.c: Likewise.
2877 * elflink.h: Likewise.
2878 * elfxx-ia64.c: Likewise.
2879 * elfxx-target.h: Likewise.
2880 * libbfd.c: Likewise
2881 * linker.c: Likewise.
2882 * lynx-core.c: Likewise.
2883
2884 2001-01-02 Kazu Hirata <kazu@hxi.com>
2885
2886 * pc532-mach.c: Fix formatting.
2887 * pe-arm.c: Likewise.
2888 * pe-i386.c: Likewise.
2889 * pe-mips.c: Likewise.
2890 * pe-ppc.c: Likewise.
2891 * pe-sh.c: Likewise.
2892 * pei-mips.c: Likewise.
2893 * pei-sh.c: Likewise.
2894 * peicode.h: Likewise.
2895 * ppcboot.c: Likewise.
2896 * ptrace-core.c: Likewise.
2897
2898 2001-01-01 Kazu Hirata <kazu@hxi.com>
2899
2900 * reloc.c: Fix formatting.
2901 * riscix.c: Likewise.
2902 * rs6000-core.c: Likewise.
2903 * xcoff-target.h: Likewise.
2904
2905 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2906
2907 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2908 error, by calling bfd_default_set_arch_mach with incoming
2909 values.
2910
2911 2000-12-26 Kazu Hirata <kazu@hxi.com>
2912
2913 * vaxnetbsd.c: Fix formatting.
2914 * versados.c: Likewise.
2915 * vms-gsd.c: Likewise.
2916 * vms-hdr.c: Likewise.
2917 * vms-misc.c: Likewise.
2918
2919 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
2920
2921 * archive.c (coff_write_armap): Don't write more than symbol_count
2922 `archive_member_file_ptr's.
2923
2924 2000-12-25 Kazu Hirata <kazu@hxi.com>
2925
2926 * vms-tir.c: Fix formatting.
2927
2928 2000-12-23 Kazu Hirata <kazu@hxi.com>
2929
2930 * vms.c: Fix formatting.
2931 * vms.h: Likewise.
2932
2933 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
2934
2935 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2936
2937 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2938
2939 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2940 arithmetic.
2941
2942 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2943
2944 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2945
2946 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
2947
2948 * libbfd.c (bfd_get_bits): Added
2949 (bfd_put_bits): Likewise
2950 * bfd-in.h: Declared the above.
2951 * bfd-in2.h: Regenerated.
2952
2953 2000-12-20 Kazu Hirata <kazu@hxi.com>
2954
2955 * targets.c: Fix formatting.
2956 * tekhex.c: Likewise.
2957 * trad-core.c: Likewise.
2958
2959 2000-12-19 Kazu Hirata <kazu@hxi.com>
2960
2961 * sco5-core.c: Fix formatting.
2962 * section.c: Likewise.
2963 * sparclinux.c: Likewise.
2964 * sparclynx.c: Likewise.
2965 * sparcnetbsd.c: Likewise.
2966 * srec.c: Likewise.
2967 * stabs.c: Likewise.
2968 * stab-syms.c: Likewise.
2969 * sunos.c: Likewise.
2970 * syms.c: Likewise.
2971 * sysdep.h: Likewise.
2972
2973 2000-12-18 Nick Clifton <nickc@redhat.com>
2974
2975 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2976 defined.
2977 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2978 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2979
2980 2000-12-18 Nick Clifton <nickc@redhat.com>
2981
2982 * vms-misc.c (_bfd_vms_get_record): Add default case to
2983 file_format switch.
2984
2985 2000-12-15 Miloslav Trmac <mitr@volny.cz>
2986
2987 * elfcore.h (elf_core_file_p): Move to the start of the program
2988 headers before attempting to read them.
2989
2990 2000-12-14 Kazu Hirata <kazu@hxi.com>
2991
2992 * peigen.c: Fix formatting.
2993 * som.c: Likewise.
2994 * som.h: Likewise.
2995
2996 2000-12-13 Kazu Hirata <kazu@hxi.com>
2997
2998 * peigen.c: Fix formatting.
2999
3000 2000-12-12 Jim Wilson <wilson@redhat.com>
3001
3002 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
3003
3004 2000-12-08 Mark Salter <msalter@redhat.com>
3005
3006 * binary.c (binary_set_section_contents): Ignore sections
3007 with zero size.
3008
3009 2000-12-12 Kazu Hirata <kazu@hxi.com>
3010
3011 * m68klinux.c: Fix formatting.
3012 * m68knetbsd.c: Likewise.
3013 * mipsbsd.c: Likewise.
3014 * netbsd-core.c: Likewise.
3015 * netbsd.h: Likewise.
3016 * newsos3.c: Likewise.
3017 * nlm32-alpha.c: Likewise.
3018 * nlm32-i386.c: Likewise.
3019 * nlm32-ppc.c: Likewise.
3020 * nlm32-sparc.c: Likewise.
3021 * nlmcode.h: Likewise.
3022 * nlmswap.h: Likewise.
3023 * nlm-target.h: Likewise.
3024 * ns32knetbsd.c: Likewise.
3025
3026 2000-12-10 Fred Fish <fnf@be.com>
3027
3028 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3029 symbols in shared objects if allow_shlib_undefined is true.
3030
3031 2000-12-12 Nick Clifton <nickc@redhat.com>
3032
3033 * cpu-sh.c: Fix formattng.
3034 * elf.c: Fix formattng.
3035 * elf32-mips.c: Fix formattng.
3036 * elf32-sh.c: Fix formattng.
3037 * elf64-alpha.c: Fix formattng.
3038
3039 2000-12-09 Nick Clifton <nickc@redhat.com>
3040
3041 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3042 dwarf2_find_line_info as last parameter to invocation of
3043 _bfd_dwarf2_find_nearest_line.
3044 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3045 dwarf2_find_line_info as last parameter to invocation of
3046 _bfd_dwarf2_find_nearest_line.
3047
3048 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3049
3050 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3051 (BFD_LIBS): ...to here.
3052 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3053 (BFD_LIBS_CFILES): ...to here.
3054 * Makefile.in: Regenerate.
3055 * configure.in: Remove dwarf.lo from the elf shell variable.
3056 * configure: Regenerate.
3057 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3058 * libcoff.h: Regenerate.
3059 * coffgen.c (coff_find_nearest_line): Call
3060 _bfd_dwarf2_find_nearest_line.
3061 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
3062 accordingly.
3063 (read_abbrevs): Likewise
3064 (decode_line_info): Likewise.
3065 (parse_comp_unit): Likewise.
3066 (comp_unit_find_nearest_line): Likewise.
3067 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3068 * libbfd.h: Regenerate.
3069 * elf.c (_bfd_elf_find_nearest_line): Update call.
3070 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
3071 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
3072 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
3073 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
3074 (styp_to_sec_flags): Handle DWARF2 sections.
3075 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
3076 to _bfd_find_nearest_line.
3077 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
3078 call to _bfd_find_nearest_line.
3079
3080 2000-12-08 Kazu Hirata <kazu@hxi.com>
3081
3082 * coffgen.c: Fix formatting.
3083 * elf-m10300.c: Likewise.
3084 * elf32-i386.c: Likewise.
3085 * elf32-i960.c: Likewise.
3086 * elf32-m68k.c: Likewise.
3087 * elf32-mcore.c: Likewise.
3088 * elf32-ppc.c: Likewise.
3089 * elf32-sh.c: Likewise.
3090 * elf32-sparc.c: Likewise.
3091 * elf32-v850.c: Likewise.
3092 * elf64-alpha.c: Likewise.
3093 * elf64-hppa.c: Likewise.
3094 * elf64-mips.c: Likewise.
3095 * elf64-sparc.c: Likewise.
3096
3097 2000-12-07 Kazu Hirata <kazu@hxi.com>
3098
3099 * elf32-ppc.c: Fix formatting.
3100 * elf64-x86-64.c: Likewise.
3101
3102 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3103
3104 From Ralf Baechle <ralf@gnu.org>
3105
3106 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
3107 BFDs containing no sections or empty .text, .data or .bss sections
3108 to be merged, regardless of their flags.
3109
3110 2000-12-06 Kazu Hirata <kazu@hxi.com>
3111
3112 * elf32-m32r.c: Fix formatting.
3113 * elf32-m68hc11.c: Likewise.
3114 * elf32-m68hc12.c: Likewise.
3115 * elf32-m68k.c: Likewise.
3116 * elf32-mcore.c: Likewise.
3117 * elf32-pj.c: Likewise.
3118 * elf32-ppc.c: Likewise.
3119
3120 2000-12-05 Kazu Hirata <kazu@hxi.com>
3121
3122 * elf32-fr30.c: Fix formatting.
3123 * elf32-hppa.c: Likewise.
3124 * elf32-i370.c: Likewise.
3125 * elf32-i386.c: Likewise.
3126 * elf32-i860.c: Likewise.
3127 * elf32-i960.c: Likewise.
3128
3129 2000-12-03 Kazu Hirata <kazu@hxi.com>
3130
3131 * elf32-arm.h: Fix formatting.
3132 * elf32-avr.c: Likewise.
3133 * elf32-cris.c: Likewise.
3134 * elf32-d10v.c: Likewise.
3135 * elf32-d30v.c: Likewise.
3136 * elf-hppa.h: Likewise.
3137 * elf-m10200.c: Likewise.
3138 * elf-m10300.c: Likewise.
3139
3140 2000-12-01 Chris Demetriou <cgd@sibyte.com>
3141
3142 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
3143 bfd_mach_mips32_4k. Update FIXME comment.
3144 * archures.c (bfd_mach_mips32): New constant.
3145 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3146 the latter, renumber it.
3147 * bfd-in2.h (bfd_mach_mips32): New constant.
3148 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3149 the latter, renumber it.
3150 * cpu-mips.c (I_mips32): New constant.
3151 (I_mips4K, I_mips32_4k): Rename the former to the latter.
3152 (arch_info_struct): Add bfd_mach_mips32 entry, replace
3153 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
3154 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
3155 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
3156 with E_MIPS_MACH_MIPS32_4K.
3157 (_bfd_mips_elf_final_write_processing): Replace
3158 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
3159 bfd_mach_mips32 case.
3160 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
3161 comparison with support for MIPS32.
3162 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
3163 MIPS32.
3164
3165 * aoutx.h (NAME(aout,machine_type)): Add cases for
3166 bfd_mach_mips5 and bfd_mach_mips64.
3167 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
3168 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
3169 * cpu_mips.c (I_mips5, I_mips64): New definitions.
3170 (arch_info_struct): Add entries for bfd_mach_mips5 and
3171 bfd_mach_mips64.
3172 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
3173 _bfd_mips_elf_print_private_bfd_data): Add cases for
3174 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
3175 (_bfd_mips_elf_final_write_processing): Add cases for
3176 bfd_mach_mips5 and bfd_mach_mips64.
3177
3178 * aoutx.h (NAME(aout,machine_type)): Add a
3179 bfd_mach_mips_sb1 case.
3180 * archures.c (bfd_mach_mips_sb1): New constant.
3181 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
3182 * cpu-mips.c (I_sb1): New constant.
3183 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
3184 * elf32-mips.c (elf_mips_mach): Add case for
3185 E_MIPS_MACH_SB1.
3186 (_bfd_mips_elf_final_write_processing): Add case for
3187 bfd_mach_mips_sb1.
3188
3189 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3190
3191 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
3192 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3193 (sparc*-*-rtems*): Switched from a.out to ELF.
3194
3195 2000-11-30 Jan Hubicka <jh@suse.cz>
3196
3197 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
3198 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
3199 (elf64-x86-64.lo): Add dependencies.
3200 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
3201 bfd_mach_x86_64_intel_syntax.
3202 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
3203 * config.bfd (x86_64): Add.
3204 * configure.in: Add support for bfd_elf64_x86_64_vec.
3205 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
3206 (bfd_i386_arch, i8086_ar): Link in.
3207 * elf64-x86-64.c: New file.
3208 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
3209 * targets.c (bfd_elf64_x86_64_vec): Add.
3210 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
3211
3212 2000-11-30 Kazu Hirata <kazu@hxi.com>
3213
3214 * xcofflink.c: Fix formatting.
3215
3216 2000-11-28 Kazu Hirata <kazu@hxi.com>
3217
3218 * aoutx.h: Fix formatting.
3219 * bfd-in.h: Likewise.
3220 * bfd-in2.h: Likewise.
3221 * cache.c: Likewise.
3222 * cisco-core.c: Likewise.
3223 * coff64-rs6000.c: Likewise.
3224 * coffcode.h: Likewise.
3225 * coffswap.h: Likewise.
3226 * corefile.c: Likewise.
3227 * elf32-mips.c: Likewise.
3228
3229 2000-11-27 Kazu Hirata <kazu@hxi.com>
3230
3231 * aout-adobe.c: Fix formatting.
3232 * coff64-rs6000.c: Likewise.
3233 * coffgen.c: Likewise.
3234 * cofflink.c: Likewise.
3235
3236 2000-11-27 Philip Blundell <pb@futuretv.com>
3237
3238 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
3239 (obj_coff_strings_written): New accessor macro for above.
3240 * libcoff.h: Regenerate.
3241 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
3242 strings.
3243 * coffcode.h (coff_write_object_contents): No need to write out
3244 the string table if it's already been done.
3245
3246 2000-11-22 Philip Blundell <pb@futuretv.com>
3247
3248 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
3249 weak undefined symbols.
3250
3251 2000-11-24 Nick Clifton <nickc@redhat.com>
3252
3253 * archures.c (bfd_mach_arm_5TE): Define.
3254 (bfd_mach_arm+XScale): Define.
3255 * bfd-in2.h: Regenerate.
3256
3257 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
3258 BFD_RELOC_ARM_PCREL_BLX.
3259
3260 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
3261 XScale machine numbers.
3262
3263 * config.bfd (xscale-elf): Add target.
3264 (xscale-coff): Add target.
3265
3266 * cpu-arm.c: Add xscale machine name.
3267 Add v5t, v5te and XScale machine numbers.
3268
3269 2000-11-23 Kazu Hirata <kazu@hxi.com>
3270
3271 * aix386-core.c: Fix formatting.
3272
3273 2000-11-22 Jim Wilson <wilson@redhat.com>
3274
3275 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
3276 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
3277 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
3278 (ins_imms_scaled): Initialize sign_bit at function entry.
3279 (elf64_ia64_operands): Add missing initializers.
3280 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
3281 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
3282 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
3283 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
3284 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
3285 parameters.
3286 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
3287 and free_extsyms at function entry.
3288 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
3289 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
3290 (get_got): Delete unused local srel.
3291 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
3292 (elfNN_ia64_relocate_section): Delete unused local dynindx.
3293
3294 2000-11-21 Kazu Hirata <kazu@hxi.com>
3295
3296 * coff-a29k.c: Fix formatting.
3297 * coff-h8500.c: Likewise.
3298 * coff-i960.c: Likewise.
3299 * coff-ppc.c: Likewise.
3300 * coff-rs6000.c: Likewise.
3301 * coff-stgo32.c: Likewise.
3302 * coff-tic54x.c: Likewise.
3303 * coff-w65.c: Likewise.
3304 * cpu-h8500.c: Likewise.
3305 * cpu-hppa.c: Likewise.
3306 * cpu-ns32k.c: Likewise.
3307 * ecoff.c: Likewise.
3308 * ecofflink.c: Likewise.
3309
3310 2000-11-21 Nick Clifton <nickc@redhat.com>
3311
3312 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
3313 remove possibility of infinite loop.
3314
3315 2000-11-20 Kazu Hirata <kazu@hxi.com>
3316
3317 * aix386-core.c: Fix formatting.
3318 * aout-adobe.c: Likewise.
3319 * aout-arm.c: Likewise.
3320 * aout-encap.c: Likewise.
3321 * aout-ns32k.c: Likewise.
3322 * aout-target.h: Likewise.
3323 * aout-tic30.c: Likewise.
3324 * aoutf1.h: Likewise.
3325 * aoutx.h: Likewise.
3326 * archive.c: Likewise.
3327 * bfd-in.h: Likewise.
3328 * bfd-in2.h: Likewise.
3329 * bfd.c: Likewise.
3330 * bout.c: Likewise.
3331
3332 2000-11-17 H.J. Lu <hjl@gnu.org>
3333
3334 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
3335 pltoff entries for DT_INIT and DT_FINI.
3336 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
3337 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
3338 entries.
3339
3340 2000-11-16 Richard Henderson <rth@redhat.com>
3341
3342 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
3343 (allocate_dynrel_entries): Likewise.
3344 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
3345 (set_pltoff_entry): Likewise.
3346 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
3347 (elfNN_ia64_reloc_type_lookup): Likewise.
3348 (elfNN_ia64_install_value): Likewise.
3349 (elfNN_ia64_relocate_section): Likewise.
3350 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
3351 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
3352
3353 2000-11-16 Kazu Hirata <kazu@hxi.com>
3354
3355 * cpu-a29k.c: Fix formatting.
3356 * cpu-alpha.c: Likewise.
3357 * cpu-arm.c: Likewise.
3358 * cpu-avr.c: Likewise.
3359 * cpu-d10v.c: Likewise.
3360 * cpu-h8500.c: Likewise.
3361 * cpu-hppa.c: Likewise.
3362 * cpu-i370.c: Likewise.
3363 * cpu-i386.c: Likewise.
3364 * cpu-i960.c: Likewise.
3365 * cpu-ia64-opc.c: Likewise.
3366 * cpu-ia64.c: Likewise.
3367 * cpu-m32r.c: Likewise.
3368 * cpu-m68hc11.c: Likewise.
3369 * cpu-m68hc12.c: Likewise.
3370 * cpu-m68k.c: Likewise.
3371 * cpu-m88k.c: Likewise.
3372 * cpu-mips.c: Likewise.
3373 * cpu-ns32k.c: Likewise.
3374 * cpu-pj.c: Likewise.
3375 * cpu-powerpc.c: Likewise.
3376 * cpu-sh.c: Likewise.
3377 * cpu-sparc.c: Likewise.
3378 * cpu-tic54x.c: Likewise.
3379 * cpu-v850.c: Likewise.
3380 * cpu-vax.c: Likewise.
3381 * cpu-w65.c: Likewise.
3382 * cpu-we32k.c: Likewise.
3383 * cpu-z8k.c: Likewise.
3384 * dwarf1.c: Likewise.
3385 * dwarf2.c: Likewise.
3386
3387 2000-11-15 Kazu Hirata <kazu@hxi.com>
3388
3389 * coff-arm.c: Fix formatting.
3390 * coff-ppc.c: Likewise.
3391 * coff-rs6000.c: Likewise.
3392 * coff-sh.c: Likewise.
3393 * coff-sparc.c: Likewise.
3394 * coff-tic30.c: Likewise.
3395 * coff-tic54x.c: Likewise.
3396 * coff-tic80.c: Likewise.
3397 * coff-w65.c: Likewise.
3398 * coff-we32k.c: Likewise.
3399 * coff-z8k.c: Likewise.
3400
3401 2000-11-15 Richard Henderson <rth@redhat.com>
3402
3403 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
3404 section with the same ALLOC|LOAD flags as the source section.
3405
3406 2000-11-14 Jakub Jelinek <jakub@redhat.com>
3407
3408 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
3409 by STO_ALPHA constants.
3410
3411 2000-11-14 Kazu Hirata <kazu@hxi.com>
3412
3413 * coff-pmac.c: Fix formatting.
3414 * coff-ppc.c: Likewise.
3415
3416 2000-11-13 H.J. Lu <hjl@gnu.org>
3417
3418 * elflink.h (elf_link_add_object_symbols): Also add indirect
3419 symbols for common symbols with the default version.
3420
3421 2000-11-09 Philip Blundell <pb@futuretv.com>
3422
3423 * section.c (STD_SECTION): Set gc_mark flag.
3424
3425 2000-11-11 Kazu Hirata <kazu@hxi.com>
3426
3427 * coff-i960.c: Likewise.
3428 * coff-m68k.c: Likewise.
3429 * coff-m88k.c: Likewise.
3430 * coff-mcore.c: Likewise.
3431 * coff-mips.c: Likewise.
3432
3433 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
3434
3435 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
3436
3437 2000-11-10 Kazu Hirata <kazu@hxi.com>
3438
3439 * coff-h8300.c: Fix formatting.
3440 * coff-h8500.c: Likewise.
3441 * coff-i386.c: Likewise.
3442 * coff-i860.c: Likewise.
3443 * coff-i960.c: Likewise.
3444 * coff-ia64.c: Likewise.
3445
3446 2000-11-09 Kazu Hirata <kazu@hxi.com>
3447
3448 * archive.c: Fix formatting.
3449 * archures.c: Likewise.
3450
3451 2000-11-07 Richard Henderson <rth@redhat.com>
3452
3453 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
3454 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
3455 * section.c (bfd_set_section_contents): Call memcpy if
3456 section->contents set and location not equal to contents plus offset.
3457
3458 2000-11-08 Kazu Hirata <kazu@hxi.com>
3459
3460 * bfd-in.h: Fix formatting.
3461 * bfd-in2.h: Likewise.
3462 * bfd.c: Likewise.
3463 * binary.c: Likewise.
3464 * bout.c: Likewise.
3465 * coff-a29k.c: Likewise.
3466 * coff-alpha.c: Likewise.
3467 * coff-apollo.c: Likewise.
3468 * coff-aux.c: Likewise.
3469
3470 2000-11-07 Kazu Hirata <kazu@hxi.com>
3471
3472 * aix386-core.c: Fix formatting.
3473 * aoutf1.h: Likewise.
3474 * aoutx.h: Likewise.
3475 * archures.c: Likewise.
3476 * armnetbsd.c: Likewise.
3477
3478 2000-11-07 Alan Modra <alan@linuxcare.com.au>
3479
3480 * coff-h8300.c (special): Adjust reloc address.
3481
3482 2000-11-06 Steve Ellcey <sje@cup.hp.com>
3483
3484 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
3485 to differentiate elf32 and elf64 on ia64.
3486 * bfd-in2.h: Regenerate.
3487 * config.bfd: Add target for "ia64*-*-hpux*".
3488 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
3489 * configure: Regenerate.
3490 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
3491 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
3492
3493 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
3494 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
3495 * Makefile.in: Regnerate.
3496 * elf64-ia64.c: Deleted.
3497 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
3498
3499 2000-11-06 Kazu Hirata <kazu@hxi.com>
3500
3501 * aout-adobe.c: Fix formatting.
3502 * aout-arm.c: Likewise.
3503 * aout-cris.c: Likewise.
3504 * aout-encap.c: Likewise.
3505 * aout-ns32k.c: Likewise.
3506 * aout-target.h: Likewise.
3507 * aout-tic30.c: Likewise.
3508
3509 2000-11-05 Philip Blundell <philb@gnu.org>
3510
3511 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
3512 BFDs containing no sections to be merged, regardless of their flags.
3513
3514 2000-11-04 Philip Blundell <philb@gnu.org>
3515
3516 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
3517 if a relocation for an undefined symbol also results in an
3518 overflow.
3519
3520 2000-11-06 Christopher Faylor <cgf@cygnus.com>
3521
3522 * config.bfd: Add support for Sun Chorus.
3523
3524 2000-11-05 David O'Brien <obrien@FreeBSD.org>
3525
3526 * configure.in: Recognize alpha-*-freebsd*.
3527 * configure: Regenerate.
3528
3529 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
3530
3531 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
3532 (Chunk): New global variable set by a parameter in objcopy.c.
3533 (S3Forced): New global variable set by a parameter in
3534 objcopy.c.
3535 (srec_set_section_contents): If S3Forced is true, always generate
3536 S3 records.
3537 (srec_write_section): Use 'Chunk' to limit maximum length of S
3538 records.
3539
3540 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3541
3542 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
3543 * Makefile.in: Regenerate.
3544 * bfd-in2.h: Regenerate.
3545 * po/bfd.pot: Regenerate.
3546
3547 2000-10-31 Philip Blundell <philb@gnu.org>
3548
3549 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
3550 EF_SOFT_FLOAT if it is defined.
3551
3552 2000-10-27 Philip Blundell <philb@gnu.org>
3553
3554 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
3555 attempts to mix PIC code with non-PIC, just mark the output as
3556 being position dependent.
3557 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
3558 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
3559 all mismatches, not just the first one.
3560
3561 2000-10-25 Chris Demetriou <cgd@sibyte.com>
3562
3563 * ieee.c (ieee_archive_p): Plug one of many possible
3564 memory leaks in error handling.
3565
3566 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3567
3568 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
3569 elf32_sparc_object_p, elf32_sparc_final_write_processing):
3570 Support v8plusb.
3571 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
3572 sparc64_elf_object_p): Support v9b.
3573 * archures.c: Declare v8plusb and v9b machines.
3574 * bfd-in2.h: Ditto.
3575 * cpu-sparc.c: Ditto.
3576
3577 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3578
3579 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
3580 of a GOT reloc.
3581
3582 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
3583 (SYMBOL_CALLS_LOCAL): New macro.
3584 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
3585 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
3586 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
3587 (ppc_elf_relocate_section): Use flag variable to determine
3588 whether the relocation refers to a local symbol.
3589 Test whether a PLTREL24 reloc will produce a reloc by looking
3590 to see whether a PLT entry was made.
3591
3592 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3593
3594 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
3595 entries that could serve as a definition for a weak symbol.
3596
3597 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
3598
3599 From Ralf Baechle <ralf@gnu.org>
3600
3601 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
3602 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
3603 against local symbols.
3604 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
3605
3606 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3607
3608 * section.c (struct sec): Add kept_section.
3609 (struct bfd_comdat_info): Remove sec, we can use above.
3610 (STD_SECTION): Add initializer.
3611 (bfd_make_section_anyway): Init here too.
3612
3613 * bfd-in2.h: Regenerate.
3614
3615 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
3616 zeroing of `flags'.
3617 (elf_link_input_bfd): Set all asection->symbol->value's here, and
3618 fudge values for discarded link-once section symbols.
3619
3620 * elf64-hppa.c: Include alloca-conf.h
3621
3622 2000-10-11 Alan Modra <alan@linuxcare.com.au>
3623
3624 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3625
3626 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3627
3628 2000-10-10 Alan Modra <alan@linuxcare.com.au>
3629
3630 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3631
3632 2000-10-10 Tom Rix <trix@redhat.com>
3633
3634 * section.c (bfd_make_section_anyway): Release newsect ptr when
3635 newsect->symbol fails to alloc. Use bfd_release instead of free.
3636
3637 2000-10-09 Richard Henderson <rth@cygnus.com
3638
3639 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3640 (elf64_ia64_unwind_entry_compare): New.
3641 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3642
3643 2000-10-07 Alan Modra <alan@linuxcare.com.au>
3644
3645 * elflink.h (size_dynamic_sections): Don't create various tags if
3646 .dynstr is excluded from the link. Don't set first dynsym entry
3647 if dynsymcount is zero.
3648 (elf_bfd_final_link): Don't try to swap out dynamic syms if
3649 .dynsym excluded from the link. Don't try to write any dynamic
3650 sections excluded from the link.
3651
3652 * elf.c (swap_out_syms): Handle global section symbols.
3653
3654 2000-10-05 DJ Delorie <dj@redhat.com>
3655
3656 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3657 * coffcode.h (coff_set_alignment_hook): read extended reloc count
3658 (coff_write_relocs): write extended reloc count
3659 (coff_write_object_contents): account for extended relocs
3660
3661 2000-10-05 Jim Wilson <wilson@cygnus.com>
3662
3663 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3664 field.
3665 * elf.c (_bfd_elf_make_section_from_shdr): Call the
3666 elf_backend_section_flags function.
3667 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3668 code.
3669 (elf64_ia64_section_flags): New function containing flag conversion
3670 code.
3671 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3672 * elfxx-target.h (elf_backend_section_flags): Define.
3673 (elfNN_bed): Initialize elf_backend_section_flags field.
3674
3675 2000-10-02 Alan Modra <alan@linuxcare.com.au>
3676
3677 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3678 _bfd_elf32_gc_record_vtable. Correct a comment.
3679
3680 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
3681
3682 From Ralf Baechle <ralf@gnu.org>
3683
3684 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3685 produces binaries with got[1] = 0x80000001 to differenciate them
3686 for the dynamic linker from the broken binaries produced by old
3687 versions.
3688
3689 2000-09-30 Petr Sorfa <petrs@sco.com>
3690
3691 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3692 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3693 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3694 * configure: Regenerate.
3695
3696 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
3697
3698 Define two bfd_targets for absence and presence of leading
3699 underscore on symbols. Make sure to only link same kind.
3700 * elf32-cris.c (cris_elf_object_p,
3701 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3702 cris_elf_merge_private_bfd_data): New.
3703 (elf_backend_object_p, elf_backend_final_write_processing,
3704 bfd_elf32_bfd_print_private_bfd_data,
3705 bfd_elf32_bfd_merge_private_bfd_data): Define.
3706 <Target vector definition>: Include elf32-target.h twice with
3707 different macro settings:
3708 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3709 bfd_elf32_us_cris_vec.
3710 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3711 (elf_symbol_leading_char): First as 0, then '_'.
3712 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3713 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3714 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3715 * configure: Regenerate.
3716 * targets.c: Declare bfd_elf32_us_cris_vec.
3717 * po/bfd.pot: Regenerate.
3718
3719 2000-09-29 Momchil Velikov <velco@fadata.bg>
3720
3721 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3722 R_ARM_THM_PC22 relocations.
3723
3724 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
3725
3726 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3727
3728 2000-09-29 Momchil Velikov <velco@fadata.bg>
3729
3730 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3731 is has the SEC_HAS_CONTENTS flag set.
3732
3733 2000-09-28 \81Örjan Friberg <orjanf@axis.com>
3734 Hans-Peter Nilsson <hp@axis.com>
3735
3736 * aout-cris.c (N_TXTADDR): Define.
3737
3738 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3739
3740 * som.c: Include alloca-conf.h.
3741 * Makefile.am: "make dep-am"
3742 * Makefile.in: Regenerate.
3743
3744 2000-09-27 Alan Modra <alan@linuxcare.com.au>
3745
3746 * elf32-hppa.c (plt_stub): New.
3747 (PLT_STUB_ENTRY): Define.
3748 (elf32_hppa_link_hash_table): Change multi_subspace to packed
3749 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
3750 (elf32_hppa_link_hash_table_create): Init to suit.
3751 (elf32_hppa_check_relocs): Set has_12bit_branch and
3752 has_17bit_branch as appropriate.
3753 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
3754 non-local functions.
3755 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
3756 Add space for plt_stub as needed.
3757 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
3758 functions at plt_stub.
3759 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
3760 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
3761
3762 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
3763 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
3764 of fixed size, and if negative, disable handling of input sections
3765 before stub section. Set up default stub group size depending
3766 on detected branch relocs.
3767 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
3768 ensure different offsets from sym_value aren't rounded to
3769 different 2k blocks. Use lrsel and rrsel for other stubs too for
3770 consistency rather than necessity.
3771 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
3772 (final_link_relocate): Likewise.
3773 (elf32_hppa_relocate_section): Likewise.
3774
3775 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
3776 (_bfd_elf_hppa_gen_reloc_type): Generate them.
3777 (elf_hppa_final_link_relocate): Handle them.
3778 (elf_hppa_relocate_insn): Likewise.
3779 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
3780
3781 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
3782
3783 * elfcode.h (elf_object_p): Preserve and clear abfd section
3784 information. Restore at error.
3785
3786 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3787
3788 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
3789 is empty, make sure that its rva also 0. NT loader dislikes
3790 having otherwise.
3791
3792 2000-09-26 Steve Ellcey <sje@cup.hp.com>
3793
3794 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
3795 global by default.
3796
3797 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3798
3799 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
3800 currently unused RELATIVE_DYNAMIC_RELOCS code.
3801 (hppa_discard_copies): Likewise.
3802 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
3803 comments. Don't check non-code output sections for stub grouping.
3804
3805 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3806
3807 * section.c (bfd_get_unique_section_name): Return NULL if
3808 bfd_malloc fails.
3809
3810 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3811
3812 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
3813 instruction sequence to actually work.
3814 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
3815 accordingly.
3816
3817 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3818
3819 * elf32-sh.c (sh_elf_relocate_section): Use
3820 _bfd_final_link_relocate to apply the relocation against a section
3821 symbol, when doing relocatable links.
3822
3823 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3824
3825 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
3826 to id_sec.
3827 (stub_hash_newfunc): Here too.
3828 (hppa_add_stub): And here.
3829 (elf32_hppa_link_hash_table): Remove stub_section_created,
3830 reloc_section_created, first_init_sec and first_fini_sec. Add
3831 stub_group.
3832 (elf32_hppa_link_hash_table_create): Init to suit.
3833 (hppa_get_stub_entry): Add support for grouping stub sections.
3834 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
3835 section code. Index stub vars by section->id.
3836 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
3837 exit paths. Zap allocation of above removed vars. Refine
3838 link-once test.
3839
3840 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
3841 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
3842 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
3843 rather than pointer to bfd_link_info.
3844 (hppa_add_stub): Likewise.
3845 (final_link_relocate): Likewise.
3846
3847 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
3848
3849 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
3850 link-once sections.
3851
3852 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
3853
3854 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
3855 ld/emulparams/shelf.sh.
3856
3857 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3858
3859 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
3860 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
3861 * bfd-in2.h: Regenerate.
3862
3863 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
3864
3865 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
3866 LITUSE relocations incorrectly if -relax is specified on the ld
3867 command line and the displacement field of the load or store
3868 instruction is non-zero. (Patch by paul.winalski@compaq.com)
3869
3870 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3871
3872 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
3873 first_fini_sec here.
3874 (elf32_hppa_size_stubs): Instead correctly find the first .init
3875 and .fini section here.
3876
3877 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
3878
3879 * elf32-hppa.c (clobber_millicode_symbols): New function.
3880 (elf32_hppa_size_dynamic_sections): Call it.
3881
3882 2000-09-14 Alan Modra <alan@linuxcare.com.au>
3883
3884 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
3885 packed. Add plabel, plt_abs packed booleans.
3886 (hppa_link_hash_newfunc): Init new fields.
3887 (PLABEL_PLT_ENTRY_SIZE): Define.
3888 (hppa_stub_name): Use size_t len vars.
3889 (hppa_add_stub): Likewise.
3890 (elf32_hppa_build_stubs): Likewise.
3891 (hppa_build_one_stub): Kill some compiler warnings.
3892 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
3893 if dynamic linking. Munge the local plt offsets into
3894 local_got_refcounts. Set h->plabel for all global PLABELs. Use
3895 size_t len vars. Add assert for plabel addend.
3896 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
3897 (elf32_hppa_hide_symbol): New function.
3898 (elf_backend_hide_symbol): Define.
3899 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
3900 with h->plabel set. Don't make plt entries to have dynamic syms
3901 when they have been forced local. If plt entry is used by a
3902 plabel, make it PLABEL_PLT_ENTRY_SIZE.
3903 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
3904 Set up .plt offsets for local syms.
3905 (elf32_hppa_relocate_section): Initialise plt entries for local
3906 syms. Leave weak undefined plabels zero. Make global plabel
3907 relocs against function symbol, and leave the addend zero.
3908 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
3909 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
3910 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
3911 relocs instead of SEGREL32 for dynamic got relocs.
3912 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
3913 (elf_backend_got_header_size): Adjust.
3914 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
3915
3916 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
3917 (hppa_type_of_stub): Use it instead of #if 0
3918 (hppa_discard_copies): Use it here too.
3919 (elf32_hppa_size_dynamic_sections): And here.
3920
3921 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
3922 (elf32_hppa_link_hash_table_create): And here.
3923 (hppa_build_one_stub): And here. Instead keep track of stub
3924 offset using _raw_size.
3925 (elf32_hppa_size_stubs): Likewise.
3926 (elf32_hppa_build_stubs): Likewise.
3927 (hppa_size_one_stub): Likewise. Resize reloc section too.
3928
3929 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
3930 first_fini_sec handling. Don't search for reloc section or set
3931 hplink->reloc_section_created here.
3932 (elf32_hppa_size_stubs): Instead search for reloc sections, and
3933 set reloc_section_created here.
3934 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
3935 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
3936 and DT_FINI.
3937 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
3938
3939 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
3940 with `hplink->root.'.
3941 (elf32_hppa_check_relocs): Likewise.
3942 (elf32_hppa_gc_sweep_hook): Likewise.
3943 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3944 (hppa_handle_PIC_calls): Likewise.
3945 (elf32_hppa_size_dynamic_sections): Likewise.
3946 (elf32_hppa_set_gp): Likewise.
3947 (elf32_hppa_relocate_section): Likewise.
3948 (elf32_hppa_finish_dynamic_symbol): Likewise.
3949 (elf32_hppa_finish_dynamic_sections): Likewise.
3950
3951 From David Huggins-Daines <dhd@linuxcare.com>
3952 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
3953 defined weak symbols in shared links.
3954 (final_link_relocate): Calls to defined weak symbols in shared
3955 objects must go via import stubs, as the target might not be known
3956 at link time.
3957
3958 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3959
3960 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
3961 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
3962 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
3963 the original entries with EMPTY_HOWTOs, and added new ones to fill
3964 in the gap.
3965 (sh_elf_info_to_howto): Make sure the new gap isn't used.
3966 (sh_elf_relocate_section): Likewise.
3967
3968 2000-09-13 Anders Norlander <anorland@acc.umu.se>
3969
3970 * cpu-mips.c (arch_info_struct): Add mips:4K
3971 * bfd-in2.h (bfd_mach_mips4K): New define.
3972 * archures.c: Add bfd_mach_mips4K to comment.
3973 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
3974 E_MIPS_ARCH_2 for bfd_mach_mips4K.
3975
3976 2000-09-13 Marco Franzen <marcof@thyron.com>
3977
3978 * som.c (som_write_symbol_strings): Do not used fixed buffers,
3979 use size_t as a counter.
3980 (som_write_space_strings): Similarly.
3981
3982 2000-09-12 Jason Eckhardt <jle@cygnus.com>
3983
3984 * elf32-i860.c (elf32_i860_relocate_pc26): New function
3985 and prototype.
3986 (elf32_i860_relocate_section): Invoke new function from here.
3987
3988 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3989
3990 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3991 static.
3992
3993 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3994
3995 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3996 target section name instead of dumping core when the target symbol is
3997 undefined.
3998
3999 2000-09-09 Kazu Hirata <kazu@hxi.com>
4000
4001 * riscix.c: Remove DEFUN.
4002
4003 2000-09-08 Nick Clifton <nickc@redhat.com>
4004
4005 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
4006 initialise flags in output bfd if the input bfd is the default
4007 architecture with the default flags.
4008
4009 2000-09-08 Kazu Hirata <kazu@hxi.com>
4010
4011 * archive.c: Fix formatting.
4012 * coff-arm.c: Likewise.
4013 * doc/chew.c: Likewise.
4014
4015 2000-09-08 Alan Modra <alan@linuxcare.com.au>
4016
4017 * section.c (bfd_get_unique_section_name): Put a dot before the
4018 numeric suffix.
4019
4020 2000-09-07 Kazu Hirata <kazu@hxi.com>
4021
4022 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
4023 * elf.c: Fix formatting.
4024
4025 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4026
4027 * config.bfd (sh-*-linux*): Added.
4028 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
4029 * targets.c: Declare them.
4030 * elf32-sh-lin.c: New file.
4031 * Makefile.am: Compile it.
4032 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
4033 * configure, Makefile.in: Rebuilt.
4034
4035 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
4036
4037 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
4038 pseduo-section when determining where the TOC ends.
4039
4040 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
4041 output x_tvndx as it is only two bytes wide.
4042
4043 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
4044 reloc is 26 or 32 bits wide.
4045
4046 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
4047 for relocs that don't change anything. Also look at the full
4048 6 bits of bitsize.
4049
4050 2000-09-06 Philip Blundell <philb@gnu.org>
4051
4052 * config.bfd (arm*-*-uclinux*): New target.
4053
4054 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4055
4056 * configure: Rebuilt with new libtool.m4.
4057
4058 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4059
4060 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
4061 word for variable name.
4062 * bfd-in2.h: Regenerate.
4063
4064 2000-09-05 Nick Clifton <nickc@redhat.com>
4065
4066 * config.in: Regenerate.
4067 * libbfd.h: Regenerate.
4068 * po/bfd.pot: Regenerate.
4069 * doc/bfdint.texi: Remove CVS date string - it foils compares with
4070 local versions.
4071
4072 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
4073
4074 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
4075
4076 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4077
4078 Shared library and PIC support.
4079 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
4080 (GOT_ENTRY_SIZE): New.
4081 (ELF_DYNAMIC_INTERPRETER): New.
4082 (STUB_SUFFIX): Define.
4083 (LONG_BRANCH_PIC_IN_SHLIB): Define.
4084 (RELATIVE_DYNAMIC_RELOCS): Define.
4085 (enum elf32_hppa_stub_type): New.
4086 (struct elf32_hppa_stub_hash_entry): Rename offset to
4087 stub_offset. Add a number of new fields.
4088 (struct elf32_hppa_link_hash_entry): New.
4089 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
4090 global_value.
4091 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
4092 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
4093 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
4094 new fields.
4095 (hppa_link_hash_newfunc): New function.
4096 (elf32_hppa_link_hash_table_create): Use above function. Init new
4097 fields.
4098 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
4099 instead of addend, and remove sym_name from args. Don't use
4100 symbol name for local syms, instead use sym index.
4101 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
4102 stub type rather than size. Pass in hash and handle import stub
4103 case. Also pass in reloc instead of offset so we can calculate
4104 PCREL22F and PCREL12F branches properly.
4105 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
4106 import and export stubs too.
4107 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
4108 import and export stub sizing.
4109 (elf32_hppa_check_relocs): New function.
4110 (elf32_hppa_adjust_dynamic_symbol): New function.
4111 (hppa_discard_copies): New function.
4112 (elf32_hppa_size_dynamic_sections): New function.
4113 (elf_backend_size_dynamic_sections): Define.
4114 (elf32_hppa_finish_dynamic_symbol): New function.
4115 (elf_backend_finish_dynamic_symbol): Define.
4116 (elf32_hppa_size_stubs): Stash params in link hash table, and move
4117 some local vars into the link hash table too. For shared links,
4118 trundle over function syms, generating export stubs. Handle
4119 PCREL22F branches. Break out stub creation code from here..
4120 (hppa_add_stub): .. to here. New function.
4121 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
4122 call the bfd linker. Use elf_gp to record global pointer.
4123 Calculate a value from sections if $global$ is missing.
4124 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
4125 (elf32_hppa_gc_mark_hook): New function.
4126 (elf_backend_gc_mark_hook): Define.
4127 (elf32_hppa_gc_sweep_hook): New function.
4128 (elf_backend_gc_sweep_hook): Define.
4129 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
4130 Add rel to args, and remove howto, input_bfd, offset, addend,
4131 sym_name as we can recalculate these locally. Handle calls to
4132 dynamic objects, extra PIC relocs, PCREL22F branches. Change
4133 handling of undefined weak syms. Check that stubs are in range.
4134 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
4135 message on hitting a DPREL21L reloc that needs fixing. Subtract
4136 off PC for PCREL14F. Break out code that does a stub lookup from
4137 here..
4138 (hppa_get_stub_entry): ..to here. New function.
4139 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
4140 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
4141 relocs, etc. etc.
4142 (elf32_hppa_finish_dynamic_sections): New function.
4143 (elf_backend_finish_dynamic_sections): Define.
4144 (elf_backend_final_write_processing) Define.
4145 (hppa_handle_PIC_calls): New function.
4146 (elf32_hppa_build_stubs): Call it. Pass link_info to
4147 hppa_build_one_stub.
4148 (elf32_hppa_create_dynamic_sections): New function
4149 to create .plt and .got then set .plt flags correctly.
4150 (elf_backend_create_dynamic_sections): Define.
4151 (elf32_hppa_object_p): New function.
4152 (elf_backend_object_p): Define.
4153 (elf32_hppa_elf_get_symbol_type): New function.
4154 (elf_backend_get_symbol_type): Define.
4155 (elf_backend_can_gc_sections): Define.
4156 (elf_backend_want_got_plt): Define.
4157 (elf_backend_plt_alignment): Set to 2.
4158 (elf_backend_plt_readonly): Define.
4159 (elf_backend_want_plt_sym): Define.
4160 (elf_backend_got_header_size): Reserve one entry.
4161
4162 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
4163 (elf32_hppa_size_stubs): Pass in multi_subspace.
4164 (elf32_hppa_set_gp): Declare.
4165
4166 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
4167 (bfd_get_unique_section_name): New function.
4168 * bfd-in2.h: Regenerate.
4169
4170 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
4171 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
4172 comment.
4173
4174 From David Huggins-Daines <dhd@linuxcare.com>
4175 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
4176 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
4177 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
4178 been updated in finish_dynamic_symbol before modifying function
4179 symbol.
4180
4181 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
4182 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
4183 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
4184 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
4185 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
4186 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
4187 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
4188 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
4189
4190 From David Huggins-Daines <dhd@linuxcare.com>
4191 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
4192 style of local labels as well.
4193
4194 2000-09-03 Philip Blundell <philb@gnu.org>
4195
4196 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
4197 references to undefined symbols in debugging sections.
4198
4199 2000-09-02 H.J. Lu <hjl@gnu.org>
4200
4201 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
4202 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
4203 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
4204 section.
4205
4206 2000-09-02 Jason Eckhardt <jle@cygnus.com>
4207
4208 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
4209 (elf32_i860_is_local_label_name): New function and prototype.
4210
4211 2000-09-02 Nick Clifton <nickc@redhat.com>
4212
4213 * configure.in: Increase version number to 2.10.91.
4214 * configure: Regenerate.
4215 * aclocal.m4: Regenerate.
4216 * config.in: Regenerate.
4217 * po/bfd.pot: Regenerate.
4218
4219 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4220
4221 * elf.c (_bfd_elf_make_section_from_shdr): Add
4222 .gnu.linkobce.wi. to the list of debug section names.
4223
4224 2000-09-02 Nick Clifton <nickc@redhat.com>
4225
4226 * dwarf2.c (find_debug_info): New function: Locate a section
4227 containing dwarf2 debug information.
4228 (bfd_dwarf2_find_nearest_line): Find all sections containing
4229 debug information and include them in the stash.
4230
4231 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4232
4233 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
4234 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
4235 (sh_reloc_map): Add new relocs.
4236 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
4237 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
4238 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
4239 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
4240 functions.
4241 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
4242 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
4243 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
4244 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
4245 New array constants.
4246 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
4247 New variables.
4248 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
4249 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
4250 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
4251 elf_sh_plt_reloc_offset): Define.
4252 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
4253 elf_sh_link_hash_table): New structs.
4254 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
4255 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
4256 relocation types.
4257 (elf_backend_create_dynamic_sections,
4258 bfd_elf32_bfd_link_hash_table_create,
4259 elf_backend_adjust_dynamic_symbol,
4260 elf_backend_size_dynamic_sections,
4261 elf_backend_finish_dynamic_symbol,
4262 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
4263 elf_backend_plt_readonly, elf_backend_want_plt_sym,
4264 elf_backend_got_header_size, elf_backend_plt_header_size):
4265 Define.
4266 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
4267 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
4268 New relocs.
4269 * bfd-in2.h, libbfd.h: Rebuilt.
4270
4271 2000-09-01 Alan Modra <alan@linuxcare.com.au>
4272
4273 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
4274 change.
4275
4276 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
4277
4278 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
4279 not initialized, set them to indicate the SH1 instruction set.
4280
4281 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4282
4283 * acinclude.m4: Include libtool and gettext macros from the
4284 top level.
4285 * aclocal.m4, configure: Rebuilt.
4286
4287 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
4288
4289 * elf.c: Eliminate references to __sparcv9 macro; replace with
4290 autoconf variables HAVE_PSINFO32_T etc.
4291 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
4292 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
4293 * config.in: Ditto.
4294 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
4295 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
4296 * aclocal.m4: Ditto.
4297 * configure: Regenerate.
4298
4299 2000-08-27 Alan Modra <alan@linuxcare.com.au>
4300
4301 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
4302 for any shared link, not just shared -Bsymbolic.
4303 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
4304 any shared link, and pass link info to it.
4305 (elf_i386_size_dynamic_sections): Update comment.
4306 (elf_i386_discard_copies): Modify to discard relocs for symbols
4307 that have been forced local.
4308 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
4309 that have been forced local.
4310
4311 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
4312
4313 * elflink.h (elf_link_add_object_symbols): Allow common
4314 symbols to have an alignment of 1 if explicitly requested, and
4315 not overridden by other definitions.
4316
4317 2000-08-22 Doug Kwan <dkwan@transmeta.com>
4318
4319 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
4320 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
4321
4322 2000-08-22 H.J. Lu <hjl@gnu.org>
4323
4324 * elf-bfd.h (elf_link_hash_table): Add runpath.
4325
4326 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
4327 * bfd-in2.h: Rebuilt.
4328
4329 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
4330 "runpath" field to NULL.
4331 (bfd_elf_get_runpath_list): New function.
4332
4333 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
4334 DT_RUNPATH entries.
4335
4336 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
4337
4338 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
4339 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
4340 explicitly. Improve validation of r_type.
4341
4342 2000-08-21 H.J. Lu <hjl@gnu.org>
4343
4344 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
4345 dynamic allocated content space. Add a comment to remind us that
4346 one day this ought to be fixed.
4347 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4348 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4349 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4350
4351 2000-08-21 Jason Eckhardt <jle@cygnus.com>
4352
4353 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
4354 field with the newly relocated value instead of adding it to the
4355 existing immediate field.
4356 (elf32_i860_relocate_splitn): Likewise.
4357 (elf32_i860_relocate_highadj): Likewise.
4358
4359 2000-08-16 Jason Eckhardt <jle@cygnus.com>
4360
4361 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
4362 was previously just a stub).
4363
4364 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
4365
4366 * elflink.c (_bfd_elf_create_got_section): Don't abort().
4367 Formatting fixes.
4368 (_bfd_elf_create_dynamic_sections): Likewise.
4369
4370 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
4371
4372 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
4373 for undefined symbols to be the beginning of the section.
4374
4375 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
4376 four extra entries at the beginning of the .rela.plt section.
4377 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
4378 section to account for the four reserved entries in the .plt section.
4379
4380 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
4381
4382 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
4383 to the list of NOPs we recognize after a branch-and-link.
4384 Use the ori NOP when one is needed.
4385
4386 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
4387 for large archives.
4388
4389 2000-08-14 Jim Wilson <wilson@cygnus.com>
4390
4391 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
4392 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
4393 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
4394 EF_IA_64_ABSOLUTE.
4395
4396 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
4397
4398 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
4399
4400 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4401
4402 * elf32-i860.c (elf32_i860_relocate_section): New function.
4403 (i860_final_link_relocate): New function.
4404 (elf32_i860_relocate_splitn): New function.
4405 (elf32_i860_relocate_pc16): New function.
4406 (elf32_i860_relocate_highadj): New function.
4407 (elf32_i860_howto): Minor adjustments to some relocations.
4408 (elf_info_to_howto_rel): Define.
4409 (elf_backend_relocate_section): Define.
4410
4411 2000-08-10 Nick Clifton <nickc@cygnus.com>
4412
4413 * elf32-arm.h: Fix formatting.
4414
4415 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
4416
4417 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
4418
4419 2000-08-08 Jason Eckhardt <jle@cygnus.com>
4420
4421 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
4422
4423 2000-08-07 Kazu Hirata <kazu@hxi.com>
4424
4425 * ieee.c (ieee_write_debug_part): Rewrite a comment.
4426 * elf64-ia64.c: Fix a typo.
4427
4428 2000-08-05 Jason Eckhardt <jle@cygnus.com>
4429
4430 * elf32-i860.c (elf32_i860_howto_table): New structure.
4431 (lookup_howto): New function.
4432 (elf32_i860_reloc_type_lookup): New function.
4433 (elf32_i860_info_to_howto_rela): New function.
4434 (elf_code_to_howto_index): New structure.
4435 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
4436 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
4437 elf32_i860_reloc_type_lookup.
4438
4439 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
4440
4441 * som.c (struct fixup_format): Constify `format'.
4442 (som_hppa_howto_table): Use SOM_HOWTO macro.
4443 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
4444 (som_bfd_reloc_type_lookup): Likewise.
4445 (compare_subspaces): Remove unused `count1', `count2'.
4446 (som_begin_writing): Remove unused `total_reloc_size'.
4447 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
4448 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
4449 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
4450 (som_find_nearest_line): Decorate unused parameter(s).
4451 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
4452 (som_bfd_link_split_section): Likewise.
4453
4454 2000-08-03 Nick Clifton <nickc@cygnus.com>
4455
4456 * section.c: Restore backed out code.
4457 * elf.c: Restore backed out code.
4458 (copy_private_bfd_data): Fix bug preventing stipped dynamic
4459 binaries from working.
4460 * bfd-in2.h: Regenerate.
4461
4462 2000-08-03 H.J. Lu <hjl@gnu.org>
4463
4464 * section.c: Back out the change made by Nick Clifton
4465 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
4466 binaries.
4467 * bfd-in2.h: Likewise.
4468 * elf.c: Likewise.
4469
4470 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
4471
4472 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
4473
4474 2000-07-31 Jason Eckhardt <jle@cygnus.com>
4475
4476 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
4477 * bfd-in2.h, libbfd.h: Regenerate.
4478
4479 2000-07-31 Nick Clifton <nickc@cygnus.com>
4480
4481 * section.c (struct sec): Add new boolean field 'segment_mark'.
4482 (STD_SECTION): Initialise new field to zero.
4483
4484 * bfd-in2.h: Regenerate.
4485
4486 * elf.c (copy_private_bfd_data): Reorganise section to segment
4487 mapping to cope with moved sections requiring new segments,
4488 and overlapping segments.
4489 (SEGMENT_END): New macro: Return the end address of a segment.
4490 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
4491 contains a section by comparing their VMA addresses.
4492 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
4493 contains a section by comparing their LMA addresses.
4494 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
4495 section should be included in a segment.
4496 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
4497 follows another in memory.
4498 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
4499 segments overlap.
4500
4501 2000-07-22 Jason Eckhardt <jle@cygnus.com>
4502
4503 * cpu-i860.c: Added comments.
4504
4505 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
4506 bfd_elf32_i860_little_vec.
4507 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
4508 (ELF_MAXPAGESIZE): Changed to 4096.
4509
4510 * targets.c (bfd_elf32_i860_little_vec): Declaration of
4511 new target.
4512 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
4513
4514 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
4515 config for little endian elf32 i860.
4516 (targ_defvec): Define for the new config above
4517 as "bfd_elf32_i860_little_vec".
4518 (targ_selvecs): Define for the new config above
4519 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
4520
4521 * configure.in (bfd_elf32_i860_little_vec): Added recognition
4522 of new target vec.
4523
4524 * configure: Regenerated.
4525
4526 2000-07-27 H.J. Lu <hjl@gnu.org>
4527
4528 * elflink.h (elf_merge_symbol): Take one more argument,
4529 dt_needed, to indicate if the symbol comes from a DT_NEEDED
4530 entry. Don't overide the existing weak definition if dt_needed
4531 is true.
4532 (elf_link_add_object_symbols): Pass dt_needed to
4533 elf_merge_symbol ().
4534
4535 2000-07-27 Nick Clifton <nickc@cygnus.com>
4536
4537 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
4538 allocated contents.
4539
4540 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
4541
4542 * configure.host (*-*-aix*): AIX has 'long long' always.
4543
4544 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
4545 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
4546 (xcoff_write_archive_contents_big): Don't update the offset
4547 of the symbol table, xcoff_write_armap will do it.
4548
4549 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
4550
4551 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
4552 of dynobj for SGI_COMPAT checks.
4553
4554 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4555
4556 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
4557 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
4558 * bfd-in2.h: Regenerate.
4559
4560 2000-07-21 Nick Clifton <nickc@cygnus.com>
4561
4562 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
4563 range symbol indices in relocs and issue an error message.
4564
4565 2000-07-20 H.J. Lu <hjl@gnu.org>
4566
4567 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
4568 info->new_dtags when setting DT_FLAGS_1. It will only be set
4569 by the new linker options. It shouldn't break anything.
4570
4571 2000-07-20 H.J. Lu <hjl@gnu.org>
4572
4573 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
4574 only if info->new_dtags is true.
4575
4576 2000-07-20 H.J. Lu <hjl@gnu.org>
4577
4578 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
4579 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
4580
4581 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4582
4583 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
4584 (ALL_MACHINES_CFILES): Add cpu-cris.c.
4585 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
4586 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
4587 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
4588 * Makefile.in: Rebuild.
4589 * aclocal.m4: Rebuild.
4590 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
4591 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
4592 (bfd_cris_arch): Declare.
4593 (bfd_archures_list): Add bfd_cris_arch.
4594 * bfd-in2.h: Rebuild.
4595 * config.bfd: (cris-*-*): New target.
4596 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
4597 * configure: Rebuild.
4598 * elf.c (prep_headers): Add bfd_arch_cris.
4599 * libbfd.h: Rebuild.
4600 * libaout.h (enum machine_type): Add M_CRIS.
4601 * reloc.c: Add CRIS relocations.
4602 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
4603 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
4604 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
4605 * po/POTFILES.in, po/bfd.pot: Regenerate.
4606
4607 2000-07-19 H.J. Lu <hjl@gnu.org>
4608
4609 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
4610 DF_TEXTREL if DT_TEXTREL is set.
4611 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
4612 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
4613 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4614 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
4615 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4616 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4617 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
4618 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4619 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
4620 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
4621
4622 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
4623 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
4624 DT_RPATH is set.
4625 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
4626
4627 2000-07-19 H.J. Lu <hjl@gnu.org>
4628
4629 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
4630 * bfd-in2.h: Rebuild.
4631
4632 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
4633 (elf_dt_soname): New.
4634
4635 * elf.c (bfd_elf_set_dt_needed_soname): New.
4636
4637 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
4638 entry if the shared object loaded by DT_NEEDED is used to
4639 resolve the reference in a regular object.
4640
4641 2000-07-19 H.J. Lu <hjl@gnu.org>
4642
4643 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
4644 DT_DEPAUDIT and DT_AUDIT as strings.
4645
4646 2000-07-19 Nick Clifton <nickc@cygnus.com>
4647
4648 * format.c: Fix formatting.
4649
4650 2000-07-19 H.J. Lu <hjl@gnu.org>
4651
4652 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
4653
4654 2000-07-19 H.J. Lu <hjl@gnu.org>
4655
4656 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
4657 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
4658 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
4659 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
4660 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
4661 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
4662 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
4663
4664 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
4665
4666 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
4667 renamed functions from here...
4668 (assign_section_numbers): Use renamed functions.
4669 (prep_headers): Use renamed functions.
4670
4671 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
4672 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
4673 * bfd-in2.h: Regenerate.
4674
4675 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
4676
4677 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
4678 parenthesis in if statement.
4679
4680 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
4681
4682 Enable the support for Traditional MIPS.
4683 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
4684 return ict_none appropriately for traditional mips targets.
4685 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
4686 (STUB_MOVE): Conditionalize for traditonal mips.
4687 (STUB_LI16): Likewise.
4688 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
4689 room for RTPROC header.
4690 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
4691 the permission for the PT_DYNAMIC as read, write and execute.
4692 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
4693 for traditonal mips.
4694 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
4695 _DYNAMIC_LINKING for traditonal mips.
4696 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
4697 in case of traditonal mips.
4698 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
4699 entry is required. For a function if PLT is not required then set the
4700 corresponding hash table entry to 0.
4701 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
4702 traditonal mips.
4703 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
4704 shared object set the value to 0.
4705 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
4706 _DYNAMIC_LINKING for traditonal mips.
4707 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
4708 for traditonal mips.
4709
4710 2000-07-15 H.J. Lu <hjl@gnu.org>
4711
4712 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
4713
4714 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4715
4716 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
4717 out a structure that is BFD_IN_MEMORY.
4718
4719 2000-07-11 Alan Modra <alan@linuxcare.com.au>
4720
4721 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
4722 bfd pointer. Print section id instead of bfd pointer for local
4723 syms. Prefix addend with `+' for global syms as well as local.
4724 Correct calculation of name component lengths.
4725 (elf64_hppa_check_relocs): Update call to get_dyn_name.
4726
4727 From David Huggins-Daines <dhd@linuxcare.com>
4728 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
4729 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
4730 (elf64_hppa_modify_segment_map): Likewise.
4731
4732 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4733
4734 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
4735 addresses to be "naturally" sign extended. Return -1 if unknown.
4736 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
4737 * bfd-in2.h: Regenerate.
4738
4739 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4740
4741 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
4742 and ECOF_SIGNED_64 to list ways to extract an offset.
4743 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
4744 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
4745 Update.
4746 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
4747 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
4748
4749 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4750
4751 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
4752 bfd_get_start_address.
4753 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
4754 (elf_swap_ehdr_out): Ditto.
4755
4756 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
4757
4758 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
4759 compatibility with older binutils.
4760
4761 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4762
4763 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
4764 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
4765
4766 From Ryan Bradetich <rbradetich@uswest.net>
4767 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
4768 (parse_line_table): Ditto.
4769 (_bfd_dwarf1_find_nearest_line): Ditto.
4770 * syms.c (cmpindexentry): Remove extra `*' from params.
4771
4772 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
4773
4774 * elf32-mips.c (sort_dynamic_relocs): New Function.
4775 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
4776 via qsort to sort the dynamic relocations in increasing r_symndx
4777 value.
4778
4779 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4780
4781 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
4782 ATTRIBUTE_UNUSED to unused args.
4783 (get_opd): Likewise.
4784 (get_plt): Likewise.
4785 (get_dlt): Likewise.
4786 (get_stub): Likewise.
4787 (elf64_hppa_adjust_dynamic_symbol): Likewise.
4788 (elf64_hppa_link_output_symbol_hook): Likewise.
4789 (elf64_hppa_check_relocs): Delete unused var.
4790 (elf64_hppa_size_dynamic_sections): Likewise.
4791 (elf64_hppa_finalize_opd): Likewise.
4792 (elf64_hppa_finalize_dynreloc): Likewise.
4793 (elf64_hppa_modify_segment_map): Likewise.
4794 (elf64_hppa_finish_dynamic_sections): Likewise.
4795
4796 * elf-hppa.h (elf_hppa_final_write_processing): Add
4797 ATTRIBUTE_UNUSED to unused args.
4798 (elf_hppa_final_link_relocate): Likewise.
4799 (elf_hppa_record_segment_addrs): Add paretheses.
4800 (elf_hppa_relocate_section): Constify dyn_name.
4801
4802 From David Huggins-Daines <dhd@linuxcare.com>
4803 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
4804 rearrange case statement so that it gets preferred to 32-bit ones.
4805
4806 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
4807 asection->id instead of address of asection structure.
4808 (elf32_hppa_size_stubs): Likewise.
4809
4810 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
4811 for .init* and .fini*.
4812
4813 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
4814 and addends used in stub names to 32 bits.
4815 (elf32_hppa_size_stubs): Likewise.
4816
4817 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
4818 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
4819 not bfd_put_64. Fix minor comment typo and formatting.
4820
4821 Changes to create multiple linker stubs, positioned immediately
4822 before the section where they are required.
4823 * elf32-hppa.c: Don't include hppa_stubs.h.
4824 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
4825 (elf32_hppa_stub_hash_table): Delete.
4826 (elf32_hppa_link_hash_entry): Delete.
4827 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
4828 stub_hash_table, and store the struct here rather than a pointer.
4829 Delete output_symbol_count. Add offset array. Change
4830 global_value to a bfd_vma.
4831 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
4832 (elf32_hppa_stub_hash_traverse): Delete.
4833 (elf32_hppa_name_of_stub): Delete.
4834 (elf32_hppa_link_hash_lookup): Delete.
4835 (elf32_hppa_link_hash_traverse): Delete.
4836 (elf32_hppa_stub_hash_table_init): Delete.
4837 (elf32_hppa_size_of_stub): Pass input section and offset rather
4838 than location and calculate location here. Don't pass name as all
4839 stubs are now the same size.
4840 (elf32_hppa_stub_hash_newfunc): Init new fields.
4841 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
4842 too.
4843 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
4844 comparing against ints. Rewrite stub handling code.
4845 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
4846 Case enums to int before comparing against ints. Remove
4847 bfd_reloc_dangerous case.
4848 (elf32_hppa_build_one_stub): Rewrite.
4849 (elf32_hppa_size_one_stub): New function.
4850 (elf32_hppa_build_stubs): Rewrite.
4851 (elf32_hppa_size_stubs): Pass in linker call-back functions.
4852 Rewrite stub-handling specific code.
4853
4854 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
4855
4856 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
4857
4858 * hppa_stubs.h: Delete.
4859 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
4860 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
4861 * Makefile.in: Regenerate.
4862
4863 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
4864 e_nlrsel.
4865
4866 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
4867
4868 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
4869 and section name for bfd_reloc_notsupported error message.
4870 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
4871 bfd_reloc_notsupported.
4872 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
4873
4874 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
4875 undefined weak symbols for all relocs.
4876 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
4877 offsets are relative to one past the delay slot.
4878 (elf32_hppa_size_stubs): Account for reloc addend when calculating
4879 branch destination. Put addend into stub name too.
4880 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
4881 adjust by 8 when deciding whether a linker stub is needed. Put
4882 addend into stub name as for above.
4883
4884 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
4885 various args and vars.
4886 (elf32_hppa_bfd_final_link_relocate): Here too.
4887 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
4888 inner block var to avoid shadowing.
4889
4890 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
4891 unsigned.
4892 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
4893 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
4894 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
4895
4896 * libhppa.h: Change practically all unsigned ints to plain ints.
4897 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
4898 prototypes.
4899
4900 From Ryan Bradetich <rbradetich@uswest.net>
4901 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
4902 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
4903 suit above.
4904 From David Huggins-Daines <dhd@linuxcare.com>
4905 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
4906 to the new OP_* ones.
4907
4908 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
4909 error exit. Bail out earlier on plabel relocs that we aren't
4910 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
4911 string, and then don't free our copy.
4912 (elf32_hppa_build_one_stub): Make insn unsigned int.
4913
4914 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
4915 available with BL, not BE and BLE.
4916
4917 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
4918 code for elf arg relocs.
4919 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
4920 argument with elf_link_hash_entry h. Handle undefined weak
4921 symbols. Move $global$ lookup from here...
4922 (elf32_hppa_relocate_section): ...to here. Return correct error
4923 message for non-handled relocs.
4924 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
4925 wrong test was -0x3ffff to +0x40000.
4926
4927 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
4928 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
4929 Handle them as such.
4930 (elf_hppa_relocate_insn): Fix a typo.
4931
4932 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
4933 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4934 assemble_17, assemble_21): Delete.
4935 Supply defines for all 64 possible opcodes.
4936 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
4937 formats. Handle COMICLR.
4938 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
4939 -10, -16, 16, 22.
4940
4941 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
4942 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
4943 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
4944 to suit.
4945 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
4946 the local syms - did this code get deleted accidentally? Ignore
4947 undefined and undefweak syms.
4948
4949 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
4950 block. Use it instead of elf64_hppa_hash_table (info).
4951 (elf_hppa_final_link_relocate): Use hppa_info instead of
4952 elf64_hppa_hash_table (info).
4953
4954 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4955 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4956 (hppa_rebuild_insn): Mask immediate bits here instead.
4957 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4958
4959 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4960
4961 * section.c (struct sec): Add id field. Tidy comment formatting.
4962 (bfd_make_section_anyway): Set id.
4963 (STD_SECTION): Init id too.
4964 Change CONST to const throughout.
4965 * archures.c (bfd_arch_info): Tidy comment.
4966 (bfd_arch_list): Change a CONST to const.
4967 * libbfd-in.h: Tidy comments and replace CONST with const.
4968 * elf-bfd.h: Likewise.
4969 * libbfd.h: Regenerate.
4970 * bfd-in2.h: Regenerate.
4971 * libcoff.h: Regenerate.
4972
4973 2000-07-07 DJ Delorie <dj@redhat.com>
4974
4975 * archive.c (_bfd_write_archive_contents): Add an informative
4976 comment.
4977
4978 2000-07-06 Kazu Hirata <kazu@hxi.com>
4979
4980 * srec.c: Fix formatting.
4981
4982 2000-06-05 DJ Delorie <dj@redhat.com>
4983
4984 * MAINTAINERS: new
4985
4986 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
4987
4988 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
4989 value of PC-relative offsets.
4990
4991 2000-07-03 Jim Wilson <wilson@cygnus.com>
4992
4993 * elf64-alpha.c (alpha_elf_size_info): New.
4994 (elf_backend_size_info): Define to alpha_elf_size_info.
4995 * elfcode.h (elf_size_info): Change hash bucket size to 4.
4996
4997 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
4998
4999 * elf32-mips.c: Include elf32-target.h again for the traditional
5000 MIPS targets.
5001
5002 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5003
5004 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
5005 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
5006 (avr_info_to_howto_rela): Likewise.
5007 (elf32_avr_gc_mark_hook): Likewise.
5008 (elf32_avr_gc_sweep_hook): Likewise.
5009 (elf32_avr_relocate_section): Likewise.
5010
5011 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
5012
5013 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
5014 an external symbol for a non-shared, non-relocatable link.
5015
5016 2000-07-03 Nick Clifton <nickc@redhat.com>
5017
5018 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
5019 is an external symbol.
5020 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
5021 external symbol.
5022
5023 2000-07-03 Kazu Hirata <kazu@hxi.com>
5024
5025 * reloc16.c: Fix formatting.
5026
5027 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5028
5029 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
5030 to add a new target for traditional mips i.e
5031 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
5032 * configure.in: Likewise.
5033 * configure: Rebuild.
5034 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
5035 bfd_target_vector.
5036 (bfd_elf32_tradlittlemips_vec): Likewise.
5037 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
5038 to see that elfNN_bed does not get redefined even if the target file
5039 is included twice for a chip. See elf32-mips.c.
5040
5041 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5042
5043 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5044 (CLEANFILES): Add DEPA.
5045 * Makefile.in: Regenerate.
5046
5047 2000-06-30 DJ Delorie <dj@cygnus.com>
5048
5049 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
5050 can't assume the PE header is at 0x80.
5051
5052 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5053
5054 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
5055
5056 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
5057
5058 * go32stub.h: Update stub.
5059
5060 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5061
5062 * archures.c (bfd_mach_avr5): Define.
5063 * bfd-in2.h (bfd_mach_avr5): Define.
5064 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
5065 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
5066 (compatible): Update comment. Add missing test.
5067 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
5068 for avr2 and avr4. Simplify 8K wrap code.
5069 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
5070 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
5071
5072 2000-06-26 Kazu Hirata <kazu@hxi.com>
5073
5074 * coff-h8300.c: Fix formatting.
5075 * cpu-h8300.c: Likewise.
5076
5077 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
5078
5079 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
5080 for local symbols whose names are unknown.
5081
5082 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5083
5084 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5085 find one.
5086 * Makefile.in: Regenerate.
5087 * doc/Makefile.in: Regenerate.
5088
5089 2000-06-20 H.J. Lu <hjl@gnu.org>
5090
5091 * Makefile.am: Rebuild dependency.
5092 * Makefile.in: Rebuild.
5093
5094 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5095
5096 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
5097 (elf_backend_copy_indirect_symbol): Map to the new function.
5098
5099 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5100
5101 * archive.c (normalize): Correct pointer comparison when checking
5102 for backslashes.
5103 (bfd_bsd_truncate_arname): Likewise.
5104 (bfd_gnu_truncate_arname): Likewise.
5105
5106 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
5107
5108 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
5109 sections elf_{text,data}_{section,symbol}.
5110 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
5111 (_bfd_mips_elf_hide_symbol): New function.
5112 (elf_backend_hide_symbol): Map to the new function.
5113 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
5114 definitions of mips_elf_{text,data}_{section,symbol}.
5115 (mips_elf_local_relocation_p): Try to find the direct symbol
5116 based on new check_forced argument.
5117 (mips_elf_calculate_relocation): Use new version of
5118 mips_elf_local_relocation_p.
5119 (mips_elf_relocate_section): Likewise.
5120 (_bfd_mips_elf_relocate_section): Likewise.
5121 (mips_elf_sort_hash_table): Only assert that have enough GOT
5122 space.
5123 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
5124 entry if the relocation based on the new external argument.
5125 (mips_elf_create_dynamic_relocation): Assert that we have a
5126 section contents allocated where we can swap out the dynamic
5127 relocations.
5128 (mips_elf_calculate_relocation): Find the real hash-table entry
5129 correctly by using h->root.root.type. Only create a dynamic
5130 relocation entry if the symbol is defined in a shared library.
5131 Create an external GOT entry for the GOT16 relocation if the
5132 symbol was forced local.
5133 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
5134 dynamic index if the symbol was forced local.
5135
5136 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5137
5138 * elf32-mips.c: Fix typos in comments.
5139
5140 2000-06-19 Mark Kettenis <kettenis@gnu.org>
5141
5142 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
5143 CORE_VERSION_1.
5144
5145 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5146
5147 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
5148 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
5149 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
5150 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
5151 (bfd_elf32_m68hc11_vec): Likewise.
5152 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
5153 Supports 68hc11 & 68hc12 at the same time.
5154 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
5155 bfd_target_vector.
5156 (bfd_elf32_m68hc11_vec): Likewise.
5157 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
5158 * archures.c (bfd_m68hc12_arch): Define and register in global list
5159 (bfd_m68hc11_arch): Likewise.
5160 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
5161 BFD_RELOC_M68HC11_3B): Define.
5162 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
5163 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
5164
5165 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
5166
5167 * elf_bfd.h (struct elf_backend_data): Add info argument to
5168 elf_backend_hide_symbol.
5169 (_bfd_elf_link_hash_hide_symbol): Likewise.
5170 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
5171 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
5172 * elflink.h (elf_link_add_object_symbols): Likewise.
5173 (elf_link_assign_sym_version): Likewise.
5174
5175 2000-06-18 H.J. Lu <hjl@gnu.org>
5176
5177 * coff-i386.c (coff_i386_reloc): Don't return in case of
5178 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
5179 Compensate PE relocations when linking with non-PE object
5180 files to generate a non-PE executable.
5181
5182 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
5183
5184 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
5185 GOT entries if we're doing a static link or -Bsymbolic link.
5186
5187 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
5188
5189 * elflink.h (elf_link_adjust_relocs): Check for and call backend
5190 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
5191 available.
5192 (elf_link_output_relocs): Likewise.
5193 (elf_reloc_link_order): Likewise.
5194
5195 2000-06-16 Nicholas Duffek <nsd@redhat.com>
5196
5197 * archures.c (enum bfd_architecture): #define constants for
5198 PowerPc and RS6000 machine numbers.
5199 * bfd-in2.h: Regenerate.
5200 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
5201 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
5202 and RS6000 machine numbers using #defined constants from
5203 archures.c.
5204 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
5205 machine numbers using #defined constants from archures.c. Add
5206 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
5207 64-bit words in 620 entry.
5208 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
5209 RSC, and RS2.
5210 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
5211
5212 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
5213
5214 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
5215 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
5216 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
5217
5218 2000-06-16 Nicholas Duffek <nsd@redhat.com>
5219
5220 * bfd-in.h (bfd_family_coff): Define.
5221 * bfd-in2.h: Regenerate.
5222 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
5223 coff_find_nearest_line): Check COFFness using bfd_family_coff()
5224 instead of bfd_target_coff_flavour.
5225 * cofflink.c (_bfd_coff_final_link): Likewise.
5226 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
5227 exclude XCOFF files.
5228 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5229 Likewise.
5230 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
5231 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
5232 * xcofflink.c (XCOFF_XVECP): Delete.
5233 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
5234 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
5235 bfd_xcoff_record_link_assignment,
5236 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
5237 check for bfd_target_xcoff_flavour.
5238
5239 2000-06-16 Nicholas Duffek <nsd@redhat.com>
5240
5241 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
5242 files on AIX 4.3.
5243 (read_hdr): New function.
5244 (rs6000coff_core_p): Store mstsave or __context64 struct instead
5245 of trying to extract individual registers. Set abfd->arch_info
5246 to match the architecture that created the core file.
5247 (rs6000coff_get_section_contents): Delete.
5248 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
5249
5250 2000-06-14 H.J. Lu <hjl@gnu.org>
5251
5252 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
5253 is NULL.
5254
5255 2000-06-13 H.J. Lu <hjl@gnu.org>
5256
5257 * configure: Regenerate.
5258
5259 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
5260
5261 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
5262 armpei_little_vec.
5263
5264 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5265
5266 * configure.in (VERSION): Update to show this is the CVS mainline.
5267
5268 2000-06-07 Alan Modra <alan@linuxcare.com.au>
5269
5270 * elf32-d10v.c: Include elf/d10v.h
5271 (enum reloc_type): Delete.
5272 * elf32-d30v.c: Include elf/d30v.h
5273 (enum reloc_type): Delete.
5274
5275 * Makefile.am: Run "make dep-am" to regenerate dependencies.
5276 * Makefile.in: Regenerate.
5277
5278 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
5279 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
5280 move HOWTOs into elf_howto_table.
5281 (R_386_standard, R_386_ext_offset): Define.
5282 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
5283 (elf_i386_reloc_type_lookup): Modify calculation of index into
5284 elf_howto_table since we've removed the padding.
5285 (elf_i386_info_to_howto_rel): Likewise.
5286 (elf_i386_relocate_section): Likewise.
5287
5288 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
5289
5290 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
5291
5292 2000-06-05 H.J. Lu <hjl@gnu.org>
5293
5294 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
5295 an error when seeing an undefined symbol with hidden/internal
5296 attribute. It is handled in *_relocate_section ().
5297
5298 2000-06-05 H.J. Lu <hjl@gnu.org>
5299
5300 * elflink.h (elf_fix_symbol_flags): Follow the link for the
5301 indirect symbol for the ELF_LINK_NON_ELF bit.
5302 (elf_link_output_extsym): Don't output the indirect symbol even
5303 if the ELF_LINK_NON_ELF bit is set.
5304
5305 2000-06-01 J.T. Conklin <jtc@redback.com>
5306
5307 * config.bfd (i[3456]86-*-netbsdelf*): New target.
5308 (i[3456]86-*-netbsdaout*): New target.
5309 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
5310 (i[3456]86-*-openbsd*): Likewise.
5311
5312 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
5313
5314 * trad-core.c: From hpux-core.c, include <dirent.h> or
5315 <sys/ndir.h> when possible.
5316
5317 2000-05-31 Ulrich Drepper <drepper@redhat.com>
5318
5319 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
5320 definitions. We must not assume they are sorted in the file
5321 according to their index numbers.
5322
5323 2000-05-31 Alan Modra <alan@linuxcare.com.au>
5324
5325 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
5326 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
5327 R_PARISC_DIR17F are for absolute branches; Handle them as such.
5328
5329 2000-05-30 Nick Clifton <nickc@cygnus.com>
5330
5331 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
5332 80960CA, 80960MC as valid machine names.
5333
5334 2000-05-30 H.J. Lu <hjl@gnu.org>
5335
5336 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
5337 visibility bits if the symbol is undefined. Correctly handle
5338 weak undefined symbols with hidden and internal attributes.
5339
5340 * elflink.h (elf_link_add_object_symbols): Always turn the
5341 symbol into local if it has the hidden or internal attribute.
5342
5343 2000-05-29 Philip Blundell <philb@gnu.org>
5344
5345 * ppcboot.c: Add packed attribute if compiling with GCC.
5346
5347 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
5348
5349 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
5350
5351 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
5352
5353 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
5354 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
5355 corefile on a 64-bit (Sparc Solaris) host. Also clean up
5356 a few old comments.
5357
5358 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5359
5360 * Makefile.am: Update dependencies with "make dep-am"
5361 * Makefile.in: Regenerate.
5362
5363 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
5364 bindtextdomain): Replace defines with those from intl/libgettext.h
5365 to quieten gcc warnings.
5366
5367 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5368
5369 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
5370
5371 * archive.c (normalize, bfd_bsd_truncate_arname,
5372 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
5373 file names with backslashes.
5374
5375 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
5376 before opening it.
5377
5378 * sysdep.h: Include filenames.h.
5379
5380 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5381
5382 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
5383
5384 2000-05-26 Jakub Jelinek <jakub@redhat.com>
5385
5386 * elf64-sparc.c (sparc64_elf_relax_section): New.
5387 (sparc64_elf_relocate_section): Optimize tail call into branch always
5388 if possible.
5389 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5390 (elf32_sparc_relax_section): New.
5391
5392 2000-05-26 Jakub Jelinek <jakub@redhat.com>
5393
5394 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
5395 Remove unusued variables.
5396 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
5397 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
5398 previous fix, so that shared libs really don't influence targets
5399 extension mask and memory model.
5400
5401 2000-05-23 H.J. Lu <hjl@gnu.org>
5402
5403 * elf64-alpha.c (elf64_alpha_relocate_section): Check
5404 h->root.other not h->other.
5405 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5406
5407 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
5408
5409 2000-05-23 H.J. Lu <hjl@gnu.org>
5410
5411 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
5412 undefined symbol with the non-default visibility attributes.
5413 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
5414 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5415 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5416 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5417 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5418 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5419 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5420 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5421 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5422 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
5423 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5424
5425 2000-05-22 Richard Henderson <rth@cygnus.com>
5426
5427 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
5428 PCREL22, PCREL64I. Zero size of special relocs.
5429 (elf64_ia64_reloc_type_lookup): Likewise.
5430 (USE_BRL, oor_brl, oor_ip): New.
5431 (elf64_ia64_relax_section): New.
5432 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
5433 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
5434 (elf64_ia64_relocate_section): Likewise.
5435 (bfd_elf64_bfd_relax_section): New.
5436 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
5437 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
5438 * bfd-in2.h, libbfd.h: Regenerate.
5439
5440 2000-05-22 Nick Clifton <nickc@cygnus.com>
5441
5442 * configure.in : Add peigen.lo to MIPS PE targets.
5443 * configure: Regenerate.
5444
5445 2000-05-22 Momchil Velikov <velco@fadata.bg>
5446
5447 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
5448 only if it is known for both input and output bfds. Separate
5449 error message strings as in some languages, it may be necessary
5450 to change more than one place in the string to change between
5451 'big' and 'little'.
5452
5453 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
5454 endianess checks, call _bfd_generic_verify_endian_match() instead.
5455
5456 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
5457
5458 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
5459
5460 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
5461 endianess before checking bfd flavours.
5462
5463 2000-05-22 H.J. Lu <hjl@gnu.org>
5464
5465 * elflink.h (elf_link_output_extsym): Clear the visibility
5466 field for symbols not defined locally.
5467
5468 2000-05-18 Alan Modra <alan@linuxcare.com.au>
5469
5470 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5471 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5472 (hppa_rebuild_insn): Mask immediate bits here instead.
5473 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5474
5475 2000-05-18 Momchil Velikov <velco@fadata.bg>
5476
5477 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
5478 relocs for an executable, ensure that they are virtual addresses.
5479
5480 2000-05-18 Jeffrey A Law (law@cygnus.com)
5481
5482 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
5483
5484 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5485 Rick Gorton <gorton@scrugs.lkg.dec.com>
5486
5487 * elflink.h: Add emitrelocations support: when enabled, relocation
5488 information and relocation sections are put into final output
5489 executables. If the emitrelocations flag is set, do the following:
5490 (elf_bfd_final_link): Emit relocation sections.
5491 (elf_link_input_bfd): Compute relocation section contents.
5492 (elf_gc_sections): Don't clean relocation sections.
5493
5494 2000-05-16 Catherine Moore <clm@cygnus.com>
5495
5496 * som.c (som_decode_symclass): Recognize weak symbols.
5497
5498 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
5499
5500 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
5501 read idata section only from dataoff.
5502 (pe_print_edata): Correctly check for valid eat_member.
5503
5504 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
5505
5506 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
5507
5508 2000-05-14 Philip Blundell <philb@gnu.org>
5509
5510 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
5511
5512 2000-05-12 Alan Modra <alan@linuxcare.com.au>
5513
5514 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
5515
5516 * peigen.c (pe_print_idata): Look for .idata section and print
5517 info even if data directory has zero entries. Read idata section
5518 starting from dataoff, and adjust all data offsets to suit. Cast
5519 all bfd_vma vars to unsigned long before passing to fprintf.
5520 * peigen.c (pe_print_edata): Similarly, look for .edata section
5521 and print info even if data directory has zero entries. Cast
5522 all bfd_vma vars to unsigned long before passing to fprintf.
5523
5524 From Szabolcs Szakacsits <szaka@F-Secure.com>
5525 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
5526 directory size which may be bogus.
5527 * peigen.c (pe_print_edata): Similarly.
5528
5529 2000-05-09 Alan Modra <alan@linuxcare.com.au>
5530
5531 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
5532 section is empty.
5533 (copy_private_bfd_data): Allow for space possibly taken up by elf
5534 headers when calculating segment physical address from lma.
5535
5536 2000-05-08 Alan Modra <alan@linuxcare.com.au>
5537
5538 * versados.c (versados_scan): Init stringlen and pass_2_done.
5539
5540 * trad-core.c (trad_unix_core_file_p): Return
5541 bfd_error_wrong_format rather than bfd_error_file_truncated.
5542
5543 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
5544 add_data_entry. DataDirectory virtual address is relative.
5545 (pe_print_idata): Account for relative DataDirectory virtual
5546 addresses. Don't trash datasize inside POWERPC_LE_PE code.
5547 (pe_print_edata): Similarly.
5548
5549 From Szabolcs Szakacsits <szaka@F-Secure.com>
5550 * peigen.c (dir_names): Add Delay Import Directory.
5551 (pe_print_idata): Always search for bfd section containing
5552 idata address rather than looking up section name. Print this
5553 section name rather than .idata.
5554 (pe_print_edata): Similarly. Also print some fields as %08lx.
5555 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
5556 Win32Version.
5557
5558 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5559
5560 * xcoff.h: Rename to xcoff-target.h
5561 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
5562 * coff-rs6000.c: Ditto.
5563 * coff64-rs6000.c: Ditto.
5564 * coff-pmac.c: Ditto.
5565 * Makefile.in: Regenerate.
5566
5567 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5568
5569 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
5570 Change U802TOC64MAGIC to U803XTOCMAGIC.
5571
5572 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
5573
5574 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
5575 * bfd-in.h: Prototype bfd_elf_get_arch_size.
5576 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
5577
5578 2000-05-04 Alan Modra <alan@linuxcare.com.au>
5579
5580 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
5581
5582 2000-05-03 Martin v. L\81öwis <loewis@informatik.hu-berlin.de>
5583
5584 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
5585 hidden and internal symbols.
5586 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
5587 visibility.
5588 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
5589 assign a PLT or GOT entry to symbols with hidden and
5590 internal visibility.
5591
5592 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
5593
5594 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
5595 the .bss section.
5596 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
5597
5598 2000-05-02 H.J. Lu <hjl@gnu.org>
5599
5600 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
5601 ELFOSABI_SYSV.
5602
5603 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5604
5605 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
5606 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
5607 dependencies.
5608 * Makefile.in: Regenerate.
5609
5610 2000-05-01 Jim Wilson <wilson@cygnus.com>
5611
5612 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
5613 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
5614 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
5615 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
5616 * Makefile.in: Rebuild.
5617
5618 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5619
5620 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
5621 doesn't work very well.
5622
5623 * elf-hppa.h (elf_hppa_internal_shdr): Define.
5624 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
5625 Set hdr->s_type to 1 if ARCH_SIZE == 32.
5626 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
5627 (elf_hppa_info_to_howto): Likewise.
5628 (elf_hppa_info_to_howto_rel): Likewise.
5629 (elf_hppa_reloc_type_lookup): Likewise.
5630 (elf_hppa_is_local_label_name): Likewise.
5631 (elf_hppa_fake_sections): Likewise.
5632 (elf_hppa_final_write_processing): Likewise.
5633 (elf_hppa_howto_table): Fully initialise all entries.
5634 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
5635 (elf_hppa_info_to_howto): Likewise.
5636 (elf_hppa_info_to_howto_rel): Likewise.
5637 (elf_hppa_reloc_type_lookup): Likewise.
5638 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
5639 elf_hppa_unmark_useless_dynamic_symbols,
5640 elf_hppa_remark_useless_dynamic_symbols,
5641 elf_hppa_record_segment_addrs, elf_hppa_final_link,
5642 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
5643 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
5644 elf32-hppa.c mess is cleaned up.
5645 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
5646 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
5647 r_field then call hppa_field_adjust inline func with variable
5648 r_field arg, instead call hppa_field_adjust with fixed arg.
5649 In case R_PARISC_PCREL22F, don't set r_field.
5650 (elf_hppa_relocate_insn): Change args and return type to unsigned
5651 int. Call re_assemble_* funcs to do the work.
5652
5653 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
5654 sign extending.
5655
5656 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
5657 extending.
5658 (sign_extend): Mask first before sign extending.
5659 (low_sign_extend): Rewrite without condition expression.
5660 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
5661 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
5662 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5663 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
5664 result as function return value rather than through pointer arg.
5665 Accept unsigned int args, and return unsigned int.
5666 (re_assemble_3): New. Combines function of dis_assemble_3 with
5667 re-assembly of opcode and immediate.
5668 (re_assemble_12): Likewise.
5669 (re_assemble_16): Likewise.
5670 (re_assemble_17): Likewise.
5671 (re_assemble_21): Likewise.
5672 (re_assemble_22): Likewise.
5673 (hppa_field_adjust): Rewrite and document, paying attention to
5674 size of types and signed/unsigned issues.
5675 (get_opcode): Shift before masking.
5676 (FDLW): Rename to FLDW.
5677 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
5678 (hppa_rebuild_insn): Change args and return value to unsigned
5679 int. Make use of re_assemble_*. Correct case 11.
5680
5681 * dep-in.sed: Handle ../opcodes/.
5682 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
5683 elf64-hppa.h, hppa_stubs.h, xcoff.h.
5684 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
5685 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
5686 elfarm-nabi.lo dependencies outside of auto-dependency area.
5687 Regenerate dependencies.
5688 * Makefile.in: Regenerate.
5689
5690 * configure.in (TRAD_HEADER): Test non-null before
5691 AC_DEFINE_UNQUOTED.
5692 * configure: Regenerate.
5693
5694 * reloc.c: Fix mis-spelling in comment.
5695
5696 2000-05-01 Alan Modra <alan@linuxcare.com.au>
5697
5698 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
5699 * vms.c (vms_openr_next_archived_file): Return NULL.
5700
5701 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5702
5703 * coffcode.h Copy changes mistakenly done to libcoff.h in
5704 4/24/2000 patch.
5705
5706 2000-04-29 Andreas Jaeger <aj@suse.de>
5707
5708 * libbfd-in.h: Correctly check GCC version.
5709 * bfd-in.h: Likewise.
5710 * libhppa.h: Likewise.
5711 * libbfd.h: Regenerate.
5712 * bfd-in2.h: Regenerate.
5713
5714 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5715
5716 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
5717 coffdu-rs6000.{lo,c}.
5718 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
5719 on xcoff.h
5720 * Makefile.in: Regenerate.
5721 * xcoff.h: New file.
5722 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
5723 * coff-rs6000.c: Move all declarations and defines that are
5724 common to the xcoff backends into xcoff.h
5725 * coff64-rs6000.c: Ditto,
5726
5727 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5728
5729 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
5730 _bfd_coff_force_symnames in strings and
5731 _bfd_coff_debug_string_prefix_length to their default values.
5732 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
5733
5734 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5735
5736 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
5737 _bfd_coff_force_symnames in strings and
5738 _bfd_coff_debug_string_prefix_length to their default values.
5739
5740 2000-04-27 Alan Modra <alan@linuxcare.com.au>
5741
5742 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
5743 Check local_got_refcounts before dereferencing.
5744
5745 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
5746 before deciding we don't need R_PPC_PLT32 relocation.
5747 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
5748 dereferencing.
5749
5750 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
5751
5752 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
5753 .plt entries.
5754 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
5755 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
5756 (elf_i386_relocate_section): Allow for .plt to go missing.
5757 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
5758 can use a relative reloc for got as elf_i386_relocate_section.
5759 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
5760
5761 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
5762
5763 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
5764
5765 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
5766
5767 * Makefile.am (coff64-rs6000.lo): New rule.
5768 * Makefile.in: Regenerate.
5769 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
5770 xcoff_is_local_label_name, xcoff_rtype2howto,
5771 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
5772 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
5773 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
5774 (NO_COFF_SYMBOLS): Define.
5775 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
5776 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
5777 internally.
5778 (MINUS_ONE): New macro.
5779 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
5780 relocation.
5781 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
5782 coff_SWAP_aux_out): Map to the new functions.
5783 * coff64-rs6000.c: New file.
5784 * libcoff.h (bfd_coff_backend_data): Add new fields
5785 _bfd_coff_force_symnames_in_strings and
5786 _bfd_coff_debug_string_prefix_length.
5787 (bfd_coff_force_symnames_in_strings,
5788 bfd_coff_debug_string_prefix_length): New macros for above fields.
5789 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
5790 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
5791 of using coff_swap_sym_in directly.
5792 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
5793 (coff_set_flags) Set magic for XCOFF64.
5794 (coff_compute_section_file_positions): Add symbol name length to
5795 string section length if bfd_coff_debug_string_prefix_length is
5796 true.
5797 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
5798 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
5799 using coff_swap_lineno_in directly.
5800 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
5801 and _bfd_coff_debug_string_prefix_length fields.
5802 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
5803 symbol names into strings table when
5804 bfd_coff_force_symnames_in_strings is true.
5805 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
5806 SET_RELOC_VADDR): New macros.
5807 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
5808 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
5809 code.
5810 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
5811 changes within RS6000COFF_C specific code.
5812 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
5813 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
5814 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5815 Extend existing hack on target name.
5816 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
5817 target name.
5818 * coff-tic54x.c (ticof): Keep up to date with new fields
5819 in bfd_coff_backend_data.
5820 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
5821 targ_selvecs to include rs6000coff64_vec for rs6000.
5822 * configure.in: Add rs6000coff64_vec case.
5823 * cpu-powerpc.c: New bfd_arch_info_type.
5824
5825 2000-04-24 Jeffrey A Law (law@cygnus.com)
5826
5827 * config.bfd: Only disable elf32-hppa vectors, not all of the
5828 BSD and OSF configuration support. Provide (disabled) clauses
5829 for PA64 support.
5830 * configure.in: Add clause for PA64 support.
5831 * configure: Rebuilt.
5832
5833 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
5834 (bfd_elf64_hppa_vec): Declare.
5835
5836 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
5837 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
5838 (elf64-hppa.lo): Add dependencies.
5839 * Makefile.in: Rebuilt.
5840
5841 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
5842
5843 2000-04-24 Jason Eckhardt <jle@cygnus.com>
5844
5845 * libhppa.h (dis_assemble_16): New function.
5846 (pa_arch): Added pa20w element.
5847
5848 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
5849
5850 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
5851 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
5852 bfd_elf64_slurp_reloc_table.
5853
5854 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
5855 definitions to get external names.
5856 (elf_write_relocs): Renamed from write_relocs and make global.
5857 (elf_slurp_reloc_table): Make global.
5858 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
5859
5860 * archive.c (hpux_uid_gid_encode): New function.
5861 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
5862 defined and the ID is greater than 99999.
5863 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
5864 special uid/gid fields into 32 bit values.
5865
5866 2000-04-21 Matthew Green <mrg@cygnus.com>
5867
5868 * config.bfd: Add NetBSD/sparc64 support.
5869
5870 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
5871 David Mosberger <davidm@hpl.hp.com>
5872 Timothy Wall <twall@cygnus.com>
5873 Jim Wilson <wilson@cygnus.com>
5874
5875 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
5876 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
5877 (BFD64_BACKENDS): Add elf64-ia64.lo.
5878 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
5879 (cpu-ia64.lo, elf64-ia64.lo): New rules.
5880 * Makefile.in: Rebuild.
5881 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
5882 (bfd_ia64_arch): Declare.
5883 (bfd_archures_list): Add bfd_ia64_arch.
5884 * bfd-in2.h: Rebuild.
5885 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
5886 * configure: Rebuild.
5887 * configure.host: (ia64-*-linux*): New host.
5888 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
5889 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
5890 * elf.c (prep_headers): Add bfd_arch_ia64.
5891 * libbfd.h: Rebuild.
5892 * reloc.c: Add IA-64 relocations.
5893 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
5894 Declare.
5895 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
5896 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
5897
5898 2000-04-21 Richard Henderson <rth@cygnus.com>
5899
5900 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
5901 contents when performing a partial link.
5902 (bfd_elf_d30v_reloc_21): Likewise.
5903
5904 2000-04-20 H.J. Lu <hjl@gnu.org>
5905
5906 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
5907 patch to symbols defined by a shared object.
5908 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
5909
5910 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5911
5912 K&R compiler fixes.
5913 * dwarf2.c (concat_filename): Avoid string literal concatenation.
5914 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
5915
5916 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
5917
5918 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
5919 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
5920 (coff-ia64.lo): Add dependency.
5921 * Makefile.in: Regenerate.
5922 * coff-ia64.c: New file.
5923 * efi-app-ia32.c: Ditto.
5924 * efi-app-ia64.c: Ditto.
5925 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
5926 (coff_set_flags): Ditto.
5927 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
5928 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
5929 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
5930 * configure: Regenerate.
5931 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
5932 (PUT_OPTHDR_IMAGE_BASE): Ditto.
5933 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5934 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5935 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5936 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5937 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5938 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5939 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5940 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5941 (GET_PDATA_ENTRY): Ditto.
5942 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
5943 data_start. Use above macros to read fields that are 64 bit wide for
5944 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
5945 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
5946 FileAlignment and SectionAlignment to minimum alignment if they
5947 are zero.
5948 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
5949 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
5950 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
5951 Use above macros to write fields that are 64 bit wide for
5952 COFF_WITH_PEP64.
5953 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5954 5*4 otherwise. This should be right for IA-32 and IA-64, but may
5955 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
5956 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
5957 begin address, end address, and unwind info address only. Use
5958 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
5959 print addresses.
5960 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
5961 HIGH3ADJ relocation names.
5962 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
5963 * targets.c: Declare bfd_efi_app_ia32_vec and
5964 bfd_efi_app_ia64_vec.
5965 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
5966 bfd_efi_app_ia64_vec.
5967
5968 2000-04-17 Timothy Wall <twall@cygnus.com>
5969
5970 * bfd-in2.h: Add prototypes for tic54x load page access.
5971 * bfd-in.h: Regenerate.
5972 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
5973 in customized _set_arch_mach function.
5974 * coffcode.h (coff_set_alignment_hook): Set section load page if
5975 the appropriate macro is defined.
5976 (write_object_contents): Read section load page.
5977
5978 2000-04-13 Alan Modra <alan@linuxcare.com.au>
5979
5980 * elf32-hppa.h: Update copyright date.
5981
5982 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
5983 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
5984
5985 * elf32-d30v.c (MAX32): Don't use LL suffix.
5986 (MIN32): Define in terms of MAX32.
5987 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
5988
5989 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5990 expression.
5991
5992 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5993
5994 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5995
5996 * dep-in.sed: Match space before file name, not after.
5997 * Makefile.am: Regenerate dependencies.
5998 * Makefile.in: Regenerate.
5999
6000 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
6001 case, allow address wrap-around stupidly removed 2000-03-17. Sign
6002 extend without an if statement.
6003
6004 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6005
6006 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
6007 signed quantites.
6008 * elf32-mips.c (gprel16_with_gp): Likewise.
6009 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
6010 here using -0x40000, not (int)0xfffc0000.
6011 (elf32_hppa_size_of_stub): Likewise.
6012
6013 2000-04-11 Timothy Wall <twall@cygnus.com>
6014
6015 * coff-tic54x.c: Now builds with all targets.
6016 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
6017 * Makefile.in: Regenerate.
6018 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
6019 unitialized variable.
6020
6021 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6022
6023 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6024 --enable-build-warnings option.
6025 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6026 * Makefile.in, configure: Re-generate.
6027
6028 2000-04-07 Nick Clifton <nickc@cygnus.com>
6029
6030 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
6031 BFD_RELOC_THUMB_PCREL_BLX.
6032
6033 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
6034 R_ARM_XPC25 and R_ARM_THM_PC22.
6035
6036 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
6037 R_ARM_XPC25 and R_ARM_THM_XPC22.
6038 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
6039 R_ARM_[XPC25|THM_XPC22].
6040
6041 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
6042 elf/arm-oabi.h to elf/arm.h
6043
6044 * Makefile.am: Fix dependency for elfarm-oabi.c
6045 * Makefile.in: Regenerate.
6046
6047 * bfd-in2.h: Regenerate.
6048 * libbfd.h: Regenerate.
6049
6050 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6051
6052 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
6053 and restore it on failure. Release newly allocated tdata on
6054 failure.
6055
6056 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
6057
6058 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
6059 (decode_line_info): Set it. Report error if unit->line_offset is
6060 equal to or larger than it.
6061
6062 2000-04-07 Timothy Wall <twall@cygnus.com>
6063
6064 * targets.c: Added vecs for tic54x.
6065 * reloc.c: Added relocs for tic54x.
6066 * libbfd.h: Regenerated.
6067 * configure: Add TI COFF vecs for tic54x.
6068 * configure.in: Ditto.
6069 * config.bfd (targ_cpu): Recognize new tic54x target.
6070 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
6071 * bfd-in2.h: Add tic54x target and relocations.
6072 * Makefile.am, Makefile.in: Add tic54x target.
6073 * archures.c (bfd_archures_list): Add tic54x target.
6074 * coff-tic54x.c: New.
6075 * cpu-tic54x.c: New.
6076
6077 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6078
6079 * elfcore.h (elf_core_file_p): call backend_object_p which
6080 thereby gets an opportunity to update the arch/machine type.
6081
6082 2000-04-06 Timothy Wall <twall@cygnus.com>
6083
6084 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
6085 class. Handle SEC_CLINK and SEC_BLOCK flags.
6086 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
6087 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
6088
6089 2000-04-06 Nick Clifton <nickc@cygnus.com>
6090
6091 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
6092 EF_INTERWORK if this is an unknown EABI.
6093 (elf32_arm_merge_private_bfd_data): Check EABI version
6094 numbers. Only check EF_xxx flags if the EABI version number
6095 is unknown.
6096 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
6097 if the EABI version number is unknown.
6098 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
6099 if the EABI version number is unknown.
6100
6101 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6102
6103 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
6104 BFD_RELOC_SH_LOOP_END.
6105 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
6106 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
6107 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
6108 (sh_elf_reloc_loop): New function.
6109 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
6110 any more.
6111 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
6112 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
6113 * bfd-in2.h, libbfd.h: Regenerate.
6114
6115 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6116
6117 * po/bfd.pot: Regenerate.
6118
6119 * Makefile.am: Remove extraneous mkdep comment.
6120 (MKDEP): Use gcc -MM rather than mkdep.
6121 (DEP): Quote when passing vars to sub-make. Add warning
6122 message to end.
6123 (DEP1): Rewrite for "gcc -MM".
6124 (CLEANFILES): Add DEP2.
6125 Update dependencies.
6126 * Makefile.in: Regenerate.
6127
6128 2000-04-03 Kevin Buettner <kevinb@redhat.com>
6129
6130 * configure.in: Added corefile support for AIX 4.3. In particular,
6131 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
6132 compiling rs6000-core.c.
6133 * configure: Regenerated.
6134
6135 2000-04-03 H.J. Lu <hjl@gnu.org>
6136
6137 * cache.c (bfd_open_file): Unlink the output file only if
6138 it has non-zero size.
6139
6140 2000-04-01 Ken Block USG <block@zk3.dec.com>
6141
6142 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
6143 relative relocations for non-loaded sections in shared objects.
6144 (elf64_alpha_check_relocs): Similarly.
6145
6146 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
6147
6148 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
6149 BFD_RELOC_16 to switch for extended relocs.
6150 (MY_swap_ext_reloc_in): New.
6151 (MY_swap_ext_reloc_out): New.
6152 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
6153 than NAME(aout,swap_ext_reloc_in) for extended relocs.
6154 (NAME(aout,squirt_out_relocs)): Similarly use
6155 MY_swap_ext_reloc_out.
6156 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
6157
6158 2000-04-03 Kazu Hirata <kazu@hxi.com>
6159
6160 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
6161 the R_PCRWORD_B case.
6162
6163 2000-03-31 Thomas de Lellis <tdel@wrs.com>
6164
6165 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
6166 on some targets.
6167 * ihex.c : Ditto.
6168
6169 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
6170
6171 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
6172 HOWTO references to bfd_elf_generic_reloc, that have
6173 partial_inplace == true, now use the new function. The function
6174 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
6175 extends its fixes to the R_M32R_{16,24,32} relocs.
6176 The new logic in m32r_elf_lo16_reloc() has been removed, and
6177 it instead calls the new routine to obtain that functionality.
6178
6179 2000-03-27 Alan Modra <alan@linuxcare.com.au>
6180
6181 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
6182 elf32_avr_check_relocs, avr_final_link_relocate,
6183 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
6184 elf32_avr_object_p): Add prototypes.
6185 (elf32_avr_gc_mark_hook): Add default for h->root.type.
6186 (bfd_elf_avr_final_write_processing): Make static.
6187
6188 2000-03-27 Denis Chertykov <denisc@overta.ru>
6189
6190 * cpu-avr.c: New file. BFD support routines for AVR architecture.
6191 * archures.c (bfd_architecture): Add AVR architecture.
6192 (bfd_archures_list): Add reference to AVR architecture info.
6193 * elf.c (prep_headers): Handle bfd_arch_avr.
6194 * reloc.c: Add various AVR relocation enums.
6195 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
6196 list.
6197 * Makefile.am: Add support for AVR elf.
6198 * configure.in: Likewise.
6199 * config.bfd: Likewise.
6200 * Makefile.in: Regenerate.
6201 * configure: This too.
6202 * bfd-in2.h: And this.
6203 * libbfd.h: And this.
6204
6205 2000-03-24 H.J. Lu <hjl@gnu.org>
6206
6207 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
6208 (elf64_alpha_find_reloc_at_ofs): Likewise.
6209
6210 2000-03-17 Alan Modra <alan@linuxcare.com.au>
6211
6212 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
6213 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
6214 allowable range used to be -2**(n-1) to 2**n-1.
6215 * reloc.c (_bfd_relocate_contents): Same here. Also replace
6216 "boolean overflow" with "bfd_reloc_status_type flag".
6217
6218 2000-03-14 Doug Evans <dje@casey.transmeta.com>
6219
6220 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
6221
6222 2000-03-14 Kazu Hirata <kazu@hxi.com>
6223
6224 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
6225 of shrinks properly, including the last reloc.
6226
6227 2000-03-13 Kazu Hirata <kazu@hxi.com>
6228
6229 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
6230 check for R_MOVL2.
6231
6232 2000-03-11 Alan Modra <alan@linuxcare.com.au>
6233
6234 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
6235 a format mismatch rather than an "error" from bfd_read such as
6236 bfd_error_file_truncated.
6237
6238 2000-03-10 Geoff Keating <geoffk@cygnus.com>
6239
6240 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
6241 sign-extension and big-endian compensation for
6242 R_MIPS_64 even in ld -r.
6243
6244 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
6245
6246 * elf32-mips.c (mips_elf_next_relocation): Rename from
6247 mips_elf_next_lo16_relocation, and generalize to look
6248 for any relocation type.
6249 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
6250 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
6251 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
6252 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
6253 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
6254 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
6255 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
6256 (mips_rtype_to_howto): Likewise.
6257 (mips_elf_calculate_relocation): Handle new relocs.
6258 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
6259 are paired. The addend for R_MIPS_GNU_REL16_S2
6260 is shifted right two bits.
6261
6262 2000-03-10 Alan Modra <alan@linuxcare.com.au>
6263
6264 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
6265 comment, and ensure it doesn't happen again.
6266 (bfd_install_relocation): Same here.
6267 (_bfd_relocate_contents): Don't bother assigning unused signmask
6268 shift result. Fix typos in comments.
6269 Remove trailing whitespace throughout file.
6270
6271 2000-03-07 Doug Evans <dje@casey.transmeta.com>
6272
6273 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
6274 * bfd-in2.h: Rebuild.
6275
6276 2000-03-06 Nick Clifton <nickc@cygnus.com>
6277
6278 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
6279 sym_ptr_ptr fields.
6280 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
6281 (SIZEOF_ILF_STRINGS): Redefine.
6282 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
6283 relative reloc, as opposed to a section relative reloc.
6284 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
6285 not C_LABEL.
6286 Add length of symbol's prefix to string pointer.
6287 Store a pointer to the symbol in the symbol pointer table.
6288 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
6289 Initialise the symbol pointer table.
6290 Store the hint in the Hint/Name table.
6291 Make the jump reloc be symbol realtive, not section relative.
6292 Create an import symbol for imported code.
6293
6294 2000-03-06 Catherine Moore <clm@cygnus.com>
6295
6296 * elf.c (swap_out_syms): Check for null type_ptr.
6297
6298 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
6299
6300 * aout-target.h (MY(write_object_contents)): Remove unused
6301 and unusable "#if CHOOSE_RELOC_SIZE".
6302 * pc532-mach.c (MY(write_object_contents)): Ditto.
6303 * netbsd.h (MY(write_object_contents)): Ditto.
6304 * hp300hpux.c (MY(write_object_contents)): Ditto.
6305 * freebsd.h (MY(write_object_contents)): Ditto.
6306 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
6307
6308 2000-02-29 H.J. Lu <hjl@gnu.org>
6309
6310 * peicode.h (jtab): Make it static.
6311
6312 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
6313 defined and COFF_IMAGE_WITH_PE is not defined.
6314 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
6315 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
6316
6317 2000-03-01 Nick Clifton <nickc@cygnus.com>
6318
6319 * coff-arm.c (bfd_arm_process_before_allocation): Make
6320 'symndx' signed to prevent compile time warning.
6321
6322 * coff-mcore.c: Remove unused prototype for pe_object_p.
6323
6324 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
6325 functions that are not used when COFF_IMAGE_WITH_PE is
6326 defined.
6327 (struct sh_opcode): Change type of 'flags' field to unsigned
6328 long so that it can hold the USESAS flag.
6329
6330 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
6331
6332 * elf-m10300.c (mn10300_elf_relax_section): Initialise
6333 'sym_sec'.
6334
6335 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
6336 parameters.
6337 Remove unusued variables and code.
6338 (elf_backend_add_symbol_hook): Fix prototype.
6339
6340 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
6341 'srelgot'.
6342
6343 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
6344 'oldinst'.
6345
6346 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
6347 parameters.
6348 Remove unusued variables and code.
6349 (elf_backend_add_symbol_hook): Fix prototype.
6350
6351 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
6352
6353 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
6354 to unused function parameter.
6355
6356 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
6357 parameters.
6358 Use EMPTY_HOWTO to initialise empty howto slots.
6359 Remove unused variables.
6360
6361 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
6362
6363 2000-03-01 H.J. Lu <hjl@gnu.org>
6364
6365 * aoutx.h (aout_link_input_section_std): Pass "true" to
6366 the undefined_symbol callback.
6367 (aout_link_input_section_ext): Likewise.
6368 * bout.c (get_value): Likewise.
6369 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
6370 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
6371 Likewise.
6372 (alpha_relocate_section): Likewise.
6373 * coff-arm.c (coff_arm_relocate_section): Likewise.
6374 * coff-i960.c (coff_i960_relocate_section): Likewise.
6375 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
6376 * coff-mips.c (mips_relocate_section): Likewise.
6377 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
6378 * coff-sh.c (sh_relocate_section): Likewise.
6379 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
6380 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
6381 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
6382 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
6383 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
6384 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
6385 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
6386 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6387 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
6388 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6389 * elf32-sh.c (sh_elf_relocate_section): Likewise.
6390 * elf32-v850.c (v850_elf_relocate_section): Likewise.
6391 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
6392 * elflink.h (elf_link_output_extsym): Likewise.
6393 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
6394 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
6395 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
6396
6397 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
6398 undefined_symbol callback when building shared library with
6399 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
6400 "true".
6401 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6402 * elf32-i386.c (elf_i386_relocate_section): Likewise.
6403 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6404 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6405 (elf32_mips_get_relocated_section_content): Likewise.
6406 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6407 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6408 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6409 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6410
6411 2000-02-28 Nick Clifton <nickc@cygnus.com>
6412
6413 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
6414 * Makefile.in: Regenerate.
6415
6416 * configure.in: Add support for mips and sh pe vectors.
6417 * configure: regenerate.
6418
6419 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
6420 targets.
6421
6422 * targets.c: Add mips and sh pe vectors.
6423
6424 * libpei.h (coff_final_link_postscript): Only define if not
6425 already defined.
6426
6427 * coffcode.h: Add support for WinCE magic numbers.
6428
6429 * peigen.c (pe_print_reloc): Update comment and rearrange
6430 appending of newline character.
6431
6432 * peicode.h: Add support for Image Library Format.
6433 (pe_ILF_vars): Structure containing data used by ILF code.
6434 (pe_ILF_make_a_section): New function. Create a section based
6435 on ILF data.
6436 (pe_ILF_make_a_reloc): New function. Create a reloc based on
6437 ILF data.
6438 (pe_ILF_make_a_symbol): New function. Create a symbol based
6439 on ILF data.
6440 (pe_ILF_save_relocs): New function. Store the relocs created
6441 by pe_ILF_make_a_reloc in a section.
6442 (pe_ILF_build_a_bfd): New function. Create a BFD describing
6443 an ILF object.
6444 (pe_ILF_object_p): New function. Return a bfd_target pointer
6445 for an ILF object.
6446 (pe_bfd_object_p): If an ILF object is detected call
6447 pe_ILF_object_p on it.
6448
6449 * coff-arm.c: Add support for WinCE relocs which are different
6450 from normal ARM COFF relocs.
6451 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
6452
6453 * coff-sh.c: Add support for sh-pe target.
6454 * pe-sh.c: New file. Support code for sh-pe target.
6455 * pei-sh.c: New file. Support code for sh-pe target.
6456
6457 * pe-mips.c: New file. Support code for mips-pe target.
6458 * pei-mips.c: New file. Support code for mips-pe target.
6459
6460 2000-02-27 Jakub Jelinek <jakub@redhat.com>
6461
6462 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
6463 architecture if the object causing the bump is dynamic.
6464 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
6465 and also don't it for memory ordering.
6466 (sparc64_elf_write_relocs): Take src_rela out of the loop.
6467
6468 2000-02-27 Ian Lance Taylor <ian@zembu.com>
6469
6470 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
6471 calling bfd_get_section_size_before_reloc.
6472 (decode_line_info): Likewise.
6473 (_bfd_dwarf2_find_nearest_line): Likewise.
6474
6475 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
6476
6477 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
6478 name of the libtool directory.
6479 * Makefile.in: Rebuild.
6480
6481 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
6482
6483 * som.c (SOM_HOWTO): Define.
6484 (som_hppa_howto_table): Use it.
6485
6486 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6487
6488 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
6489
6490 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
6491
6492 2000-02-24 Catherine Moore <clm@cygnus.com>
6493
6494 * som.c (som_misc_symbol_info): Add field
6495 secondary_def.
6496 (som_bfd_derive_misc_symbol_info): Initialize
6497 secondary_def.
6498 (som_build_and_write_symbol_table): Keep track
6499 of secondary_def field.
6500 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
6501 if secondary_def field is set.
6502 (som_bfd_ar_write_symbol_stuff): Initialize
6503 secondary_def.
6504
6505 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
6506
6507 * dwarf2.c (read_address): Read 16-bits addresses.
6508 (parse_comp_unit): Accept addr_size == 2.
6509
6510 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6511
6512 * bfd-in.h: Update copyright date.
6513
6514 2000-02-23 Linas Vepstas <linas@linas.org>
6515
6516 * cpu-i370.c: New file.
6517 * elf32-i370.c: New file.
6518 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
6519 (bfd_i370_arch): New.
6520 (bfd_archures_list): Add bfd_i370_arch.
6521 * elf.c (prep_headers): Add bfd_arch_i370.
6522 * Makefile.am: Add support for IBM 370 elf.
6523 * config.bfd: Likewise.
6524 * configure.in: Likewise.
6525 * libbfd.h (bfd_reloc_code_real_names): Likewise.
6526 * reloc.c (bfd_reloc_code_type): Likewise.
6527 * targets.c: Likewise.
6528
6529 * Makefile.in: Regenerate.
6530 * configure: Regenerate.
6531 * bfd-in2.h: Regenerate.
6532
6533 2000-02-22 Ian Lance Taylor <ian@zembu.com>
6534
6535 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
6536 invalid relocation types, and change them to R_386_NONE.
6537
6538 2000-02-22 H.J. Lu <hjl@gnu.org>
6539
6540 * elflink.h (elf_link_add_object_symbols): If a version symbol is
6541 not defined, don't add a second ELF_VER_CHR.
6542
6543 * elflink.h (elf_bfd_final_link): Call output_extsym for global
6544 symbols converted to local symbols even when stripping all
6545 symbols.
6546 (elf_link_output_extsym): Process global symbols converted to
6547 local symbols even if they are being stripped.
6548
6549 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6550
6551 * archures.c (bfd_octets_per_byte): Return unsigned int.
6552 (bfd_arch_mach_octets_per_byte): Ditto.
6553 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
6554 comparison warning.
6555 * section.c (bfd_get_section_size_before_reloc): Quell signed
6556 vs. unsigned comparison warning.
6557 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
6558 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
6559 change. What was I thinking?
6560 * bfd-in2.h: Regenerate.
6561
6562 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
6563 (elf_gc_sections): Same here.
6564 (elf_gc_common_finalize_got_offsets): And here.
6565
6566 2000-02-21 Ian Lance Taylor <ian@zembu.com>
6567
6568 ELF HPPA doesn't work at present; remove it until it does.
6569 * config.bfd: Comment out setting targ_defvec to
6570 bfd_elf32_hppa_vec.
6571 * Makefile.am: Rebuild dependencies.
6572 (BFD32_BACKENDS): Remove elf32-hppa.lo.
6573 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
6574 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
6575 * Makefile.in: Rebuild.
6576 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
6577
6578 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6579
6580 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
6581 is no bfd_free(). Revert bfd_free part of previous change.
6582
6583 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6584
6585 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
6586 arrays.
6587 (coff_compute_section_file_positions): Use bfd_free to pair
6588 bfd_malloc.
6589 (coff_write_object_contents): Likewise.
6590
6591 * coff-rs6000.c (xcoff_howto_table_16): New variable.
6592 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
6593
6594 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
6595
6596 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
6597 (xcoff_ar_file_hdr_big): New structure.
6598 (SIZEOF_AR_FILE_HDR_BIG): New macro.
6599 (xcoff_ar_hdr_big): New structure.
6600 (SIZEOF_AR_HDR_BIG): New macro.
6601 (xcoff_big_format_p): New macro.
6602 (xcoff_ardata_big): New macro.
6603 (arch_xhdr_big): New macro.
6604 (xcoff_slurp_armap): Handle large archives.
6605 (xcoff_archive_p): Detect large archives.
6606 (xcoff_read_ar_hdr): Handle large archives.
6607 (xcoff_openr_next_archived_file): Handle large archives.
6608 (xcoff_generic_stat_arch_elt): Handle large archives.
6609 (xcoff_write_armap_old): Rename from xcoff_write_armap.
6610 (xcoff_write_armap_big): New function.
6611 (xcoff_write_armap): New function, dispatch to _old or _big.
6612 (xcoff_write_archive_contents_old): Rename from
6613 xcoff_write_archive_contents.
6614 (xcoff_write_archive_contents_big): New function.
6615 (xcoff_write_archive_contents): New function, dispatch to _old or
6616 _big.
6617
6618 2000-02-18 Richard Henderson <rth@cygnus.com>
6619
6620 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
6621 and hide_symbol members.
6622 (elf_link_hash_copy_indirect): Remove.
6623 (elf_link_hash_hide_symbol): Remove.
6624 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
6625 and elf_backend_hide_symbol.
6626 (_bfd_elf_link_hash_copy_indirect): Declare.
6627 (_bfd_elf_link_hash_hide_symbol): Declare.
6628 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
6629 (_bfd_elf_link_hash_hide_symbol): Likewise.
6630 (_bfd_elf_link_hash_table_init): Don't init killed members.
6631 * elflink.h (elf_link_add_object_symbols): Use the bed function
6632 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
6633 (elf_link_assign_sym_version): Likewise.
6634 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
6635 (elf_backend_hide_symbol): Likewise.
6636 (elfNN_bed): Update for new members.
6637
6638 2000-02-17 Kevin Buettner <kevinb@redhat.com>
6639
6640 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
6641 STACK_END_ADDR): Define for new core file format.
6642 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
6643 for handling the vagaries of the various core file structures used
6644 by AIX over the years.
6645 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
6646 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
6647 core_dumpx structure.
6648
6649 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6650
6651 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
6652 (bfd_mach_sh3_dsp): Likewise.
6653 (bfd_mach_sh4): Reinstate.
6654 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
6655 * bfd-in2.h: Regenerate.
6656 * coff-sh.c (struct sh_opcode): flags is no longer short.
6657 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
6658 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
6659 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
6660 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
6661 (sh_opcodes): No longer const.
6662 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
6663 (sh_insn_uses_reg): Check for USESAS and USESR8.
6664 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
6665 (_bfd_sh_align_load_span): Return early for SH4.
6666 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
6667 Take into account that field b of a parallel processing insn
6668 could be mistaken for a separate insn.
6669 * cpu-sh.c (arch_info_struct): New array elements for
6670 sh2, sh-dsp and sh3-dsp.
6671 Reinstate element for sh4.
6672 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
6673 (SH4_NEXT): Reinstate.
6674 (SH3_NEXT, SH3E_NEXT): Adjust.
6675 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
6676 * elf32-sh.c (sh_elf_set_private_flags): New function.
6677 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
6678 (sh_elf_merge_private_data): New function.
6679 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
6680 (bfd_elf32_bfd_copy_private_bfd_data): Define.
6681 (bfd_elf32_bfd_merge_private_bfd_data): Change to
6682 sh_elf_merge_private_data.
6683
6684 2000-02-13 Richard Henderson <rth@cygnus.com>
6685
6686 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
6687 hide_symbol members.
6688 (elf_link_hash_copy_indirect): New.
6689 (elf_link_hash_hide_symbol): New.
6690 * elflink.h (elf_link_add_object_symbols): Break out copy from
6691 indirect new new symbol to elf.c.
6692 (elf_link_assign_sym_version): Break out privatization of
6693 non-exported symbol to elf.c.
6694 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
6695 (_bfd_elf_link_hash_hide_symbol): New.
6696 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
6697
6698 2000-02-13 Ian Lance Taylor <ian@zembu.com>
6699
6700 * section.c (_bfd_strip_section_from_output): Add info parameter.
6701 If it passed as non-NULL, use it to check whether any input BFD
6702 has an input section which uses this output section. Change all
6703 callers.
6704 * bfd-in2.h: Rebuild.
6705
6706 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
6707 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
6708 1999-11-29.
6709 * bfd-in2.h: Rebuild.
6710
6711 2000-02-10 Timothy Wall <twall@cygnus.com>
6712
6713 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
6714 allow final modifications of swapped-in symbol.
6715 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
6716 * coffcode.h (coff_write_relocs): Use macro
6717 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
6718 symbol index should be set to -1.
6719
6720 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
6721
6722 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
6723 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
6724 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
6725 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
6726 sh_insns_uses_or_sets_freg): New functions.
6727 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
6728 * (sh_insns_conflict): Use new functions and new macros to
6729 detect conflicts when two instructions both set same integer registers,
6730 both set same fp register, and both set special register.
6731
6732 2000-02-09 Timothy Wall <twall@cygnus.com>
6733
6734 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
6735 swapping in sections, so that the swapping routines have access to
6736 the arch/mach info.
6737
6738 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
6739
6740 * coff-go32.c: Update comment. Update copyright.
6741
6742 2000-01-27 Thomas de Lellis <tdel@windriver.com>
6743
6744 * syms.c (bfd_decode_symclass)
6745 Two new class characters were added - 'V' and 'v'. The
6746 meaning of 'W' is now restricted to just weak non-object
6747 symbols. This allows differentiation between, for example,
6748 weak functions vs weak objects. nm for example now dumps:
6749 'W' = weak global
6750 'w' = weak unresolved
6751 'V' = weak global object
6752 'v' = weak unresolved object
6753
6754 (bfd_is_undefined_symclass): New function. Return true if the
6755 given symbol class represents and undefined/unresolved symbol.
6756
6757 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
6758 unresolved symbols.
6759
6760 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
6761
6762 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
6763 STT_ARM_16BIT flag set, but it is not attached to a data object
6764 return STT_ARM_16BIT so that it will be treated as code by the
6765 disassembler.
6766
6767 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6768
6769 * coff-i386.c (i3coff_object_p): Remove prototype.
6770 Update copyright.
6771
6772 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
6773 to name. Update copyright.
6774
6775 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
6776 assignment to avoid warning. Update copyright.
6777
6778 2000-01-24 Robert Lipe (robertl@sco.com)
6779
6780 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
6781 instead of using GNU C extension.
6782
6783 2000-01-21 Nick Clifton <nickc@cygnus.com>
6784
6785 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
6786 amount from a bfd_in_memory structure.
6787 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
6788 structure.
6789
6790 2000-01-14 Nick Clifton <nickc@cygnus.com>
6791
6792 * linker.c (default_indirect_link_order): oops - fix incorrectly
6793 applied patch from Tim Wall.
6794
6795 2000-01-13 Timothy Wall (twall@tiac.net>
6796
6797 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
6798 = scnhsz, filhsz, relsz, aoutsz, etc)
6799
6800 * coffswap.h: Ditto.
6801
6802 2000-01-13 Nick Clifton <nickc@cygnus.com>
6803
6804 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
6805 interwork thumb to arm stub.
6806
6807 2000-01-13 Timothy Wall (twall@tiac.net>
6808
6809 * archures.c (bfd_octets_per_byte): New function: Return
6810 target byte size.
6811 (bfd_arch_mach_octets_per_byte): New function: Return target
6812 byte size.
6813
6814 * section.c: Distinguish between octets and bytes for usage of
6815 _cooked_size, _raw_size, and output_offset. Clarify
6816 description of bfd_set_section_contents.
6817
6818 * bfd-in2.h: Regenerate.
6819
6820 * coffgen.c: Indicate that the offset parameter is in bytes, not
6821 octets.
6822
6823 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
6824 where appropriate to get the octet offset when calling
6825 bfd_set_section_contents.
6826 (bfd_coff_reloc_link_order): Ditto.
6827
6828 * linker.c (bfd_generic_reloc_link_order): Ditto.
6829 (_bfd_default_link_order): Ditto.
6830
6831 * reloc.c (bfd_perform_relocation): Distinguish between octets
6832 and bytes. Use octets when indexing into octet data; use bytes
6833 when calculating target addresses.
6834 (bfd_install_relocation): Ditto.
6835
6836 * srec.c (srec_write_section): Ditto.
6837
6838 2000-01-13 Nick Clifton <nickc@cygnus.com>
6839
6840 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
6841 3 to 2. This allows 4 byte sized sections, which is necessary for
6842 dlltool to build functioning DLLs.
6843
6844 2000-01-10 Philip Blundell <pb@futuretv.com>
6845
6846 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
6847 (arm*-*-conix*): New target.
6848
6849 2000-01-10 Egor Duda <deo@logos-m.ru>
6850
6851 * config.bfd: Include elf32_i386 vector to target list for cygwin
6852 and mingw.
6853
6854 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
6855 * configure.in: Test for structure win32_pstatus_t in
6856 <sys/procfs.h>
6857 * configure: Regenerate.
6858
6859 * elf.c (elfcore_grok_win32pstatus): New function: process
6860 win32_pstatus_t notes in elf core file.
6861 (elfcore_grok_note): Detect win32_pstatus notes.
6862
6863 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
6864
6865 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
6866 visibility.
6867 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
6868 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
6869
6870 For older changes see ChangeLog-9899
6871 \f
6872 Local Variables:
6873 mode: change-log
6874 left-margin: 8
6875 fill-column: 74
6876 version-control: never
6877 End:
This page took 0.184211 seconds and 5 git commands to generate.