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