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