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