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