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