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