2001-05-10 H.J. Lu <hjl@gnu.org>
[binutils-gdb.git] / bfd / ChangeLog
1 2001-05-10 H.J. Lu <hjl@gnu.org>
2
3 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
4 indirect symbols.
5
6 2001-05-09 H.J. Lu <hjl@gnu.org>
7
8 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
9 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
10 Remove the unused veriable `dynver'.
11
12 2001-05-08 Ian Lance Taylor <ian@zembu.com>
13
14 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
15 NULL or is not COFF.
16 (coff_i386_rtype_to_howto): Don't dump core if output section
17 owner is not COFF.
18
19 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
20
21 * ecoff.c (bfd_debug_section): Fix initialization.
22 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
23 is always a positive integer. Cast away sign mismatch.
24 * elf32-mips.c: Fix misleading comment and typo.
25 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
26 correct data type.
27 * elflink.c: Fix typo.
28 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
29 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
30
31 2001-05-04 Richard Henderson <rth@redhat.com>
32
33 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
34
35 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
36
37 * elf32-arm.h (elf32_arm_final_link_relocate): Set
38 EF_ARM_HASENTRY if the start address is set.
39
40 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
41
42 * targets.c (_bfd_target_vector_entries): Compute value based on
43 the size of the _bfd_target_vector and not bfd_target_vector.
44
45 2001-05-03 H.J. Lu <hjl@gnu.org>
46
47 * elfcode.h: Include "libiberty.h".
48
49 * elflink.h (elf_link_add_object_symbols): Set
50 elf_dt_name (abfd) to basename of the bfd filename.
51 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
52 of the bfd filename.
53
54 2001-05-03 Andreas Jaeger <aj@suse.de>
55
56 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
57 (elf_generic_info_to_howto_rel): Likewise.
58 * coff-alpha.c (reloc_nil): Likewise.
59 (alpha_ecoff_bad_format_hook): Likewise.
60 (alpha_adjust_reloc_out): Likewise.
61 (alpha_bfd_reloc_type_lookup): Likewise.
62 (alpha_convert_external_reloc): Likewise.
63 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
64 (elf64_alpha_reloc_bad): Likewise.
65 (elf64_alpha_reloc_gpdisp): Likewise.
66 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
67 (elf64_alpha_info_to_howto): Likewise.
68 (elf64_alpha_add_symbol_hook): Likewise.
69 (elf64_alpha_create_got_section): Likewise.
70 (elf64_alpha_is_local_label_name): Likewise.
71 (elf64_alpha_merge_ind_symbols): Likewise.
72 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
73 (mips_elf64_get_reloc_upper_bound): Likewise.
74 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
75 (nlm_alpha_get_public_offset): Likewise.
76
77 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
78
79 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
80 about overflow in R_OPENRISC_LO_16_IN_INSN and
81 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
82
83 2001-04-30 H.J. Lu <hjl@gnu.org>
84
85 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
86 only for ELF_LINK_FORCED_LOCAL.
87 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
88 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
89 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
90
91 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
92 if the symbol has hidden or internal visibility.
93
94 2001-04-30 Alan Modra <amodra@one.net.au>
95
96 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
97 calls to undefined weak symbols.
98
99 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
100
101 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
102 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
103
104 2001-04-27 Andreas Jaeger <aj@suse.de>
105
106 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
107 out handled entries.
108 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
109 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
110 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
111 GOT32.
112
113 2001-04-27 Sean McNeil <sean@mcneil.com>
114
115 * config.bfd: Add arm-vxworks target.
116 * coff-arm (coff_arm_relocate_section): Add in symbol value to
117 addend (fro VXworks targets).
118
119 2001-04-26 H.J. Lu <hjl@gnu.org>
120
121 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
122 valid.
123
124 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
125
126 * bfd-in.h (bfd_cache_close): Declare newly exported function.
127 * bfd-in2.h: Regenerated.
128
129 2001-04-24 Jakub Jelinek <jakub@redhat.com>
130
131 * merge.c (struct sec_merge_hash_entry): Add alignment field.
132 (struct sec_merge_hash): Remove alignment_power.
133 (sec_merge_hash_newfunc): Clear alignment.
134 (sec_merge_hash_lookup): Pass alignment as argument.
135 Use hashp->root.next, not hashp->next to walk the hash chain.
136 If a string already in the hashtable does not have required
137 alignment, create a new hashtable entry.
138 (sec_merge_init): Remove alignment_power argument.
139 (sec_merge_add): Add alignment argument.
140 (sec_merge_emit): Alignment is now a per-entity thing, not per
141 section.
142 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
143 for proper alignment.
144 Pass alignment information to sec_merge_add.
145
146 2001-04-24 Christian Groessler <cpg@aladdin.de>
147
148 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
149 and R_REL16 reloc types; accept odd values for R_REL16 type
150
151 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
152
153 * cpu-openrisc.c: New file.
154 * elf32-openrisc.c: Likewise.
155
156 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
157 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
158 (BFD32_BACKENDS): Add elf32-openrisc.lo.
159 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
160 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
161 * Makefile.in: Regenerated.
162 * config.bfd: (openrisc-*-elf): New target.
163 * configure.in (bfd_elf32_openrisc_vec): New vector.
164 * configure: Regenerated.
165 * libbfd.h: Regenerated.
166 * bfd-in2.h: Regenerated.
167 * reloc.c: Add OpenRISC relocations.
168 * targets.c (bfd_elf32_openrisc_vec): Declare.
169 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
170 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
171 (bfd_openrisc_arch): Declare.
172 (bfd_archures_list): Add bfd_openrisc_arch.
173 * elf.c (prep_headers): Add bfd_arch_openrisc.
174
175 2001-04-23 Bo Thorsen <bo@suse.de>
176
177 * elf64-x86-64.c: Add c++ vtable hack.
178 Small whitespace and comment changes.
179
180 2001-04-19 Andreas Jaeger <aj@suse.de>
181
182 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
183 (elf64_x86_64_plt_entry): Likewise.
184 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
185 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
186
187 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
188
189 * elf32-cris.c: Tweak comments related to dynamic linking.
190 (cris_elf_relocate_section): When not creating shared object, fill
191 in the .got table for any symbol not in the dynamic symbol table.
192 (elf_cris_finish_dynamic_symbol): When not creating shared object,
193 only emit a .got.rela reloc if the symbol is in the dynamic symbol
194 table.
195 (cris_elf_check_relocs): Use variable r_type in all places rather
196 than the original expression. Add default case in switch for
197 reloc types.
198 (elf_cris_size_dynamic_sections): Iterate over
199 elf_cris_discard_excess_program_dynamics when not creating shared
200 library.
201 (elf_cris_discard_excess_dso_dynamics): Renamed from
202 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
203 (elf_cris_discard_excess_program_dynamics): New.
204
205 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
206
207 * coffcode.h (coff_write_object_contents): Use
208 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
209
210 2001-04-14 H.J. Lu <hjl@gnu.org>
211
212 * bfd-in2.h: Regenerate.
213
214 2001-04-14 Jakub Jelinek <jakub@redhat.com>
215
216 * section.c (STD_SECTION): Add entsize.
217
218 2001-04-13 H.J. Lu <hjl@gnu.org>
219
220 * section.c (SEC_MERGE): Define new flag for merging.
221 (SEC_STRINGS): Likewise.
222 (entsize): New field.
223
224 2001-04-13 Roger Sayle <roger@metaphorics.com>
225
226 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
227 flag on pe-i386 targets.
228
229 2001-04-13 Jakub Jelinek <jakub@redhat.com>
230
231 * libbfd-in.h (_bfd_merge_section): New.
232 (_bfd_write_merged_section): New.
233 (_bfd_merged_section_offset): New.
234 * libbfd.h: Rebuilt.
235 * linker.c (_bfd_generic_link_output_symbols): Handle
236 discard_sec_merge.
237 * aoutx.h (aout_link_write_symbols): Likewise.
238 * pdp11.c (aout_link_write_symbols): Likewise.
239 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
240 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
241 sections.
242 (elf_link_sec_merge_syms): New.
243 (elf_link_input_bfd): Call _bfd_merged_section_offset
244 and _bfd_write_merged_section.
245 Handle discard_sec_merge.
246 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
247 field.
248 (struct bfd_elf_section_data): Likewise.
249 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
250 SEC_STRINGS section flags and entsize from their ELF counterparts.
251 (_bfd_elf_link_hash_table_init): Initialize merge_info.
252 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
253 from their BFD counterparts.
254 * merge.c: New file.
255 * Makefile.am: Add strtab.lo.
256 * Makefile.in: Rebuilt.
257
258 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
259
260 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
261 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
262
263 2001-04-05 Steven J. Hill <sjhill@cotw.com>
264
265 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
266 endian MIPS ELF target.
267 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
268 MIPS ELF target.
269
270 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
271 64bit big endian MIPS ELF target.
272 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
273 endian MIPS ELF target.
274 * configure: Regenerated.
275
276 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
277 little endian targets.
278 (mips_elf_sym_is_global): Handle traditional targets.
279
280 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
281 64bit big endian MIPS ELF target.
282 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
283 endian MIPS ELF target.
284
285 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
286 and bfd_elf64_tradlittlemips_vec.
287
288 2001-04-05 David Mosberger <davidm@hpl.hp.com>
289
290 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
291 ordinary "progbits" section.
292
293 2001-04-04 Alan Modra <alan@linuxcare.com.au>
294
295 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
296 when -Bsymbolic causes a symbol to no longer need a .plt entry.
297
298 2001-04-03 David Mosberger <davidm@hpl.hp.com>
299
300 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
301
302 2001-03-30 H.J. Lu <hjl@gnu.org>
303
304 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
305 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
306
307 2001-03-26 H.J. Lu <hjl@gnu.org>
308
309 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
310 if there are any relocations for generic ELF.
311 (bfd_elf32_bfd_link_add_symbols): Defined to
312 elf32_generic_link_add_symbols.
313 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
314 if there are any relocations for generic ELF.
315 (bfd_elf64_bfd_link_add_symbols): Defined to
316 elf64_generic_link_add_symbols.
317
318 2001-03-23 Nick Clifton <nickc@redhat.com>
319
320 * Makefile.am (BUILD_CFILES): New variable: List of C source
321 files created in build directory.
322 (BUILD_HFILES): New variable: List of header files created in
323 build directory.
324 (POTFILES): Delete.
325 (po/POTFILES.in): Replace rule with empty entry.
326 (po/SRC-POTFILES.in): New rule: Create a list of source files
327 in the source directory.
328 (po/BLD-POTFILES.in): New rule: Create a list of source files
329 in the build directory.
330 (MOSTLYCLEAN): Do not delete source files created in build
331 directory.
332 * Makefile.in: Regenerate.
333 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
334 into po/Makefile.
335 * configure: Regenerate.
336
337 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
338 and BLD_POTFILES.
339 Add .. to the search path when building bfd.pot.
340 Delete POTFILES when performing distclean.
341 Add comment describing why distclean is broken in maintainer mode.
342 * po/POTFILES.in: Delete.
343 * po/SRC-POTFILES.in: New file.
344 * po/BLD-POTFILES.in: New file.
345 * po/bfd.pot: Regenerate.
346
347 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
348
349 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
350 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
351 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
352 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
353 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
354 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
355 functions.
356 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
357 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
358 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
359 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
360 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
361 New HOWTO members for new relocs.
362 (cris_reloc_map): Map new relocs.
363 (ELF_DYNAMIC_INTERPRETER): Define.
364 (PLT_ENTRY_SIZE): Define.
365 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
366 elf_cris_pic_plt_entry): New, PLT templates.
367 (struct elf_cris_pcrel_relocs_copied, struct
368 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
369 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
370 (cris_final_link_relocate): Check that 16-bit GOT relocs have
371 positive values. Adjust PCREL relocs to be relative to location
372 after relocation.
373 (cris_elf_relocate_section): Handle relocations to dynamic
374 objects. Handle new relocations. Call error handler when seeing
375 non-PIC relocation for read-only sections while generating shared
376 object.
377 (cris_elf_check_relocs): Set reference counts for GOT and PLT
378 entries.
379 (bfd_elf32_bfd_link_hash_table_create,
380 elf_backend_adjust_dynamic_symbol,
381 elf_backend_size_dynamic_sections,
382 elf_backend_finish_dynamic_symbol,
383 elf_backend_finish_dynamic_sections,
384 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
385 elf_backend_hide_symbol, elf_backend_want_got_plt,
386 elf_backend_plt_readonly, elf_backend_want_plt_sym,
387 elf_backend_got_header_size, elf_backend_plt_header_size):
388 Define.
389
390 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
391 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
392 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
393 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
394 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
395 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
396 * bfd-in2.h, libbfd.h: Regenerate.
397
398 2001-03-21 Diego Novillo <dnovillo@redhat.com>
399
400 (_bfd_mips_elf_relocate_section): Give a better error message when
401 a relocation is not recognized.
402
403 2001-03-21 Alan Modra <alan@linuxcare.com.au>
404
405 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
406 non-NULL before attempting to dereference.
407
408 2001-03-20 H.J. Lu <hjl@gnu.org>
409
410 * configure.in: Remove the redundent AC_ARG_PROGRAM.
411 * configure: Rebuild.
412
413 2001-03-20 Andreas Schwab <schwab@suse.de>
414
415 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
416 relocation value when resolving a reference from a debugging
417 section.
418
419 2001-03-16 Scott Thomason <SThomaso@hii.com>
420
421 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
422 (xcoff64_swap_sym_out): Fix syntax errors.
423
424 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
425
426 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
427
428 2001-03-15 Alan Modra <alan@linuxcare.com.au>
429
430 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
431 (hppa_link_hash_newfunc): Init it.
432 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
433 section appears to be non-PIC.
434 (final_link_relocate): Likewise.
435 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
436 possible candidate function, and set pic_call for those that will
437 only have a .plt entry for the PIC call stub.
438 (hppa_handle_PIC_calls): Set maybe_pic_call.
439
440 2001-03-12 DJ Delorie <dj@redhat.com>
441
442 * elf32-sh.c (sh_elf_relocate_section): Only relocation
443 R_SH_DIR8WP* relocs if they're against external symbols, else
444 they're just for relaxing. Validate the reloc values.
445
446 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
447
448 * binary.c (bfd_external_binary_architecture): Declare.
449 (binary_object_p): If bfd_external_binary_architecture is defined,
450 set the architecture to this string.
451
452 2001-03-11 Philip Blundell <philb@gnu.org>
453
454 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
455 entries that could serve as a definition for a weak symbol.
456
457 2001-03-08 Nick Clifton <nickc@redhat.com>
458
459 * Most files: Update copyright notices using Perl script created
460 by Kevin Buettner <kevinb@redhat.com>.
461
462 2001-03-07 Nick Clifton <nickc@redhat.com>
463
464 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
465 prior patch on ! defined OLD_ARM_ABI.
466
467 2001-03-07 Andreas Jaeger <aj@suse.de>
468
469 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
470 some relocation values.
471
472 2001-03-06 Nick Clifton <nickc@redhat.com>
473
474 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
475 of offset in BLX(1) instruction.
476 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
477 offset in BLX(1) instruction.
478 Fix formatting.
479
480 2001-03-06 Nick Clifton <nickc@redhat.com>
481
482 * coff-arm.c (coff_arm_reloc_type_lookup): Add
483 BFD_RELOC_THUMB_PCREL_BLX.
484
485 2001-03-06 Igor Shevlyakov <igor@windriver.com>
486
487 * archures.c (bfd_default_scan): Add Coldfire CPUs.
488 * bfd-in2.h: Regenerate.
489 * cpu-m68k.c: Add Coldfire CPUs for arch table.
490 * ieee.c (ieee_write_processor): Set proper id for
491 Coldfire CPUs.
492
493 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
494
495 * configure.in: Add s390 target.
496 * configure: Regenerate.
497
498 2001-02-28 Andreas Jaeger <aj@suse.de>
499
500 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
501 to addend.
502
503 2001-02-28 Philip Blundell <pb@futuretv.com>
504
505 * elf32-arm.h: Update mentions of renamed EF_xx constants.
506 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
507
508 2001-02-27 H.J. Lu <hjl@gnu.org>
509
510 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
511 abfd->tdata.aout_data == NULL.
512
513 2001-02-27 Alan Modra <alan@linuxcare.com.au>
514
515 * elf32-hppa.c: Correct field selector in stub comments.
516 (clobber_millicode_symbols): Formatting fix.
517
518 * configure.in: Bump version to 2.11.90.
519 * configure: Regenerate.
520 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
521 (CFILES): $SOURCE_CFILES + generated C files.
522 (POTFILES): Include $HFILES not $SOURCE_HFILES.
523 Run "make dep-am"
524 * Makefile.in: Regenerate.
525 * doc/Makefile.in: This too.
526
527 2001-02-26 Timothy Wall <twall@cygnus.com>
528
529 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
530 comments.
531
532 2001-02-26 Nick Clifton <nickc@redhat.com>
533
534 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
535 up, replacing multiple if statements with a switch.
536 (handle_COMDAT): New function.
537
538 2001-02-26 H.J. Lu <hjl@gnu.org>
539
540 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
541 a warning for section flags we do not handle instead of
542 aborting.
543
544 2001-02-26 Andreas Jaeger <aj@suse.de>
545
546 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
547
548 2001-02-22 Timothy Wall <twall@cygnus.com>
549
550 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
551 * configure.in: Add objects for elf64_ia64_aix vectors.
552 * configure: Regenerated.
553 * configure.host: Recognize ia64-*-aix*.
554 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
555 for AIX. AIX5 requires most relocations to be dynamic (*all*
556 binaries are somewhat similar to shared libraries).
557 * targets.c: Add elf64_ia64_aix vectors.
558
559 2001-02-21 David Mosberger <davidm@hpl.hp.com>
560
561 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
562 C8 said "1" instead of "8". Clarify error string for IMM22:
563 "signed integer" instead of just "integer".
564
565 2001-02-20 Andreas Jaeger <aj@suse.de>
566
567 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
568 PLT entries that could serve as a definition for a weak symbol.
569
570 2001-02-19 Jakub Jelinek <jakub@redhat.com>
571
572 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
573 entries that could serve as a definition for a weak symbol.
574 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
575
576 2001-02-18 David O'Brien <obrien@FreeBSD>
577
578 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
579 FreeBSD/i386-CURRENT differently until I can figure out the needed
580 corefile changes.
581 * configure: Regenerate.
582 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
583 FreeBSD/PowerPC, and FreeBSD/sparc64.
584
585 2001-02-18 lars brinkhoff <lars@nocrew.org>
586
587 * Makefile.am: Add PDP-11 a.out target.
588 * config.bfd: Likewise.
589 * configure.in: Likewise.
590 * targets.c: Likewise.
591 * archures.c: Likewise.
592 * bfd-in2.h: Likewise. Add PDP-11 relocations.
593 * libbfd.h: Add PDP-11 relocations.
594 * reloc.c: Likewise.
595 * cpu-pdp11.c: New file.
596 * pdp11.c: New file.
597
598 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
599 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
600 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
601 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
602 (GET_MAGIC): New macro.
603 (PUT_MAGIC): Likewise.
604 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
605
606 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
607
608 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
609 multiarch needs it).
610
611 2001-02-18 H.J. Lu <hjl@gnu.org>
612
613 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
614 index.
615
616 2001-02-18 Kazu Hirata <kazu@hxi.com>
617
618 * vms-misc.c: Fix formatting.
619
620 2001-02-16 Kazu Hirata <kazu@hxi.com>
621
622 * vms.c: Fix formatting.
623
624 2001-02-14 H.J. Lu <hjl@gnu.org>
625
626 * elf.c (elf_find_function): New function.
627 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
628 the file name and function name.
629
630 2001-02-14 Nick Clifton <nickc@redhat.com>
631
632 * ecoff.c (bfd_debug_section): Update to initialise new fields in
633 asection structure.
634
635 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
636 (BFD64_BACKENDS): Add pepigen.c
637 Add rules to create peigen.c and pepigen.c from peXXigen.c.
638
639 * Makefile.in: Regenerate.
640 * configure: Regenerate.
641 * po/POTFILES.in: Regenerate.
642 * po/bfd.pot: Regenerate.
643
644 2001-02-14 H.J. Lu <hjl@gnu.org>
645
646 * libcoff-in.h (pe_tdata): Add members target_subsystem and
647 force_minimum_alignment.
648
649 2001-02-14 Bo Thorsen <bo@suse.de>
650
651 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
652 (elf64_86_64_size_info): Struct added to fix a problem
653 with the hashtable string entries.
654 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
655 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
656 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
657 remove the FIXME for this.
658 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
659 section. Also removed the FIXME for it.
660 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
661 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
662 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
663
664 2001-02-13 Richard Henderson <rth@redhat.com>
665
666 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
667 and not user provided.
668
669 2001-02-13 Kazu Hirata <kazu@hxi.com>
670
671 * vms.c (vms_print_symbol): Remove unreachable code.
672
673 * rs6000-core.c: Fix formatting.
674
675 2001-02-13 David Mosberger <davidm@hpl.hp.com>
676
677 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
678 as _bfd_XXi_only_swap_filehdr_out.
679 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
680 pe->force_minimum_alignment to TRUE.
681 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
682 PEI_TARGET_SUBSYSTEM.
683 (pe_print_private_bfd_data): Call
684 _bfd_XX_print_private_bfd_data_common() instead of
685 _bfd_pe_print_private_bfd_data_common().
686 (pe_bfd_copy_private_bfd_data): Call
687 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
688 _bfd_pe_bfd_copy_private_bfd_data_common().
689 (coff_bfd_copy_private_section_data): Define as
690 _bfd_XX_bfd_copy_private_section_data instead of
691 _bfd_pe_bfd_copy_private_section_data.
692 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
693 of a _bfd_pe_get_symbol_info.
694
695 * peigen.c: Delete.
696
697 * peXXigen.c: Renamed from peigen.c.
698 (COFF_WITH_XX): Define this macro (will get expanded into
699 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
700 compiled as peigen.c or pepigen.c.
701 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
702 define the canonical PEP structures and definitions.
703 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
704 effect, enforce minimum file and section alignments. If
705 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
706 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
707 so, by default, this is a no-op).
708
709 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
710 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
711 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
712 _bfd_pefoo if it's not defined. Use these macros to define
713 coff swap macros.
714
715 * libcoff.h (pe_tdata): Add members target_subsystem and
716 force_minimum_alignment.
717
718 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
719 COFF_WITH_pep.
720 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
721
722 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
723 peigen.lo.
724
725 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
726 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
727 PEPAOUTHDR.
728
729 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
730 (BFD64_BACKENDS_CFILES): Mention pepigen.c
731 (peigen.c): Add rule to generate from peXXigen.c.
732 (pepigen.c): Ditto.
733 (pepigen.lo): List dependencies for pepigen.lo.
734
735 2001-02-13 Alan Modra <alan@linuxcare.com.au>
736
737 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
738 $global$ referenced but not defined, set its value here.
739
740 2001-02-09 Bo Thorsen <bo@suse.de>
741
742 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
743 alignment to 3.
744 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
745 and relocation.
746 (elf64_x86_64_relocate_section): Fix formatting.
747 (elf64_x86_64_relocate_section): Fix addend for relocation of
748 R_X86_64_(8|16|32|PC8|PC16|PC32).
749
750 2001-02-12 Jan Hubicka <jh@suse.cz>
751
752 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
753
754 2001-02-11 H.J. Lu <hjl@gnu.org>
755
756 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
757 alignment.
758
759 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
760
761 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
762 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
763 relocations against dynsym symbols.
764
765 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
766 the R_MIPS_26 relocation.
767 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
768 the R_MIPS_26 relocation.
769 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
770 relocation.
771 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
772 the R_MIPS_26 relocation.
773 (mips_elf64_howto_table_rela): Likewise.
774
775 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
776 member to mark symbols that have non-CALL relocations against
777 them.
778 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
779 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
780 R_MIPS_GOT16.
781 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
782 non-CALL relocation against it is encountered.
783 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
784 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
785 no_fn_stub is not set.
786
787 * elf32-mips.c (mips_elf_output_extsym): Get the output section
788 information from the real symbol for indirect ones.
789 Check no_fn_stub to find out if a symbol has a function stub
790 indeed.
791
792 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
793
794 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
795 * Makefile.in: Regenerate.
796
797 2001-02-09 David Mosberger <davidm@hpl.hp.com>
798
799 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
800 true if section name is an unwind table section name.
801 (elfNN_ia64_additional_program_headers): Count each unwind section
802 separately.
803 (elfNN_ia64_modify_segment_map): Install one unwind program header
804 for each unwind separate section. Note: normally the linker
805 script merges the unwind sections that go into a single segment,
806 so this still generates at most one unwind program header per
807 segment.
808
809 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
810 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
811 (elfNN_ia64_fake_sections): Mark sections with names that start
812 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
813 unwind section.
814
815 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
816 Use it to make sh_info in unwind section point to the text section
817 it applies to.
818
819 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
820
821 * Makefile.am: Add linux target for S/390.
822 * archures.c: Likewise.
823 * bfd-in2.h: Likewise.
824 * config.bfd: Likewise.
825 * configure.in: Likewise.
826 * elf.c: Likewise.
827 * libbfd.h: Likewise.
828 * targets.c: Likewise.
829 * cpu-s390.c: New file.
830 * elf32-s390.c: New file.
831 * elf64-s390.c: New file.
832
833 2001-02-09 Nick Clifton <nickc@redhat.com>
834
835 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
836 ImageBase. This has already been done by coff_swap_hdr_in.
837
838 2001-02-09 Jakub Jelinek <jakub@redhat.com>
839
840 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
841
842 2001-02-09 Jakub Jelinek <jakub@redhat.com>
843
844 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
845 (sparc64_elf_relocate_section): Likewise.
846
847 2001-02-09 Mark Kettenis <kettenis@gnu.org>
848
849 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
850 similar to R_SPARC_32.
851 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
852
853 2001-02-08 H.J. Lu <hjl@gnu.org>
854
855 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
856 relocation entries for weak definitions when building DSO with
857 -Bsymbolic.
858
859 2001-02-08 Richard Henderson <rth@redhat.com>
860
861 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
862 before visibility. Locally defined protected symbols are not
863 dynamic.
864
865 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
866
867 * config.bfd: Enable coff64 for rs6000-*. Patch from
868 <hzoli@austin.ibm.com>.
869
870 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
871
872 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
873 found, do not attempt to find dwarf2 info before returning.
874
875 2001-02-07 Jakub Jelinek <jakub@redhat.com>
876
877 * elflink.h (is_global_symbol_definition): Rename to
878 is_global_data_symbol_definition and have it reject function
879 symbols.
880 (elf_link_is_defined_archive_symbol): Use renamed function.
881
882 2001-02-07 Todd Vierling <tv@wasabisystems.com>
883
884 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
885 * libbfd.h (bfd_target_vector): Likewise.
886 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
887 make static; create pointer reference named bfd_target_vector.
888 (_bfd_target_vector_entries): Calculate this based on the array
889 typed _bfd_target_vector.
890
891 2001-02-06 H.J. Lu <hjl@gnu.org>
892
893 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
894 internal symbols are not dynamic.
895 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
896
897 2001-02-06 Nick Clifton <nickc@redhat.com>
898
899 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
900 that it will not be pulled into the list of files that make up
901 po/POTFILES.in.
902 * Makefile.in: Regenerate.
903 * po/bfd.pot: Regenerate.
904
905 2001-02-06 H.J. Lu <hjl@gnu.org>
906
907 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
908 checking.
909 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
910 external_PEI_IMAGE_hdr.
911
912 2001-02-06 Kazu Hirata <kazu@hxi.com>
913
914 * elf-m10200.c: Fix formatting.
915
916 2001-02-04 Nick Clifton <nickc@redhat.com>
917
918 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
919 rel, it will be handled later on.
920
921 2001-02-02 Fred Fish <fnf@ninemoons.com>
922
923 * Makefile.in: Fix typo.
924
925 2001-02-01 Kazu Hirata <kazu@hxi.com>
926
927 * elf-m10300.c: Fix formatting.
928
929 2001-01-30 Alan Modra <alan@linuxcare.com.au>
930
931 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
932 (elf_backend_get_symbol_type): Define.
933 (elf64_hppa_object_p): Set architecture and machine from elf
934 header flags.
935
936 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
937
938 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
939 before mdebug.
940
941 2001-01-26 Richard Henderson <rth@redhat.com>
942
943 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
944 for non-default visibility.
945 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
946 delete ugly macro and replace with pretty function.
947
948 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
949
950 * coff-go32.c: Update copyright.
951 * coff-stgo32.c: Likewise.
952 * coff-go32.c (COFF_LONG_FILENAMES): Define.
953 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
954 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
955 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
956
957 2001-01-25 Kazu Hirata <kazu@hxi.com>
958
959 * bfd-in2.h: Rebuild.
960 * libbfd.h: Likewise.
961
962 2001-01-23 H.J. Lu <hjl@gnu.org>
963
964 * bfd-in2.h: Rebuild.
965
966 2001-01-23 H.J. Lu <hjl@gnu.org>
967
968 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
969 is NULL or PRIV(vms_rec) is outside of the buffer.
970
971 2001-01-23 Kazu Hirata <kazu@hxi.com>
972
973 * coff64-rs6000.c: Fix formatting.
974 * coff-arm.c: Likewise.
975 * coffgen.c: Likewise.
976 * cofflink.c: Likewise.
977 * coff-mcore.c: Likewise.
978 * coff-mips.c: Likewise.
979 * coff-pmac.c: Likewise.
980 * coff-ppc.c: Likewise.
981 * coff-rs6000.c: Likewise.
982 * elf32.c: Likewise.
983 * elf32-fr30.c: Likewise.
984 * elf32-i370.c: Likewise.
985 * elf32-i860.c: Likewise.
986 * elf32-m32r.c: Likewise.
987 * elf32-m68k.c: Likewise.
988 * elf32-mcore.c: Likewise.
989 * elf32-ppc.c: Likewise.
990 * elf32-sh.c: Likewise.
991 * elf32-v850.c: Likewise.
992 * elf64-alpha.c: Likewise.
993 * elf64-sparc.c: Likewise.
994 * elflink.c: Likewise.
995 * elflink.h: Likewise.
996 * elf-m10200.c: Likewise.
997 * elf-m10300.c: Likewise.
998 * elfxx-ia64.c: Likewise.
999
1000 * aoutx.h: Fix formatting.
1001 * bfd.c: Likewise.
1002 * bfd-in2.h: Likewise.
1003 * bfd-in.h: Likewise.
1004 * cpu-i386.c: Likewise.
1005 * cpu-m68hc11.c: Likewise.
1006 * dwarf2.c: Likewise.
1007 * elf64-x86-64.c: Likewise.
1008 * format.c: Likewise.
1009 * freebsd.h: Likewise.
1010 * hash.c: Likewise.
1011 * hp300hpux.c: Likewise.
1012 * hppabsd-core.c: Likewise.
1013 * hpux-core.c: Likewise.
1014
1015 2001-01-22 Bo Thorsen <bo@suse.de>
1016
1017 * elf64-x86-64.c: Added PIC support for X86-64.
1018 (elf64_x86_64_link_hash_newfunc): Function added.
1019 (elf64_x86_64_link_hash_table_create): Likewise.
1020 (elf64_x86_64_check_relocs): Likewise.
1021 (elf64_x86_64_gc_mark_hook): Likewise.
1022 (elf64_x86_64_gc_sweep_hook): Likewise.
1023 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1024 (elf64_x86_64_size_dynamic_sections): Likewise.
1025 (elf64_x86_64_discard_copies): Likewise.
1026 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1027 (elf64_x86_64_finish_dynamic_sections): Likewise.
1028 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1029
1030 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1031
1032 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1033 * Makefile.in: Regenerate.
1034
1035 2001-01-21 Kazu Hirata <kazu@hxi.com>
1036
1037 * coff-a29k.c: Fix formatting.
1038
1039 2001-01-19 H.J. Lu <hjl@gnu.org>
1040
1041 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1042 relocation section names.
1043 (elf_i386_relocate_section): Report files with bad relocation
1044 section names and return false.
1045
1046 2001-01-17 Bo Thorsen <bo@suse.de>
1047
1048 * targets.c: Alphabetize list of xvecs.
1049
1050 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1051
1052 * config.bfd: Add linux target variant for elfxx-hppa.
1053 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1054 bfd_elf64_hppa_linux_vec.
1055 * configure: Regenerate.
1056 * elf64-hppa.c: Include elf64-target.h again to support linux
1057 target variant.
1058 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1059 * elf32-hppa.c: Include elf32-target.h again to support linux
1060 target variant.
1061 (elf32_hppa_post_process_headers): New function.
1062 (elf_backend_post_process_headers): Define.
1063 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1064 bfd_elf32_hppa_linux_vec.
1065
1066 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1067 and data_segment_base fields.
1068 (elf32_hppa_link_hash_table_create ): Init them.
1069 (elf32_hppa_check_relocs): Update comments.
1070 (hppa_record_segment_addr): New function.
1071 (elf32_hppa_relocate_section): Call it.
1072 (final_link_relocate): Handle R_PARISC_SEGREL32.
1073 (elf32_hppa_final_link): New function.
1074 (bfd_elf32_bfd_final_link): Define to call it.
1075 (hppa_unwind_entry_compare): New function.
1076 * cache.c (bfd_open_file): Create files in write+read mode.
1077
1078 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1079 SEGREL32 and numerous other relocs. Change duplicate
1080 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1081
1082 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1083 O_ACCMODE.
1084
1085 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1086 .plt entries for DT_INIT and DT_FINI.
1087 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1088 DT_INIT and DT_FINI.
1089
1090 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1091 offsets for stub .plt access if wide mode. Check offset in range.
1092
1093 2001-01-13 Nick Clifton <nickc@redhat.com>
1094
1095 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1096 line.
1097
1098 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1099 line.
1100
1101 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1102
1103 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1104 * configure: Regenerate.
1105
1106 2001-01-11 Peter Targett <peter.targett@arccores.com>
1107
1108 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1109 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1110 * cpu-arc.c (arch_info_struct): Add entries for variants.
1111 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1112 (arc_get_mach) Don't assume machine names prefixed arc- before
1113 testing.
1114 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1115 selections.
1116 (arc_elf_final_write_processing) Likewise.
1117 (ELF_MACHINE_CODE) Use EM_ARC.
1118
1119 2001-01-10 Nick Clifton <nickc@redhat.com>
1120
1121 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1122
1123 2001-01-07 Philip Blundell <philb@gnu.org>
1124
1125 * README: Replace `bug-gnu-utils@gnu.org' with
1126 `bug-binutils@gnu.org'.
1127
1128 2001-01-04 Kazu Hirata <kazu@hxi.com>
1129
1130 * som.c: Fix formatting.
1131
1132 2001-01-03 Kazu Hirata <kazu@hxi.com>
1133
1134 * ecoffswap.h: Fix formatting.
1135 * elf-bfd.h: Likewise.
1136 * elfarm-nabi.c: Likewise.
1137 * elfarm-oabi.c: Likewise.
1138 * elfcode.h: Likewise.
1139 * elfcore.h: Likewise.
1140 * elflink.c: Likewise.
1141 * elflink.h: Likewise.
1142 * elfxx-ia64.c: Likewise.
1143 * elfxx-target.h: Likewise.
1144 * libbfd.c: Likewise
1145 * linker.c: Likewise.
1146 * lynx-core.c: Likewise.
1147
1148 2001-01-02 Kazu Hirata <kazu@hxi.com>
1149
1150 * pc532-mach.c: Fix formatting.
1151 * pe-arm.c: Likewise.
1152 * pe-i386.c: Likewise.
1153 * pe-mips.c: Likewise.
1154 * pe-ppc.c: Likewise.
1155 * pe-sh.c: Likewise.
1156 * pei-mips.c: Likewise.
1157 * pei-sh.c: Likewise.
1158 * peicode.h: Likewise.
1159 * ppcboot.c: Likewise.
1160 * ptrace-core.c: Likewise.
1161
1162 2001-01-01 Kazu Hirata <kazu@hxi.com>
1163
1164 * reloc.c: Fix formatting.
1165 * riscix.c: Likewise.
1166 * rs6000-core.c: Likewise.
1167 * xcoff-target.h: Likewise.
1168
1169 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1170
1171 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1172 error, by calling bfd_default_set_arch_mach with incoming
1173 values.
1174
1175 2000-12-26 Kazu Hirata <kazu@hxi.com>
1176
1177 * vaxnetbsd.c: Fix formatting.
1178 * versados.c: Likewise.
1179 * vms-gsd.c: Likewise.
1180 * vms-hdr.c: Likewise.
1181 * vms-misc.c: Likewise.
1182
1183 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1184
1185 * archive.c (coff_write_armap): Don't write more than symbol_count
1186 `archive_member_file_ptr's.
1187
1188 2000-12-25 Kazu Hirata <kazu@hxi.com>
1189
1190 * vms-tir.c: Fix formatting.
1191
1192 2000-12-23 Kazu Hirata <kazu@hxi.com>
1193
1194 * vms.c: Fix formatting.
1195 * vms.h: Likewise.
1196
1197 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1198
1199 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1200
1201 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1202
1203 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1204 arithmetic.
1205
1206 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1207
1208 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1209
1210 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1211
1212 * libbfd.c (bfd_get_bits): Added
1213 (bfd_put_bits): Likewise
1214 * bfd-in.h: Declared the above.
1215 * bfd-in2.h: Regenerated.
1216
1217 2000-12-20 Kazu Hirata <kazu@hxi.com>
1218
1219 * targets.c: Fix formatting.
1220 * tekhex.c: Likewise.
1221 * trad-core.c: Likewise.
1222
1223 2000-12-19 Kazu Hirata <kazu@hxi.com>
1224
1225 * sco5-core.c: Fix formatting.
1226 * section.c: Likewise.
1227 * sparclinux.c: Likewise.
1228 * sparclynx.c: Likewise.
1229 * sparcnetbsd.c: Likewise.
1230 * srec.c: Likewise.
1231 * stabs.c: Likewise.
1232 * stab-syms.c: Likewise.
1233 * sunos.c: Likewise.
1234 * syms.c: Likewise.
1235 * sysdep.h: Likewise.
1236
1237 2000-12-18 Nick Clifton <nickc@redhat.com>
1238
1239 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1240 defined.
1241 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1242 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1243
1244 2000-12-18 Nick Clifton <nickc@redhat.com>
1245
1246 * vms-misc.c (_bfd_vms_get_record): Add default case to
1247 file_format switch.
1248
1249 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1250
1251 * elfcore.h (elf_core_file_p): Move to the start of the program
1252 headers before attempting to read them.
1253
1254 2000-12-14 Kazu Hirata <kazu@hxi.com>
1255
1256 * peigen.c: Fix formatting.
1257 * som.c: Likewise.
1258 * som.h: Likewise.
1259
1260 2000-12-13 Kazu Hirata <kazu@hxi.com>
1261
1262 * peigen.c: Fix formatting.
1263
1264 2000-12-12 Jim Wilson <wilson@redhat.com>
1265
1266 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1267
1268 2000-12-08 Mark Salter <msalter@redhat.com>
1269
1270 * binary.c (binary_set_section_contents): Ignore sections
1271 with zero size.
1272
1273 2000-12-12 Kazu Hirata <kazu@hxi.com>
1274
1275 * m68klinux.c: Fix formatting.
1276 * m68knetbsd.c: Likewise.
1277 * mipsbsd.c: Likewise.
1278 * netbsd-core.c: Likewise.
1279 * netbsd.h: Likewise.
1280 * newsos3.c: Likewise.
1281 * nlm32-alpha.c: Likewise.
1282 * nlm32-i386.c: Likewise.
1283 * nlm32-ppc.c: Likewise.
1284 * nlm32-sparc.c: Likewise.
1285 * nlmcode.h: Likewise.
1286 * nlmswap.h: Likewise.
1287 * nlm-target.h: Likewise.
1288 * ns32knetbsd.c: Likewise.
1289
1290 2000-12-10 Fred Fish <fnf@be.com>
1291
1292 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1293 symbols in shared objects if allow_shlib_undefined is true.
1294
1295 2000-12-12 Nick Clifton <nickc@redhat.com>
1296
1297 * cpu-sh.c: Fix formattng.
1298 * elf.c: Fix formattng.
1299 * elf32-mips.c: Fix formattng.
1300 * elf32-sh.c: Fix formattng.
1301 * elf64-alpha.c: Fix formattng.
1302
1303 2000-12-09 Nick Clifton <nickc@redhat.com>
1304
1305 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1306 dwarf2_find_line_info as last parameter to invocation of
1307 _bfd_dwarf2_find_nearest_line.
1308 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1309 dwarf2_find_line_info as last parameter to invocation of
1310 _bfd_dwarf2_find_nearest_line.
1311
1312 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1313
1314 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1315 (BFD_LIBS): ...to here.
1316 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1317 (BFD_LIBS_CFILES): ...to here.
1318 * Makefile.in: Regenerate.
1319 * configure.in: Remove dwarf.lo from the elf shell variable.
1320 * configure: Regenerate.
1321 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1322 * libcoff.h: Regenerate.
1323 * coffgen.c (coff_find_nearest_line): Call
1324 _bfd_dwarf2_find_nearest_line.
1325 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1326 accordingly.
1327 (read_abbrevs): Likewise
1328 (decode_line_info): Likewise.
1329 (parse_comp_unit): Likewise.
1330 (comp_unit_find_nearest_line): Likewise.
1331 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1332 * libbfd.h: Regenerate.
1333 * elf.c (_bfd_elf_find_nearest_line): Update call.
1334 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1335 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1336 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1337 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1338 (styp_to_sec_flags): Handle DWARF2 sections.
1339 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1340 to _bfd_find_nearest_line.
1341 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1342 call to _bfd_find_nearest_line.
1343
1344 2000-12-08 Kazu Hirata <kazu@hxi.com>
1345
1346 * coffgen.c: Fix formatting.
1347 * elf-m10300.c: Likewise.
1348 * elf32-i386.c: Likewise.
1349 * elf32-i960.c: Likewise.
1350 * elf32-m68k.c: Likewise.
1351 * elf32-mcore.c: Likewise.
1352 * elf32-ppc.c: Likewise.
1353 * elf32-sh.c: Likewise.
1354 * elf32-sparc.c: Likewise.
1355 * elf32-v850.c: Likewise.
1356 * elf64-alpha.c: Likewise.
1357 * elf64-hppa.c: Likewise.
1358 * elf64-mips.c: Likewise.
1359 * elf64-sparc.c: Likewise.
1360
1361 2000-12-07 Kazu Hirata <kazu@hxi.com>
1362
1363 * elf32-ppc.c: Fix formatting.
1364 * elf64-x86-64.c: Likewise.
1365
1366 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1367
1368 From Ralf Baechle <ralf@gnu.org>
1369
1370 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1371 BFDs containing no sections or empty .text, .data or .bss sections
1372 to be merged, regardless of their flags.
1373
1374 2000-12-06 Kazu Hirata <kazu@hxi.com>
1375
1376 * elf32-m32r.c: Fix formatting.
1377 * elf32-m68hc11.c: Likewise.
1378 * elf32-m68hc12.c: Likewise.
1379 * elf32-m68k.c: Likewise.
1380 * elf32-mcore.c: Likewise.
1381 * elf32-pj.c: Likewise.
1382 * elf32-ppc.c: Likewise.
1383
1384 2000-12-05 Kazu Hirata <kazu@hxi.com>
1385
1386 * elf32-fr30.c: Fix formatting.
1387 * elf32-hppa.c: Likewise.
1388 * elf32-i370.c: Likewise.
1389 * elf32-i386.c: Likewise.
1390 * elf32-i860.c: Likewise.
1391 * elf32-i960.c: Likewise.
1392
1393 2000-12-03 Kazu Hirata <kazu@hxi.com>
1394
1395 * elf32-arm.h: Fix formatting.
1396 * elf32-avr.c: Likewise.
1397 * elf32-cris.c: Likewise.
1398 * elf32-d10v.c: Likewise.
1399 * elf32-d30v.c: Likewise.
1400 * elf-hppa.h: Likewise.
1401 * elf-m10200.c: Likewise.
1402 * elf-m10300.c: Likewise.
1403
1404 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1405
1406 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1407 bfd_mach_mips32_4k. Update FIXME comment.
1408 * archures.c (bfd_mach_mips32): New constant.
1409 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1410 the latter, renumber it.
1411 * bfd-in2.h (bfd_mach_mips32): New constant.
1412 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1413 the latter, renumber it.
1414 * cpu-mips.c (I_mips32): New constant.
1415 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1416 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1417 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1418 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1419 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1420 with E_MIPS_MACH_MIPS32_4K.
1421 (_bfd_mips_elf_final_write_processing): Replace
1422 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1423 bfd_mach_mips32 case.
1424 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1425 comparison with support for MIPS32.
1426 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1427 MIPS32.
1428
1429 * aoutx.h (NAME(aout,machine_type)): Add cases for
1430 bfd_mach_mips5 and bfd_mach_mips64.
1431 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1432 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1433 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1434 (arch_info_struct): Add entries for bfd_mach_mips5 and
1435 bfd_mach_mips64.
1436 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1437 _bfd_mips_elf_print_private_bfd_data): Add cases for
1438 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1439 (_bfd_mips_elf_final_write_processing): Add cases for
1440 bfd_mach_mips5 and bfd_mach_mips64.
1441
1442 * aoutx.h (NAME(aout,machine_type)): Add a
1443 bfd_mach_mips_sb1 case.
1444 * archures.c (bfd_mach_mips_sb1): New constant.
1445 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1446 * cpu-mips.c (I_sb1): New constant.
1447 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1448 * elf32-mips.c (elf_mips_mach): Add case for
1449 E_MIPS_MACH_SB1.
1450 (_bfd_mips_elf_final_write_processing): Add case for
1451 bfd_mach_mips_sb1.
1452
1453 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1454
1455 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1456 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1457 (sparc*-*-rtems*): Switched from a.out to ELF.
1458
1459 2000-11-30 Jan Hubicka <jh@suse.cz>
1460
1461 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1462 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1463 (elf64-x86-64.lo): Add dependencies.
1464 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1465 bfd_mach_x86_64_intel_syntax.
1466 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1467 * config.bfd (x86_64): Add.
1468 * configure.in: Add support for bfd_elf64_x86_64_vec.
1469 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1470 (bfd_i386_arch, i8086_ar): Link in.
1471 * elf64-x86-64.c: New file.
1472 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1473 * targets.c (bfd_elf64_x86_64_vec): Add.
1474 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1475
1476 2000-11-30 Kazu Hirata <kazu@hxi.com>
1477
1478 * xcofflink.c: Fix formatting.
1479
1480 2000-11-28 Kazu Hirata <kazu@hxi.com>
1481
1482 * aoutx.h: Fix formatting.
1483 * bfd-in.h: Likewise.
1484 * bfd-in2.h: Likewise.
1485 * cache.c: Likewise.
1486 * cisco-core.c: Likewise.
1487 * coff64-rs6000.c: Likewise.
1488 * coffcode.h: Likewise.
1489 * coffswap.h: Likewise.
1490 * corefile.c: Likewise.
1491 * elf32-mips.c: Likewise.
1492
1493 2000-11-27 Kazu Hirata <kazu@hxi.com>
1494
1495 * aout-adobe.c: Fix formatting.
1496 * coff64-rs6000.c: Likewise.
1497 * coffgen.c: Likewise.
1498 * cofflink.c: Likewise.
1499
1500 2000-11-27 Philip Blundell <pb@futuretv.com>
1501
1502 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1503 (obj_coff_strings_written): New accessor macro for above.
1504 * libcoff.h: Regenerate.
1505 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1506 strings.
1507 * coffcode.h (coff_write_object_contents): No need to write out
1508 the string table if it's already been done.
1509
1510 2000-11-22 Philip Blundell <pb@futuretv.com>
1511
1512 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1513 weak undefined symbols.
1514
1515 2000-11-24 Nick Clifton <nickc@redhat.com>
1516
1517 * archures.c (bfd_mach_arm_5TE): Define.
1518 (bfd_mach_arm+XScale): Define.
1519 * bfd-in2.h: Regenerate.
1520
1521 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1522 BFD_RELOC_ARM_PCREL_BLX.
1523
1524 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1525 XScale machine numbers.
1526
1527 * config.bfd (xscale-elf): Add target.
1528 (xscale-coff): Add target.
1529
1530 * cpu-arm.c: Add xscale machine name.
1531 Add v5t, v5te and XScale machine numbers.
1532
1533 2000-11-23 Kazu Hirata <kazu@hxi.com>
1534
1535 * aix386-core.c: Fix formatting.
1536
1537 2000-11-22 Jim Wilson <wilson@redhat.com>
1538
1539 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1540 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1541 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1542 (ins_imms_scaled): Initialize sign_bit at function entry.
1543 (elf64_ia64_operands): Add missing initializers.
1544 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1545 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1546 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1547 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1548 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1549 parameters.
1550 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1551 and free_extsyms at function entry.
1552 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1553 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1554 (get_got): Delete unused local srel.
1555 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1556 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1557
1558 2000-11-21 Kazu Hirata <kazu@hxi.com>
1559
1560 * coff-a29k.c: Fix formatting.
1561 * coff-h8500.c: Likewise.
1562 * coff-i960.c: Likewise.
1563 * coff-ppc.c: Likewise.
1564 * coff-rs6000.c: Likewise.
1565 * coff-stgo32.c: Likewise.
1566 * coff-tic54x.c: Likewise.
1567 * coff-w65.c: Likewise.
1568 * cpu-h8500.c: Likewise.
1569 * cpu-hppa.c: Likewise.
1570 * cpu-ns32k.c: Likewise.
1571 * ecoff.c: Likewise.
1572 * ecofflink.c: Likewise.
1573
1574 2000-11-21 Nick Clifton <nickc@redhat.com>
1575
1576 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1577 remove possibility of infinite loop.
1578
1579 2000-11-20 Kazu Hirata <kazu@hxi.com>
1580
1581 * aix386-core.c: Fix formatting.
1582 * aout-adobe.c: Likewise.
1583 * aout-arm.c: Likewise.
1584 * aout-encap.c: Likewise.
1585 * aout-ns32k.c: Likewise.
1586 * aout-target.h: Likewise.
1587 * aout-tic30.c: Likewise.
1588 * aoutf1.h: Likewise.
1589 * aoutx.h: Likewise.
1590 * archive.c: Likewise.
1591 * bfd-in.h: Likewise.
1592 * bfd-in2.h: Likewise.
1593 * bfd.c: Likewise.
1594 * bout.c: Likewise.
1595
1596 2000-11-17 H.J. Lu <hjl@gnu.org>
1597
1598 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1599 pltoff entries for DT_INIT and DT_FINI.
1600 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1601 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1602 entries.
1603
1604 2000-11-16 Richard Henderson <rth@redhat.com>
1605
1606 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1607 (allocate_dynrel_entries): Likewise.
1608 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1609 (set_pltoff_entry): Likewise.
1610 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1611 (elfNN_ia64_reloc_type_lookup): Likewise.
1612 (elfNN_ia64_install_value): Likewise.
1613 (elfNN_ia64_relocate_section): Likewise.
1614 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1615 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1616
1617 2000-11-16 Kazu Hirata <kazu@hxi.com>
1618
1619 * cpu-a29k.c: Fix formatting.
1620 * cpu-alpha.c: Likewise.
1621 * cpu-arm.c: Likewise.
1622 * cpu-avr.c: Likewise.
1623 * cpu-d10v.c: Likewise.
1624 * cpu-h8500.c: Likewise.
1625 * cpu-hppa.c: Likewise.
1626 * cpu-i370.c: Likewise.
1627 * cpu-i386.c: Likewise.
1628 * cpu-i960.c: Likewise.
1629 * cpu-ia64-opc.c: Likewise.
1630 * cpu-ia64.c: Likewise.
1631 * cpu-m32r.c: Likewise.
1632 * cpu-m68hc11.c: Likewise.
1633 * cpu-m68hc12.c: Likewise.
1634 * cpu-m68k.c: Likewise.
1635 * cpu-m88k.c: Likewise.
1636 * cpu-mips.c: Likewise.
1637 * cpu-ns32k.c: Likewise.
1638 * cpu-pj.c: Likewise.
1639 * cpu-powerpc.c: Likewise.
1640 * cpu-sh.c: Likewise.
1641 * cpu-sparc.c: Likewise.
1642 * cpu-tic54x.c: Likewise.
1643 * cpu-v850.c: Likewise.
1644 * cpu-vax.c: Likewise.
1645 * cpu-w65.c: Likewise.
1646 * cpu-we32k.c: Likewise.
1647 * cpu-z8k.c: Likewise.
1648 * dwarf1.c: Likewise.
1649 * dwarf2.c: Likewise.
1650
1651 2000-11-15 Kazu Hirata <kazu@hxi.com>
1652
1653 * coff-arm.c: Fix formatting.
1654 * coff-ppc.c: Likewise.
1655 * coff-rs6000.c: Likewise.
1656 * coff-sh.c: Likewise.
1657 * coff-sparc.c: Likewise.
1658 * coff-tic30.c: Likewise.
1659 * coff-tic54x.c: Likewise.
1660 * coff-tic80.c: Likewise.
1661 * coff-w65.c: Likewise.
1662 * coff-we32k.c: Likewise.
1663 * coff-z8k.c: Likewise.
1664
1665 2000-11-15 Richard Henderson <rth@redhat.com>
1666
1667 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1668 section with the same ALLOC|LOAD flags as the source section.
1669
1670 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1671
1672 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1673 by STO_ALPHA constants.
1674
1675 2000-11-14 Kazu Hirata <kazu@hxi.com>
1676
1677 * coff-pmac.c: Fix formatting.
1678 * coff-ppc.c: Likewise.
1679
1680 2000-11-13 H.J. Lu <hjl@gnu.org>
1681
1682 * elflink.h (elf_link_add_object_symbols): Also add indirect
1683 symbols for common symbols with the default version.
1684
1685 2000-11-09 Philip Blundell <pb@futuretv.com>
1686
1687 * section.c (STD_SECTION): Set gc_mark flag.
1688
1689 2000-11-11 Kazu Hirata <kazu@hxi.com>
1690
1691 * coff-i960.c: Likewise.
1692 * coff-m68k.c: Likewise.
1693 * coff-m88k.c: Likewise.
1694 * coff-mcore.c: Likewise.
1695 * coff-mips.c: Likewise.
1696
1697 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1698
1699 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1700
1701 2000-11-10 Kazu Hirata <kazu@hxi.com>
1702
1703 * coff-h8300.c: Fix formatting.
1704 * coff-h8500.c: Likewise.
1705 * coff-i386.c: Likewise.
1706 * coff-i860.c: Likewise.
1707 * coff-i960.c: Likewise.
1708 * coff-ia64.c: Likewise.
1709
1710 2000-11-09 Kazu Hirata <kazu@hxi.com>
1711
1712 * archive.c: Fix formatting.
1713 * archures.c: Likewise.
1714
1715 2000-11-07 Richard Henderson <rth@redhat.com>
1716
1717 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1718 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1719 * section.c (bfd_set_section_contents): Call memcpy if
1720 section->contents set and location not equal to contents plus offset.
1721
1722 2000-11-08 Kazu Hirata <kazu@hxi.com>
1723
1724 * bfd-in.h: Fix formatting.
1725 * bfd-in2.h: Likewise.
1726 * bfd.c: Likewise.
1727 * binary.c: Likewise.
1728 * bout.c: Likewise.
1729 * coff-a29k.c: Likewise.
1730 * coff-alpha.c: Likewise.
1731 * coff-apollo.c: Likewise.
1732 * coff-aux.c: Likewise.
1733
1734 2000-11-07 Kazu Hirata <kazu@hxi.com>
1735
1736 * aix386-core.c: Fix formatting.
1737 * aoutf1.h: Likewise.
1738 * aoutx.h: Likewise.
1739 * archures.c: Likewise.
1740 * armnetbsd.c: Likewise.
1741
1742 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1743
1744 * coff-h8300.c (special): Adjust reloc address.
1745
1746 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1747
1748 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1749 to differentiate elf32 and elf64 on ia64.
1750 * bfd-in2.h: Regenerate.
1751 * config.bfd: Add target for "ia64*-*-hpux*".
1752 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1753 * configure: Regenerate.
1754 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1755 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1756
1757 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1758 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1759 * Makefile.in: Regnerate.
1760 * elf64-ia64.c: Deleted.
1761 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1762
1763 2000-11-06 Kazu Hirata <kazu@hxi.com>
1764
1765 * aout-adobe.c: Fix formatting.
1766 * aout-arm.c: Likewise.
1767 * aout-cris.c: Likewise.
1768 * aout-encap.c: Likewise.
1769 * aout-ns32k.c: Likewise.
1770 * aout-target.h: Likewise.
1771 * aout-tic30.c: Likewise.
1772
1773 2000-11-05 Philip Blundell <philb@gnu.org>
1774
1775 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1776 BFDs containing no sections to be merged, regardless of their flags.
1777
1778 2000-11-04 Philip Blundell <philb@gnu.org>
1779
1780 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1781 if a relocation for an undefined symbol also results in an
1782 overflow.
1783
1784 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1785
1786 * config.bfd: Add support for Sun Chorus.
1787
1788 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1789
1790 * configure.in: Recognize alpha-*-freebsd*.
1791 * configure: Regenerate.
1792
1793 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1794
1795 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1796 (Chunk): New global variable set by a parameter in objcopy.c.
1797 (S3Forced): New global variable set by a parameter in
1798 objcopy.c.
1799 (srec_set_section_contents): If S3Forced is true, always generate
1800 S3 records.
1801 (srec_write_section): Use 'Chunk' to limit maximum length of S
1802 records.
1803
1804 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1805
1806 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1807 * Makefile.in: Regenerate.
1808 * bfd-in2.h: Regenerate.
1809 * po/bfd.pot: Regenerate.
1810
1811 2000-10-31 Philip Blundell <philb@gnu.org>
1812
1813 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1814 EF_SOFT_FLOAT if it is defined.
1815
1816 2000-10-27 Philip Blundell <philb@gnu.org>
1817
1818 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1819 attempts to mix PIC code with non-PIC, just mark the output as
1820 being position dependent.
1821 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1822 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1823 all mismatches, not just the first one.
1824
1825 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1826
1827 * ieee.c (ieee_archive_p): Plug one of many possible
1828 memory leaks in error handling.
1829
1830 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1831
1832 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1833 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1834 Support v8plusb.
1835 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1836 sparc64_elf_object_p): Support v9b.
1837 * archures.c: Declare v8plusb and v9b machines.
1838 * bfd-in2.h: Ditto.
1839 * cpu-sparc.c: Ditto.
1840
1841 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1842
1843 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1844 of a GOT reloc.
1845
1846 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1847 (SYMBOL_CALLS_LOCAL): New macro.
1848 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1849 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1850 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1851 (ppc_elf_relocate_section): Use flag variable to determine
1852 whether the relocation refers to a local symbol.
1853 Test whether a PLTREL24 reloc will produce a reloc by looking
1854 to see whether a PLT entry was made.
1855
1856 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1857
1858 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1859 entries that could serve as a definition for a weak symbol.
1860
1861 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1862
1863 From Ralf Baechle <ralf@gnu.org>
1864
1865 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1866 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1867 against local symbols.
1868 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1869
1870 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1871
1872 * section.c (struct sec): Add kept_section.
1873 (struct bfd_comdat_info): Remove sec, we can use above.
1874 (STD_SECTION): Add initializer.
1875 (bfd_make_section_anyway): Init here too.
1876
1877 * bfd-in2.h: Regenerate.
1878
1879 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1880 zeroing of `flags'.
1881 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1882 fudge values for discarded link-once section symbols.
1883
1884 * elf64-hppa.c: Include alloca-conf.h
1885
1886 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1887
1888 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1889
1890 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1891
1892 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1893
1894 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1895
1896 2000-10-10 Tom Rix <trix@redhat.com>
1897
1898 * section.c (bfd_make_section_anyway): Release newsect ptr when
1899 newsect->symbol fails to alloc. Use bfd_release instead of free.
1900
1901 2000-10-09 Richard Henderson <rth@cygnus.com
1902
1903 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1904 (elf64_ia64_unwind_entry_compare): New.
1905 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1906
1907 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1908
1909 * elflink.h (size_dynamic_sections): Don't create various tags if
1910 .dynstr is excluded from the link. Don't set first dynsym entry
1911 if dynsymcount is zero.
1912 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1913 .dynsym excluded from the link. Don't try to write any dynamic
1914 sections excluded from the link.
1915
1916 * elf.c (swap_out_syms): Handle global section symbols.
1917
1918 2000-10-05 DJ Delorie <dj@redhat.com>
1919
1920 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1921 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1922 (coff_write_relocs): write extended reloc count
1923 (coff_write_object_contents): account for extended relocs
1924
1925 2000-10-05 Jim Wilson <wilson@cygnus.com>
1926
1927 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1928 field.
1929 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1930 elf_backend_section_flags function.
1931 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1932 code.
1933 (elf64_ia64_section_flags): New function containing flag conversion
1934 code.
1935 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1936 * elfxx-target.h (elf_backend_section_flags): Define.
1937 (elfNN_bed): Initialize elf_backend_section_flags field.
1938
1939 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1940
1941 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1942 _bfd_elf32_gc_record_vtable. Correct a comment.
1943
1944 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1945
1946 From Ralf Baechle <ralf@gnu.org>
1947
1948 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1949 produces binaries with got[1] = 0x80000001 to differenciate them
1950 for the dynamic linker from the broken binaries produced by old
1951 versions.
1952
1953 2000-09-30 Petr Sorfa <petrs@sco.com>
1954
1955 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1956 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1957 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1958 * configure: Regenerate.
1959
1960 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1961
1962 Define two bfd_targets for absence and presence of leading
1963 underscore on symbols. Make sure to only link same kind.
1964 * elf32-cris.c (cris_elf_object_p,
1965 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1966 cris_elf_merge_private_bfd_data): New.
1967 (elf_backend_object_p, elf_backend_final_write_processing,
1968 bfd_elf32_bfd_print_private_bfd_data,
1969 bfd_elf32_bfd_merge_private_bfd_data): Define.
1970 <Target vector definition>: Include elf32-target.h twice with
1971 different macro settings:
1972 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1973 bfd_elf32_us_cris_vec.
1974 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1975 (elf_symbol_leading_char): First as 0, then '_'.
1976 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1977 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1978 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1979 * configure: Regenerate.
1980 * targets.c: Declare bfd_elf32_us_cris_vec.
1981 * po/bfd.pot: Regenerate.
1982
1983 2000-09-29 Momchil Velikov <velco@fadata.bg>
1984
1985 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1986 R_ARM_THM_PC22 relocations.
1987
1988 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1989
1990 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1991
1992 2000-09-29 Momchil Velikov <velco@fadata.bg>
1993
1994 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1995 is has the SEC_HAS_CONTENTS flag set.
1996
1997 2000-09-28 Örjan Friberg <orjanf@axis.com>
1998 Hans-Peter Nilsson <hp@axis.com>
1999
2000 * aout-cris.c (N_TXTADDR): Define.
2001
2002 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2003
2004 * som.c: Include alloca-conf.h.
2005 * Makefile.am: "make dep-am"
2006 * Makefile.in: Regenerate.
2007
2008 2000-09-27 Alan Modra <alan@linuxcare.com.au>
2009
2010 * elf32-hppa.c (plt_stub): New.
2011 (PLT_STUB_ENTRY): Define.
2012 (elf32_hppa_link_hash_table): Change multi_subspace to packed
2013 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2014 (elf32_hppa_link_hash_table_create): Init to suit.
2015 (elf32_hppa_check_relocs): Set has_12bit_branch and
2016 has_17bit_branch as appropriate.
2017 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2018 non-local functions.
2019 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2020 Add space for plt_stub as needed.
2021 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2022 functions at plt_stub.
2023 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2024 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2025
2026 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2027 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
2028 of fixed size, and if negative, disable handling of input sections
2029 before stub section. Set up default stub group size depending
2030 on detected branch relocs.
2031 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2032 ensure different offsets from sym_value aren't rounded to
2033 different 2k blocks. Use lrsel and rrsel for other stubs too for
2034 consistency rather than necessity.
2035 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2036 (final_link_relocate): Likewise.
2037 (elf32_hppa_relocate_section): Likewise.
2038
2039 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2040 (_bfd_elf_hppa_gen_reloc_type): Generate them.
2041 (elf_hppa_final_link_relocate): Handle them.
2042 (elf_hppa_relocate_insn): Likewise.
2043 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2044
2045 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
2046
2047 * elfcode.h (elf_object_p): Preserve and clear abfd section
2048 information. Restore at error.
2049
2050 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2051
2052 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
2053 is empty, make sure that its rva also 0. NT loader dislikes
2054 having otherwise.
2055
2056 2000-09-26 Steve Ellcey <sje@cup.hp.com>
2057
2058 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
2059 global by default.
2060
2061 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2062
2063 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
2064 currently unused RELATIVE_DYNAMIC_RELOCS code.
2065 (hppa_discard_copies): Likewise.
2066 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
2067 comments. Don't check non-code output sections for stub grouping.
2068
2069 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2070
2071 * section.c (bfd_get_unique_section_name): Return NULL if
2072 bfd_malloc fails.
2073
2074 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2075
2076 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
2077 instruction sequence to actually work.
2078 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
2079 accordingly.
2080
2081 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
2082
2083 * elf32-sh.c (sh_elf_relocate_section): Use
2084 _bfd_final_link_relocate to apply the relocation against a section
2085 symbol, when doing relocatable links.
2086
2087 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2088
2089 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2090 to id_sec.
2091 (stub_hash_newfunc): Here too.
2092 (hppa_add_stub): And here.
2093 (elf32_hppa_link_hash_table): Remove stub_section_created,
2094 reloc_section_created, first_init_sec and first_fini_sec. Add
2095 stub_group.
2096 (elf32_hppa_link_hash_table_create): Init to suit.
2097 (hppa_get_stub_entry): Add support for grouping stub sections.
2098 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
2099 section code. Index stub vars by section->id.
2100 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
2101 exit paths. Zap allocation of above removed vars. Refine
2102 link-once test.
2103
2104 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2105 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2106 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2107 rather than pointer to bfd_link_info.
2108 (hppa_add_stub): Likewise.
2109 (final_link_relocate): Likewise.
2110
2111 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
2112
2113 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2114 link-once sections.
2115
2116 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
2117
2118 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2119 ld/emulparams/shelf.sh.
2120
2121 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2122
2123 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2124 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2125 * bfd-in2.h: Regenerate.
2126
2127 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
2128
2129 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2130 LITUSE relocations incorrectly if -relax is specified on the ld
2131 command line and the displacement field of the load or store
2132 instruction is non-zero. (Patch by paul.winalski@compaq.com)
2133
2134 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2135
2136 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2137 first_fini_sec here.
2138 (elf32_hppa_size_stubs): Instead correctly find the first .init
2139 and .fini section here.
2140
2141 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
2142
2143 * elf32-hppa.c (clobber_millicode_symbols): New function.
2144 (elf32_hppa_size_dynamic_sections): Call it.
2145
2146 2000-09-14 Alan Modra <alan@linuxcare.com.au>
2147
2148 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2149 packed. Add plabel, plt_abs packed booleans.
2150 (hppa_link_hash_newfunc): Init new fields.
2151 (PLABEL_PLT_ENTRY_SIZE): Define.
2152 (hppa_stub_name): Use size_t len vars.
2153 (hppa_add_stub): Likewise.
2154 (elf32_hppa_build_stubs): Likewise.
2155 (hppa_build_one_stub): Kill some compiler warnings.
2156 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2157 if dynamic linking. Munge the local plt offsets into
2158 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2159 size_t len vars. Add assert for plabel addend.
2160 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2161 (elf32_hppa_hide_symbol): New function.
2162 (elf_backend_hide_symbol): Define.
2163 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2164 with h->plabel set. Don't make plt entries to have dynamic syms
2165 when they have been forced local. If plt entry is used by a
2166 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2167 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2168 Set up .plt offsets for local syms.
2169 (elf32_hppa_relocate_section): Initialise plt entries for local
2170 syms. Leave weak undefined plabels zero. Make global plabel
2171 relocs against function symbol, and leave the addend zero.
2172 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2173 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2174 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2175 relocs instead of SEGREL32 for dynamic got relocs.
2176 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2177 (elf_backend_got_header_size): Adjust.
2178 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2179
2180 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2181 (hppa_type_of_stub): Use it instead of #if 0
2182 (hppa_discard_copies): Use it here too.
2183 (elf32_hppa_size_dynamic_sections): And here.
2184
2185 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2186 (elf32_hppa_link_hash_table_create): And here.
2187 (hppa_build_one_stub): And here. Instead keep track of stub
2188 offset using _raw_size.
2189 (elf32_hppa_size_stubs): Likewise.
2190 (elf32_hppa_build_stubs): Likewise.
2191 (hppa_size_one_stub): Likewise. Resize reloc section too.
2192
2193 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2194 first_fini_sec handling. Don't search for reloc section or set
2195 hplink->reloc_section_created here.
2196 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2197 set reloc_section_created here.
2198 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2199 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2200 and DT_FINI.
2201 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2202
2203 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2204 with `hplink->root.'.
2205 (elf32_hppa_check_relocs): Likewise.
2206 (elf32_hppa_gc_sweep_hook): Likewise.
2207 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2208 (hppa_handle_PIC_calls): Likewise.
2209 (elf32_hppa_size_dynamic_sections): Likewise.
2210 (elf32_hppa_set_gp): Likewise.
2211 (elf32_hppa_relocate_section): Likewise.
2212 (elf32_hppa_finish_dynamic_symbol): Likewise.
2213 (elf32_hppa_finish_dynamic_sections): Likewise.
2214
2215 From David Huggins-Daines <dhd@linuxcare.com>
2216 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2217 defined weak symbols in shared links.
2218 (final_link_relocate): Calls to defined weak symbols in shared
2219 objects must go via import stubs, as the target might not be known
2220 at link time.
2221
2222 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2223
2224 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2225 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2226 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2227 the original entries with EMPTY_HOWTOs, and added new ones to fill
2228 in the gap.
2229 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2230 (sh_elf_relocate_section): Likewise.
2231
2232 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2233
2234 * cpu-mips.c (arch_info_struct): Add mips:4K
2235 * bfd-in2.h (bfd_mach_mips4K): New define.
2236 * archures.c: Add bfd_mach_mips4K to comment.
2237 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2238 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2239
2240 2000-09-13 Marco Franzen <marcof@thyron.com>
2241
2242 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2243 use size_t as a counter.
2244 (som_write_space_strings): Similarly.
2245
2246 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2247
2248 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2249 and prototype.
2250 (elf32_i860_relocate_section): Invoke new function from here.
2251
2252 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2253
2254 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2255 static.
2256
2257 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2258
2259 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2260 target section name instead of dumping core when the target symbol is
2261 undefined.
2262
2263 2000-09-09 Kazu Hirata <kazu@hxi.com>
2264
2265 * riscix.c: Remove DEFUN.
2266
2267 2000-09-08 Nick Clifton <nickc@redhat.com>
2268
2269 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2270 initialise flags in output bfd if the input bfd is the default
2271 architecture with the default flags.
2272
2273 2000-09-08 Kazu Hirata <kazu@hxi.com>
2274
2275 * archive.c: Fix formatting.
2276 * coff-arm.c: Likewise.
2277 * doc/chew.c: Likewise.
2278
2279 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2280
2281 * section.c (bfd_get_unique_section_name): Put a dot before the
2282 numeric suffix.
2283
2284 2000-09-07 Kazu Hirata <kazu@hxi.com>
2285
2286 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2287 * elf.c: Fix formatting.
2288
2289 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2290
2291 * config.bfd (sh-*-linux*): Added.
2292 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2293 * targets.c: Declare them.
2294 * elf32-sh-lin.c: New file.
2295 * Makefile.am: Compile it.
2296 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2297 * configure, Makefile.in: Rebuilt.
2298
2299 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2300
2301 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2302 pseduo-section when determining where the TOC ends.
2303
2304 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2305 output x_tvndx as it is only two bytes wide.
2306
2307 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2308 reloc is 26 or 32 bits wide.
2309
2310 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2311 for relocs that don't change anything. Also look at the full
2312 6 bits of bitsize.
2313
2314 2000-09-06 Philip Blundell <philb@gnu.org>
2315
2316 * config.bfd (arm*-*-uclinux*): New target.
2317
2318 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2319
2320 * configure: Rebuilt with new libtool.m4.
2321
2322 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2323
2324 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2325 word for variable name.
2326 * bfd-in2.h: Regenerate.
2327
2328 2000-09-05 Nick Clifton <nickc@redhat.com>
2329
2330 * config.in: Regenerate.
2331 * libbfd.h: Regenerate.
2332 * po/bfd.pot: Regenerate.
2333 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2334 local versions.
2335
2336 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2337
2338 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2339
2340 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2341
2342 Shared library and PIC support.
2343 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2344 (GOT_ENTRY_SIZE): New.
2345 (ELF_DYNAMIC_INTERPRETER): New.
2346 (STUB_SUFFIX): Define.
2347 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2348 (RELATIVE_DYNAMIC_RELOCS): Define.
2349 (enum elf32_hppa_stub_type): New.
2350 (struct elf32_hppa_stub_hash_entry): Rename offset to
2351 stub_offset. Add a number of new fields.
2352 (struct elf32_hppa_link_hash_entry): New.
2353 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2354 global_value.
2355 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2356 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2357 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2358 new fields.
2359 (hppa_link_hash_newfunc): New function.
2360 (elf32_hppa_link_hash_table_create): Use above function. Init new
2361 fields.
2362 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2363 instead of addend, and remove sym_name from args. Don't use
2364 symbol name for local syms, instead use sym index.
2365 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2366 stub type rather than size. Pass in hash and handle import stub
2367 case. Also pass in reloc instead of offset so we can calculate
2368 PCREL22F and PCREL12F branches properly.
2369 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2370 import and export stubs too.
2371 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2372 import and export stub sizing.
2373 (elf32_hppa_check_relocs): New function.
2374 (elf32_hppa_adjust_dynamic_symbol): New function.
2375 (hppa_discard_copies): New function.
2376 (elf32_hppa_size_dynamic_sections): New function.
2377 (elf_backend_size_dynamic_sections): Define.
2378 (elf32_hppa_finish_dynamic_symbol): New function.
2379 (elf_backend_finish_dynamic_symbol): Define.
2380 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2381 some local vars into the link hash table too. For shared links,
2382 trundle over function syms, generating export stubs. Handle
2383 PCREL22F branches. Break out stub creation code from here..
2384 (hppa_add_stub): .. to here. New function.
2385 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2386 call the bfd linker. Use elf_gp to record global pointer.
2387 Calculate a value from sections if $global$ is missing.
2388 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2389 (elf32_hppa_gc_mark_hook): New function.
2390 (elf_backend_gc_mark_hook): Define.
2391 (elf32_hppa_gc_sweep_hook): New function.
2392 (elf_backend_gc_sweep_hook): Define.
2393 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2394 Add rel to args, and remove howto, input_bfd, offset, addend,
2395 sym_name as we can recalculate these locally. Handle calls to
2396 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2397 handling of undefined weak syms. Check that stubs are in range.
2398 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2399 message on hitting a DPREL21L reloc that needs fixing. Subtract
2400 off PC for PCREL14F. Break out code that does a stub lookup from
2401 here..
2402 (hppa_get_stub_entry): ..to here. New function.
2403 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2404 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2405 relocs, etc. etc.
2406 (elf32_hppa_finish_dynamic_sections): New function.
2407 (elf_backend_finish_dynamic_sections): Define.
2408 (elf_backend_final_write_processing) Define.
2409 (hppa_handle_PIC_calls): New function.
2410 (elf32_hppa_build_stubs): Call it. Pass link_info to
2411 hppa_build_one_stub.
2412 (elf32_hppa_create_dynamic_sections): New function
2413 to create .plt and .got then set .plt flags correctly.
2414 (elf_backend_create_dynamic_sections): Define.
2415 (elf32_hppa_object_p): New function.
2416 (elf_backend_object_p): Define.
2417 (elf32_hppa_elf_get_symbol_type): New function.
2418 (elf_backend_get_symbol_type): Define.
2419 (elf_backend_can_gc_sections): Define.
2420 (elf_backend_want_got_plt): Define.
2421 (elf_backend_plt_alignment): Set to 2.
2422 (elf_backend_plt_readonly): Define.
2423 (elf_backend_want_plt_sym): Define.
2424 (elf_backend_got_header_size): Reserve one entry.
2425
2426 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2427 (elf32_hppa_size_stubs): Pass in multi_subspace.
2428 (elf32_hppa_set_gp): Declare.
2429
2430 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2431 (bfd_get_unique_section_name): New function.
2432 * bfd-in2.h: Regenerate.
2433
2434 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2435 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2436 comment.
2437
2438 From David Huggins-Daines <dhd@linuxcare.com>
2439 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2440 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2441 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2442 been updated in finish_dynamic_symbol before modifying function
2443 symbol.
2444
2445 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2446 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2447 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2448 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2449 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2450 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2451 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2452 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2453
2454 From David Huggins-Daines <dhd@linuxcare.com>
2455 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2456 style of local labels as well.
2457
2458 2000-09-03 Philip Blundell <philb@gnu.org>
2459
2460 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2461 references to undefined symbols in debugging sections.
2462
2463 2000-09-02 H.J. Lu <hjl@gnu.org>
2464
2465 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2466 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2467 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2468 section.
2469
2470 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2471
2472 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2473 (elf32_i860_is_local_label_name): New function and prototype.
2474
2475 2000-09-02 Nick Clifton <nickc@redhat.com>
2476
2477 * configure.in: Increase version number to 2.10.91.
2478 * configure: Regenerate.
2479 * aclocal.m4: Regenerate.
2480 * config.in: Regenerate.
2481 * po/bfd.pot: Regenerate.
2482
2483 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2484
2485 * elf.c (_bfd_elf_make_section_from_shdr): Add
2486 .gnu.linkobce.wi. to the list of debug section names.
2487
2488 2000-09-02 Nick Clifton <nickc@redhat.com>
2489
2490 * dwarf2.c (find_debug_info): New function: Locate a section
2491 containing dwarf2 debug information.
2492 (bfd_dwarf2_find_nearest_line): Find all sections containing
2493 debug information and include them in the stash.
2494
2495 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2496
2497 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2498 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2499 (sh_reloc_map): Add new relocs.
2500 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2501 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2502 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2503 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2504 functions.
2505 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2506 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2507 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2508 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2509 New array constants.
2510 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2511 New variables.
2512 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2513 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2514 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2515 elf_sh_plt_reloc_offset): Define.
2516 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2517 elf_sh_link_hash_table): New structs.
2518 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2519 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2520 relocation types.
2521 (elf_backend_create_dynamic_sections,
2522 bfd_elf32_bfd_link_hash_table_create,
2523 elf_backend_adjust_dynamic_symbol,
2524 elf_backend_size_dynamic_sections,
2525 elf_backend_finish_dynamic_symbol,
2526 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2527 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2528 elf_backend_got_header_size, elf_backend_plt_header_size):
2529 Define.
2530 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2531 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2532 New relocs.
2533 * bfd-in2.h, libbfd.h: Rebuilt.
2534
2535 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2536
2537 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2538 change.
2539
2540 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2541
2542 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2543 not initialized, set them to indicate the SH1 instruction set.
2544
2545 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2546
2547 * acinclude.m4: Include libtool and gettext macros from the
2548 top level.
2549 * aclocal.m4, configure: Rebuilt.
2550
2551 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2552
2553 * elf.c: Eliminate references to __sparcv9 macro; replace with
2554 autoconf variables HAVE_PSINFO32_T etc.
2555 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2556 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2557 * config.in: Ditto.
2558 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2559 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2560 * aclocal.m4: Ditto.
2561 * configure: Regenerate.
2562
2563 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2564
2565 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2566 for any shared link, not just shared -Bsymbolic.
2567 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2568 any shared link, and pass link info to it.
2569 (elf_i386_size_dynamic_sections): Update comment.
2570 (elf_i386_discard_copies): Modify to discard relocs for symbols
2571 that have been forced local.
2572 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2573 that have been forced local.
2574
2575 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2576
2577 * elflink.h (elf_link_add_object_symbols): Allow common
2578 symbols to have an alignment of 1 if explicitly requested, and
2579 not overridden by other definitions.
2580
2581 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2582
2583 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2584 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2585
2586 2000-08-22 H.J. Lu <hjl@gnu.org>
2587
2588 * elf-bfd.h (elf_link_hash_table): Add runpath.
2589
2590 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2591 * bfd-in2.h: Rebuilt.
2592
2593 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2594 "runpath" field to NULL.
2595 (bfd_elf_get_runpath_list): New function.
2596
2597 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2598 DT_RUNPATH entries.
2599
2600 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2601
2602 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2603 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2604 explicitly. Improve validation of r_type.
2605
2606 2000-08-21 H.J. Lu <hjl@gnu.org>
2607
2608 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2609 dynamic allocated content space. Add a comment to remind us that
2610 one day this ought to be fixed.
2611 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2612 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2613 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2614
2615 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2616
2617 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2618 field with the newly relocated value instead of adding it to the
2619 existing immediate field.
2620 (elf32_i860_relocate_splitn): Likewise.
2621 (elf32_i860_relocate_highadj): Likewise.
2622
2623 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2624
2625 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2626 was previously just a stub).
2627
2628 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2629
2630 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2631 Formatting fixes.
2632 (_bfd_elf_create_dynamic_sections): Likewise.
2633
2634 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2635
2636 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2637 for undefined symbols to be the beginning of the section.
2638
2639 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2640 four extra entries at the beginning of the .rela.plt section.
2641 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2642 section to account for the four reserved entries in the .plt section.
2643
2644 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2645
2646 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2647 to the list of NOPs we recognize after a branch-and-link.
2648 Use the ori NOP when one is needed.
2649
2650 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2651 for large archives.
2652
2653 2000-08-14 Jim Wilson <wilson@cygnus.com>
2654
2655 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2656 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2657 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2658 EF_IA_64_ABSOLUTE.
2659
2660 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2661
2662 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2663
2664 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2665
2666 * elf32-i860.c (elf32_i860_relocate_section): New function.
2667 (i860_final_link_relocate): New function.
2668 (elf32_i860_relocate_splitn): New function.
2669 (elf32_i860_relocate_pc16): New function.
2670 (elf32_i860_relocate_highadj): New function.
2671 (elf32_i860_howto): Minor adjustments to some relocations.
2672 (elf_info_to_howto_rel): Define.
2673 (elf_backend_relocate_section): Define.
2674
2675 2000-08-10 Nick Clifton <nickc@cygnus.com>
2676
2677 * elf32-arm.h: Fix formatting.
2678
2679 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2680
2681 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2682
2683 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2684
2685 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2686
2687 2000-08-07 Kazu Hirata <kazu@hxi.com>
2688
2689 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2690 * elf64-ia64.c: Fix a typo.
2691
2692 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2693
2694 * elf32-i860.c (elf32_i860_howto_table): New structure.
2695 (lookup_howto): New function.
2696 (elf32_i860_reloc_type_lookup): New function.
2697 (elf32_i860_info_to_howto_rela): New function.
2698 (elf_code_to_howto_index): New structure.
2699 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2700 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2701 elf32_i860_reloc_type_lookup.
2702
2703 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2704
2705 * som.c (struct fixup_format): Constify `format'.
2706 (som_hppa_howto_table): Use SOM_HOWTO macro.
2707 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2708 (som_bfd_reloc_type_lookup): Likewise.
2709 (compare_subspaces): Remove unused `count1', `count2'.
2710 (som_begin_writing): Remove unused `total_reloc_size'.
2711 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2712 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2713 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2714 (som_find_nearest_line): Decorate unused parameter(s).
2715 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2716 (som_bfd_link_split_section): Likewise.
2717
2718 2000-08-03 Nick Clifton <nickc@cygnus.com>
2719
2720 * section.c: Restore backed out code.
2721 * elf.c: Restore backed out code.
2722 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2723 binaries from working.
2724 * bfd-in2.h: Regenerate.
2725
2726 2000-08-03 H.J. Lu <hjl@gnu.org>
2727
2728 * section.c: Back out the change made by Nick Clifton
2729 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2730 binaries.
2731 * bfd-in2.h: Likewise.
2732 * elf.c: Likewise.
2733
2734 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2735
2736 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2737
2738 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2739
2740 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2741 * bfd-in2.h, libbfd.h: Regenerate.
2742
2743 2000-07-31 Nick Clifton <nickc@cygnus.com>
2744
2745 * section.c (struct sec): Add new boolean field 'segment_mark'.
2746 (STD_SECTION): Initialise new field to zero.
2747
2748 * bfd-in2.h: Regenerate.
2749
2750 * elf.c (copy_private_bfd_data): Reorganise section to segment
2751 mapping to cope with moved sections requiring new segments,
2752 and overlapping segments.
2753 (SEGMENT_END): New macro: Return the end address of a segment.
2754 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2755 contains a section by comparing their VMA addresses.
2756 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2757 contains a section by comparing their LMA addresses.
2758 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2759 section should be included in a segment.
2760 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2761 follows another in memory.
2762 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2763 segments overlap.
2764
2765 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2766
2767 * cpu-i860.c: Added comments.
2768
2769 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2770 bfd_elf32_i860_little_vec.
2771 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2772 (ELF_MAXPAGESIZE): Changed to 4096.
2773
2774 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2775 new target.
2776 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2777
2778 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2779 config for little endian elf32 i860.
2780 (targ_defvec): Define for the new config above
2781 as "bfd_elf32_i860_little_vec".
2782 (targ_selvecs): Define for the new config above
2783 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2784
2785 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2786 of new target vec.
2787
2788 * configure: Regenerated.
2789
2790 2000-07-27 H.J. Lu <hjl@gnu.org>
2791
2792 * elflink.h (elf_merge_symbol): Take one more argument,
2793 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2794 entry. Don't overide the existing weak definition if dt_needed
2795 is true.
2796 (elf_link_add_object_symbols): Pass dt_needed to
2797 elf_merge_symbol ().
2798
2799 2000-07-27 Nick Clifton <nickc@cygnus.com>
2800
2801 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2802 allocated contents.
2803
2804 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2805
2806 * configure.host (*-*-aix*): AIX has 'long long' always.
2807
2808 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2809 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2810 (xcoff_write_archive_contents_big): Don't update the offset
2811 of the symbol table, xcoff_write_armap will do it.
2812
2813 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2814
2815 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2816 of dynobj for SGI_COMPAT checks.
2817
2818 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2819
2820 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2821 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2822 * bfd-in2.h: Regenerate.
2823
2824 2000-07-21 Nick Clifton <nickc@cygnus.com>
2825
2826 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2827 range symbol indices in relocs and issue an error message.
2828
2829 2000-07-20 H.J. Lu <hjl@gnu.org>
2830
2831 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2832 info->new_dtags when setting DT_FLAGS_1. It will only be set
2833 by the new linker options. It shouldn't break anything.
2834
2835 2000-07-20 H.J. Lu <hjl@gnu.org>
2836
2837 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2838 only if info->new_dtags is true.
2839
2840 2000-07-20 H.J. Lu <hjl@gnu.org>
2841
2842 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2843 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2844
2845 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2846
2847 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2848 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2849 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2850 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2851 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2852 * Makefile.in: Rebuild.
2853 * aclocal.m4: Rebuild.
2854 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2855 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2856 (bfd_cris_arch): Declare.
2857 (bfd_archures_list): Add bfd_cris_arch.
2858 * bfd-in2.h: Rebuild.
2859 * config.bfd: (cris-*-*): New target.
2860 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2861 * configure: Rebuild.
2862 * elf.c (prep_headers): Add bfd_arch_cris.
2863 * libbfd.h: Rebuild.
2864 * libaout.h (enum machine_type): Add M_CRIS.
2865 * reloc.c: Add CRIS relocations.
2866 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2867 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2868 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2869 * po/POTFILES.in, po/bfd.pot: Regenerate.
2870
2871 2000-07-19 H.J. Lu <hjl@gnu.org>
2872
2873 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2874 DF_TEXTREL if DT_TEXTREL is set.
2875 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2876 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2877 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2878 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2879 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2880 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2881 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2882 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2883 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2884 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2885
2886 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2887 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2888 DT_RPATH is set.
2889 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2890
2891 2000-07-19 H.J. Lu <hjl@gnu.org>
2892
2893 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2894 * bfd-in2.h: Rebuild.
2895
2896 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2897 (elf_dt_soname): New.
2898
2899 * elf.c (bfd_elf_set_dt_needed_soname): New.
2900
2901 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2902 entry if the shared object loaded by DT_NEEDED is used to
2903 resolve the reference in a regular object.
2904
2905 2000-07-19 H.J. Lu <hjl@gnu.org>
2906
2907 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2908 DT_DEPAUDIT and DT_AUDIT as strings.
2909
2910 2000-07-19 Nick Clifton <nickc@cygnus.com>
2911
2912 * format.c: Fix formatting.
2913
2914 2000-07-19 H.J. Lu <hjl@gnu.org>
2915
2916 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2917
2918 2000-07-19 H.J. Lu <hjl@gnu.org>
2919
2920 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2921 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2922 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2923 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2924 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2925 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2926 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2927
2928 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2929
2930 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2931 renamed functions from here...
2932 (assign_section_numbers): Use renamed functions.
2933 (prep_headers): Use renamed functions.
2934
2935 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2936 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2937 * bfd-in2.h: Regenerate.
2938
2939 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2940
2941 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2942 parenthesis in if statement.
2943
2944 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2945
2946 Enable the support for Traditional MIPS.
2947 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2948 return ict_none appropriately for traditional mips targets.
2949 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2950 (STUB_MOVE): Conditionalize for traditonal mips.
2951 (STUB_LI16): Likewise.
2952 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2953 room for RTPROC header.
2954 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2955 the permission for the PT_DYNAMIC as read, write and execute.
2956 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2957 for traditonal mips.
2958 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2959 _DYNAMIC_LINKING for traditonal mips.
2960 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2961 in case of traditonal mips.
2962 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2963 entry is required. For a function if PLT is not required then set the
2964 corresponding hash table entry to 0.
2965 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2966 traditonal mips.
2967 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2968 shared object set the value to 0.
2969 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2970 _DYNAMIC_LINKING for traditonal mips.
2971 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2972 for traditonal mips.
2973
2974 2000-07-15 H.J. Lu <hjl@gnu.org>
2975
2976 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2977
2978 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2979
2980 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2981 out a structure that is BFD_IN_MEMORY.
2982
2983 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2984
2985 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2986 bfd pointer. Print section id instead of bfd pointer for local
2987 syms. Prefix addend with `+' for global syms as well as local.
2988 Correct calculation of name component lengths.
2989 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2990
2991 From David Huggins-Daines <dhd@linuxcare.com>
2992 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2993 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2994 (elf64_hppa_modify_segment_map): Likewise.
2995
2996 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2997
2998 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2999 addresses to be "naturally" sign extended. Return -1 if unknown.
3000 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3001 * bfd-in2.h: Regenerate.
3002
3003 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3004
3005 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3006 and ECOF_SIGNED_64 to list ways to extract an offset.
3007 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3008 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3009 Update.
3010 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3011 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3012
3013 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3014
3015 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3016 bfd_get_start_address.
3017 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3018 (elf_swap_ehdr_out): Ditto.
3019
3020 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
3021
3022 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3023 compatibility with older binutils.
3024
3025 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3026
3027 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3028 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3029
3030 From Ryan Bradetich <rbradetich@uswest.net>
3031 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3032 (parse_line_table): Ditto.
3033 (_bfd_dwarf1_find_nearest_line): Ditto.
3034 * syms.c (cmpindexentry): Remove extra `*' from params.
3035
3036 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3037
3038 * elf32-mips.c (sort_dynamic_relocs): New Function.
3039 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3040 via qsort to sort the dynamic relocations in increasing r_symndx
3041 value.
3042
3043 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3044
3045 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
3046 ATTRIBUTE_UNUSED to unused args.
3047 (get_opd): Likewise.
3048 (get_plt): Likewise.
3049 (get_dlt): Likewise.
3050 (get_stub): Likewise.
3051 (elf64_hppa_adjust_dynamic_symbol): Likewise.
3052 (elf64_hppa_link_output_symbol_hook): Likewise.
3053 (elf64_hppa_check_relocs): Delete unused var.
3054 (elf64_hppa_size_dynamic_sections): Likewise.
3055 (elf64_hppa_finalize_opd): Likewise.
3056 (elf64_hppa_finalize_dynreloc): Likewise.
3057 (elf64_hppa_modify_segment_map): Likewise.
3058 (elf64_hppa_finish_dynamic_sections): Likewise.
3059
3060 * elf-hppa.h (elf_hppa_final_write_processing): Add
3061 ATTRIBUTE_UNUSED to unused args.
3062 (elf_hppa_final_link_relocate): Likewise.
3063 (elf_hppa_record_segment_addrs): Add paretheses.
3064 (elf_hppa_relocate_section): Constify dyn_name.
3065
3066 From David Huggins-Daines <dhd@linuxcare.com>
3067 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
3068 rearrange case statement so that it gets preferred to 32-bit ones.
3069
3070 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
3071 asection->id instead of address of asection structure.
3072 (elf32_hppa_size_stubs): Likewise.
3073
3074 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
3075 for .init* and .fini*.
3076
3077 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
3078 and addends used in stub names to 32 bits.
3079 (elf32_hppa_size_stubs): Likewise.
3080
3081 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3082 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
3083 not bfd_put_64. Fix minor comment typo and formatting.
3084
3085 Changes to create multiple linker stubs, positioned immediately
3086 before the section where they are required.
3087 * elf32-hppa.c: Don't include hppa_stubs.h.
3088 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3089 (elf32_hppa_stub_hash_table): Delete.
3090 (elf32_hppa_link_hash_entry): Delete.
3091 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3092 stub_hash_table, and store the struct here rather than a pointer.
3093 Delete output_symbol_count. Add offset array. Change
3094 global_value to a bfd_vma.
3095 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3096 (elf32_hppa_stub_hash_traverse): Delete.
3097 (elf32_hppa_name_of_stub): Delete.
3098 (elf32_hppa_link_hash_lookup): Delete.
3099 (elf32_hppa_link_hash_traverse): Delete.
3100 (elf32_hppa_stub_hash_table_init): Delete.
3101 (elf32_hppa_size_of_stub): Pass input section and offset rather
3102 than location and calculate location here. Don't pass name as all
3103 stubs are now the same size.
3104 (elf32_hppa_stub_hash_newfunc): Init new fields.
3105 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3106 too.
3107 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3108 comparing against ints. Rewrite stub handling code.
3109 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3110 Case enums to int before comparing against ints. Remove
3111 bfd_reloc_dangerous case.
3112 (elf32_hppa_build_one_stub): Rewrite.
3113 (elf32_hppa_size_one_stub): New function.
3114 (elf32_hppa_build_stubs): Rewrite.
3115 (elf32_hppa_size_stubs): Pass in linker call-back functions.
3116 Rewrite stub-handling specific code.
3117
3118 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3119
3120 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3121
3122 * hppa_stubs.h: Delete.
3123 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3124 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3125 * Makefile.in: Regenerate.
3126
3127 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3128 e_nlrsel.
3129
3130 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3131
3132 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3133 and section name for bfd_reloc_notsupported error message.
3134 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3135 bfd_reloc_notsupported.
3136 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3137
3138 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3139 undefined weak symbols for all relocs.
3140 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3141 offsets are relative to one past the delay slot.
3142 (elf32_hppa_size_stubs): Account for reloc addend when calculating
3143 branch destination. Put addend into stub name too.
3144 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3145 adjust by 8 when deciding whether a linker stub is needed. Put
3146 addend into stub name as for above.
3147
3148 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3149 various args and vars.
3150 (elf32_hppa_bfd_final_link_relocate): Here too.
3151 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3152 inner block var to avoid shadowing.
3153
3154 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3155 unsigned.
3156 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3157 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3158 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3159
3160 * libhppa.h: Change practically all unsigned ints to plain ints.
3161 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3162 prototypes.
3163
3164 From Ryan Bradetich <rbradetich@uswest.net>
3165 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3166 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3167 suit above.
3168 From David Huggins-Daines <dhd@linuxcare.com>
3169 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3170 to the new OP_* ones.
3171
3172 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3173 error exit. Bail out earlier on plabel relocs that we aren't
3174 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3175 string, and then don't free our copy.
3176 (elf32_hppa_build_one_stub): Make insn unsigned int.
3177
3178 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3179 available with BL, not BE and BLE.
3180
3181 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3182 code for elf arg relocs.
3183 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3184 argument with elf_link_hash_entry h. Handle undefined weak
3185 symbols. Move $global$ lookup from here...
3186 (elf32_hppa_relocate_section): ...to here. Return correct error
3187 message for non-handled relocs.
3188 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3189 wrong test was -0x3ffff to +0x40000.
3190
3191 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3192 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3193 Handle them as such.
3194 (elf_hppa_relocate_insn): Fix a typo.
3195
3196 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3197 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3198 assemble_17, assemble_21): Delete.
3199 Supply defines for all 64 possible opcodes.
3200 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3201 formats. Handle COMICLR.
3202 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3203 -10, -16, 16, 22.
3204
3205 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3206 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3207 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3208 to suit.
3209 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3210 the local syms - did this code get deleted accidentally? Ignore
3211 undefined and undefweak syms.
3212
3213 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3214 block. Use it instead of elf64_hppa_hash_table (info).
3215 (elf_hppa_final_link_relocate): Use hppa_info instead of
3216 elf64_hppa_hash_table (info).
3217
3218 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3219 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3220 (hppa_rebuild_insn): Mask immediate bits here instead.
3221 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3222
3223 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3224
3225 * section.c (struct sec): Add id field. Tidy comment formatting.
3226 (bfd_make_section_anyway): Set id.
3227 (STD_SECTION): Init id too.
3228 Change CONST to const throughout.
3229 * archures.c (bfd_arch_info): Tidy comment.
3230 (bfd_arch_list): Change a CONST to const.
3231 * libbfd-in.h: Tidy comments and replace CONST with const.
3232 * elf-bfd.h: Likewise.
3233 * libbfd.h: Regenerate.
3234 * bfd-in2.h: Regenerate.
3235 * libcoff.h: Regenerate.
3236
3237 2000-07-07 DJ Delorie <dj@redhat.com>
3238
3239 * archive.c (_bfd_write_archive_contents): Add an informative
3240 comment.
3241
3242 2000-07-06 Kazu Hirata <kazu@hxi.com>
3243
3244 * srec.c: Fix formatting.
3245
3246 2000-06-05 DJ Delorie <dj@redhat.com>
3247
3248 * MAINTAINERS: new
3249
3250 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3251
3252 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3253 value of PC-relative offsets.
3254
3255 2000-07-03 Jim Wilson <wilson@cygnus.com>
3256
3257 * elf64-alpha.c (alpha_elf_size_info): New.
3258 (elf_backend_size_info): Define to alpha_elf_size_info.
3259 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3260
3261 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3262
3263 * elf32-mips.c: Include elf32-target.h again for the traditional
3264 MIPS targets.
3265
3266 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3267
3268 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3269 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3270 (avr_info_to_howto_rela): Likewise.
3271 (elf32_avr_gc_mark_hook): Likewise.
3272 (elf32_avr_gc_sweep_hook): Likewise.
3273 (elf32_avr_relocate_section): Likewise.
3274
3275 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3276
3277 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3278 an external symbol for a non-shared, non-relocatable link.
3279
3280 2000-07-03 Nick Clifton <nickc@redhat.com>
3281
3282 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3283 is an external symbol.
3284 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3285 external symbol.
3286
3287 2000-07-03 Kazu Hirata <kazu@hxi.com>
3288
3289 * reloc16.c: Fix formatting.
3290
3291 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3292
3293 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3294 to add a new target for traditional mips i.e
3295 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3296 * configure.in: Likewise.
3297 * configure: Rebuild.
3298 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3299 bfd_target_vector.
3300 (bfd_elf32_tradlittlemips_vec): Likewise.
3301 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3302 to see that elfNN_bed does not get redefined even if the target file
3303 is included twice for a chip. See elf32-mips.c.
3304
3305 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3306
3307 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3308 (CLEANFILES): Add DEPA.
3309 * Makefile.in: Regenerate.
3310
3311 2000-06-30 DJ Delorie <dj@cygnus.com>
3312
3313 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3314 can't assume the PE header is at 0x80.
3315
3316 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3317
3318 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3319
3320 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3321
3322 * go32stub.h: Update stub.
3323
3324 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3325
3326 * archures.c (bfd_mach_avr5): Define.
3327 * bfd-in2.h (bfd_mach_avr5): Define.
3328 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3329 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3330 (compatible): Update comment. Add missing test.
3331 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3332 for avr2 and avr4. Simplify 8K wrap code.
3333 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3334 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3335
3336 2000-06-26 Kazu Hirata <kazu@hxi.com>
3337
3338 * coff-h8300.c: Fix formatting.
3339 * cpu-h8300.c: Likewise.
3340
3341 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3342
3343 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3344 for local symbols whose names are unknown.
3345
3346 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3347
3348 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3349 find one.
3350 * Makefile.in: Regenerate.
3351 * doc/Makefile.in: Regenerate.
3352
3353 2000-06-20 H.J. Lu <hjl@gnu.org>
3354
3355 * Makefile.am: Rebuild dependency.
3356 * Makefile.in: Rebuild.
3357
3358 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3359
3360 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3361 (elf_backend_copy_indirect_symbol): Map to the new function.
3362
3363 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3364
3365 * archive.c (normalize): Correct pointer comparison when checking
3366 for backslashes.
3367 (bfd_bsd_truncate_arname): Likewise.
3368 (bfd_gnu_truncate_arname): Likewise.
3369
3370 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3371
3372 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3373 sections elf_{text,data}_{section,symbol}.
3374 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3375 (_bfd_mips_elf_hide_symbol): New function.
3376 (elf_backend_hide_symbol): Map to the new function.
3377 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3378 definitions of mips_elf_{text,data}_{section,symbol}.
3379 (mips_elf_local_relocation_p): Try to find the direct symbol
3380 based on new check_forced argument.
3381 (mips_elf_calculate_relocation): Use new version of
3382 mips_elf_local_relocation_p.
3383 (mips_elf_relocate_section): Likewise.
3384 (_bfd_mips_elf_relocate_section): Likewise.
3385 (mips_elf_sort_hash_table): Only assert that have enough GOT
3386 space.
3387 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3388 entry if the relocation based on the new external argument.
3389 (mips_elf_create_dynamic_relocation): Assert that we have a
3390 section contents allocated where we can swap out the dynamic
3391 relocations.
3392 (mips_elf_calculate_relocation): Find the real hash-table entry
3393 correctly by using h->root.root.type. Only create a dynamic
3394 relocation entry if the symbol is defined in a shared library.
3395 Create an external GOT entry for the GOT16 relocation if the
3396 symbol was forced local.
3397 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3398 dynamic index if the symbol was forced local.
3399
3400 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3401
3402 * elf32-mips.c: Fix typos in comments.
3403
3404 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3405
3406 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3407 CORE_VERSION_1.
3408
3409 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3410
3411 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3412 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3413 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3414 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3415 (bfd_elf32_m68hc11_vec): Likewise.
3416 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3417 Supports 68hc11 & 68hc12 at the same time.
3418 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3419 bfd_target_vector.
3420 (bfd_elf32_m68hc11_vec): Likewise.
3421 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3422 * archures.c (bfd_m68hc12_arch): Define and register in global list
3423 (bfd_m68hc11_arch): Likewise.
3424 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3425 BFD_RELOC_M68HC11_3B): Define.
3426 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3427 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3428
3429 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3430
3431 * elf_bfd.h (struct elf_backend_data): Add info argument to
3432 elf_backend_hide_symbol.
3433 (_bfd_elf_link_hash_hide_symbol): Likewise.
3434 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3435 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3436 * elflink.h (elf_link_add_object_symbols): Likewise.
3437 (elf_link_assign_sym_version): Likewise.
3438
3439 2000-06-18 H.J. Lu <hjl@gnu.org>
3440
3441 * coff-i386.c (coff_i386_reloc): Don't return in case of
3442 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3443 Compensate PE relocations when linking with non-PE object
3444 files to generate a non-PE executable.
3445
3446 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3447
3448 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3449 GOT entries if we're doing a static link or -Bsymbolic link.
3450
3451 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3452
3453 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3454 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3455 available.
3456 (elf_link_output_relocs): Likewise.
3457 (elf_reloc_link_order): Likewise.
3458
3459 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3460
3461 * archures.c (enum bfd_architecture): #define constants for
3462 PowerPc and RS6000 machine numbers.
3463 * bfd-in2.h: Regenerate.
3464 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3465 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3466 and RS6000 machine numbers using #defined constants from
3467 archures.c.
3468 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3469 machine numbers using #defined constants from archures.c. Add
3470 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3471 64-bit words in 620 entry.
3472 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3473 RSC, and RS2.
3474 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3475
3476 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3477
3478 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3479 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3480 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3481
3482 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3483
3484 * bfd-in.h (bfd_family_coff): Define.
3485 * bfd-in2.h: Regenerate.
3486 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3487 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3488 instead of bfd_target_coff_flavour.
3489 * cofflink.c (_bfd_coff_final_link): Likewise.
3490 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3491 exclude XCOFF files.
3492 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3493 Likewise.
3494 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3495 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3496 * xcofflink.c (XCOFF_XVECP): Delete.
3497 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3498 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3499 bfd_xcoff_record_link_assignment,
3500 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3501 check for bfd_target_xcoff_flavour.
3502
3503 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3504
3505 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3506 files on AIX 4.3.
3507 (read_hdr): New function.
3508 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3509 of trying to extract individual registers. Set abfd->arch_info
3510 to match the architecture that created the core file.
3511 (rs6000coff_get_section_contents): Delete.
3512 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3513
3514 2000-06-14 H.J. Lu <hjl@gnu.org>
3515
3516 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3517 is NULL.
3518
3519 2000-06-13 H.J. Lu <hjl@gnu.org>
3520
3521 * configure: Regenerate.
3522
3523 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3524
3525 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3526 armpei_little_vec.
3527
3528 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3529
3530 * configure.in (VERSION): Update to show this is the CVS mainline.
3531
3532 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3533
3534 * elf32-d10v.c: Include elf/d10v.h
3535 (enum reloc_type): Delete.
3536 * elf32-d30v.c: Include elf/d30v.h
3537 (enum reloc_type): Delete.
3538
3539 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3540 * Makefile.in: Regenerate.
3541
3542 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3543 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3544 move HOWTOs into elf_howto_table.
3545 (R_386_standard, R_386_ext_offset): Define.
3546 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3547 (elf_i386_reloc_type_lookup): Modify calculation of index into
3548 elf_howto_table since we've removed the padding.
3549 (elf_i386_info_to_howto_rel): Likewise.
3550 (elf_i386_relocate_section): Likewise.
3551
3552 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3553
3554 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3555
3556 2000-06-05 H.J. Lu <hjl@gnu.org>
3557
3558 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3559 an error when seeing an undefined symbol with hidden/internal
3560 attribute. It is handled in *_relocate_section ().
3561
3562 2000-06-05 H.J. Lu <hjl@gnu.org>
3563
3564 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3565 indirect symbol for the ELF_LINK_NON_ELF bit.
3566 (elf_link_output_extsym): Don't output the indirect symbol even
3567 if the ELF_LINK_NON_ELF bit is set.
3568
3569 2000-06-01 J.T. Conklin <jtc@redback.com>
3570
3571 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3572 (i[3456]86-*-netbsdaout*): New target.
3573 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3574 (i[3456]86-*-openbsd*): Likewise.
3575
3576 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3577
3578 * trad-core.c: From hpux-core.c, include <dirent.h> or
3579 <sys/ndir.h> when possible.
3580
3581 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3582
3583 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3584 definitions. We must not assume they are sorted in the file
3585 according to their index numbers.
3586
3587 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3588
3589 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3590 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3591 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3592
3593 2000-05-30 Nick Clifton <nickc@cygnus.com>
3594
3595 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3596 80960CA, 80960MC as valid machine names.
3597
3598 2000-05-30 H.J. Lu <hjl@gnu.org>
3599
3600 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3601 visibility bits if the symbol is undefined. Correctly handle
3602 weak undefined symbols with hidden and internal attributes.
3603
3604 * elflink.h (elf_link_add_object_symbols): Always turn the
3605 symbol into local if it has the hidden or internal attribute.
3606
3607 2000-05-29 Philip Blundell <philb@gnu.org>
3608
3609 * ppcboot.c: Add packed attribute if compiling with GCC.
3610
3611 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3612
3613 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3614
3615 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3616
3617 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3618 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3619 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3620 a few old comments.
3621
3622 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3623
3624 * Makefile.am: Update dependencies with "make dep-am"
3625 * Makefile.in: Regenerate.
3626
3627 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3628 bindtextdomain): Replace defines with those from intl/libgettext.h
3629 to quieten gcc warnings.
3630
3631 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3632
3633 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3634
3635 * archive.c (normalize, bfd_bsd_truncate_arname,
3636 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3637 file names with backslashes.
3638
3639 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3640 before opening it.
3641
3642 * sysdep.h: Include filenames.h.
3643
3644 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3645
3646 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3647
3648 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3649
3650 * elf64-sparc.c (sparc64_elf_relax_section): New.
3651 (sparc64_elf_relocate_section): Optimize tail call into branch always
3652 if possible.
3653 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3654 (elf32_sparc_relax_section): New.
3655
3656 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3657
3658 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3659 Remove unusued variables.
3660 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3661 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3662 previous fix, so that shared libs really don't influence targets
3663 extension mask and memory model.
3664
3665 2000-05-23 H.J. Lu <hjl@gnu.org>
3666
3667 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3668 h->root.other not h->other.
3669 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3670
3671 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3672
3673 2000-05-23 H.J. Lu <hjl@gnu.org>
3674
3675 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3676 undefined symbol with the non-default visibility attributes.
3677 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3678 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3679 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3680 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3681 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3682 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3683 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3684 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3685 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3686 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3687 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3688
3689 2000-05-22 Richard Henderson <rth@cygnus.com>
3690
3691 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3692 PCREL22, PCREL64I. Zero size of special relocs.
3693 (elf64_ia64_reloc_type_lookup): Likewise.
3694 (USE_BRL, oor_brl, oor_ip): New.
3695 (elf64_ia64_relax_section): New.
3696 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3697 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3698 (elf64_ia64_relocate_section): Likewise.
3699 (bfd_elf64_bfd_relax_section): New.
3700 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3701 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3702 * bfd-in2.h, libbfd.h: Regenerate.
3703
3704 2000-05-22 Nick Clifton <nickc@cygnus.com>
3705
3706 * configure.in : Add peigen.lo to MIPS PE targets.
3707 * configure: Regenerate.
3708
3709 2000-05-22 Momchil Velikov <velco@fadata.bg>
3710
3711 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3712 only if it is known for both input and output bfds. Separate
3713 error message strings as in some languages, it may be necessary
3714 to change more than one place in the string to change between
3715 'big' and 'little'.
3716
3717 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3718 endianess checks, call _bfd_generic_verify_endian_match() instead.
3719
3720 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3721
3722 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3723
3724 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3725 endianess before checking bfd flavours.
3726
3727 2000-05-22 H.J. Lu <hjl@gnu.org>
3728
3729 * elflink.h (elf_link_output_extsym): Clear the visibility
3730 field for symbols not defined locally.
3731
3732 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3733
3734 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3735 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3736 (hppa_rebuild_insn): Mask immediate bits here instead.
3737 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3738
3739 2000-05-18 Momchil Velikov <velco@fadata.bg>
3740
3741 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3742 relocs for an executable, ensure that they are virtual addresses.
3743
3744 2000-05-18 Jeffrey A Law (law@cygnus.com)
3745
3746 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3747
3748 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3749 Rick Gorton <gorton@scrugs.lkg.dec.com>
3750
3751 * elflink.h: Add emitrelocations support: when enabled, relocation
3752 information and relocation sections are put into final output
3753 executables. If the emitrelocations flag is set, do the following:
3754 (elf_bfd_final_link): Emit relocation sections.
3755 (elf_link_input_bfd): Compute relocation section contents.
3756 (elf_gc_sections): Don't clean relocation sections.
3757
3758 2000-05-16 Catherine Moore <clm@cygnus.com>
3759
3760 * som.c (som_decode_symclass): Recognize weak symbols.
3761
3762 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3763
3764 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3765 read idata section only from dataoff.
3766 (pe_print_edata): Correctly check for valid eat_member.
3767
3768 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3769
3770 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3771
3772 2000-05-14 Philip Blundell <philb@gnu.org>
3773
3774 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3775
3776 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3777
3778 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3779
3780 * peigen.c (pe_print_idata): Look for .idata section and print
3781 info even if data directory has zero entries. Read idata section
3782 starting from dataoff, and adjust all data offsets to suit. Cast
3783 all bfd_vma vars to unsigned long before passing to fprintf.
3784 * peigen.c (pe_print_edata): Similarly, look for .edata section
3785 and print info even if data directory has zero entries. Cast
3786 all bfd_vma vars to unsigned long before passing to fprintf.
3787
3788 From Szabolcs Szakacsits <szaka@F-Secure.com>
3789 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3790 directory size which may be bogus.
3791 * peigen.c (pe_print_edata): Similarly.
3792
3793 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3794
3795 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3796 section is empty.
3797 (copy_private_bfd_data): Allow for space possibly taken up by elf
3798 headers when calculating segment physical address from lma.
3799
3800 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3801
3802 * versados.c (versados_scan): Init stringlen and pass_2_done.
3803
3804 * trad-core.c (trad_unix_core_file_p): Return
3805 bfd_error_wrong_format rather than bfd_error_file_truncated.
3806
3807 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3808 add_data_entry. DataDirectory virtual address is relative.
3809 (pe_print_idata): Account for relative DataDirectory virtual
3810 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3811 (pe_print_edata): Similarly.
3812
3813 From Szabolcs Szakacsits <szaka@F-Secure.com>
3814 * peigen.c (dir_names): Add Delay Import Directory.
3815 (pe_print_idata): Always search for bfd section containing
3816 idata address rather than looking up section name. Print this
3817 section name rather than .idata.
3818 (pe_print_edata): Similarly. Also print some fields as %08lx.
3819 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3820 Win32Version.
3821
3822 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3823
3824 * xcoff.h: Rename to xcoff-target.h
3825 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3826 * coff-rs6000.c: Ditto.
3827 * coff64-rs6000.c: Ditto.
3828 * coff-pmac.c: Ditto.
3829 * Makefile.in: Regenerate.
3830
3831 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3832
3833 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3834 Change U802TOC64MAGIC to U803XTOCMAGIC.
3835
3836 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3837
3838 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3839 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3840 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3841
3842 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3843
3844 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3845
3846 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3847
3848 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3849 hidden and internal symbols.
3850 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3851 visibility.
3852 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3853 assign a PLT or GOT entry to symbols with hidden and
3854 internal visibility.
3855
3856 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3857
3858 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3859 the .bss section.
3860 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3861
3862 2000-05-02 H.J. Lu <hjl@gnu.org>
3863
3864 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3865 ELFOSABI_SYSV.
3866
3867 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3868
3869 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3870 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3871 dependencies.
3872 * Makefile.in: Regenerate.
3873
3874 2000-05-01 Jim Wilson <wilson@cygnus.com>
3875
3876 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3877 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3878 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3879 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3880 * Makefile.in: Rebuild.
3881
3882 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3883
3884 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3885 doesn't work very well.
3886
3887 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3888 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3889 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3890 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3891 (elf_hppa_info_to_howto): Likewise.
3892 (elf_hppa_info_to_howto_rel): Likewise.
3893 (elf_hppa_reloc_type_lookup): Likewise.
3894 (elf_hppa_is_local_label_name): Likewise.
3895 (elf_hppa_fake_sections): Likewise.
3896 (elf_hppa_final_write_processing): Likewise.
3897 (elf_hppa_howto_table): Fully initialise all entries.
3898 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3899 (elf_hppa_info_to_howto): Likewise.
3900 (elf_hppa_info_to_howto_rel): Likewise.
3901 (elf_hppa_reloc_type_lookup): Likewise.
3902 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3903 elf_hppa_unmark_useless_dynamic_symbols,
3904 elf_hppa_remark_useless_dynamic_symbols,
3905 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3906 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3907 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3908 elf32-hppa.c mess is cleaned up.
3909 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3910 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3911 r_field then call hppa_field_adjust inline func with variable
3912 r_field arg, instead call hppa_field_adjust with fixed arg.
3913 In case R_PARISC_PCREL22F, don't set r_field.
3914 (elf_hppa_relocate_insn): Change args and return type to unsigned
3915 int. Call re_assemble_* funcs to do the work.
3916
3917 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3918 sign extending.
3919
3920 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3921 extending.
3922 (sign_extend): Mask first before sign extending.
3923 (low_sign_extend): Rewrite without condition expression.
3924 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3925 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3926 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3927 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3928 result as function return value rather than through pointer arg.
3929 Accept unsigned int args, and return unsigned int.
3930 (re_assemble_3): New. Combines function of dis_assemble_3 with
3931 re-assembly of opcode and immediate.
3932 (re_assemble_12): Likewise.
3933 (re_assemble_16): Likewise.
3934 (re_assemble_17): Likewise.
3935 (re_assemble_21): Likewise.
3936 (re_assemble_22): Likewise.
3937 (hppa_field_adjust): Rewrite and document, paying attention to
3938 size of types and signed/unsigned issues.
3939 (get_opcode): Shift before masking.
3940 (FDLW): Rename to FLDW.
3941 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3942 (hppa_rebuild_insn): Change args and return value to unsigned
3943 int. Make use of re_assemble_*. Correct case 11.
3944
3945 * dep-in.sed: Handle ../opcodes/.
3946 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3947 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3948 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3949 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3950 elfarm-nabi.lo dependencies outside of auto-dependency area.
3951 Regenerate dependencies.
3952 * Makefile.in: Regenerate.
3953
3954 * configure.in (TRAD_HEADER): Test non-null before
3955 AC_DEFINE_UNQUOTED.
3956 * configure: Regenerate.
3957
3958 * reloc.c: Fix mis-spelling in comment.
3959
3960 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3961
3962 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3963 * vms.c (vms_openr_next_archived_file): Return NULL.
3964
3965 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3966
3967 * coffcode.h Copy changes mistakenly done to libcoff.h in
3968 4/24/2000 patch.
3969
3970 2000-04-29 Andreas Jaeger <aj@suse.de>
3971
3972 * libbfd-in.h: Correctly check GCC version.
3973 * bfd-in.h: Likewise.
3974 * libhppa.h: Likewise.
3975 * libbfd.h: Regenerate.
3976 * bfd-in2.h: Regenerate.
3977
3978 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3979
3980 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3981 coffdu-rs6000.{lo,c}.
3982 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3983 on xcoff.h
3984 * Makefile.in: Regenerate.
3985 * xcoff.h: New file.
3986 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3987 * coff-rs6000.c: Move all declarations and defines that are
3988 common to the xcoff backends into xcoff.h
3989 * coff64-rs6000.c: Ditto,
3990
3991 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3992
3993 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3994 _bfd_coff_force_symnames in strings and
3995 _bfd_coff_debug_string_prefix_length to their default values.
3996 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3997
3998 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3999
4000 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4001 _bfd_coff_force_symnames in strings and
4002 _bfd_coff_debug_string_prefix_length to their default values.
4003
4004 2000-04-27 Alan Modra <alan@linuxcare.com.au>
4005
4006 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
4007 Check local_got_refcounts before dereferencing.
4008
4009 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4010 before deciding we don't need R_PPC_PLT32 relocation.
4011 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4012 dereferencing.
4013
4014 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4015
4016 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4017 .plt entries.
4018 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4019 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4020 (elf_i386_relocate_section): Allow for .plt to go missing.
4021 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4022 can use a relative reloc for got as elf_i386_relocate_section.
4023 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4024
4025 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
4026
4027 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4028
4029 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
4030
4031 * Makefile.am (coff64-rs6000.lo): New rule.
4032 * Makefile.in: Regenerate.
4033 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4034 xcoff_is_local_label_name, xcoff_rtype2howto,
4035 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4036 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4037 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4038 (NO_COFF_SYMBOLS): Define.
4039 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4040 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4041 internally.
4042 (MINUS_ONE): New macro.
4043 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
4044 relocation.
4045 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
4046 coff_SWAP_aux_out): Map to the new functions.
4047 * coff64-rs6000.c: New file.
4048 * libcoff.h (bfd_coff_backend_data): Add new fields
4049 _bfd_coff_force_symnames_in_strings and
4050 _bfd_coff_debug_string_prefix_length.
4051 (bfd_coff_force_symnames_in_strings,
4052 bfd_coff_debug_string_prefix_length): New macros for above fields.
4053 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
4054 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
4055 of using coff_swap_sym_in directly.
4056 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
4057 (coff_set_flags) Set magic for XCOFF64.
4058 (coff_compute_section_file_positions): Add symbol name length to
4059 string section length if bfd_coff_debug_string_prefix_length is
4060 true.
4061 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
4062 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
4063 using coff_swap_lineno_in directly.
4064 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
4065 and _bfd_coff_debug_string_prefix_length fields.
4066 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
4067 symbol names into strings table when
4068 bfd_coff_force_symnames_in_strings is true.
4069 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
4070 SET_RELOC_VADDR): New macros.
4071 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
4072 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
4073 code.
4074 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
4075 changes within RS6000COFF_C specific code.
4076 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
4077 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
4078 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4079 Extend existing hack on target name.
4080 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4081 target name.
4082 * coff-tic54x.c (ticof): Keep up to date with new fields
4083 in bfd_coff_backend_data.
4084 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4085 targ_selvecs to include rs6000coff64_vec for rs6000.
4086 * configure.in: Add rs6000coff64_vec case.
4087 * cpu-powerpc.c: New bfd_arch_info_type.
4088
4089 2000-04-24 Jeffrey A Law (law@cygnus.com)
4090
4091 * config.bfd: Only disable elf32-hppa vectors, not all of the
4092 BSD and OSF configuration support. Provide (disabled) clauses
4093 for PA64 support.
4094 * configure.in: Add clause for PA64 support.
4095 * configure: Rebuilt.
4096
4097 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4098 (bfd_elf64_hppa_vec): Declare.
4099
4100 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4101 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4102 (elf64-hppa.lo): Add dependencies.
4103 * Makefile.in: Rebuilt.
4104
4105 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4106
4107 2000-04-24 Jason Eckhardt <jle@cygnus.com>
4108
4109 * libhppa.h (dis_assemble_16): New function.
4110 (pa_arch): Added pa20w element.
4111
4112 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
4113
4114 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4115 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4116 bfd_elf64_slurp_reloc_table.
4117
4118 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4119 definitions to get external names.
4120 (elf_write_relocs): Renamed from write_relocs and make global.
4121 (elf_slurp_reloc_table): Make global.
4122 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4123
4124 * archive.c (hpux_uid_gid_encode): New function.
4125 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4126 defined and the ID is greater than 99999.
4127 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4128 special uid/gid fields into 32 bit values.
4129
4130 2000-04-21 Matthew Green <mrg@cygnus.com>
4131
4132 * config.bfd: Add NetBSD/sparc64 support.
4133
4134 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4135 David Mosberger <davidm@hpl.hp.com>
4136 Timothy Wall <twall@cygnus.com>
4137 Jim Wilson <wilson@cygnus.com>
4138
4139 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4140 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4141 (BFD64_BACKENDS): Add elf64-ia64.lo.
4142 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4143 (cpu-ia64.lo, elf64-ia64.lo): New rules.
4144 * Makefile.in: Rebuild.
4145 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4146 (bfd_ia64_arch): Declare.
4147 (bfd_archures_list): Add bfd_ia64_arch.
4148 * bfd-in2.h: Rebuild.
4149 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4150 * configure: Rebuild.
4151 * configure.host: (ia64-*-linux*): New host.
4152 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4153 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4154 * elf.c (prep_headers): Add bfd_arch_ia64.
4155 * libbfd.h: Rebuild.
4156 * reloc.c: Add IA-64 relocations.
4157 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4158 Declare.
4159 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4160 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4161
4162 2000-04-21 Richard Henderson <rth@cygnus.com>
4163
4164 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4165 contents when performing a partial link.
4166 (bfd_elf_d30v_reloc_21): Likewise.
4167
4168 2000-04-20 H.J. Lu <hjl@gnu.org>
4169
4170 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4171 patch to symbols defined by a shared object.
4172 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4173
4174 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4175
4176 K&R compiler fixes.
4177 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4178 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4179
4180 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4181
4182 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4183 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4184 (coff-ia64.lo): Add dependency.
4185 * Makefile.in: Regenerate.
4186 * coff-ia64.c: New file.
4187 * efi-app-ia32.c: Ditto.
4188 * efi-app-ia64.c: Ditto.
4189 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4190 (coff_set_flags): Ditto.
4191 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4192 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4193 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4194 * configure: Regenerate.
4195 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4196 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4197 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4198 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4199 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4200 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4201 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4202 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4203 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4204 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4205 (GET_PDATA_ENTRY): Ditto.
4206 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4207 data_start. Use above macros to read fields that are 64 bit wide for
4208 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4209 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4210 FileAlignment and SectionAlignment to minimum alignment if they
4211 are zero.
4212 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4213 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4214 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4215 Use above macros to write fields that are 64 bit wide for
4216 COFF_WITH_PEP64.
4217 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4218 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4219 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4220 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4221 begin address, end address, and unwind info address only. Use
4222 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4223 print addresses.
4224 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4225 HIGH3ADJ relocation names.
4226 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4227 * targets.c: Declare bfd_efi_app_ia32_vec and
4228 bfd_efi_app_ia64_vec.
4229 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4230 bfd_efi_app_ia64_vec.
4231
4232 2000-04-17 Timothy Wall <twall@cygnus.com>
4233
4234 * bfd-in2.h: Add prototypes for tic54x load page access.
4235 * bfd-in.h: Regenerate.
4236 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4237 in customized _set_arch_mach function.
4238 * coffcode.h (coff_set_alignment_hook): Set section load page if
4239 the appropriate macro is defined.
4240 (write_object_contents): Read section load page.
4241
4242 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4243
4244 * elf32-hppa.h: Update copyright date.
4245
4246 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4247 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4248
4249 * elf32-d30v.c (MAX32): Don't use LL suffix.
4250 (MIN32): Define in terms of MAX32.
4251 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4252
4253 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4254 expression.
4255
4256 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4257
4258 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4259
4260 * dep-in.sed: Match space before file name, not after.
4261 * Makefile.am: Regenerate dependencies.
4262 * Makefile.in: Regenerate.
4263
4264 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4265 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4266 extend without an if statement.
4267
4268 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4269
4270 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4271 signed quantites.
4272 * elf32-mips.c (gprel16_with_gp): Likewise.
4273 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4274 here using -0x40000, not (int)0xfffc0000.
4275 (elf32_hppa_size_of_stub): Likewise.
4276
4277 2000-04-11 Timothy Wall <twall@cygnus.com>
4278
4279 * coff-tic54x.c: Now builds with all targets.
4280 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4281 * Makefile.in: Regenerate.
4282 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4283 unitialized variable.
4284
4285 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4286
4287 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4288 --enable-build-warnings option.
4289 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4290 * Makefile.in, configure: Re-generate.
4291
4292 2000-04-07 Nick Clifton <nickc@cygnus.com>
4293
4294 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4295 BFD_RELOC_THUMB_PCREL_BLX.
4296
4297 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4298 R_ARM_XPC25 and R_ARM_THM_PC22.
4299
4300 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4301 R_ARM_XPC25 and R_ARM_THM_XPC22.
4302 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4303 R_ARM_[XPC25|THM_XPC22].
4304
4305 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4306 elf/arm-oabi.h to elf/arm.h
4307
4308 * Makefile.am: Fix dependency for elfarm-oabi.c
4309 * Makefile.in: Regenerate.
4310
4311 * bfd-in2.h: Regenerate.
4312 * libbfd.h: Regenerate.
4313
4314 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4315
4316 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4317 and restore it on failure. Release newly allocated tdata on
4318 failure.
4319
4320 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4321
4322 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4323 (decode_line_info): Set it. Report error if unit->line_offset is
4324 equal to or larger than it.
4325
4326 2000-04-07 Timothy Wall <twall@cygnus.com>
4327
4328 * targets.c: Added vecs for tic54x.
4329 * reloc.c: Added relocs for tic54x.
4330 * libbfd.h: Regenerated.
4331 * configure: Add TI COFF vecs for tic54x.
4332 * configure.in: Ditto.
4333 * config.bfd (targ_cpu): Recognize new tic54x target.
4334 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4335 * bfd-in2.h: Add tic54x target and relocations.
4336 * Makefile.am, Makefile.in: Add tic54x target.
4337 * archures.c (bfd_archures_list): Add tic54x target.
4338 * coff-tic54x.c: New.
4339 * cpu-tic54x.c: New.
4340
4341 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4342
4343 * elfcore.h (elf_core_file_p): call backend_object_p which
4344 thereby gets an opportunity to update the arch/machine type.
4345
4346 2000-04-06 Timothy Wall <twall@cygnus.com>
4347
4348 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4349 class. Handle SEC_CLINK and SEC_BLOCK flags.
4350 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4351 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4352
4353 2000-04-06 Nick Clifton <nickc@cygnus.com>
4354
4355 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4356 EF_INTERWORK if this is an unknown EABI.
4357 (elf32_arm_merge_private_bfd_data): Check EABI version
4358 numbers. Only check EF_xxx flags if the EABI version number
4359 is unknown.
4360 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4361 if the EABI version number is unknown.
4362 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4363 if the EABI version number is unknown.
4364
4365 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4366
4367 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4368 BFD_RELOC_SH_LOOP_END.
4369 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4370 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4371 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4372 (sh_elf_reloc_loop): New function.
4373 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4374 any more.
4375 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4376 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4377 * bfd-in2.h, libbfd.h: Regenerate.
4378
4379 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4380
4381 * po/bfd.pot: Regenerate.
4382
4383 * Makefile.am: Remove extraneous mkdep comment.
4384 (MKDEP): Use gcc -MM rather than mkdep.
4385 (DEP): Quote when passing vars to sub-make. Add warning
4386 message to end.
4387 (DEP1): Rewrite for "gcc -MM".
4388 (CLEANFILES): Add DEP2.
4389 Update dependencies.
4390 * Makefile.in: Regenerate.
4391
4392 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4393
4394 * configure.in: Added corefile support for AIX 4.3. In particular,
4395 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4396 compiling rs6000-core.c.
4397 * configure: Regenerated.
4398
4399 2000-04-03 H.J. Lu <hjl@gnu.org>
4400
4401 * cache.c (bfd_open_file): Unlink the output file only if
4402 it has non-zero size.
4403
4404 2000-04-01 Ken Block USG <block@zk3.dec.com>
4405
4406 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4407 relative relocations for non-loaded sections in shared objects.
4408 (elf64_alpha_check_relocs): Similarly.
4409
4410 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4411
4412 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4413 BFD_RELOC_16 to switch for extended relocs.
4414 (MY_swap_ext_reloc_in): New.
4415 (MY_swap_ext_reloc_out): New.
4416 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4417 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4418 (NAME(aout,squirt_out_relocs)): Similarly use
4419 MY_swap_ext_reloc_out.
4420 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4421
4422 2000-04-03 Kazu Hirata <kazu@hxi.com>
4423
4424 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4425 the R_PCRWORD_B case.
4426
4427 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4428
4429 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4430 on some targets.
4431 * ihex.c : Ditto.
4432
4433 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4434
4435 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4436 HOWTO references to bfd_elf_generic_reloc, that have
4437 partial_inplace == true, now use the new function. The function
4438 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4439 extends its fixes to the R_M32R_{16,24,32} relocs.
4440 The new logic in m32r_elf_lo16_reloc() has been removed, and
4441 it instead calls the new routine to obtain that functionality.
4442
4443 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4444
4445 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4446 elf32_avr_check_relocs, avr_final_link_relocate,
4447 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4448 elf32_avr_object_p): Add prototypes.
4449 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4450 (bfd_elf_avr_final_write_processing): Make static.
4451
4452 2000-03-27 Denis Chertykov <denisc@overta.ru>
4453
4454 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4455 * archures.c (bfd_architecture): Add AVR architecture.
4456 (bfd_archures_list): Add reference to AVR architecture info.
4457 * elf.c (prep_headers): Handle bfd_arch_avr.
4458 * reloc.c: Add various AVR relocation enums.
4459 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4460 list.
4461 * Makefile.am: Add support for AVR elf.
4462 * configure.in: Likewise.
4463 * config.bfd: Likewise.
4464 * Makefile.in: Regenerate.
4465 * configure: This too.
4466 * bfd-in2.h: And this.
4467 * libbfd.h: And this.
4468
4469 2000-03-24 H.J. Lu <hjl@gnu.org>
4470
4471 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4472 (elf64_alpha_find_reloc_at_ofs): Likewise.
4473
4474 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4475
4476 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4477 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4478 allowable range used to be -2**(n-1) to 2**n-1.
4479 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4480 "boolean overflow" with "bfd_reloc_status_type flag".
4481
4482 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4483
4484 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4485
4486 2000-03-14 Kazu Hirata <kazu@hxi.com>
4487
4488 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4489 of shrinks properly, including the last reloc.
4490
4491 2000-03-13 Kazu Hirata <kazu@hxi.com>
4492
4493 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4494 check for R_MOVL2.
4495
4496 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4497
4498 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4499 a format mismatch rather than an "error" from bfd_read such as
4500 bfd_error_file_truncated.
4501
4502 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4503
4504 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4505 sign-extension and big-endian compensation for
4506 R_MIPS_64 even in ld -r.
4507
4508 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4509
4510 * elf32-mips.c (mips_elf_next_relocation): Rename from
4511 mips_elf_next_lo16_relocation, and generalize to look
4512 for any relocation type.
4513 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4514 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4515 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4516 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4517 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4518 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4519 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4520 (mips_rtype_to_howto): Likewise.
4521 (mips_elf_calculate_relocation): Handle new relocs.
4522 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4523 are paired. The addend for R_MIPS_GNU_REL16_S2
4524 is shifted right two bits.
4525
4526 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4527
4528 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4529 comment, and ensure it doesn't happen again.
4530 (bfd_install_relocation): Same here.
4531 (_bfd_relocate_contents): Don't bother assigning unused signmask
4532 shift result. Fix typos in comments.
4533 Remove trailing whitespace throughout file.
4534
4535 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4536
4537 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4538 * bfd-in2.h: Rebuild.
4539
4540 2000-03-06 Nick Clifton <nickc@cygnus.com>
4541
4542 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4543 sym_ptr_ptr fields.
4544 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4545 (SIZEOF_ILF_STRINGS): Redefine.
4546 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4547 relative reloc, as opposed to a section relative reloc.
4548 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4549 not C_LABEL.
4550 Add length of symbol's prefix to string pointer.
4551 Store a pointer to the symbol in the symbol pointer table.
4552 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4553 Initialise the symbol pointer table.
4554 Store the hint in the Hint/Name table.
4555 Make the jump reloc be symbol realtive, not section relative.
4556 Create an import symbol for imported code.
4557
4558 2000-03-06 Catherine Moore <clm@cygnus.com>
4559
4560 * elf.c (swap_out_syms): Check for null type_ptr.
4561
4562 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4563
4564 * aout-target.h (MY(write_object_contents)): Remove unused
4565 and unusable "#if CHOOSE_RELOC_SIZE".
4566 * pc532-mach.c (MY(write_object_contents)): Ditto.
4567 * netbsd.h (MY(write_object_contents)): Ditto.
4568 * hp300hpux.c (MY(write_object_contents)): Ditto.
4569 * freebsd.h (MY(write_object_contents)): Ditto.
4570 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4571
4572 2000-02-29 H.J. Lu <hjl@gnu.org>
4573
4574 * peicode.h (jtab): Make it static.
4575
4576 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4577 defined and COFF_IMAGE_WITH_PE is not defined.
4578 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4579 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4580
4581 2000-03-01 Nick Clifton <nickc@cygnus.com>
4582
4583 * coff-arm.c (bfd_arm_process_before_allocation): Make
4584 'symndx' signed to prevent compile time warning.
4585
4586 * coff-mcore.c: Remove unused prototype for pe_object_p.
4587
4588 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4589 functions that are not used when COFF_IMAGE_WITH_PE is
4590 defined.
4591 (struct sh_opcode): Change type of 'flags' field to unsigned
4592 long so that it can hold the USESAS flag.
4593
4594 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4595
4596 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4597 'sym_sec'.
4598
4599 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4600 parameters.
4601 Remove unusued variables and code.
4602 (elf_backend_add_symbol_hook): Fix prototype.
4603
4604 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4605 'srelgot'.
4606
4607 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4608 'oldinst'.
4609
4610 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4611 parameters.
4612 Remove unusued variables and code.
4613 (elf_backend_add_symbol_hook): Fix prototype.
4614
4615 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4616
4617 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4618 to unused function parameter.
4619
4620 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4621 parameters.
4622 Use EMPTY_HOWTO to initialise empty howto slots.
4623 Remove unused variables.
4624
4625 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4626
4627 2000-03-01 H.J. Lu <hjl@gnu.org>
4628
4629 * aoutx.h (aout_link_input_section_std): Pass "true" to
4630 the undefined_symbol callback.
4631 (aout_link_input_section_ext): Likewise.
4632 * bout.c (get_value): Likewise.
4633 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4634 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4635 Likewise.
4636 (alpha_relocate_section): Likewise.
4637 * coff-arm.c (coff_arm_relocate_section): Likewise.
4638 * coff-i960.c (coff_i960_relocate_section): Likewise.
4639 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4640 * coff-mips.c (mips_relocate_section): Likewise.
4641 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4642 * coff-sh.c (sh_relocate_section): Likewise.
4643 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4644 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4645 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4646 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4647 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4648 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4649 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4650 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4651 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4652 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4653 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4654 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4655 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4656 * elflink.h (elf_link_output_extsym): Likewise.
4657 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4658 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4659 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4660
4661 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4662 undefined_symbol callback when building shared library with
4663 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4664 "true".
4665 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4666 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4667 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4668 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4669 (elf32_mips_get_relocated_section_content): Likewise.
4670 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4671 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4672 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4673 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4674
4675 2000-02-28 Nick Clifton <nickc@cygnus.com>
4676
4677 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4678 * Makefile.in: Regenerate.
4679
4680 * configure.in: Add support for mips and sh pe vectors.
4681 * configure: regenerate.
4682
4683 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4684 targets.
4685
4686 * targets.c: Add mips and sh pe vectors.
4687
4688 * libpei.h (coff_final_link_postscript): Only define if not
4689 already defined.
4690
4691 * coffcode.h: Add support for WinCE magic numbers.
4692
4693 * peigen.c (pe_print_reloc): Update comment and rearrange
4694 appending of newline character.
4695
4696 * peicode.h: Add support for Image Library Format.
4697 (pe_ILF_vars): Structure containing data used by ILF code.
4698 (pe_ILF_make_a_section): New function. Create a section based
4699 on ILF data.
4700 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4701 ILF data.
4702 (pe_ILF_make_a_symbol): New function. Create a symbol based
4703 on ILF data.
4704 (pe_ILF_save_relocs): New function. Store the relocs created
4705 by pe_ILF_make_a_reloc in a section.
4706 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4707 an ILF object.
4708 (pe_ILF_object_p): New function. Return a bfd_target pointer
4709 for an ILF object.
4710 (pe_bfd_object_p): If an ILF object is detected call
4711 pe_ILF_object_p on it.
4712
4713 * coff-arm.c: Add support for WinCE relocs which are different
4714 from normal ARM COFF relocs.
4715 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4716
4717 * coff-sh.c: Add support for sh-pe target.
4718 * pe-sh.c: New file. Support code for sh-pe target.
4719 * pei-sh.c: New file. Support code for sh-pe target.
4720
4721 * pe-mips.c: New file. Support code for mips-pe target.
4722 * pei-mips.c: New file. Support code for mips-pe target.
4723
4724 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4725
4726 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4727 architecture if the object causing the bump is dynamic.
4728 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4729 and also don't it for memory ordering.
4730 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4731
4732 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4733
4734 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4735 calling bfd_get_section_size_before_reloc.
4736 (decode_line_info): Likewise.
4737 (_bfd_dwarf2_find_nearest_line): Likewise.
4738
4739 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4740
4741 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4742 name of the libtool directory.
4743 * Makefile.in: Rebuild.
4744
4745 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4746
4747 * som.c (SOM_HOWTO): Define.
4748 (som_hppa_howto_table): Use it.
4749
4750 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4751
4752 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4753
4754 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4755
4756 2000-02-24 Catherine Moore <clm@cygnus.com>
4757
4758 * som.c (som_misc_symbol_info): Add field
4759 secondary_def.
4760 (som_bfd_derive_misc_symbol_info): Initialize
4761 secondary_def.
4762 (som_build_and_write_symbol_table): Keep track
4763 of secondary_def field.
4764 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4765 if secondary_def field is set.
4766 (som_bfd_ar_write_symbol_stuff): Initialize
4767 secondary_def.
4768
4769 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4770
4771 * dwarf2.c (read_address): Read 16-bits addresses.
4772 (parse_comp_unit): Accept addr_size == 2.
4773
4774 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4775
4776 * bfd-in.h: Update copyright date.
4777
4778 2000-02-23 Linas Vepstas <linas@linas.org>
4779
4780 * cpu-i370.c: New file.
4781 * elf32-i370.c: New file.
4782 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4783 (bfd_i370_arch): New.
4784 (bfd_archures_list): Add bfd_i370_arch.
4785 * elf.c (prep_headers): Add bfd_arch_i370.
4786 * Makefile.am: Add support for IBM 370 elf.
4787 * config.bfd: Likewise.
4788 * configure.in: Likewise.
4789 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4790 * reloc.c (bfd_reloc_code_type): Likewise.
4791 * targets.c: Likewise.
4792
4793 * Makefile.in: Regenerate.
4794 * configure: Regenerate.
4795 * bfd-in2.h: Regenerate.
4796
4797 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4798
4799 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4800 invalid relocation types, and change them to R_386_NONE.
4801
4802 2000-02-22 H.J. Lu <hjl@gnu.org>
4803
4804 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4805 not defined, don't add a second ELF_VER_CHR.
4806
4807 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4808 symbols converted to local symbols even when stripping all
4809 symbols.
4810 (elf_link_output_extsym): Process global symbols converted to
4811 local symbols even if they are being stripped.
4812
4813 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4814
4815 * archures.c (bfd_octets_per_byte): Return unsigned int.
4816 (bfd_arch_mach_octets_per_byte): Ditto.
4817 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4818 comparison warning.
4819 * section.c (bfd_get_section_size_before_reloc): Quell signed
4820 vs. unsigned comparison warning.
4821 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4822 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4823 change. What was I thinking?
4824 * bfd-in2.h: Regenerate.
4825
4826 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4827 (elf_gc_sections): Same here.
4828 (elf_gc_common_finalize_got_offsets): And here.
4829
4830 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4831
4832 ELF HPPA doesn't work at present; remove it until it does.
4833 * config.bfd: Comment out setting targ_defvec to
4834 bfd_elf32_hppa_vec.
4835 * Makefile.am: Rebuild dependencies.
4836 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4837 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4838 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4839 * Makefile.in: Rebuild.
4840 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4841
4842 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4843
4844 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4845 is no bfd_free(). Revert bfd_free part of previous change.
4846
4847 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4848
4849 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4850 arrays.
4851 (coff_compute_section_file_positions): Use bfd_free to pair
4852 bfd_malloc.
4853 (coff_write_object_contents): Likewise.
4854
4855 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4856 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4857
4858 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4859
4860 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4861 (xcoff_ar_file_hdr_big): New structure.
4862 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4863 (xcoff_ar_hdr_big): New structure.
4864 (SIZEOF_AR_HDR_BIG): New macro.
4865 (xcoff_big_format_p): New macro.
4866 (xcoff_ardata_big): New macro.
4867 (arch_xhdr_big): New macro.
4868 (xcoff_slurp_armap): Handle large archives.
4869 (xcoff_archive_p): Detect large archives.
4870 (xcoff_read_ar_hdr): Handle large archives.
4871 (xcoff_openr_next_archived_file): Handle large archives.
4872 (xcoff_generic_stat_arch_elt): Handle large archives.
4873 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4874 (xcoff_write_armap_big): New function.
4875 (xcoff_write_armap): New function, dispatch to _old or _big.
4876 (xcoff_write_archive_contents_old): Rename from
4877 xcoff_write_archive_contents.
4878 (xcoff_write_archive_contents_big): New function.
4879 (xcoff_write_archive_contents): New function, dispatch to _old or
4880 _big.
4881
4882 2000-02-18 Richard Henderson <rth@cygnus.com>
4883
4884 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4885 and hide_symbol members.
4886 (elf_link_hash_copy_indirect): Remove.
4887 (elf_link_hash_hide_symbol): Remove.
4888 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4889 and elf_backend_hide_symbol.
4890 (_bfd_elf_link_hash_copy_indirect): Declare.
4891 (_bfd_elf_link_hash_hide_symbol): Declare.
4892 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4893 (_bfd_elf_link_hash_hide_symbol): Likewise.
4894 (_bfd_elf_link_hash_table_init): Don't init killed members.
4895 * elflink.h (elf_link_add_object_symbols): Use the bed function
4896 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4897 (elf_link_assign_sym_version): Likewise.
4898 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4899 (elf_backend_hide_symbol): Likewise.
4900 (elfNN_bed): Update for new members.
4901
4902 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4903
4904 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4905 STACK_END_ADDR): Define for new core file format.
4906 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4907 for handling the vagaries of the various core file structures used
4908 by AIX over the years.
4909 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4910 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4911 core_dumpx structure.
4912
4913 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4914
4915 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4916 (bfd_mach_sh3_dsp): Likewise.
4917 (bfd_mach_sh4): Reinstate.
4918 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4919 * bfd-in2.h: Regenerate.
4920 * coff-sh.c (struct sh_opcode): flags is no longer short.
4921 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4922 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4923 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4924 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4925 (sh_opcodes): No longer const.
4926 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4927 (sh_insn_uses_reg): Check for USESAS and USESR8.
4928 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4929 (_bfd_sh_align_load_span): Return early for SH4.
4930 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4931 Take into account that field b of a parallel processing insn
4932 could be mistaken for a separate insn.
4933 * cpu-sh.c (arch_info_struct): New array elements for
4934 sh2, sh-dsp and sh3-dsp.
4935 Reinstate element for sh4.
4936 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4937 (SH4_NEXT): Reinstate.
4938 (SH3_NEXT, SH3E_NEXT): Adjust.
4939 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4940 * elf32-sh.c (sh_elf_set_private_flags): New function.
4941 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4942 (sh_elf_merge_private_data): New function.
4943 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4944 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4945 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4946 sh_elf_merge_private_data.
4947
4948 2000-02-13 Richard Henderson <rth@cygnus.com>
4949
4950 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4951 hide_symbol members.
4952 (elf_link_hash_copy_indirect): New.
4953 (elf_link_hash_hide_symbol): New.
4954 * elflink.h (elf_link_add_object_symbols): Break out copy from
4955 indirect new new symbol to elf.c.
4956 (elf_link_assign_sym_version): Break out privatization of
4957 non-exported symbol to elf.c.
4958 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4959 (_bfd_elf_link_hash_hide_symbol): New.
4960 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4961
4962 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4963
4964 * section.c (_bfd_strip_section_from_output): Add info parameter.
4965 If it passed as non-NULL, use it to check whether any input BFD
4966 has an input section which uses this output section. Change all
4967 callers.
4968 * bfd-in2.h: Rebuild.
4969
4970 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4971 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4972 1999-11-29.
4973 * bfd-in2.h: Rebuild.
4974
4975 2000-02-10 Timothy Wall <twall@cygnus.com>
4976
4977 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4978 allow final modifications of swapped-in symbol.
4979 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4980 * coffcode.h (coff_write_relocs): Use macro
4981 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4982 symbol index should be set to -1.
4983
4984 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4985
4986 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4987 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4988 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4989 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4990 sh_insns_uses_or_sets_freg): New functions.
4991 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4992 * (sh_insns_conflict): Use new functions and new macros to
4993 detect conflicts when two instructions both set same integer registers,
4994 both set same fp register, and both set special register.
4995
4996 2000-02-09 Timothy Wall <twall@cygnus.com>
4997
4998 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4999 swapping in sections, so that the swapping routines have access to
5000 the arch/mach info.
5001
5002 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5003
5004 * coff-go32.c: Update comment. Update copyright.
5005
5006 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5007
5008 * syms.c (bfd_decode_symclass)
5009 Two new class characters were added - 'V' and 'v'. The
5010 meaning of 'W' is now restricted to just weak non-object
5011 symbols. This allows differentiation between, for example,
5012 weak functions vs weak objects. nm for example now dumps:
5013 'W' = weak global
5014 'w' = weak unresolved
5015 'V' = weak global object
5016 'v' = weak unresolved object
5017
5018 (bfd_is_undefined_symclass): New function. Return true if the
5019 given symbol class represents and undefined/unresolved symbol.
5020
5021 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5022 unresolved symbols.
5023
5024 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5025
5026 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5027 STT_ARM_16BIT flag set, but it is not attached to a data object
5028 return STT_ARM_16BIT so that it will be treated as code by the
5029 disassembler.
5030
5031 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5032
5033 * coff-i386.c (i3coff_object_p): Remove prototype.
5034 Update copyright.
5035
5036 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5037 to name. Update copyright.
5038
5039 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5040 assignment to avoid warning. Update copyright.
5041
5042 2000-01-24 Robert Lipe (robertl@sco.com)
5043
5044 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
5045 instead of using GNU C extension.
5046
5047 2000-01-21 Nick Clifton <nickc@cygnus.com>
5048
5049 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
5050 amount from a bfd_in_memory structure.
5051 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
5052 structure.
5053
5054 2000-01-14 Nick Clifton <nickc@cygnus.com>
5055
5056 * linker.c (default_indirect_link_order): oops - fix incorrectly
5057 applied patch from Tim Wall.
5058
5059 2000-01-13 Timothy Wall (twall@tiac.net>
5060
5061 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
5062 = scnhsz, filhsz, relsz, aoutsz, etc)
5063
5064 * coffswap.h: Ditto.
5065
5066 2000-01-13 Nick Clifton <nickc@cygnus.com>
5067
5068 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
5069 interwork thumb to arm stub.
5070
5071 2000-01-13 Timothy Wall (twall@tiac.net>
5072
5073 * archures.c (bfd_octets_per_byte): New function: Return
5074 target byte size.
5075 (bfd_arch_mach_octets_per_byte): New function: Return target
5076 byte size.
5077
5078 * section.c: Distinguish between octets and bytes for usage of
5079 _cooked_size, _raw_size, and output_offset. Clarify
5080 description of bfd_set_section_contents.
5081
5082 * bfd-in2.h: Regenerate.
5083
5084 * coffgen.c: Indicate that the offset parameter is in bytes, not
5085 octets.
5086
5087 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5088 where appropriate to get the octet offset when calling
5089 bfd_set_section_contents.
5090 (bfd_coff_reloc_link_order): Ditto.
5091
5092 * linker.c (bfd_generic_reloc_link_order): Ditto.
5093 (_bfd_default_link_order): Ditto.
5094
5095 * reloc.c (bfd_perform_relocation): Distinguish between octets
5096 and bytes. Use octets when indexing into octet data; use bytes
5097 when calculating target addresses.
5098 (bfd_install_relocation): Ditto.
5099
5100 * srec.c (srec_write_section): Ditto.
5101
5102 2000-01-13 Nick Clifton <nickc@cygnus.com>
5103
5104 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5105 3 to 2. This allows 4 byte sized sections, which is necessary for
5106 dlltool to build functioning DLLs.
5107
5108 2000-01-10 Philip Blundell <pb@futuretv.com>
5109
5110 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5111 (arm*-*-conix*): New target.
5112
5113 2000-01-10 Egor Duda <deo@logos-m.ru>
5114
5115 * config.bfd: Include elf32_i386 vector to target list for cygwin
5116 and mingw.
5117
5118 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5119 * configure.in: Test for structure win32_pstatus_t in
5120 <sys/procfs.h>
5121 * configure: Regenerate.
5122
5123 * elf.c (elfcore_grok_win32pstatus): New function: process
5124 win32_pstatus_t notes in elf core file.
5125 (elfcore_grok_note): Detect win32_pstatus notes.
5126
5127 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5128
5129 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5130 visibility.
5131 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5132 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5133
5134 For older changes see ChangeLog-9899
5135 \f
5136 Local Variables:
5137 mode: change-log
5138 left-margin: 8
5139 fill-column: 74
5140 version-control: never
5141 End: