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