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