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