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