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