* externalize a function
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
d436a9b3
FCE
12001-04-25 Frank Ch. Eigler <fche@redhat.com>
2
3 * bfd-in.h (bfd_cache_close): Declare newly exported function.
4 * bfd-in2.h: Regenerated.
5
a531bbd2
JJ
62001-04-24 Jakub Jelinek <jakub@redhat.com>
7
8 * merge.c (struct sec_merge_hash_entry): Add alignment field.
9 (struct sec_merge_hash): Remove alignment_power.
10 (sec_merge_hash_newfunc): Clear alignment.
11 (sec_merge_hash_lookup): Pass alignment as argument.
12 Use hashp->root.next, not hashp->next to walk the hash chain.
13 If a string already in the hashtable does not have required
14 alignment, create a new hashtable entry.
15 (sec_merge_init): Remove alignment_power argument.
16 (sec_merge_add): Add alignment argument.
17 (sec_merge_emit): Alignment is now a per-entity thing, not per
18 section.
19 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
20 for proper alignment.
21 Pass alignment information to sec_merge_add.
22
6840198f
NC
232001-04-24 Christian Groessler <cpg@aladdin.de>
24
25 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
26 and R_REL16 reloc types; accept odd values for R_REL16 type
27
b3baf5d0
NC
282001-04-24 Johan Rydberg <jrydberg@opencores.org>
29
30 * cpu-openrisc.c: New file.
31 * elf32-openrisc.c: Likewise.
32
33 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
34 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
35 (BFD32_BACKENDS): Add elf32-openrisc.lo.
36 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
37 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
38 * Makefile.in: Regenerated.
39 * config.bfd: (openrisc-*-elf): New target.
40 * configure.in (bfd_elf32_openrisc_vec): New vector.
41 * configure: Regenerated.
42 * libbfd.h: Regenerated.
43 * bfd-in2.h: Regenerated.
44 * reloc.c: Add OpenRISC relocations.
45 * targets.c (bfd_elf32_openrisc_vec): Declare.
46 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
47 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
48 (bfd_openrisc_arch): Declare.
49 (bfd_archures_list): Add bfd_openrisc_arch.
50 * elf.c (prep_headers): Add bfd_arch_openrisc.
51
fe4770f4
AJ
522001-04-23 Bo Thorsen <bo@suse.de>
53
54 * elf64-x86-64.c: Add c++ vtable hack.
55 Small whitespace and comment changes.
56
653165cc
AJ
572001-04-19 Andreas Jaeger <aj@suse.de>
58
59 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
60 (elf64_x86_64_plt_entry): Likewise.
61 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
62 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
63
4d96d128
HPN
642001-04-17 Hans-Peter Nilsson <hp@axis.com>
65
66 * elf32-cris.c: Tweak comments related to dynamic linking.
67 (cris_elf_relocate_section): When not creating shared object, fill
68 in the .got table for any symbol not in the dynamic symbol table.
69 (elf_cris_finish_dynamic_symbol): When not creating shared object,
70 only emit a .got.rela reloc if the symbol is in the dynamic symbol
71 table.
72 (cris_elf_check_relocs): Use variable r_type in all places rather
73 than the original expression. Add default case in switch for
74 reloc types.
75 (elf_cris_size_dynamic_sections): Iterate over
76 elf_cris_discard_excess_program_dynamics when not creating shared
77 library.
653165cc 78 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
79 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
80 (elf_cris_discard_excess_program_dynamics): New.
81
3ed30d29
DD
822001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
83
84 * coffcode.h (coff_write_object_contents): Use
85 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
86
a80f6941
L
872001-04-14 H.J. Lu <hjl@gnu.org>
88
89 * bfd-in2.h: Regenerate.
90
767e4b0d
JJ
912001-04-14 Jakub Jelinek <jakub@redhat.com>
92
93 * section.c (STD_SECTION): Add entsize.
94
2dd439c5
L
952001-04-13 H.J. Lu <hjl@gnu.org>
96
97 * section.c (SEC_MERGE): Define new flag for merging.
98 (SEC_STRINGS): Likewise.
99 (entsize): New field.
100
baf80c32
DD
1012001-04-13 Roger Sayle <roger@metaphorics.com>
102
103 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
104 flag on pe-i386 targets.
105
f5fa8ca2
JJ
1062001-04-13 Jakub Jelinek <jakub@redhat.com>
107
108 * libbfd-in.h (_bfd_merge_section): New.
109 (_bfd_write_merged_section): New.
110 (_bfd_merged_section_offset): New.
111 * libbfd.h: Rebuilt.
112 * linker.c (_bfd_generic_link_output_symbols): Handle
113 discard_sec_merge.
114 * aoutx.h (aout_link_write_symbols): Likewise.
115 * pdp11.c (aout_link_write_symbols): Likewise.
116 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
117 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
118 sections.
119 (elf_link_sec_merge_syms): New.
120 (elf_link_input_bfd): Call _bfd_merged_section_offset
121 and _bfd_write_merged_section.
122 Handle discard_sec_merge.
123 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
124 field.
125 (struct bfd_elf_section_data): Likewise.
126 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
127 SEC_STRINGS section flags and entsize from their ELF counterparts.
128 (_bfd_elf_link_hash_table_init): Initialize merge_info.
129 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
130 from their BFD counterparts.
131 * merge.c: New file.
132 * Makefile.am: Add strtab.lo.
133 * Makefile.in: Rebuilt.
134
d954b040
HPN
1352001-04-09 Hans-Peter Nilsson <hp@axis.com>
136
137 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
138 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
139
fdbafa10
L
1402001-04-05 Steven J. Hill <sjhill@cotw.com>
141
142 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
143 endian MIPS ELF target.
144 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
145 MIPS ELF target.
146
147 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
148 64bit big endian MIPS ELF target.
653165cc 149 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
150 endian MIPS ELF target.
151 * configure: Regenerated.
152
153 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
154 little endian targets.
155 (mips_elf_sym_is_global): Handle traditional targets.
156
157 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
158 64bit big endian MIPS ELF target.
159 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
160 endian MIPS ELF target.
161
162 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
163 and bfd_elf64_tradlittlemips_vec.
164
dd484e5c
L
1652001-04-05 David Mosberger <davidm@hpl.hp.com>
166
167 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
168 ordinary "progbits" section.
169
391a809a
AM
1702001-04-04 Alan Modra <alan@linuxcare.com.au>
171
172 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
173 when -Bsymbolic causes a symbol to no longer need a .plt entry.
174
5854c633
L
1752001-04-03 David Mosberger <davidm@hpl.hp.com>
176
177 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
178
8b4b0fac
L
1792001-03-30 H.J. Lu <hjl@gnu.org>
180
181 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
182 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
183
eb4a6e4f
L
1842001-03-26 H.J. Lu <hjl@gnu.org>
185
186 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
187 if there are any relocations for generic ELF.
188 (bfd_elf32_bfd_link_add_symbols): Defined to
189 elf32_generic_link_add_symbols.
190 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
191 if there are any relocations for generic ELF.
192 (bfd_elf64_bfd_link_add_symbols): Defined to
193 elf64_generic_link_add_symbols.
194
55c80943
NC
1952001-03-23 Nick Clifton <nickc@redhat.com>
196
197 * Makefile.am (BUILD_CFILES): New variable: List of C source
198 files created in build directory.
199 (BUILD_HFILES): New variable: List of header files created in
200 build directory.
201 (POTFILES): Delete.
202 (po/POTFILES.in): Replace rule with empty entry.
203 (po/SRC-POTFILES.in): New rule: Create a list of source files
204 in the source directory.
205 (po/BLD-POTFILES.in): New rule: Create a list of source files
206 in the build directory.
207 (MOSTLYCLEAN): Do not delete source files created in build
208 directory.
209 * Makefile.in: Regenerate.
210 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
211 into po/Makefile.
212 * configure: Regenerate.
213
214 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
215 and BLD_POTFILES.
216 Add .. to the search path when building bfd.pot.
217 Delete POTFILES when performing distclean.
218 Add comment describing why distclean is broken in maintainer mode.
219 * po/POTFILES.in: Delete.
220 * po/SRC-POTFILES.in: New file.
221 * po/BLD-POTFILES.in: New file.
222 * po/bfd.pot: Regenerate.
223
58d29fc3
HPN
2242001-03-22 Hans-Peter Nilsson <hp@axis.com>
225
915e5146
HPN
226 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
227 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
228 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
229 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
230 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
231 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
232 functions.
233 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
234 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
235 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
236 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
237 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
238 New HOWTO members for new relocs.
239 (cris_reloc_map): Map new relocs.
240 (ELF_DYNAMIC_INTERPRETER): Define.
241 (PLT_ENTRY_SIZE): Define.
242 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
243 elf_cris_pic_plt_entry): New, PLT templates.
244 (struct elf_cris_pcrel_relocs_copied, struct
245 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
246 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
247 (cris_final_link_relocate): Check that 16-bit GOT relocs have
248 positive values. Adjust PCREL relocs to be relative to location
249 after relocation.
250 (cris_elf_relocate_section): Handle relocations to dynamic
251 objects. Handle new relocations. Call error handler when seeing
252 non-PIC relocation for read-only sections while generating shared
253 object.
254 (cris_elf_check_relocs): Set reference counts for GOT and PLT
255 entries.
256 (bfd_elf32_bfd_link_hash_table_create,
257 elf_backend_adjust_dynamic_symbol,
258 elf_backend_size_dynamic_sections,
259 elf_backend_finish_dynamic_symbol,
260 elf_backend_finish_dynamic_sections,
261 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
262 elf_backend_hide_symbol, elf_backend_want_got_plt,
263 elf_backend_plt_readonly, elf_backend_want_plt_sym,
264 elf_backend_got_header_size, elf_backend_plt_header_size):
265 Define.
266
58d29fc3
HPN
267 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
268 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
269 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
270 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
271 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
272 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
273 * bfd-in2.h, libbfd.h: Regenerate.
274
7a65545d
DN
2752001-03-21 Diego Novillo <dnovillo@redhat.com>
276
277 (_bfd_mips_elf_relocate_section): Give a better error message when
278 a relocation is not recognized.
279
b32b5d6e
AM
2802001-03-21 Alan Modra <alan@linuxcare.com.au>
281
282 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
283 non-NULL before attempting to dereference.
284
f4fbb4a3
L
2852001-03-20 H.J. Lu <hjl@gnu.org>
286
287 * configure.in: Remove the redundent AC_ARG_PROGRAM.
288 * configure: Rebuild.
289
95fc45e6
AS
2902001-03-20 Andreas Schwab <schwab@suse.de>
291
292 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
293 relocation value when resolving a reference from a debugging
294 section.
295
03d411a9
NC
2962001-03-16 Scott Thomason <SThomaso@hii.com>
297
298 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
299 (xcoff64_swap_sym_out): Fix syntax errors.
300
d1659392
NC
3012001-03-16 Richard Sandiford <rsandifo@redhat.com>
302
303 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
304
12cca0d2
AM
3052001-03-15 Alan Modra <alan@linuxcare.com.au>
306
307 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
308 (hppa_link_hash_newfunc): Init it.
309 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
310 section appears to be non-PIC.
311 (final_link_relocate): Likewise.
312 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
313 possible candidate function, and set pic_call for those that will
314 only have a .plt entry for the PIC call stub.
315 (hppa_handle_PIC_calls): Set maybe_pic_call.
316
cd6ec716
DD
3172001-03-12 DJ Delorie <dj@redhat.com>
318
319 * elf32-sh.c (sh_elf_relocate_section): Only relocation
320 R_SH_DIR8WP* relocs if they're against external symbols, else
321 they're just for relaxing. Validate the reloc values.
322
43a0748c
NC
3232001-03-12 Stefan Geuken <mail@stefan-geuken.de>
324
325 * binary.c (bfd_external_binary_architecture): Declare.
326 (binary_object_p): If bfd_external_binary_architecture is defined,
327 set the architecture to this string.
328
d982ba73
PB
3292001-03-11 Philip Blundell <philb@gnu.org>
330
331 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
332 entries that could serve as a definition for a weak symbol.
333
7898deda
NC
3342001-03-08 Nick Clifton <nickc@redhat.com>
335
336 * Most files: Update copyright notices using Perl script created
337 by Kevin Buettner <kevinb@redhat.com>.
653165cc 338
df425bc0
NC
3392001-03-07 Nick Clifton <nickc@redhat.com>
340
341 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
342 prior patch on ! defined OLD_ARM_ABI.
343
bcdd92f3
AJ
3442001-03-07 Andreas Jaeger <aj@suse.de>
345
346 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
347 some relocation values.
348
4f3c3dbb
NC
3492001-03-06 Nick Clifton <nickc@redhat.com>
350
351 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
352 of offset in BLX(1) instruction.
353 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
354 offset in BLX(1) instruction.
355 Fix formatting.
356
f8f3c6cc
NC
3572001-03-06 Nick Clifton <nickc@redhat.com>
358
359 * coff-arm.c (coff_arm_reloc_type_lookup): Add
360 BFD_RELOC_THUMB_PCREL_BLX.
361
3cac17ae
NC
3622001-03-06 Igor Shevlyakov <igor@windriver.com>
363
364 * archures.c (bfd_default_scan): Add Coldfire CPUs.
365 * bfd-in2.h: Regenerate.
366 * cpu-m68k.c: Add Coldfire CPUs for arch table.
367 * ieee.c (ieee_write_processor): Set proper id for
368 Coldfire CPUs.
369
d1b17ab0
NC
3702001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
371
372 * configure.in: Add s390 target.
373 * configure: Regenerate.
374
5608e05b
AJ
3752001-02-28 Andreas Jaeger <aj@suse.de>
376
377 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
378 to addend.
379
fd2ec330
PB
3802001-02-28 Philip Blundell <pb@futuretv.com>
381
382 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 383 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 384
920581c5
L
3852001-02-27 H.J. Lu <hjl@gnu.org>
386
387 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
388 abfd->tdata.aout_data == NULL.
389
27b7e12d
AM
3902001-02-27 Alan Modra <alan@linuxcare.com.au>
391
3ee1d854
AM
392 * elf32-hppa.c: Correct field selector in stub comments.
393 (clobber_millicode_symbols): Formatting fix.
394
27b7e12d
AM
395 * configure.in: Bump version to 2.11.90.
396 * configure: Regenerate.
397 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
398 (CFILES): $SOURCE_CFILES + generated C files.
399 (POTFILES): Include $HFILES not $SOURCE_HFILES.
400 Run "make dep-am"
401 * Makefile.in: Regenerate.
402 * doc/Makefile.in: This too.
403
10d1e03a
TW
4042001-02-26 Timothy Wall <twall@cygnus.com>
405
406 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 407 comments.
10d1e03a 408
1276aefa
NC
4092001-02-26 Nick Clifton <nickc@redhat.com>
410
411 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
412 up, replacing multiple if statements with a switch.
413 (handle_COMDAT): New function.
414
4152001-02-26 H.J. Lu <hjl@gnu.org>
416
417 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
418 a warning for section flags we do not handle instead of
419 aborting.
420
4a73f21b
AJ
4212001-02-26 Andreas Jaeger <aj@suse.de>
422
423 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
424
7b6dab7f
TW
4252001-02-22 Timothy Wall <twall@cygnus.com>
426
427 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
428 * configure.in: Add objects for elf64_ia64_aix vectors.
429 * configure: Regenerated.
430 * configure.host: Recognize ia64-*-aix*.
431 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
432 for AIX. AIX5 requires most relocations to be dynamic (*all*
433 binaries are somewhat similar to shared libraries).
434 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 435
87f8eb97
JW
4362001-02-21 David Mosberger <davidm@hpl.hp.com>
437
438 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
439 C8 said "1" instead of "8". Clarify error string for IMM22:
440 "signed integer" instead of just "integer".
441
05aa1441
AJ
4422001-02-20 Andreas Jaeger <aj@suse.de>
443
444 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
445 PLT entries that could serve as a definition for a weak symbol.
446
8701c1bc
JJ
4472001-02-19 Jakub Jelinek <jakub@redhat.com>
448
449 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
450 entries that could serve as a definition for a weak symbol.
451 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
452
d4af9775
DB
4532001-02-18 David O'Brien <obrien@FreeBSD>
454
455 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
456 FreeBSD/i386-CURRENT differently until I can figure out the needed
457 corefile changes.
458 * configure: Regenerate.
459 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
460 FreeBSD/PowerPC, and FreeBSD/sparc64.
461
e135f41b
NC
4622001-02-18 lars brinkhoff <lars@nocrew.org>
463
464 * Makefile.am: Add PDP-11 a.out target.
465 * config.bfd: Likewise.
466 * configure.in: Likewise.
467 * targets.c: Likewise.
468 * archures.c: Likewise.
469 * bfd-in2.h: Likewise. Add PDP-11 relocations.
470 * libbfd.h: Add PDP-11 relocations.
471 * reloc.c: Likewise.
472 * cpu-pdp11.c: New file.
473 * pdp11.c: New file.
474
475 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
476 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
477 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
478 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
479 (GET_MAGIC): New macro.
480 (PUT_MAGIC): Likewise.
481 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
482
dc3febfa
NC
4832001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
484
485 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
486 multiarch needs it).
487
ea412e04
L
4882001-02-18 H.J. Lu <hjl@gnu.org>
489
490 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
491 index.
492
47eee8a9
KH
4932001-02-18 Kazu Hirata <kazu@hxi.com>
494
495 * vms-misc.c: Fix formatting.
496
8a0c27cd
KH
4972001-02-16 Kazu Hirata <kazu@hxi.com>
498
499 * vms.c: Fix formatting.
500
d1fad7c6
NC
5012001-02-14 H.J. Lu <hjl@gnu.org>
502
503 * elf.c (elf_find_function): New function.
504 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
505 the file name and function name.
506
825b47db
NC
5072001-02-14 Nick Clifton <nickc@redhat.com>
508
51d7ee16
NC
509 * ecoff.c (bfd_debug_section): Update to initialise new fields in
510 asection structure.
511
825b47db
NC
512 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
513 (BFD64_BACKENDS): Add pepigen.c
514 Add rules to create peigen.c and pepigen.c from peXXigen.c.
515
516 * Makefile.in: Regenerate.
517 * configure: Regenerate.
518 * po/POTFILES.in: Regenerate.
519 * po/bfd.pot: Regenerate.
520
ea36a178
L
5212001-02-14 H.J. Lu <hjl@gnu.org>
522
523 * libcoff-in.h (pe_tdata): Add members target_subsystem and
524 force_minimum_alignment.
525
407443a3
AJ
5262001-02-14 Bo Thorsen <bo@suse.de>
527
528 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
529 (elf64_86_64_size_info): Struct added to fix a problem
530 with the hashtable string entries.
531 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
532 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
533 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
534 remove the FIXME for this.
535 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
536 section. Also removed the FIXME for it.
537 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
538 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
539 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
540
b4adccfd
RH
5412001-02-13 Richard Henderson <rth@redhat.com>
542
543 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
544 and not user provided.
545
9635981a
KH
5462001-02-13 Kazu Hirata <kazu@hxi.com>
547
548 * vms.c (vms_print_symbol): Remove unreachable code.
549
6a125b16
KH
550 * rs6000-core.c: Fix formatting.
551
cbff5e0d
DD
5522001-02-13 David Mosberger <davidm@hpl.hp.com>
553
554 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
555 as _bfd_XXi_only_swap_filehdr_out.
556 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
557 pe->force_minimum_alignment to TRUE.
558 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
559 PEI_TARGET_SUBSYSTEM.
560 (pe_print_private_bfd_data): Call
561 _bfd_XX_print_private_bfd_data_common() instead of
562 _bfd_pe_print_private_bfd_data_common().
563 (pe_bfd_copy_private_bfd_data): Call
564 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
565 _bfd_pe_bfd_copy_private_bfd_data_common().
566 (coff_bfd_copy_private_section_data): Define as
567 _bfd_XX_bfd_copy_private_section_data instead of
568 _bfd_pe_bfd_copy_private_section_data.
569 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
570 of a _bfd_pe_get_symbol_info.
571
572 * peigen.c: Delete.
573
574 * peXXigen.c: Renamed from peigen.c.
575 (COFF_WITH_XX): Define this macro (will get expanded into
576 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
577 compiled as peigen.c or pepigen.c.
578 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
579 define the canonical PEP structures and definitions.
580 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
581 effect, enforce minimum file and section alignments. If
582 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
583 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
584 so, by default, this is a no-op).
585
586 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
587 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
588 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
589 _bfd_pefoo if it's not defined. Use these macros to define
590 coff swap macros.
591
592 * libcoff.h (pe_tdata): Add members target_subsystem and
593 force_minimum_alignment.
594
595 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
596 COFF_WITH_pep.
597 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
598
599 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
600 peigen.lo.
601
602 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
603 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
604 PEPAOUTHDR.
605
606 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
607 (BFD64_BACKENDS_CFILES): Mention pepigen.c
608 (peigen.c): Add rule to generate from peXXigen.c.
609 (pepigen.c): Ditto.
610 (pepigen.lo): List dependencies for pepigen.lo.
611
df8634e3
AM
6122001-02-13 Alan Modra <alan@linuxcare.com.au>
613
614 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
615 $global$ referenced but not defined, set its value here.
616
51e0a107
JH
6172001-02-09 Bo Thorsen <bo@suse.de>
618
619 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
620 alignment to 3.
621 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
622 and relocation.
623 (elf64_x86_64_relocate_section): Fix formatting.
624 (elf64_x86_64_relocate_section): Fix addend for relocation of
625 R_X86_64_(8|16|32|PC8|PC16|PC32).
626
d1fad7c6 6272001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
628
629 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
630
f0e1d18a
L
6312001-02-11 H.J. Lu <hjl@gnu.org>
632
6757257f 633 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
634 alignment.
635
9117d219
NC
6362001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
637
638 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
639 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
640 relocations against dynsym symbols.
641
642 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
643 the R_MIPS_26 relocation.
644 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
645 the R_MIPS_26 relocation.
646 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
647 relocation.
648 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
649 the R_MIPS_26 relocation.
650 (mips_elf64_howto_table_rela): Likewise.
651
652 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
653 member to mark symbols that have non-CALL relocations against
654 them.
655 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
656 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
657 R_MIPS_GOT16.
658 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
659 non-CALL relocation against it is encountered.
660 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
661 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
662 no_fn_stub is not set.
663
664 * elf32-mips.c (mips_elf_output_extsym): Get the output section
665 information from the real symbol for indirect ones.
666 Check no_fn_stub to find out if a symbol has a function stub
667 indeed.
668
9f93bca5
MS
6692001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
670
671 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
672 * Makefile.in: Regenerate.
673
81545d45
RH
6742001-02-09 David Mosberger <davidm@hpl.hp.com>
675
676 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
677 true if section name is an unwind table section name.
678 (elfNN_ia64_additional_program_headers): Count each unwind section
679 separately.
680 (elfNN_ia64_modify_segment_map): Install one unwind program header
681 for each unwind separate section. Note: normally the linker
682 script merges the unwind sections that go into a single segment,
683 so this still generates at most one unwind program header per
684 segment.
685
686 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
687 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
688 (elfNN_ia64_fake_sections): Mark sections with names that start
689 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
690 unwind section.
691
692 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
693 Use it to make sh_info in unwind section point to the text section
694 it applies to.
695
a85d7ed0
NC
6962001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
697
698 * Makefile.am: Add linux target for S/390.
699 * archures.c: Likewise.
700 * bfd-in2.h: Likewise.
701 * config.bfd: Likewise.
702 * configure.in: Likewise.
703 * elf.c: Likewise.
704 * libbfd.h: Likewise.
705 * targets.c: Likewise.
706 * cpu-s390.c: New file.
707 * elf32-s390.c: New file.
708 * elf64-s390.c: New file.
709
356d255d
NC
7102001-02-09 Nick Clifton <nickc@redhat.com>
711
712 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
713 ImageBase. This has already been done by coff_swap_hdr_in.
714
069f40e5
JJ
7152001-02-09 Jakub Jelinek <jakub@redhat.com>
716
717 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
718
eadfa8ab
JJ
7192001-02-09 Jakub Jelinek <jakub@redhat.com>
720
721 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
722 (sparc64_elf_relocate_section): Likewise.
723
9fc54e19
MK
7242001-02-09 Mark Kettenis <kettenis@gnu.org>
725
726 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
727 similar to R_SPARC_32.
728 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
729
1f655a09
L
7302001-02-08 H.J. Lu <hjl@gnu.org>
731
732 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
733 relocation entries for weak definitions when building DSO with
734 -Bsymbolic.
735
ca88208a
RH
7362001-02-08 Richard Henderson <rth@redhat.com>
737
738 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
739 before visibility. Locally defined protected symbols are not
740 dynamic.
741
4603e845
GK
7422001-02-08 Geoffrey Keating <geoffk@redhat.com>
743
744 * config.bfd: Enable coff64 for rs6000-*. Patch from
745 <hzoli@austin.ibm.com>.
746
4ca29a6a
NC
7472001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
748
749 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
750 found, do not attempt to find dwarf2 info before returning.
751
7da9d88f
NC
7522001-02-07 Jakub Jelinek <jakub@redhat.com>
753
754 * elflink.h (is_global_symbol_definition): Rename to
755 is_global_data_symbol_definition and have it reject function
756 symbols.
757 (elf_link_is_defined_archive_symbol): Use renamed function.
758
7340082d
NC
7592001-02-07 Todd Vierling <tv@wasabisystems.com>
760
761 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
762 * libbfd.h (bfd_target_vector): Likewise.
763 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 764 make static; create pointer reference named bfd_target_vector.
7340082d
NC
765 (_bfd_target_vector_entries): Calculate this based on the array
766 typed _bfd_target_vector.
767
2719f880
L
7682001-02-06 H.J. Lu <hjl@gnu.org>
769
770 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
771 internal symbols are not dynamic.
772 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
773
175aa013
NC
7742001-02-06 Nick Clifton <nickc@redhat.com>
775
776 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
777 that it will not be pulled into the list of files that make up
778 po/POTFILES.in.
779 * Makefile.in: Regenerate.
780 * po/bfd.pot: Regenerate.
781
15e0ecd9
L
7822001-02-06 H.J. Lu <hjl@gnu.org>
783
7898deda 784 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
785 checking.
786 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
787 external_PEI_IMAGE_hdr.
788
27def10f
KH
7892001-02-06 Kazu Hirata <kazu@hxi.com>
790
791 * elf-m10200.c: Fix formatting.
792
a0f2e916
NC
7932001-02-04 Nick Clifton <nickc@redhat.com>
794
795 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
796 rel, it will be handled later on.
797
d96031fb
NC
7982001-02-02 Fred Fish <fnf@ninemoons.com>
799
800 * Makefile.in: Fix typo.
801
010ac81f
KH
8022001-02-01 Kazu Hirata <kazu@hxi.com>
803
804 * elf-m10300.c: Fix formatting.
805
3fab46d0
AM
8062001-01-30 Alan Modra <alan@linuxcare.com.au>
807
808 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
809 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
810 (elf64_hppa_object_p): Set architecture and machine from elf
811 header flags.
3fab46d0 812
95404643
RH
8132001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
814
815 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
816 before mdebug.
817
8fb35fed
RH
8182001-01-26 Richard Henderson <rth@redhat.com>
819
820 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
821 for non-default visibility.
822 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
823 delete ugly macro and replace with pretty function.
824
a4f68544
NC
8252001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
826
827 * coff-go32.c: Update copyright.
828 * coff-stgo32.c: Likewise.
829 * coff-go32.c (COFF_LONG_FILENAMES): Define.
830 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
831 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
832 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
833
c02e7c3e
KH
8342001-01-25 Kazu Hirata <kazu@hxi.com>
835
836 * bfd-in2.h: Rebuild.
837 * libbfd.h: Likewise.
838
541389e2
L
8392001-01-23 H.J. Lu <hjl@gnu.org>
840
841 * bfd-in2.h: Rebuild.
842
0007625f
L
8432001-01-23 H.J. Lu <hjl@gnu.org>
844
845 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
846 is NULL or PRIV(vms_rec) is outside of the buffer.
847
b653e1b1
KH
8482001-01-23 Kazu Hirata <kazu@hxi.com>
849
850 * coff64-rs6000.c: Fix formatting.
851 * coff-arm.c: Likewise.
852 * coffgen.c: Likewise.
853 * cofflink.c: Likewise.
854 * coff-mcore.c: Likewise.
855 * coff-mips.c: Likewise.
856 * coff-pmac.c: Likewise.
857 * coff-ppc.c: Likewise.
858 * coff-rs6000.c: Likewise.
859 * elf32.c: Likewise.
860 * elf32-fr30.c: Likewise.
861 * elf32-i370.c: Likewise.
862 * elf32-i860.c: Likewise.
863 * elf32-m32r.c: Likewise.
864 * elf32-m68k.c: Likewise.
865 * elf32-mcore.c: Likewise.
866 * elf32-ppc.c: Likewise.
867 * elf32-sh.c: Likewise.
868 * elf32-v850.c: Likewise.
869 * elf64-alpha.c: Likewise.
870 * elf64-sparc.c: Likewise.
871 * elflink.c: Likewise.
872 * elflink.h: Likewise.
873 * elf-m10200.c: Likewise.
874 * elf-m10300.c: Likewise.
875 * elfxx-ia64.c: Likewise.
876
3fde5a36
KH
877 * aoutx.h: Fix formatting.
878 * bfd.c: Likewise.
879 * bfd-in2.h: Likewise.
880 * bfd-in.h: Likewise.
881 * cpu-i386.c: Likewise.
882 * cpu-m68hc11.c: Likewise.
883 * dwarf2.c: Likewise.
884 * elf64-x86-64.c: Likewise.
885 * format.c: Likewise.
886 * freebsd.h: Likewise.
887 * hash.c: Likewise.
888 * hp300hpux.c: Likewise.
889 * hppabsd-core.c: Likewise.
890 * hpux-core.c: Likewise.
891
70256ad8
AJ
8922001-01-22 Bo Thorsen <bo@suse.de>
893
894 * elf64-x86-64.c: Added PIC support for X86-64.
895 (elf64_x86_64_link_hash_newfunc): Function added.
896 (elf64_x86_64_link_hash_table_create): Likewise.
897 (elf64_x86_64_check_relocs): Likewise.
898 (elf64_x86_64_gc_mark_hook): Likewise.
899 (elf64_x86_64_gc_sweep_hook): Likewise.
900 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
901 (elf64_x86_64_size_dynamic_sections): Likewise.
902 (elf64_x86_64_discard_copies): Likewise.
903 (elf64_x86_64_finish_dynamic_symbol): Likewise.
904 (elf64_x86_64_finish_dynamic_sections): Likewise.
905 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
906
ee0bebb8
AJ
9072001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
908
909 * Makefile.am (install-data-local): Make use of $(DESTDIR).
910 * Makefile.in: Regenerate.
911
2a38f751
KH
9122001-01-21 Kazu Hirata <kazu@hxi.com>
913
914 * coff-a29k.c: Fix formatting.
915
c8492176
L
9162001-01-19 H.J. Lu <hjl@gnu.org>
917
918 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
919 relocation section names.
920 (elf_i386_relocate_section): Report files with bad relocation
921 section names and return false.
922
a5377ec0
AJ
9232001-01-17 Bo Thorsen <bo@suse.de>
924
925 * targets.c: Alphabetize list of xvecs.
926
b352eebf
AM
9272001-01-14 Alan Modra <alan@linuxcare.com.au>
928
d952f17a
AM
929 * config.bfd: Add linux target variant for elfxx-hppa.
930 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
931 bfd_elf64_hppa_linux_vec.
932 * configure: Regenerate.
933 * elf64-hppa.c: Include elf64-target.h again to support linux
934 target variant.
935 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
936 * elf32-hppa.c: Include elf32-target.h again to support linux
937 target variant.
938 (elf32_hppa_post_process_headers): New function.
939 (elf_backend_post_process_headers): Define.
940 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
941 bfd_elf32_hppa_linux_vec.
942
c46b7515
AM
943 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
944 and data_segment_base fields.
945 (elf32_hppa_link_hash_table_create ): Init them.
946 (elf32_hppa_check_relocs): Update comments.
947 (hppa_record_segment_addr): New function.
948 (elf32_hppa_relocate_section): Call it.
949 (final_link_relocate): Handle R_PARISC_SEGREL32.
950 (elf32_hppa_final_link): New function.
951 (bfd_elf32_bfd_final_link): Define to call it.
952 (hppa_unwind_entry_compare): New function.
953 * cache.c (bfd_open_file): Create files in write+read mode.
954
955 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
956 SEGREL32 and numerous other relocs. Change duplicate
957 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
958
d768008d
AM
959 * opncls.c (bfd_fdopenr): Add parens like the comment says around
960 O_ACCMODE.
961
150ccafb
AM
962 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
963 .plt entries for DT_INIT and DT_FINI.
964 (elf32_hppa_finish_dynamic_sections): Remove special handling of
965 DT_INIT and DT_FINI.
966
b352eebf
AM
967 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
968 offsets for stub .plt access if wide mode. Check offset in range.
969
b3b9a062
NC
9702001-01-13 Nick Clifton <nickc@redhat.com>
971
b7ed8fad
NC
972 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
973 line.
974
b3b9a062
NC
975 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
976 line.
977
6e0b89ee
AM
9782001-01-12 Alan Modra <alan@linuxcare.com.au>
979
980 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
981 * configure: Regenerate.
982
0d2bcfaf
NC
9832001-01-11 Peter Targett <peter.targett@arccores.com>
984
985 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
986 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
987 * cpu-arc.c (arch_info_struct): Add entries for variants.
988 (bfd_arc_arch) Set default to bfd_mach_arc_5.
989 (arc_get_mach) Don't assume machine names prefixed arc- before
990 testing.
991 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
992 selections.
993 (arc_elf_final_write_processing) Likewise.
994 (ELF_MACHINE_CODE) Use EM_ARC.
995
c31c1f70
NC
9962001-01-10 Nick Clifton <nickc@redhat.com>
997
2758140b 998 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 999
5ad083e3
PB
10002001-01-07 Philip Blundell <philb@gnu.org>
1001
1002 * README: Replace `bug-gnu-utils@gnu.org' with
1003 `bug-binutils@gnu.org'.
1004
7eae7d22
KH
10052001-01-04 Kazu Hirata <kazu@hxi.com>
1006
1007 * som.c: Fix formatting.
1008
509945ae
KH
10092001-01-03 Kazu Hirata <kazu@hxi.com>
1010
3e932841
KH
1011 * ecoffswap.h: Fix formatting.
1012 * elf-bfd.h: Likewise.
1013 * elfarm-nabi.c: Likewise.
1014 * elfarm-oabi.c: Likewise.
1015 * elfcode.h: Likewise.
1016 * elfcore.h: Likewise.
1017 * elflink.c: Likewise.
1018 * elflink.h: Likewise.
1019 * elfxx-ia64.c: Likewise.
1020 * elfxx-target.h: Likewise.
1021 * libbfd.c: Likewise
509945ae
KH
1022 * linker.c: Likewise.
1023 * lynx-core.c: Likewise.
1024
892339ee
KH
10252001-01-02 Kazu Hirata <kazu@hxi.com>
1026
1027 * pc532-mach.c: Fix formatting.
1028 * pe-arm.c: Likewise.
1029 * pe-i386.c: Likewise.
1030 * pe-mips.c: Likewise.
1031 * pe-ppc.c: Likewise.
1032 * pe-sh.c: Likewise.
1033 * pei-mips.c: Likewise.
1034 * pei-sh.c: Likewise.
ee91ed79 1035 * peicode.h: Likewise.
892339ee
KH
1036 * ppcboot.c: Likewise.
1037 * ptrace-core.c: Likewise.
1038
3d855632
KH
10392001-01-01 Kazu Hirata <kazu@hxi.com>
1040
1041 * reloc.c: Fix formatting.
1042 * riscix.c: Likewise.
1043 * rs6000-core.c: Likewise.
1044 * xcoff-target.h: Likewise.
1045
a77a9fef
HPN
10462000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1047
1048 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1049 error, by calling bfd_default_set_arch_mach with incoming
1050 values.
1051
558e161f
KH
10522000-12-26 Kazu Hirata <kazu@hxi.com>
1053
1054 * vaxnetbsd.c: Fix formatting.
1055 * versados.c: Likewise.
1056 * vms-gsd.c: Likewise.
1057 * vms-hdr.c: Likewise.
1058 * vms-misc.c: Likewise.
1059
3c579812
AO
10602000-12-25 Alexandre Oliva <aoliva@redhat.com>
1061
1062 * archive.c (coff_write_armap): Don't write more than symbol_count
1063 `archive_member_file_ptr's.
1064
672579e9
KH
10652000-12-25 Kazu Hirata <kazu@hxi.com>
1066
1067 * vms-tir.c: Fix formatting.
1068
55f2d5ed
KH
10692000-12-23 Kazu Hirata <kazu@hxi.com>
1070
1071 * vms.c: Fix formatting.
1072 * vms.h: Likewise.
1073
23ccc829
NC
10742000-12-21 Santeri Paavolainen <santtu@ssh.com>
1075
1076 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1077
1078 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1079
1080 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1081 arithmetic.
1082
1083 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1084
1085 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1086
8c603c85
NC
10872000-12-21 Richard Sandiford <rsandifo@redhat.com>
1088
1089 * libbfd.c (bfd_get_bits): Added
1090 (bfd_put_bits): Likewise
1091 * bfd-in.h: Declared the above.
1092 * bfd-in2.h: Regenerated.
1093
5bff4f56
KH
10942000-12-20 Kazu Hirata <kazu@hxi.com>
1095
1096 * targets.c: Fix formatting.
1097 * tekhex.c: Likewise.
1098 * trad-core.c: Likewise.
1099
7b82c249
KH
11002000-12-19 Kazu Hirata <kazu@hxi.com>
1101
1102 * sco5-core.c: Fix formatting.
1103 * section.c: Likewise.
1104 * sparclinux.c: Likewise.
1105 * sparclynx.c: Likewise.
1106 * sparcnetbsd.c: Likewise.
1107 * srec.c: Likewise.
1108 * stabs.c: Likewise.
1109 * stab-syms.c: Likewise.
1110 * sunos.c: Likewise.
1111 * syms.c: Likewise.
1112 * sysdep.h: Likewise.
1113
f78c5281
NC
11142000-12-18 Nick Clifton <nickc@redhat.com>
1115
1116 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1117 defined.
1118 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1119 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1120
02b89dce
NC
11212000-12-18 Nick Clifton <nickc@redhat.com>
1122
1123 * vms-misc.c (_bfd_vms_get_record): Add default case to
1124 file_format switch.
1125
d20966a7
NC
11262000-12-15 Miloslav Trmac <mitr@volny.cz>
1127
1128 * elfcore.h (elf_core_file_p): Move to the start of the program
1129 headers before attempting to read them.
1130
6fa957a9
KH
11312000-12-14 Kazu Hirata <kazu@hxi.com>
1132
1133 * peigen.c: Fix formatting.
1134 * som.c: Likewise.
1135 * som.h: Likewise.
1136
9602af51
KH
11372000-12-13 Kazu Hirata <kazu@hxi.com>
1138
1139 * peigen.c: Fix formatting.
1140
514829c3
JW
11412000-12-12 Jim Wilson <wilson@redhat.com>
1142
1143 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1144
3a71aec8
NC
11452000-12-08 Mark Salter <msalter@redhat.com>
1146
1147 * binary.c (binary_set_section_contents): Ignore sections
1148 with zero size.
1149
1518639e
KH
11502000-12-12 Kazu Hirata <kazu@hxi.com>
1151
1152 * m68klinux.c: Fix formatting.
1153 * m68knetbsd.c: Likewise.
1154 * mipsbsd.c: Likewise.
1155 * netbsd-core.c: Likewise.
1156 * netbsd.h: Likewise.
1157 * newsos3.c: Likewise.
1158 * nlm32-alpha.c: Likewise.
1159 * nlm32-i386.c: Likewise.
1160 * nlm32-ppc.c: Likewise.
1161 * nlm32-sparc.c: Likewise.
1162 * nlmcode.h: Likewise.
1163 * nlmswap.h: Likewise.
1164 * nlm-target.h: Likewise.
1165 * ns32knetbsd.c: Likewise.
1166
b79e8c78
NC
11672000-12-10 Fred Fish <fnf@be.com>
1168
d952f17a
AM
1169 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1170 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 1171
38b1a46c
NC
11722000-12-12 Nick Clifton <nickc@redhat.com>
1173
1174 * cpu-sh.c: Fix formattng.
1175 * elf.c: Fix formattng.
1176 * elf32-mips.c: Fix formattng.
1177 * elf32-sh.c: Fix formattng.
1178 * elf64-alpha.c: Fix formattng.
1179
857ec808
NC
11802000-12-09 Nick Clifton <nickc@redhat.com>
1181
1182 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1183 dwarf2_find_line_info as last parameter to invocation of
1184 _bfd_dwarf2_find_nearest_line.
1185 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1186 dwarf2_find_line_info as last parameter to invocation of
1187 _bfd_dwarf2_find_nearest_line.
1188
51db3708
NC
11892000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1190
1191 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
1192 (BFD_LIBS): ...to here.
1193 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1194 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
1195 * Makefile.in: Regenerate.
1196 * configure.in: Remove dwarf.lo from the elf shell variable.
1197 * configure: Regenerate.
1198 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1199 * libcoff.h: Regenerate.
d952f17a 1200 * coffgen.c (coff_find_nearest_line): Call
857ec808 1201 _bfd_dwarf2_find_nearest_line.
51db3708 1202 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
1203 accordingly.
1204 (read_abbrevs): Likewise
1205 (decode_line_info): Likewise.
1206 (parse_comp_unit): Likewise.
1207 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
1208 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1209 * libbfd.h: Regenerate.
1210 * elf.c (_bfd_elf_find_nearest_line): Update call.
1211 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1212 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1213 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
1214 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1215 (styp_to_sec_flags): Handle DWARF2 sections.
1216 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1217 to _bfd_find_nearest_line.
1218 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1219 call to _bfd_find_nearest_line.
d952f17a 1220
435b1e90
KH
12212000-12-08 Kazu Hirata <kazu@hxi.com>
1222
1223 * coffgen.c: Fix formatting.
fe8bc63d 1224 * elf-m10300.c: Likewise.
435b1e90
KH
1225 * elf32-i386.c: Likewise.
1226 * elf32-i960.c: Likewise.
1227 * elf32-m68k.c: Likewise.
1228 * elf32-mcore.c: Likewise.
1229 * elf32-ppc.c: Likewise.
1230 * elf32-sh.c: Likewise.
1231 * elf32-sparc.c: Likewise.
1232 * elf32-v850.c: Likewise.
fe8bc63d
KH
1233 * elf64-alpha.c: Likewise.
1234 * elf64-hppa.c: Likewise.
1235 * elf64-mips.c: Likewise.
435b1e90 1236 * elf64-sparc.c: Likewise.
435b1e90 1237
8da6118f
KH
12382000-12-07 Kazu Hirata <kazu@hxi.com>
1239
1240 * elf32-ppc.c: Fix formatting.
1241 * elf64-x86-64.c: Likewise.
1242
a9922e52
UC
12432000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1244
1245 From Ralf Baechle <ralf@gnu.org>
1246
1247 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1248 BFDs containing no sections or empty .text, .data or .bss sections
1249 to be merged, regardless of their flags.
1250
c3668558
KH
12512000-12-06 Kazu Hirata <kazu@hxi.com>
1252
1253 * elf32-m32r.c: Fix formatting.
1254 * elf32-m68hc11.c: Likewise.
1255 * elf32-m68hc12.c: Likewise.
1256 * elf32-m68k.c: Likewise.
1257 * elf32-mcore.c: Likewise.
1258 * elf32-pj.c: Likewise.
1259 * elf32-ppc.c: Likewise.
1260
6609fa74
KH
12612000-12-05 Kazu Hirata <kazu@hxi.com>
1262
1263 * elf32-fr30.c: Fix formatting.
1264 * elf32-hppa.c: Likewise.
1265 * elf32-i370.c: Likewise.
1266 * elf32-i386.c: Likewise.
1267 * elf32-i860.c: Likewise.
1268 * elf32-i960.c: Likewise.
1269
a7c10850
KH
12702000-12-03 Kazu Hirata <kazu@hxi.com>
1271
1272 * elf32-arm.h: Fix formatting.
1273 * elf32-avr.c: Likewise.
1274 * elf32-cris.c: Likewise.
1275 * elf32-d10v.c: Likewise.
1276 * elf32-d30v.c: Likewise.
1277 * elf-hppa.h: Likewise.
1278 * elf-m10200.c: Likewise.
1279 * elf-m10300.c: Likewise.
1280
e7af610e
NC
12812000-12-01 Chris Demetriou <cgd@sibyte.com>
1282
d952f17a
AM
1283 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1284 bfd_mach_mips32_4k. Update FIXME comment.
1285 * archures.c (bfd_mach_mips32): New constant.
1286 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1287 the latter, renumber it.
1288 * bfd-in2.h (bfd_mach_mips32): New constant.
1289 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1290 the latter, renumber it.
1291 * cpu-mips.c (I_mips32): New constant.
1292 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1293 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1294 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1295 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1296 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1297 with E_MIPS_MACH_MIPS32_4K.
1298 (_bfd_mips_elf_final_write_processing): Replace
1299 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1300 bfd_mach_mips32 case.
1301 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1302 comparison with support for MIPS32.
1303 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1304 MIPS32.
1305
1306 * aoutx.h (NAME(aout,machine_type)): Add cases for
1307 bfd_mach_mips5 and bfd_mach_mips64.
1308 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1309 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1310 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1311 (arch_info_struct): Add entries for bfd_mach_mips5 and
1312 bfd_mach_mips64.
1313 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1314 _bfd_mips_elf_print_private_bfd_data): Add cases for
1315 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1316 (_bfd_mips_elf_final_write_processing): Add cases for
1317 bfd_mach_mips5 and bfd_mach_mips64.
1318
7898deda 1319 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 1320 bfd_mach_mips_sb1 case.
7898deda
NC
1321 * archures.c (bfd_mach_mips_sb1): New constant.
1322 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1323 * cpu-mips.c (I_sb1): New constant.
d952f17a 1324 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 1325 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
1326 E_MIPS_MACH_SB1.
1327 (_bfd_mips_elf_final_write_processing): Add case for
1328 bfd_mach_mips_sb1.
1329
13302000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
1331
1332 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1333 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1334 (sparc*-*-rtems*): Switched from a.out to ELF.
1335
8d88c4ca 13362000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
1337
1338 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1339 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1340 (elf64-x86-64.lo): Add dependencies.
1341 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1342 bfd_mach_x86_64_intel_syntax.
1343 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1344 * config.bfd (x86_64): Add.
1345 * configure.in: Add support for bfd_elf64_x86_64_vec.
1346 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1347 (bfd_i386_arch, i8086_ar): Link in.
1348 * elf64-x86-64.c: New file.
1349 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1350 * targets.c (bfd_elf64_x86_64_vec): Add.
1351 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 1352
fbc4fff4
KH
13532000-11-30 Kazu Hirata <kazu@hxi.com>
1354
1355 * xcofflink.c: Fix formatting.
1356
e60b52c6
KH
13572000-11-28 Kazu Hirata <kazu@hxi.com>
1358
1359 * aoutx.h: Fix formatting.
1360 * bfd-in.h: Likewise.
1361 * bfd-in2.h: Likewise.
1362 * cache.c: Likewise.
1363 * cisco-core.c: Likewise.
1364 * coff64-rs6000.c: Likewise.
1365 * coffcode.h: Likewise.
1366 * coffswap.h: Likewise.
1367 * corefile.c: Likewise.
be3ccd9c 1368 * elf32-mips.c: Likewise.
e60b52c6 1369
336eced2
KH
13702000-11-27 Kazu Hirata <kazu@hxi.com>
1371
1372 * aout-adobe.c: Fix formatting.
244148ad
KH
1373 * coff64-rs6000.c: Likewise.
1374 * coffgen.c: Likewise.
1375 * cofflink.c: Likewise.
336eced2 1376
d71f672e
PB
13772000-11-27 Philip Blundell <pb@futuretv.com>
1378
1379 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1380 (obj_coff_strings_written): New accessor macro for above.
1381 * libcoff.h: Regenerate.
1382 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1383 strings.
1384 * coffcode.h (coff_write_object_contents): No need to write out
1385 the string table if it's already been done.
1386
bc7a577d
PB
13872000-11-22 Philip Blundell <pb@futuretv.com>
1388
d952f17a 1389 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
1390 weak undefined symbols.
1391
077b8428
NC
13922000-11-24 Nick Clifton <nickc@redhat.com>
1393
1394 * archures.c (bfd_mach_arm_5TE): Define.
1395 (bfd_mach_arm+XScale): Define.
1396 * bfd-in2.h: Regenerate.
1397
1398 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1399 BFD_RELOC_ARM_PCREL_BLX.
1400
1401 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1402 XScale machine numbers.
1403
1404 * config.bfd (xscale-elf): Add target.
1405 (xscale-coff): Add target.
1406
1407 * cpu-arm.c: Add xscale machine name.
1408 Add v5t, v5te and XScale machine numbers.
1409
e9e41bd9
KH
14102000-11-23 Kazu Hirata <kazu@hxi.com>
1411
1412 * aix386-core.c: Fix formatting.
1413
64bf6ae6
JW
14142000-11-22 Jim Wilson <wilson@redhat.com>
1415
1416 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1417 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1418 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1419 (ins_imms_scaled): Initialize sign_bit at function entry.
1420 (elf64_ia64_operands): Add missing initializers.
1421 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1422 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1423 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1424 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1425 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1426 parameters.
1427 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1428 and free_extsyms at function entry.
1429 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1430 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1431 (get_got): Delete unused local srel.
1432 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1433 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 1434
1abaf976
KH
14352000-11-21 Kazu Hirata <kazu@hxi.com>
1436
6e301b2b
KH
1437 * coff-a29k.c: Fix formatting.
1438 * coff-h8500.c: Likewise.
1439 * coff-i960.c: Likewise.
1440 * coff-ppc.c: Likewise.
1441 * coff-rs6000.c: Likewise.
1442 * coff-stgo32.c: Likewise.
1443 * coff-tic54x.c: Likewise.
1444 * coff-w65.c: Likewise.
1445 * cpu-h8500.c: Likewise.
1446 * cpu-hppa.c: Likewise.
1447 * cpu-ns32k.c: Likewise.
1448 * ecoff.c: Likewise.
1abaf976
KH
1449 * ecofflink.c: Likewise.
1450
a0fc8ba1
NC
14512000-11-21 Nick Clifton <nickc@redhat.com>
1452
1453 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1454 remove possibility of infinite loop.
1455
beb0d161
KH
14562000-11-20 Kazu Hirata <kazu@hxi.com>
1457
1458 * aix386-core.c: Fix formatting.
1459 * aout-adobe.c: Likewise.
1460 * aout-arm.c: Likewise.
1461 * aout-encap.c: Likewise.
1462 * aout-ns32k.c: Likewise.
1463 * aout-target.h: Likewise.
1464 * aout-tic30.c: Likewise.
1465 * aoutf1.h: Likewise.
1466 * aoutx.h: Likewise.
1467 * archive.c: Likewise.
eb6e10cb
KH
1468 * bfd-in.h: Likewise.
1469 * bfd-in2.h: Likewise.
1470 * bfd.c: Likewise.
1471 * bout.c: Likewise.
beb0d161 1472
2c2475db
JW
14732000-11-17 H.J. Lu <hjl@gnu.org>
1474
1475 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1476 pltoff entries for DT_INIT and DT_FINI.
1477 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1478 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1479 entries.
1480
18b27f17
RH
14812000-11-16 Richard Henderson <rth@redhat.com>
1482
1483 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1484 (allocate_dynrel_entries): Likewise.
1485 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1486 (set_pltoff_entry): Likewise.
1487 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1488 (elfNN_ia64_reloc_type_lookup): Likewise.
1489 (elfNN_ia64_install_value): Likewise.
1490 (elfNN_ia64_relocate_section): Likewise.
1491 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1492 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1493
98591c73
KH
14942000-11-16 Kazu Hirata <kazu@hxi.com>
1495
71f6b586
KH
1496 * cpu-a29k.c: Fix formatting.
1497 * cpu-alpha.c: Likewise.
1498 * cpu-arm.c: Likewise.
1499 * cpu-avr.c: Likewise.
1500 * cpu-d10v.c: Likewise.
1501 * cpu-h8500.c: Likewise.
1502 * cpu-hppa.c: Likewise.
1503 * cpu-i370.c: Likewise.
1504 * cpu-i386.c: Likewise.
1505 * cpu-i960.c: Likewise.
1506 * cpu-ia64-opc.c: Likewise.
1507 * cpu-ia64.c: Likewise.
1508 * cpu-m32r.c: Likewise.
1509 * cpu-m68hc11.c: Likewise.
1510 * cpu-m68hc12.c: Likewise.
1511 * cpu-m68k.c: Likewise.
1512 * cpu-m88k.c: Likewise.
1513 * cpu-mips.c: Likewise.
1514 * cpu-ns32k.c: Likewise.
1515 * cpu-pj.c: Likewise.
1516 * cpu-powerpc.c: Likewise.
1517 * cpu-sh.c: Likewise.
1518 * cpu-sparc.c: Likewise.
1519 * cpu-tic54x.c: Likewise.
1520 * cpu-v850.c: Likewise.
1521 * cpu-vax.c: Likewise.
1522 * cpu-w65.c: Likewise.
1523 * cpu-we32k.c: Likewise.
1524 * cpu-z8k.c: Likewise.
1525 * dwarf1.c: Likewise.
98591c73
KH
1526 * dwarf2.c: Likewise.
1527
c5930ee6
KH
15282000-11-15 Kazu Hirata <kazu@hxi.com>
1529
1530 * coff-arm.c: Fix formatting.
1531 * coff-ppc.c: Likewise.
1532 * coff-rs6000.c: Likewise.
cbfe05c4
KH
1533 * coff-sh.c: Likewise.
1534 * coff-sparc.c: Likewise.
1535 * coff-tic30.c: Likewise.
1536 * coff-tic54x.c: Likewise.
1537 * coff-tic80.c: Likewise.
1538 * coff-w65.c: Likewise.
1539 * coff-we32k.c: Likewise.
1540 * coff-z8k.c: Likewise.
c5930ee6 1541
dac544a8
RH
15422000-11-15 Richard Henderson <rth@redhat.com>
1543
1544 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1545 section with the same ALLOC|LOAD flags as the source section.
1546
c810873d
JJ
15472000-11-14 Jakub Jelinek <jakub@redhat.com>
1548
1549 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1550 by STO_ALPHA constants.
1551
43646c9d
KH
15522000-11-14 Kazu Hirata <kazu@hxi.com>
1553
1554 * coff-pmac.c: Fix formatting.
1555 * coff-ppc.c: Likewise.
1556
051b8577
L
15572000-11-13 H.J. Lu <hjl@gnu.org>
1558
1559 * elflink.h (elf_link_add_object_symbols): Also add indirect
1560 symbols for common symbols with the default version.
1561
90460d97
PB
15622000-11-09 Philip Blundell <pb@futuretv.com>
1563
1564 * section.c (STD_SECTION): Set gc_mark flag.
1565
b48499ec
KH
15662000-11-11 Kazu Hirata <kazu@hxi.com>
1567
1568 * coff-i960.c: Likewise.
1569 * coff-m68k.c: Likewise.
1570 * coff-m88k.c: Likewise.
1571 * coff-mcore.c: Likewise.
1572 * coff-mips.c: Likewise.
1573
c5aeb40f
AO
15742000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1575
1576 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1577
5fcfd273
KH
15782000-11-10 Kazu Hirata <kazu@hxi.com>
1579
1580 * coff-h8300.c: Fix formatting.
1581 * coff-h8500.c: Likewise.
1582 * coff-i386.c: Likewise.
1583 * coff-i860.c: Likewise.
1584 * coff-i960.c: Likewise.
1585 * coff-ia64.c: Likewise.
1586
047066e1
KH
15872000-11-09 Kazu Hirata <kazu@hxi.com>
1588
1589 * archive.c: Fix formatting.
1590 * archures.c: Likewise.
1591
9a951beb
RH
15922000-11-07 Richard Henderson <rth@redhat.com>
1593
1594 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1595 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1596 * section.c (bfd_set_section_contents): Call memcpy if
1597 section->contents set and location not equal to contents plus offset.
1598
aebad5fe
KH
15992000-11-08 Kazu Hirata <kazu@hxi.com>
1600
8546af74
KH
1601 * bfd-in.h: Fix formatting.
1602 * bfd-in2.h: Likewise.
1603 * bfd.c: Likewise.
aebad5fe
KH
1604 * binary.c: Likewise.
1605 * bout.c: Likewise.
346ceb11
KH
1606 * coff-a29k.c: Likewise.
1607 * coff-alpha.c: Likewise.
1608 * coff-apollo.c: Likewise.
1609 * coff-aux.c: Likewise.
aebad5fe 1610
0ef5a5bd
KH
16112000-11-07 Kazu Hirata <kazu@hxi.com>
1612
1613 * aix386-core.c: Fix formatting.
1614 * aoutf1.h: Likewise.
1615 * aoutx.h: Likewise.
1616 * archures.c: Likewise.
1617 * armnetbsd.c: Likewise.
1618
d562d2fb
AM
16192000-11-07 Alan Modra <alan@linuxcare.com.au>
1620
1621 * coff-h8300.c (special): Adjust reloc address.
1622
bbe66d08
JW
16232000-11-06 Steve Ellcey <sje@cup.hp.com>
1624
4efc3e05 1625 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
1626 to differentiate elf32 and elf64 on ia64.
1627 * bfd-in2.h: Regenerate.
1628 * config.bfd: Add target for "ia64*-*-hpux*".
1629 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1630 * configure: Regenerate.
4efc3e05 1631 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
1632 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1633
1634 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1635 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1636 * Makefile.in: Regnerate.
4efc3e05 1637 * elf64-ia64.c: Deleted.
bbe66d08
JW
1638 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1639
c4dfa77f
KH
16402000-11-06 Kazu Hirata <kazu@hxi.com>
1641
1642 * aout-adobe.c: Fix formatting.
1643 * aout-arm.c: Likewise.
1644 * aout-cris.c: Likewise.
1645 * aout-encap.c: Likewise.
1646 * aout-ns32k.c: Likewise.
1647 * aout-target.h: Likewise.
1648 * aout-tic30.c: Likewise.
1649
cf919dfd
PB
16502000-11-05 Philip Blundell <philb@gnu.org>
1651
1652 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1653 BFDs containing no sections to be merged, regardless of their flags.
1654
16552000-11-04 Philip Blundell <philb@gnu.org>
1656
1657 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1658 if a relocation for an undefined symbol also results in an
1659 overflow.
1660
8d88c4ca 16612000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
1662
1663 * config.bfd: Add support for Sun Chorus.
1664
46d59bfa
DB
16652000-11-05 David O'Brien <obrien@FreeBSD.org>
1666
1667 * configure.in: Recognize alpha-*-freebsd*.
1668 * configure: Regenerate.
1669
d952f17a 16702000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
1671
1672 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1673 (Chunk): New global variable set by a parameter in objcopy.c.
1674 (S3Forced): New global variable set by a parameter in
1675 objcopy.c.
1676 (srec_set_section_contents): If S3Forced is true, always generate
1677 S3 records.
1678 (srec_write_section): Use 'Chunk' to limit maximum length of S
1679 records.
1680
59ff2774
NC
16812000-11-02 Per Lundberg <plundis@chaosdev.org>
1682
1683 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1684 * Makefile.in: Regenerate.
1685 * bfd-in2.h: Regenerate.
1686 * po/bfd.pot: Regenerate.
d952f17a 1687
ee43f35e
PB
16882000-10-31 Philip Blundell <philb@gnu.org>
1689
1690 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1691 EF_SOFT_FLOAT if it is defined.
1692
1006ba19
PB
16932000-10-27 Philip Blundell <philb@gnu.org>
1694
1695 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1696 attempts to mix PIC code with non-PIC, just mark the output as
1697 being position dependent.
d952f17a
AM
1698 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1699 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 1700 all mismatches, not just the first one.
d952f17a 1701
c4920b97
NC
17022000-10-25 Chris Demetriou <cgd@sibyte.com>
1703
1704 * ieee.c (ieee_archive_p): Plug one of many possible
1705 memory leaks in error handling.
1706
19f7b010
JJ
17072000-10-20 Jakub Jelinek <jakub@redhat.com>
1708
1709 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1710 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1711 Support v8plusb.
1712 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1713 sparc64_elf_object_p): Support v9b.
1714 * archures.c: Declare v8plusb and v9b machines.
1715 * bfd-in2.h: Ditto.
1716 * cpu-sparc.c: Ditto.
1717
e1e0340b
GK
17182000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1719
ea5fbc67
GK
1720 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1721 of a GOT reloc.
1722
e1e0340b
GK
1723 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1724 (SYMBOL_CALLS_LOCAL): New macro.
1725 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1726 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1727 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1728 (ppc_elf_relocate_section): Use flag variable to determine
1729 whether the relocation refers to a local symbol.
1730 Test whether a PLTREL24 reloc will produce a reloc by looking
1731 to see whether a PLT entry was made.
1732
a4b120e1
GK
17332000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1734
1735 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1736 entries that could serve as a definition for a weak symbol.
1737
5af5b85b
UC
17382000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1739
1740 From Ralf Baechle <ralf@gnu.org>
1741
1742 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1743 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1744 against local symbols.
1745 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 1746
3ef20aaa
AM
17472000-10-12 Alan Modra <alan@linuxcare.com.au>
1748
24376d1b
AM
1749 * section.c (struct sec): Add kept_section.
1750 (struct bfd_comdat_info): Remove sec, we can use above.
1751 (STD_SECTION): Add initializer.
1752 (bfd_make_section_anyway): Init here too.
1753
1754 * bfd-in2.h: Regenerate.
1755
1756 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 1757 zeroing of `flags'.
24376d1b
AM
1758 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1759 fudge values for discarded link-once section symbols.
1760
3ef20aaa
AM
1761 * elf64-hppa.c: Include alloca-conf.h
1762
c0e219cc
AM
17632000-10-11 Alan Modra <alan@linuxcare.com.au>
1764
d01e2a23
AM
1765 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1766
c0e219cc
AM
1767 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1768
fe268b66
AM
17692000-10-10 Alan Modra <alan@linuxcare.com.au>
1770
1771 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1772
4d7ce4dd
AM
17732000-10-10 Tom Rix <trix@redhat.com>
1774
d952f17a 1775 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
1776 newsect->symbol fails to alloc. Use bfd_release instead of free.
1777
f3b6f7c3
RH
17782000-10-09 Richard Henderson <rth@cygnus.com
1779
1780 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1781 (elf64_ia64_unwind_entry_compare): New.
1782 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1783
44852b19
AM
17842000-10-07 Alan Modra <alan@linuxcare.com.au>
1785
fc8c40a0
AM
1786 * elflink.h (size_dynamic_sections): Don't create various tags if
1787 .dynstr is excluded from the link. Don't set first dynsym entry
1788 if dynsymcount is zero.
1789 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1790 .dynsym excluded from the link. Don't try to write any dynamic
1791 sections excluded from the link.
1792
44852b19
AM
1793 * elf.c (swap_out_syms): Handle global section symbols.
1794
3e4554a2
DD
17952000-10-05 DJ Delorie <dj@redhat.com>
1796
1797 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1798 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1799 (coff_write_relocs): write extended reloc count
1800 (coff_write_object_contents): account for extended relocs
1801
fa152c49
JW
18022000-10-05 Jim Wilson <wilson@cygnus.com>
1803
1804 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1805 field.
1806 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1807 elf_backend_section_flags function.
1808 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1809 code.
1810 (elf64_ia64_section_flags): New function containing flag conversion
1811 code.
1812 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1813 * elfxx-target.h (elf_backend_section_flags): Define.
1814 (elfNN_bed): Initialize elf_backend_section_flags field.
1815
36605136
AM
18162000-10-02 Alan Modra <alan@linuxcare.com.au>
1817
1818 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1819 _bfd_elf32_gc_record_vtable. Correct a comment.
1820
4b6609a0
UC
18212000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1822
1823 From Ralf Baechle <ralf@gnu.org>
1824
1825 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1826 produces binaries with got[1] = 0x80000001 to differenciate them
1827 for the dynamic linker from the broken binaries produced by old
1828 versions.
36605136 1829
f572a39d
AM
18302000-09-30 Petr Sorfa <petrs@sco.com>
1831
1832 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1833 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1834 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1835 * configure: Regenerate.
1836
4da81684
HPN
18372000-09-27 Hans-Peter Nilsson <hp@axis.com>
1838
1839 Define two bfd_targets for absence and presence of leading
1840 underscore on symbols. Make sure to only link same kind.
1841 * elf32-cris.c (cris_elf_object_p,
1842 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1843 cris_elf_merge_private_bfd_data): New.
1844 (elf_backend_object_p, elf_backend_final_write_processing,
1845 bfd_elf32_bfd_print_private_bfd_data,
1846 bfd_elf32_bfd_merge_private_bfd_data): Define.
1847 <Target vector definition>: Include elf32-target.h twice with
1848 different macro settings:
1849 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1850 bfd_elf32_us_cris_vec.
1851 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1852 (elf_symbol_leading_char): First as 0, then '_'.
1853 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1854 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1855 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1856 * configure: Regenerate.
1857 * targets.c: Declare bfd_elf32_us_cris_vec.
1858 * po/bfd.pot: Regenerate.
1859
9a5aca8c
AM
18602000-09-29 Momchil Velikov <velco@fadata.bg>
1861
1862 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1863 R_ARM_THM_PC22 relocations.
1864
512a2384
AM
18652000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1866
1867 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1868
6c99a5c3
AM
18692000-09-29 Momchil Velikov <velco@fadata.bg>
1870
1871 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1872 is has the SEC_HAS_CONTENTS flag set.
1873