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