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