2001-04-05 David Mosberger <davidm@hpl.hp.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
dd484e5c
L
12001-04-05 David Mosberger <davidm@hpl.hp.com>
2
3 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
4 ordinary "progbits" section.
5
391a809a
AM
62001-04-04 Alan Modra <alan@linuxcare.com.au>
7
8 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
9 when -Bsymbolic causes a symbol to no longer need a .plt entry.
10
5854c633
L
112001-04-03 David Mosberger <davidm@hpl.hp.com>
12
13 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
14
8b4b0fac
L
152001-03-30 H.J. Lu <hjl@gnu.org>
16
17 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
18 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
19
eb4a6e4f
L
202001-03-26 H.J. Lu <hjl@gnu.org>
21
22 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
23 if there are any relocations for generic ELF.
24 (bfd_elf32_bfd_link_add_symbols): Defined to
25 elf32_generic_link_add_symbols.
26 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
27 if there are any relocations for generic ELF.
28 (bfd_elf64_bfd_link_add_symbols): Defined to
29 elf64_generic_link_add_symbols.
30
55c80943
NC
312001-03-23 Nick Clifton <nickc@redhat.com>
32
33 * Makefile.am (BUILD_CFILES): New variable: List of C source
34 files created in build directory.
35 (BUILD_HFILES): New variable: List of header files created in
36 build directory.
37 (POTFILES): Delete.
38 (po/POTFILES.in): Replace rule with empty entry.
39 (po/SRC-POTFILES.in): New rule: Create a list of source files
40 in the source directory.
41 (po/BLD-POTFILES.in): New rule: Create a list of source files
42 in the build directory.
43 (MOSTLYCLEAN): Do not delete source files created in build
44 directory.
45 * Makefile.in: Regenerate.
46 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
47 into po/Makefile.
48 * configure: Regenerate.
49
50 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
51 and BLD_POTFILES.
52 Add .. to the search path when building bfd.pot.
53 Delete POTFILES when performing distclean.
54 Add comment describing why distclean is broken in maintainer mode.
55 * po/POTFILES.in: Delete.
56 * po/SRC-POTFILES.in: New file.
57 * po/BLD-POTFILES.in: New file.
58 * po/bfd.pot: Regenerate.
59
58d29fc3
HPN
602001-03-22 Hans-Peter Nilsson <hp@axis.com>
61
915e5146
HPN
62 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
63 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
64 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
65 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
66 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
67 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
68 functions.
69 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
70 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
71 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
72 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
73 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
74 New HOWTO members for new relocs.
75 (cris_reloc_map): Map new relocs.
76 (ELF_DYNAMIC_INTERPRETER): Define.
77 (PLT_ENTRY_SIZE): Define.
78 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
79 elf_cris_pic_plt_entry): New, PLT templates.
80 (struct elf_cris_pcrel_relocs_copied, struct
81 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
82 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
83 (cris_final_link_relocate): Check that 16-bit GOT relocs have
84 positive values. Adjust PCREL relocs to be relative to location
85 after relocation.
86 (cris_elf_relocate_section): Handle relocations to dynamic
87 objects. Handle new relocations. Call error handler when seeing
88 non-PIC relocation for read-only sections while generating shared
89 object.
90 (cris_elf_check_relocs): Set reference counts for GOT and PLT
91 entries.
92 (bfd_elf32_bfd_link_hash_table_create,
93 elf_backend_adjust_dynamic_symbol,
94 elf_backend_size_dynamic_sections,
95 elf_backend_finish_dynamic_symbol,
96 elf_backend_finish_dynamic_sections,
97 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
98 elf_backend_hide_symbol, elf_backend_want_got_plt,
99 elf_backend_plt_readonly, elf_backend_want_plt_sym,
100 elf_backend_got_header_size, elf_backend_plt_header_size):
101 Define.
102
58d29fc3
HPN
103 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
104 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
105 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
106 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
107 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
108 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
109 * bfd-in2.h, libbfd.h: Regenerate.
110
7a65545d
DN
1112001-03-21 Diego Novillo <dnovillo@redhat.com>
112
113 (_bfd_mips_elf_relocate_section): Give a better error message when
114 a relocation is not recognized.
115
b32b5d6e
AM
1162001-03-21 Alan Modra <alan@linuxcare.com.au>
117
118 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
119 non-NULL before attempting to dereference.
120
f4fbb4a3
L
1212001-03-20 H.J. Lu <hjl@gnu.org>
122
123 * configure.in: Remove the redundent AC_ARG_PROGRAM.
124 * configure: Rebuild.
125
95fc45e6
AS
1262001-03-20 Andreas Schwab <schwab@suse.de>
127
128 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
129 relocation value when resolving a reference from a debugging
130 section.
131
03d411a9
NC
1322001-03-16 Scott Thomason <SThomaso@hii.com>
133
134 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
135 (xcoff64_swap_sym_out): Fix syntax errors.
136
d1659392
NC
1372001-03-16 Richard Sandiford <rsandifo@redhat.com>
138
139 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
140
12cca0d2
AM
1412001-03-15 Alan Modra <alan@linuxcare.com.au>
142
143 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
144 (hppa_link_hash_newfunc): Init it.
145 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
146 section appears to be non-PIC.
147 (final_link_relocate): Likewise.
148 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
149 possible candidate function, and set pic_call for those that will
150 only have a .plt entry for the PIC call stub.
151 (hppa_handle_PIC_calls): Set maybe_pic_call.
152
cd6ec716
DD
1532001-03-12 DJ Delorie <dj@redhat.com>
154
155 * elf32-sh.c (sh_elf_relocate_section): Only relocation
156 R_SH_DIR8WP* relocs if they're against external symbols, else
157 they're just for relaxing. Validate the reloc values.
158
43a0748c
NC
1592001-03-12 Stefan Geuken <mail@stefan-geuken.de>
160
161 * binary.c (bfd_external_binary_architecture): Declare.
162 (binary_object_p): If bfd_external_binary_architecture is defined,
163 set the architecture to this string.
164
d982ba73
PB
1652001-03-11 Philip Blundell <philb@gnu.org>
166
167 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
168 entries that could serve as a definition for a weak symbol.
169
7898deda
NC
1702001-03-08 Nick Clifton <nickc@redhat.com>
171
172 * Most files: Update copyright notices using Perl script created
173 by Kevin Buettner <kevinb@redhat.com>.
174
df425bc0
NC
1752001-03-07 Nick Clifton <nickc@redhat.com>
176
177 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
178 prior patch on ! defined OLD_ARM_ABI.
179
bcdd92f3
AJ
1802001-03-07 Andreas Jaeger <aj@suse.de>
181
182 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
183 some relocation values.
184
4f3c3dbb
NC
1852001-03-06 Nick Clifton <nickc@redhat.com>
186
187 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
188 of offset in BLX(1) instruction.
189 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
190 offset in BLX(1) instruction.
191 Fix formatting.
192
f8f3c6cc
NC
1932001-03-06 Nick Clifton <nickc@redhat.com>
194
195 * coff-arm.c (coff_arm_reloc_type_lookup): Add
196 BFD_RELOC_THUMB_PCREL_BLX.
197
3cac17ae
NC
1982001-03-06 Igor Shevlyakov <igor@windriver.com>
199
200 * archures.c (bfd_default_scan): Add Coldfire CPUs.
201 * bfd-in2.h: Regenerate.
202 * cpu-m68k.c: Add Coldfire CPUs for arch table.
203 * ieee.c (ieee_write_processor): Set proper id for
204 Coldfire CPUs.
205
d1b17ab0
NC
2062001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
207
208 * configure.in: Add s390 target.
209 * configure: Regenerate.
210
5608e05b
AJ
2112001-02-28 Andreas Jaeger <aj@suse.de>
212
213 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
214 to addend.
215
fd2ec330
PB
2162001-02-28 Philip Blundell <pb@futuretv.com>
217
218 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 219 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 220
920581c5
L
2212001-02-27 H.J. Lu <hjl@gnu.org>
222
223 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
224 abfd->tdata.aout_data == NULL.
225
27b7e12d
AM
2262001-02-27 Alan Modra <alan@linuxcare.com.au>
227
3ee1d854
AM
228 * elf32-hppa.c: Correct field selector in stub comments.
229 (clobber_millicode_symbols): Formatting fix.
230
27b7e12d
AM
231 * configure.in: Bump version to 2.11.90.
232 * configure: Regenerate.
233 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
234 (CFILES): $SOURCE_CFILES + generated C files.
235 (POTFILES): Include $HFILES not $SOURCE_HFILES.
236 Run "make dep-am"
237 * Makefile.in: Regenerate.
238 * doc/Makefile.in: This too.
239
10d1e03a
TW
2402001-02-26 Timothy Wall <twall@cygnus.com>
241
242 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 243 comments.
10d1e03a 244
1276aefa
NC
2452001-02-26 Nick Clifton <nickc@redhat.com>
246
247 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
248 up, replacing multiple if statements with a switch.
249 (handle_COMDAT): New function.
250
2512001-02-26 H.J. Lu <hjl@gnu.org>
252
253 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
254 a warning for section flags we do not handle instead of
255 aborting.
256
4a73f21b
AJ
2572001-02-26 Andreas Jaeger <aj@suse.de>
258
259 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
260
7b6dab7f
TW
2612001-02-22 Timothy Wall <twall@cygnus.com>
262
263 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
264 * configure.in: Add objects for elf64_ia64_aix vectors.
265 * configure: Regenerated.
266 * configure.host: Recognize ia64-*-aix*.
267 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
268 for AIX. AIX5 requires most relocations to be dynamic (*all*
269 binaries are somewhat similar to shared libraries).
270 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 271
87f8eb97
JW
2722001-02-21 David Mosberger <davidm@hpl.hp.com>
273
274 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
275 C8 said "1" instead of "8". Clarify error string for IMM22:
276 "signed integer" instead of just "integer".
277
05aa1441
AJ
2782001-02-20 Andreas Jaeger <aj@suse.de>
279
280 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
281 PLT entries that could serve as a definition for a weak symbol.
282
8701c1bc
JJ
2832001-02-19 Jakub Jelinek <jakub@redhat.com>
284
285 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
286 entries that could serve as a definition for a weak symbol.
287 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
288
d4af9775
DB
2892001-02-18 David O'Brien <obrien@FreeBSD>
290
291 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
292 FreeBSD/i386-CURRENT differently until I can figure out the needed
293 corefile changes.
294 * configure: Regenerate.
295 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
296 FreeBSD/PowerPC, and FreeBSD/sparc64.
297
e135f41b
NC
2982001-02-18 lars brinkhoff <lars@nocrew.org>
299
300 * Makefile.am: Add PDP-11 a.out target.
301 * config.bfd: Likewise.
302 * configure.in: Likewise.
303 * targets.c: Likewise.
304 * archures.c: Likewise.
305 * bfd-in2.h: Likewise. Add PDP-11 relocations.
306 * libbfd.h: Add PDP-11 relocations.
307 * reloc.c: Likewise.
308 * cpu-pdp11.c: New file.
309 * pdp11.c: New file.
310
311 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
312 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
313 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
314 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
315 (GET_MAGIC): New macro.
316 (PUT_MAGIC): Likewise.
317 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
318
dc3febfa
NC
3192001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
320
321 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
322 multiarch needs it).
323
ea412e04
L
3242001-02-18 H.J. Lu <hjl@gnu.org>
325
326 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
327 index.
328
47eee8a9
KH
3292001-02-18 Kazu Hirata <kazu@hxi.com>
330
331 * vms-misc.c: Fix formatting.
332
8a0c27cd
KH
3332001-02-16 Kazu Hirata <kazu@hxi.com>
334
335 * vms.c: Fix formatting.
336
d1fad7c6
NC
3372001-02-14 H.J. Lu <hjl@gnu.org>
338
339 * elf.c (elf_find_function): New function.
340 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
341 the file name and function name.
342
825b47db
NC
3432001-02-14 Nick Clifton <nickc@redhat.com>
344
51d7ee16
NC
345 * ecoff.c (bfd_debug_section): Update to initialise new fields in
346 asection structure.
347
825b47db
NC
348 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
349 (BFD64_BACKENDS): Add pepigen.c
350 Add rules to create peigen.c and pepigen.c from peXXigen.c.
351
352 * Makefile.in: Regenerate.
353 * configure: Regenerate.
354 * po/POTFILES.in: Regenerate.
355 * po/bfd.pot: Regenerate.
356
ea36a178
L
3572001-02-14 H.J. Lu <hjl@gnu.org>
358
359 * libcoff-in.h (pe_tdata): Add members target_subsystem and
360 force_minimum_alignment.
361
407443a3
AJ
3622001-02-14 Bo Thorsen <bo@suse.de>
363
364 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
365 (elf64_86_64_size_info): Struct added to fix a problem
366 with the hashtable string entries.
367 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
368 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
369 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
370 remove the FIXME for this.
371 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
372 section. Also removed the FIXME for it.
373 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
374 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
375 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
376
b4adccfd
RH
3772001-02-13 Richard Henderson <rth@redhat.com>
378
379 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
380 and not user provided.
381
9635981a
KH
3822001-02-13 Kazu Hirata <kazu@hxi.com>
383
384 * vms.c (vms_print_symbol): Remove unreachable code.
385
6a125b16
KH
386 * rs6000-core.c: Fix formatting.
387
cbff5e0d
DD
3882001-02-13 David Mosberger <davidm@hpl.hp.com>
389
390 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
391 as _bfd_XXi_only_swap_filehdr_out.
392 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
393 pe->force_minimum_alignment to TRUE.
394 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
395 PEI_TARGET_SUBSYSTEM.
396 (pe_print_private_bfd_data): Call
397 _bfd_XX_print_private_bfd_data_common() instead of
398 _bfd_pe_print_private_bfd_data_common().
399 (pe_bfd_copy_private_bfd_data): Call
400 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
401 _bfd_pe_bfd_copy_private_bfd_data_common().
402 (coff_bfd_copy_private_section_data): Define as
403 _bfd_XX_bfd_copy_private_section_data instead of
404 _bfd_pe_bfd_copy_private_section_data.
405 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
406 of a _bfd_pe_get_symbol_info.
407
408 * peigen.c: Delete.
409
410 * peXXigen.c: Renamed from peigen.c.
411 (COFF_WITH_XX): Define this macro (will get expanded into
412 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
413 compiled as peigen.c or pepigen.c.
414 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
415 define the canonical PEP structures and definitions.
416 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
417 effect, enforce minimum file and section alignments. If
418 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
419 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
420 so, by default, this is a no-op).
421
422 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
423 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
424 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
425 _bfd_pefoo if it's not defined. Use these macros to define
426 coff swap macros.
427
428 * libcoff.h (pe_tdata): Add members target_subsystem and
429 force_minimum_alignment.
430
431 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
432 COFF_WITH_pep.
433 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
434
435 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
436 peigen.lo.
437
438 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
439 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
440 PEPAOUTHDR.
441
442 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
443 (BFD64_BACKENDS_CFILES): Mention pepigen.c
444 (peigen.c): Add rule to generate from peXXigen.c.
445 (pepigen.c): Ditto.
446 (pepigen.lo): List dependencies for pepigen.lo.
447
df8634e3
AM
4482001-02-13 Alan Modra <alan@linuxcare.com.au>
449
450 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
451 $global$ referenced but not defined, set its value here.
452
51e0a107
JH
4532001-02-09 Bo Thorsen <bo@suse.de>
454
455 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
456 alignment to 3.
457 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
458 and relocation.
459 (elf64_x86_64_relocate_section): Fix formatting.
460 (elf64_x86_64_relocate_section): Fix addend for relocation of
461 R_X86_64_(8|16|32|PC8|PC16|PC32).
462
d1fad7c6 4632001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
464
465 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
466
f0e1d18a
L
4672001-02-11 H.J. Lu <hjl@gnu.org>
468
6757257f 469 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
470 alignment.
471
9117d219
NC
4722001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
473
474 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
475 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
476 relocations against dynsym symbols.
477
478 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
479 the R_MIPS_26 relocation.
480 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
481 the R_MIPS_26 relocation.
482 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
483 relocation.
484 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
485 the R_MIPS_26 relocation.
486 (mips_elf64_howto_table_rela): Likewise.
487
488 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
489 member to mark symbols that have non-CALL relocations against
490 them.
491 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
492 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
493 R_MIPS_GOT16.
494 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
495 non-CALL relocation against it is encountered.
496 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
497 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
498 no_fn_stub is not set.
499
500 * elf32-mips.c (mips_elf_output_extsym): Get the output section
501 information from the real symbol for indirect ones.
502 Check no_fn_stub to find out if a symbol has a function stub
503 indeed.
504
9f93bca5
MS
5052001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
506
507 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
508 * Makefile.in: Regenerate.
509
81545d45
RH
5102001-02-09 David Mosberger <davidm@hpl.hp.com>
511
512 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
513 true if section name is an unwind table section name.
514 (elfNN_ia64_additional_program_headers): Count each unwind section
515 separately.
516 (elfNN_ia64_modify_segment_map): Install one unwind program header
517 for each unwind separate section. Note: normally the linker
518 script merges the unwind sections that go into a single segment,
519 so this still generates at most one unwind program header per
520 segment.
521
522 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
523 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
524 (elfNN_ia64_fake_sections): Mark sections with names that start
525 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
526 unwind section.
527
528 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
529 Use it to make sh_info in unwind section point to the text section
530 it applies to.
531
a85d7ed0
NC
5322001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
533
534 * Makefile.am: Add linux target for S/390.
535 * archures.c: Likewise.
536 * bfd-in2.h: Likewise.
537 * config.bfd: Likewise.
538 * configure.in: Likewise.
539 * elf.c: Likewise.
540 * libbfd.h: Likewise.
541 * targets.c: Likewise.
542 * cpu-s390.c: New file.
543 * elf32-s390.c: New file.
544 * elf64-s390.c: New file.
545
356d255d
NC
5462001-02-09 Nick Clifton <nickc@redhat.com>
547
548 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
549 ImageBase. This has already been done by coff_swap_hdr_in.
550
069f40e5
JJ
5512001-02-09 Jakub Jelinek <jakub@redhat.com>
552
553 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
554
eadfa8ab
JJ
5552001-02-09 Jakub Jelinek <jakub@redhat.com>
556
557 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
558 (sparc64_elf_relocate_section): Likewise.
559
9fc54e19
MK
5602001-02-09 Mark Kettenis <kettenis@gnu.org>
561
562 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
563 similar to R_SPARC_32.
564 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
565
1f655a09
L
5662001-02-08 H.J. Lu <hjl@gnu.org>
567
568 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
569 relocation entries for weak definitions when building DSO with
570 -Bsymbolic.
571
ca88208a
RH
5722001-02-08 Richard Henderson <rth@redhat.com>
573
574 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
575 before visibility. Locally defined protected symbols are not
576 dynamic.
577
4603e845
GK
5782001-02-08 Geoffrey Keating <geoffk@redhat.com>
579
580 * config.bfd: Enable coff64 for rs6000-*. Patch from
581 <hzoli@austin.ibm.com>.
582
4ca29a6a
NC
5832001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
584
585 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
586 found, do not attempt to find dwarf2 info before returning.
587
7da9d88f
NC
5882001-02-07 Jakub Jelinek <jakub@redhat.com>
589
590 * elflink.h (is_global_symbol_definition): Rename to
591 is_global_data_symbol_definition and have it reject function
592 symbols.
593 (elf_link_is_defined_archive_symbol): Use renamed function.
594
7340082d
NC
5952001-02-07 Todd Vierling <tv@wasabisystems.com>
596
597 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
598 * libbfd.h (bfd_target_vector): Likewise.
599 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 600 make static; create pointer reference named bfd_target_vector.
7340082d
NC
601 (_bfd_target_vector_entries): Calculate this based on the array
602 typed _bfd_target_vector.
603
2719f880
L
6042001-02-06 H.J. Lu <hjl@gnu.org>
605
606 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
607 internal symbols are not dynamic.
608 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
609
175aa013
NC
6102001-02-06 Nick Clifton <nickc@redhat.com>
611
612 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
613 that it will not be pulled into the list of files that make up
614 po/POTFILES.in.
615 * Makefile.in: Regenerate.
616 * po/bfd.pot: Regenerate.
617
15e0ecd9
L
6182001-02-06 H.J. Lu <hjl@gnu.org>
619
7898deda 620 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
621 checking.
622 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
623 external_PEI_IMAGE_hdr.
624
27def10f
KH
6252001-02-06 Kazu Hirata <kazu@hxi.com>
626
627 * elf-m10200.c: Fix formatting.
628
a0f2e916
NC
6292001-02-04 Nick Clifton <nickc@redhat.com>
630
631 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
632 rel, it will be handled later on.
633
d96031fb
NC
6342001-02-02 Fred Fish <fnf@ninemoons.com>
635
636 * Makefile.in: Fix typo.
637
010ac81f
KH
6382001-02-01 Kazu Hirata <kazu@hxi.com>
639
640 * elf-m10300.c: Fix formatting.
641
3fab46d0
AM
6422001-01-30 Alan Modra <alan@linuxcare.com.au>
643
644 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
645 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
646 (elf64_hppa_object_p): Set architecture and machine from elf
647 header flags.
3fab46d0 648
95404643
RH
6492001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
650
651 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
652 before mdebug.
653
8fb35fed
RH
6542001-01-26 Richard Henderson <rth@redhat.com>
655
656 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
657 for non-default visibility.
658 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
659 delete ugly macro and replace with pretty function.
660
a4f68544
NC
6612001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
662
663 * coff-go32.c: Update copyright.
664 * coff-stgo32.c: Likewise.
665 * coff-go32.c (COFF_LONG_FILENAMES): Define.
666 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
667 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
668 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
669
c02e7c3e
KH
6702001-01-25 Kazu Hirata <kazu@hxi.com>
671
672 * bfd-in2.h: Rebuild.
673 * libbfd.h: Likewise.
674
541389e2
L
6752001-01-23 H.J. Lu <hjl@gnu.org>
676
677 * bfd-in2.h: Rebuild.
678
0007625f
L
6792001-01-23 H.J. Lu <hjl@gnu.org>
680
681 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
682 is NULL or PRIV(vms_rec) is outside of the buffer.
683
b653e1b1
KH
6842001-01-23 Kazu Hirata <kazu@hxi.com>
685
686 * coff64-rs6000.c: Fix formatting.
687 * coff-arm.c: Likewise.
688 * coffgen.c: Likewise.
689 * cofflink.c: Likewise.
690 * coff-mcore.c: Likewise.
691 * coff-mips.c: Likewise.
692 * coff-pmac.c: Likewise.
693 * coff-ppc.c: Likewise.
694 * coff-rs6000.c: Likewise.
695 * elf32.c: Likewise.
696 * elf32-fr30.c: Likewise.
697 * elf32-i370.c: Likewise.
698 * elf32-i860.c: Likewise.
699 * elf32-m32r.c: Likewise.
700 * elf32-m68k.c: Likewise.
701 * elf32-mcore.c: Likewise.
702 * elf32-ppc.c: Likewise.
703 * elf32-sh.c: Likewise.
704 * elf32-v850.c: Likewise.
705 * elf64-alpha.c: Likewise.
706 * elf64-sparc.c: Likewise.
707 * elflink.c: Likewise.
708 * elflink.h: Likewise.
709 * elf-m10200.c: Likewise.
710 * elf-m10300.c: Likewise.
711 * elfxx-ia64.c: Likewise.
712
3fde5a36
KH
713 * aoutx.h: Fix formatting.
714 * bfd.c: Likewise.
715 * bfd-in2.h: Likewise.
716 * bfd-in.h: Likewise.
717 * cpu-i386.c: Likewise.
718 * cpu-m68hc11.c: Likewise.
719 * dwarf2.c: Likewise.
720 * elf64-x86-64.c: Likewise.
721 * format.c: Likewise.
722 * freebsd.h: Likewise.
723 * hash.c: Likewise.
724 * hp300hpux.c: Likewise.
725 * hppabsd-core.c: Likewise.
726 * hpux-core.c: Likewise.
727
70256ad8
AJ
7282001-01-22 Bo Thorsen <bo@suse.de>
729
730 * elf64-x86-64.c: Added PIC support for X86-64.
731 (elf64_x86_64_link_hash_newfunc): Function added.
732 (elf64_x86_64_link_hash_table_create): Likewise.
733 (elf64_x86_64_check_relocs): Likewise.
734 (elf64_x86_64_gc_mark_hook): Likewise.
735 (elf64_x86_64_gc_sweep_hook): Likewise.
736 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
737 (elf64_x86_64_size_dynamic_sections): Likewise.
738 (elf64_x86_64_discard_copies): Likewise.
739 (elf64_x86_64_finish_dynamic_symbol): Likewise.
740 (elf64_x86_64_finish_dynamic_sections): Likewise.
741 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
742
ee0bebb8
AJ
7432001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
744
745 * Makefile.am (install-data-local): Make use of $(DESTDIR).
746 * Makefile.in: Regenerate.
747
2a38f751
KH
7482001-01-21 Kazu Hirata <kazu@hxi.com>
749
750 * coff-a29k.c: Fix formatting.
751
c8492176
L
7522001-01-19 H.J. Lu <hjl@gnu.org>
753
754 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
755 relocation section names.
756 (elf_i386_relocate_section): Report files with bad relocation
757 section names and return false.
758
a5377ec0
AJ
7592001-01-17 Bo Thorsen <bo@suse.de>
760
761 * targets.c: Alphabetize list of xvecs.
762
b352eebf
AM
7632001-01-14 Alan Modra <alan@linuxcare.com.au>
764
d952f17a
AM
765 * config.bfd: Add linux target variant for elfxx-hppa.
766 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
767 bfd_elf64_hppa_linux_vec.
768 * configure: Regenerate.
769 * elf64-hppa.c: Include elf64-target.h again to support linux
770 target variant.
771 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
772 * elf32-hppa.c: Include elf32-target.h again to support linux
773 target variant.
774 (elf32_hppa_post_process_headers): New function.
775 (elf_backend_post_process_headers): Define.
776 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
777 bfd_elf32_hppa_linux_vec.
778
c46b7515
AM
779 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
780 and data_segment_base fields.
781 (elf32_hppa_link_hash_table_create ): Init them.
782 (elf32_hppa_check_relocs): Update comments.
783 (hppa_record_segment_addr): New function.
784 (elf32_hppa_relocate_section): Call it.
785 (final_link_relocate): Handle R_PARISC_SEGREL32.
786 (elf32_hppa_final_link): New function.
787 (bfd_elf32_bfd_final_link): Define to call it.
788 (hppa_unwind_entry_compare): New function.
789 * cache.c (bfd_open_file): Create files in write+read mode.
790
791 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
792 SEGREL32 and numerous other relocs. Change duplicate
793 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
794
d768008d
AM
795 * opncls.c (bfd_fdopenr): Add parens like the comment says around
796 O_ACCMODE.
797
150ccafb
AM
798 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
799 .plt entries for DT_INIT and DT_FINI.
800 (elf32_hppa_finish_dynamic_sections): Remove special handling of
801 DT_INIT and DT_FINI.
802
b352eebf
AM
803 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
804 offsets for stub .plt access if wide mode. Check offset in range.
805
b3b9a062
NC
8062001-01-13 Nick Clifton <nickc@redhat.com>
807
b7ed8fad
NC
808 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
809 line.
810
b3b9a062
NC
811 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
812 line.
813
6e0b89ee
AM
8142001-01-12 Alan Modra <alan@linuxcare.com.au>
815
816 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
817 * configure: Regenerate.
818
0d2bcfaf
NC
8192001-01-11 Peter Targett <peter.targett@arccores.com>
820
821 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
822 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
823 * cpu-arc.c (arch_info_struct): Add entries for variants.
824 (bfd_arc_arch) Set default to bfd_mach_arc_5.
825 (arc_get_mach) Don't assume machine names prefixed arc- before
826 testing.
827 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
828 selections.
829 (arc_elf_final_write_processing) Likewise.
830 (ELF_MACHINE_CODE) Use EM_ARC.
831
c31c1f70
NC
8322001-01-10 Nick Clifton <nickc@redhat.com>
833
2758140b 834 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 835
5ad083e3
PB
8362001-01-07 Philip Blundell <philb@gnu.org>
837
838 * README: Replace `bug-gnu-utils@gnu.org' with
839 `bug-binutils@gnu.org'.
840
7eae7d22
KH
8412001-01-04 Kazu Hirata <kazu@hxi.com>
842
843 * som.c: Fix formatting.
844
509945ae
KH
8452001-01-03 Kazu Hirata <kazu@hxi.com>
846
3e932841
KH
847 * ecoffswap.h: Fix formatting.
848 * elf-bfd.h: Likewise.
849 * elfarm-nabi.c: Likewise.
850 * elfarm-oabi.c: Likewise.
851 * elfcode.h: Likewise.
852 * elfcore.h: Likewise.
853 * elflink.c: Likewise.
854 * elflink.h: Likewise.
855 * elfxx-ia64.c: Likewise.
856 * elfxx-target.h: Likewise.
857 * libbfd.c: Likewise
509945ae
KH
858 * linker.c: Likewise.
859 * lynx-core.c: Likewise.
860
892339ee
KH
8612001-01-02 Kazu Hirata <kazu@hxi.com>
862
863 * pc532-mach.c: Fix formatting.
864 * pe-arm.c: Likewise.
865 * pe-i386.c: Likewise.
866 * pe-mips.c: Likewise.
867 * pe-ppc.c: Likewise.
868 * pe-sh.c: Likewise.
869 * pei-mips.c: Likewise.
870 * pei-sh.c: Likewise.
ee91ed79 871 * peicode.h: Likewise.
892339ee
KH
872 * ppcboot.c: Likewise.
873 * ptrace-core.c: Likewise.
874
3d855632
KH
8752001-01-01 Kazu Hirata <kazu@hxi.com>
876
877 * reloc.c: Fix formatting.
878 * riscix.c: Likewise.
879 * rs6000-core.c: Likewise.
880 * xcoff-target.h: Likewise.
881
a77a9fef
HPN
8822000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
883
884 * elfcode.h (elf_object_p): Also restore the bfd mach field on
885 error, by calling bfd_default_set_arch_mach with incoming
886 values.
887
558e161f
KH
8882000-12-26 Kazu Hirata <kazu@hxi.com>
889
890 * vaxnetbsd.c: Fix formatting.
891 * versados.c: Likewise.
892 * vms-gsd.c: Likewise.
893 * vms-hdr.c: Likewise.
894 * vms-misc.c: Likewise.
895
3c579812
AO
8962000-12-25 Alexandre Oliva <aoliva@redhat.com>
897
898 * archive.c (coff_write_armap): Don't write more than symbol_count
899 `archive_member_file_ptr's.
900
672579e9
KH
9012000-12-25 Kazu Hirata <kazu@hxi.com>
902
903 * vms-tir.c: Fix formatting.
904
55f2d5ed
KH
9052000-12-23 Kazu Hirata <kazu@hxi.com>
906
907 * vms.c: Fix formatting.
908 * vms.h: Likewise.
909
23ccc829
NC
9102000-12-21 Santeri Paavolainen <santtu@ssh.com>
911
912 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
913
914 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
915
916 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
917 arithmetic.
918
919 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
920
921 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
922
8c603c85
NC
9232000-12-21 Richard Sandiford <rsandifo@redhat.com>
924
925 * libbfd.c (bfd_get_bits): Added
926 (bfd_put_bits): Likewise
927 * bfd-in.h: Declared the above.
928 * bfd-in2.h: Regenerated.
929
5bff4f56
KH
9302000-12-20 Kazu Hirata <kazu@hxi.com>
931
932 * targets.c: Fix formatting.
933 * tekhex.c: Likewise.
934 * trad-core.c: Likewise.
935
7b82c249
KH
9362000-12-19 Kazu Hirata <kazu@hxi.com>
937
938 * sco5-core.c: Fix formatting.
939 * section.c: Likewise.
940 * sparclinux.c: Likewise.
941 * sparclynx.c: Likewise.
942 * sparcnetbsd.c: Likewise.
943 * srec.c: Likewise.
944 * stabs.c: Likewise.
945 * stab-syms.c: Likewise.
946 * sunos.c: Likewise.
947 * syms.c: Likewise.
948 * sysdep.h: Likewise.
949
f78c5281
NC
9502000-12-18 Nick Clifton <nickc@redhat.com>
951
952 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
953 defined.
954 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
955 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
956
02b89dce
NC
9572000-12-18 Nick Clifton <nickc@redhat.com>
958
959 * vms-misc.c (_bfd_vms_get_record): Add default case to
960 file_format switch.
961
d20966a7
NC
9622000-12-15 Miloslav Trmac <mitr@volny.cz>
963
964 * elfcore.h (elf_core_file_p): Move to the start of the program
965 headers before attempting to read them.
966
6fa957a9
KH
9672000-12-14 Kazu Hirata <kazu@hxi.com>
968
969 * peigen.c: Fix formatting.
970 * som.c: Likewise.
971 * som.h: Likewise.
972
9602af51
KH
9732000-12-13 Kazu Hirata <kazu@hxi.com>
974
975 * peigen.c: Fix formatting.
976
514829c3
JW
9772000-12-12 Jim Wilson <wilson@redhat.com>
978
979 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
980
3a71aec8
NC
9812000-12-08 Mark Salter <msalter@redhat.com>
982
983 * binary.c (binary_set_section_contents): Ignore sections
984 with zero size.
985
1518639e
KH
9862000-12-12 Kazu Hirata <kazu@hxi.com>
987
988 * m68klinux.c: Fix formatting.
989 * m68knetbsd.c: Likewise.
990 * mipsbsd.c: Likewise.
991 * netbsd-core.c: Likewise.
992 * netbsd.h: Likewise.
993 * newsos3.c: Likewise.
994 * nlm32-alpha.c: Likewise.
995 * nlm32-i386.c: Likewise.
996 * nlm32-ppc.c: Likewise.
997 * nlm32-sparc.c: Likewise.
998 * nlmcode.h: Likewise.
999 * nlmswap.h: Likewise.
1000 * nlm-target.h: Likewise.
1001 * ns32knetbsd.c: Likewise.
1002
b79e8c78
NC
10032000-12-10 Fred Fish <fnf@be.com>
1004
d952f17a
AM
1005 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1006 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 1007
38b1a46c
NC
10082000-12-12 Nick Clifton <nickc@redhat.com>
1009
1010 * cpu-sh.c: Fix formattng.
1011 * elf.c: Fix formattng.
1012 * elf32-mips.c: Fix formattng.
1013 * elf32-sh.c: Fix formattng.
1014 * elf64-alpha.c: Fix formattng.
1015
857ec808
NC
10162000-12-09 Nick Clifton <nickc@redhat.com>
1017
1018 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1019 dwarf2_find_line_info as last parameter to invocation of
1020 _bfd_dwarf2_find_nearest_line.
1021 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1022 dwarf2_find_line_info as last parameter to invocation of
1023 _bfd_dwarf2_find_nearest_line.
1024
51db3708
NC
10252000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1026
1027 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
1028 (BFD_LIBS): ...to here.
1029 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1030 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
1031 * Makefile.in: Regenerate.
1032 * configure.in: Remove dwarf.lo from the elf shell variable.
1033 * configure: Regenerate.
1034 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1035 * libcoff.h: Regenerate.
d952f17a 1036 * coffgen.c (coff_find_nearest_line): Call
857ec808 1037 _bfd_dwarf2_find_nearest_line.
51db3708 1038 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
1039 accordingly.
1040 (read_abbrevs): Likewise
1041 (decode_line_info): Likewise.
1042 (parse_comp_unit): Likewise.
1043 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
1044 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1045 * libbfd.h: Regenerate.
1046 * elf.c (_bfd_elf_find_nearest_line): Update call.
1047 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1048 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1049 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
1050 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1051 (styp_to_sec_flags): Handle DWARF2 sections.
1052 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1053 to _bfd_find_nearest_line.
1054 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1055 call to _bfd_find_nearest_line.
d952f17a 1056
435b1e90
KH
10572000-12-08 Kazu Hirata <kazu@hxi.com>
1058
1059 * coffgen.c: Fix formatting.
fe8bc63d 1060 * elf-m10300.c: Likewise.
435b1e90
KH
1061 * elf32-i386.c: Likewise.
1062 * elf32-i960.c: Likewise.
1063 * elf32-m68k.c: Likewise.
1064 * elf32-mcore.c: Likewise.
1065 * elf32-ppc.c: Likewise.
1066 * elf32-sh.c: Likewise.
1067 * elf32-sparc.c: Likewise.
1068 * elf32-v850.c: Likewise.
fe8bc63d
KH
1069 * elf64-alpha.c: Likewise.
1070 * elf64-hppa.c: Likewise.
1071 * elf64-mips.c: Likewise.
435b1e90 1072 * elf64-sparc.c: Likewise.
435b1e90 1073
8da6118f
KH
10742000-12-07 Kazu Hirata <kazu@hxi.com>
1075
1076 * elf32-ppc.c: Fix formatting.
1077 * elf64-x86-64.c: Likewise.
1078
a9922e52
UC
10792000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1080
1081 From Ralf Baechle <ralf@gnu.org>
1082
1083 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1084 BFDs containing no sections or empty .text, .data or .bss sections
1085 to be merged, regardless of their flags.
1086
c3668558
KH
10872000-12-06 Kazu Hirata <kazu@hxi.com>
1088
1089 * elf32-m32r.c: Fix formatting.
1090 * elf32-m68hc11.c: Likewise.
1091 * elf32-m68hc12.c: Likewise.
1092 * elf32-m68k.c: Likewise.
1093 * elf32-mcore.c: Likewise.
1094 * elf32-pj.c: Likewise.
1095 * elf32-ppc.c: Likewise.
1096
6609fa74
KH
10972000-12-05 Kazu Hirata <kazu@hxi.com>
1098
1099 * elf32-fr30.c: Fix formatting.
1100 * elf32-hppa.c: Likewise.
1101 * elf32-i370.c: Likewise.
1102 * elf32-i386.c: Likewise.
1103 * elf32-i860.c: Likewise.
1104 * elf32-i960.c: Likewise.
1105
a7c10850
KH
11062000-12-03 Kazu Hirata <kazu@hxi.com>
1107
1108 * elf32-arm.h: Fix formatting.
1109 * elf32-avr.c: Likewise.
1110 * elf32-cris.c: Likewise.
1111 * elf32-d10v.c: Likewise.
1112 * elf32-d30v.c: Likewise.
1113 * elf-hppa.h: Likewise.
1114 * elf-m10200.c: Likewise.
1115 * elf-m10300.c: Likewise.
1116
e7af610e
NC
11172000-12-01 Chris Demetriou <cgd@sibyte.com>
1118
d952f17a
AM
1119 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1120 bfd_mach_mips32_4k. Update FIXME comment.
1121 * archures.c (bfd_mach_mips32): New constant.
1122 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1123 the latter, renumber it.
1124 * bfd-in2.h (bfd_mach_mips32): New constant.
1125 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1126 the latter, renumber it.
1127 * cpu-mips.c (I_mips32): New constant.
1128 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1129 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1130 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1131 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1132 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1133 with E_MIPS_MACH_MIPS32_4K.
1134 (_bfd_mips_elf_final_write_processing): Replace
1135 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1136 bfd_mach_mips32 case.
1137 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1138 comparison with support for MIPS32.
1139 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1140 MIPS32.
1141
1142 * aoutx.h (NAME(aout,machine_type)): Add cases for
1143 bfd_mach_mips5 and bfd_mach_mips64.
1144 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1145 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1146 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1147 (arch_info_struct): Add entries for bfd_mach_mips5 and
1148 bfd_mach_mips64.
1149 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1150 _bfd_mips_elf_print_private_bfd_data): Add cases for
1151 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1152 (_bfd_mips_elf_final_write_processing): Add cases for
1153 bfd_mach_mips5 and bfd_mach_mips64.
1154
7898deda 1155 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 1156 bfd_mach_mips_sb1 case.
7898deda
NC
1157 * archures.c (bfd_mach_mips_sb1): New constant.
1158 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1159 * cpu-mips.c (I_sb1): New constant.
d952f17a 1160 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 1161 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
1162 E_MIPS_MACH_SB1.
1163 (_bfd_mips_elf_final_write_processing): Add case for
1164 bfd_mach_mips_sb1.
1165
11662000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
1167
1168 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1169 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1170 (sparc*-*-rtems*): Switched from a.out to ELF.
1171
8d88c4ca 11722000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
1173
1174 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1175 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1176 (elf64-x86-64.lo): Add dependencies.
1177 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1178 bfd_mach_x86_64_intel_syntax.
1179 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1180 * config.bfd (x86_64): Add.
1181 * configure.in: Add support for bfd_elf64_x86_64_vec.
1182 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1183 (bfd_i386_arch, i8086_ar): Link in.
1184 * elf64-x86-64.c: New file.
1185 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1186 * targets.c (bfd_elf64_x86_64_vec): Add.
1187 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 1188
fbc4fff4
KH
11892000-11-30 Kazu Hirata <kazu@hxi.com>
1190
1191 * xcofflink.c: Fix formatting.
1192
e60b52c6
KH
11932000-11-28 Kazu Hirata <kazu@hxi.com>
1194
1195 * aoutx.h: Fix formatting.
1196 * bfd-in.h: Likewise.
1197 * bfd-in2.h: Likewise.
1198 * cache.c: Likewise.
1199 * cisco-core.c: Likewise.
1200 * coff64-rs6000.c: Likewise.
1201 * coffcode.h: Likewise.
1202 * coffswap.h: Likewise.
1203 * corefile.c: Likewise.
be3ccd9c 1204 * elf32-mips.c: Likewise.
e60b52c6 1205
336eced2
KH
12062000-11-27 Kazu Hirata <kazu@hxi.com>
1207
1208 * aout-adobe.c: Fix formatting.
244148ad
KH
1209 * coff64-rs6000.c: Likewise.
1210 * coffgen.c: Likewise.
1211 * cofflink.c: Likewise.
336eced2 1212
d71f672e
PB
12132000-11-27 Philip Blundell <pb@futuretv.com>
1214
1215 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1216 (obj_coff_strings_written): New accessor macro for above.
1217 * libcoff.h: Regenerate.
1218 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1219 strings.
1220 * coffcode.h (coff_write_object_contents): No need to write out
1221 the string table if it's already been done.
1222
bc7a577d
PB
12232000-11-22 Philip Blundell <pb@futuretv.com>
1224
d952f17a 1225 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
1226 weak undefined symbols.
1227
077b8428
NC
12282000-11-24 Nick Clifton <nickc@redhat.com>
1229
1230 * archures.c (bfd_mach_arm_5TE): Define.
1231 (bfd_mach_arm+XScale): Define.
1232 * bfd-in2.h: Regenerate.
1233
1234 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1235 BFD_RELOC_ARM_PCREL_BLX.
1236
1237 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1238 XScale machine numbers.
1239
1240 * config.bfd (xscale-elf): Add target.
1241 (xscale-coff): Add target.
1242
1243 * cpu-arm.c: Add xscale machine name.
1244 Add v5t, v5te and XScale machine numbers.
1245
e9e41bd9
KH
12462000-11-23 Kazu Hirata <kazu@hxi.com>
1247
1248 * aix386-core.c: Fix formatting.
1249
64bf6ae6
JW
12502000-11-22 Jim Wilson <wilson@redhat.com>
1251
1252 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1253 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1254 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1255 (ins_imms_scaled): Initialize sign_bit at function entry.
1256 (elf64_ia64_operands): Add missing initializers.
1257 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1258 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1259 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1260 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1261 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1262 parameters.
1263 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1264 and free_extsyms at function entry.
1265 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1266 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1267 (get_got): Delete unused local srel.
1268 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1269 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 1270
1abaf976
KH
12712000-11-21 Kazu Hirata <kazu@hxi.com>
1272
6e301b2b
KH
1273 * coff-a29k.c: Fix formatting.
1274 * coff-h8500.c: Likewise.
1275 * coff-i960.c: Likewise.
1276 * coff-ppc.c: Likewise.
1277 * coff-rs6000.c: Likewise.
1278 * coff-stgo32.c: Likewise.
1279 * coff-tic54x.c: Likewise.
1280 * coff-w65.c: Likewise.
1281 * cpu-h8500.c: Likewise.
1282 * cpu-hppa.c: Likewise.
1283 * cpu-ns32k.c: Likewise.
1284 * ecoff.c: Likewise.
1abaf976
KH
1285 * ecofflink.c: Likewise.
1286
a0fc8ba1
NC
12872000-11-21 Nick Clifton <nickc@redhat.com>
1288
1289 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1290 remove possibility of infinite loop.
1291
beb0d161
KH
12922000-11-20 Kazu Hirata <kazu@hxi.com>
1293
1294 * aix386-core.c: Fix formatting.
1295 * aout-adobe.c: Likewise.
1296 * aout-arm.c: Likewise.
1297 * aout-encap.c: Likewise.
1298 * aout-ns32k.c: Likewise.
1299 * aout-target.h: Likewise.
1300 * aout-tic30.c: Likewise.
1301 * aoutf1.h: Likewise.
1302 * aoutx.h: Likewise.
1303 * archive.c: Likewise.
eb6e10cb
KH
1304 * bfd-in.h: Likewise.
1305 * bfd-in2.h: Likewise.
1306 * bfd.c: Likewise.
1307 * bout.c: Likewise.
beb0d161 1308
2c2475db
JW
13092000-11-17 H.J. Lu <hjl@gnu.org>
1310
1311 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1312 pltoff entries for DT_INIT and DT_FINI.
1313 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1314 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1315 entries.
1316
18b27f17
RH
13172000-11-16 Richard Henderson <rth@redhat.com>
1318
1319 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1320 (allocate_dynrel_entries): Likewise.
1321 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1322 (set_pltoff_entry): Likewise.
1323 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1324 (elfNN_ia64_reloc_type_lookup): Likewise.
1325 (elfNN_ia64_install_value): Likewise.
1326 (elfNN_ia64_relocate_section): Likewise.
1327 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1328 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1329
98591c73
KH
13302000-11-16 Kazu Hirata <kazu@hxi.com>
1331
71f6b586
KH
1332 * cpu-a29k.c: Fix formatting.
1333 * cpu-alpha.c: Likewise.
1334 * cpu-arm.c: Likewise.
1335 * cpu-avr.c: Likewise.
1336 * cpu-d10v.c: Likewise.
1337 * cpu-h8500.c: Likewise.
1338 * cpu-hppa.c: Likewise.
1339 * cpu-i370.c: Likewise.
1340 * cpu-i386.c: Likewise.
1341 * cpu-i960.c: Likewise.
1342 * cpu-ia64-opc.c: Likewise.
1343 * cpu-ia64.c: Likewise.
1344 * cpu-m32r.c: Likewise.
1345 * cpu-m68hc11.c: Likewise.
1346 * cpu-m68hc12.c: Likewise.
1347 * cpu-m68k.c: Likewise.
1348 * cpu-m88k.c: Likewise.
1349 * cpu-mips.c: Likewise.
1350 * cpu-ns32k.c: Likewise.
1351 * cpu-pj.c: Likewise.
1352 * cpu-powerpc.c: Likewise.
1353 * cpu-sh.c: Likewise.
1354 * cpu-sparc.c: Likewise.
1355 * cpu-tic54x.c: Likewise.
1356 * cpu-v850.c: Likewise.
1357 * cpu-vax.c: Likewise.
1358 * cpu-w65.c: Likewise.
1359 * cpu-we32k.c: Likewise.
1360 * cpu-z8k.c: Likewise.
1361 * dwarf1.c: Likewise.
98591c73
KH
1362 * dwarf2.c: Likewise.
1363
c5930ee6
KH
13642000-11-15 Kazu Hirata <kazu@hxi.com>
1365
1366 * coff-arm.c: Fix formatting.
1367 * coff-ppc.c: Likewise.
1368 * coff-rs6000.c: Likewise.
cbfe05c4
KH
1369 * coff-sh.c: Likewise.
1370 * coff-sparc.c: Likewise.
1371 * coff-tic30.c: Likewise.
1372 * coff-tic54x.c: Likewise.
1373 * coff-tic80.c: Likewise.
1374 * coff-w65.c: Likewise.
1375 * coff-we32k.c: Likewise.
1376 * coff-z8k.c: Likewise.
c5930ee6 1377
dac544a8
RH
13782000-11-15 Richard Henderson <rth@redhat.com>
1379
1380 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1381 section with the same ALLOC|LOAD flags as the source section.
1382
c810873d
JJ
13832000-11-14 Jakub Jelinek <jakub@redhat.com>
1384
1385 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1386 by STO_ALPHA constants.
1387
43646c9d
KH
13882000-11-14 Kazu Hirata <kazu@hxi.com>
1389
1390 * coff-pmac.c: Fix formatting.
1391 * coff-ppc.c: Likewise.
1392
051b8577
L
13932000-11-13 H.J. Lu <hjl@gnu.org>
1394
1395 * elflink.h (elf_link_add_object_symbols): Also add indirect
1396 symbols for common symbols with the default version.
1397
90460d97
PB
13982000-11-09 Philip Blundell <pb@futuretv.com>
1399
1400 * section.c (STD_SECTION): Set gc_mark flag.
1401
b48499ec
KH
14022000-11-11 Kazu Hirata <kazu@hxi.com>
1403
1404 * coff-i960.c: Likewise.
1405 * coff-m68k.c: Likewise.
1406 * coff-m88k.c: Likewise.
1407 * coff-mcore.c: Likewise.
1408 * coff-mips.c: Likewise.
1409
c5aeb40f
AO
14102000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1411
1412 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1413
5fcfd273
KH
14142000-11-10 Kazu Hirata <kazu@hxi.com>
1415
1416 * coff-h8300.c: Fix formatting.
1417 * coff-h8500.c: Likewise.
1418 * coff-i386.c: Likewise.
1419 * coff-i860.c: Likewise.
1420 * coff-i960.c: Likewise.
1421 * coff-ia64.c: Likewise.
1422
047066e1
KH
14232000-11-09 Kazu Hirata <kazu@hxi.com>
1424
1425 * archive.c: Fix formatting.
1426 * archures.c: Likewise.
1427
9a951beb
RH
14282000-11-07 Richard Henderson <rth@redhat.com>
1429
1430 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1431 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1432 * section.c (bfd_set_section_contents): Call memcpy if
1433 section->contents set and location not equal to contents plus offset.
1434
aebad5fe
KH
14352000-11-08 Kazu Hirata <kazu@hxi.com>
1436
8546af74
KH
1437 * bfd-in.h: Fix formatting.
1438 * bfd-in2.h: Likewise.
1439 * bfd.c: Likewise.
aebad5fe
KH
1440 * binary.c: Likewise.
1441 * bout.c: Likewise.
346ceb11
KH
1442 * coff-a29k.c: Likewise.
1443 * coff-alpha.c: Likewise.
1444 * coff-apollo.c: Likewise.
1445 * coff-aux.c: Likewise.
aebad5fe 1446
0ef5a5bd
KH
14472000-11-07 Kazu Hirata <kazu@hxi.com>
1448
1449 * aix386-core.c: Fix formatting.
1450 * aoutf1.h: Likewise.
1451 * aoutx.h: Likewise.
1452 * archures.c: Likewise.
1453 * armnetbsd.c: Likewise.
1454
d562d2fb
AM
14552000-11-07 Alan Modra <alan@linuxcare.com.au>
1456
1457 * coff-h8300.c (special): Adjust reloc address.
1458
bbe66d08
JW
14592000-11-06 Steve Ellcey <sje@cup.hp.com>
1460
4efc3e05 1461 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
1462 to differentiate elf32 and elf64 on ia64.
1463 * bfd-in2.h: Regenerate.
1464 * config.bfd: Add target for "ia64*-*-hpux*".
1465 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1466 * configure: Regenerate.
4efc3e05 1467 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
1468 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1469
1470 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1471 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1472 * Makefile.in: Regnerate.
4efc3e05 1473 * elf64-ia64.c: Deleted.
bbe66d08
JW
1474 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1475
c4dfa77f
KH
14762000-11-06 Kazu Hirata <kazu@hxi.com>
1477
1478 * aout-adobe.c: Fix formatting.
1479 * aout-arm.c: Likewise.
1480 * aout-cris.c: Likewise.
1481 * aout-encap.c: Likewise.
1482 * aout-ns32k.c: Likewise.
1483 * aout-target.h: Likewise.
1484 * aout-tic30.c: Likewise.
1485
cf919dfd
PB
14862000-11-05 Philip Blundell <philb@gnu.org>
1487
1488 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1489 BFDs containing no sections to be merged, regardless of their flags.
1490
14912000-11-04 Philip Blundell <philb@gnu.org>
1492
1493 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1494 if a relocation for an undefined symbol also results in an
1495 overflow.
1496
8d88c4ca 14972000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
1498
1499 * config.bfd: Add support for Sun Chorus.
1500
46d59bfa
DB
15012000-11-05 David O'Brien <obrien@FreeBSD.org>
1502
1503 * configure.in: Recognize alpha-*-freebsd*.
1504 * configure: Regenerate.
1505
d952f17a 15062000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
1507
1508 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1509 (Chunk): New global variable set by a parameter in objcopy.c.
1510 (S3Forced): New global variable set by a parameter in
1511 objcopy.c.
1512 (srec_set_section_contents): If S3Forced is true, always generate
1513 S3 records.
1514 (srec_write_section): Use 'Chunk' to limit maximum length of S
1515 records.
1516
59ff2774
NC
15172000-11-02 Per Lundberg <plundis@chaosdev.org>
1518
1519 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1520 * Makefile.in: Regenerate.
1521 * bfd-in2.h: Regenerate.
1522 * po/bfd.pot: Regenerate.
d952f17a 1523
ee43f35e
PB
15242000-10-31 Philip Blundell <philb@gnu.org>
1525
1526 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1527 EF_SOFT_FLOAT if it is defined.
1528
1006ba19
PB
15292000-10-27 Philip Blundell <philb@gnu.org>
1530
1531 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1532 attempts to mix PIC code with non-PIC, just mark the output as
1533 being position dependent.
d952f17a
AM
1534 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1535 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 1536 all mismatches, not just the first one.
d952f17a 1537
c4920b97
NC
15382000-10-25 Chris Demetriou <cgd@sibyte.com>
1539
1540 * ieee.c (ieee_archive_p): Plug one of many possible
1541 memory leaks in error handling.
1542
19f7b010
JJ
15432000-10-20 Jakub Jelinek <jakub@redhat.com>
1544
1545 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1546 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1547 Support v8plusb.
1548 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1549 sparc64_elf_object_p): Support v9b.
1550 * archures.c: Declare v8plusb and v9b machines.
1551 * bfd-in2.h: Ditto.
1552 * cpu-sparc.c: Ditto.
1553
e1e0340b
GK
15542000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1555
ea5fbc67
GK
1556 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1557 of a GOT reloc.
1558
e1e0340b
GK
1559 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1560 (SYMBOL_CALLS_LOCAL): New macro.
1561 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1562 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1563 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1564 (ppc_elf_relocate_section): Use flag variable to determine
1565 whether the relocation refers to a local symbol.
1566 Test whether a PLTREL24 reloc will produce a reloc by looking
1567 to see whether a PLT entry was made.
1568
a4b120e1
GK
15692000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1570
1571 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1572 entries that could serve as a definition for a weak symbol.
1573
5af5b85b
UC
15742000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1575
1576 From Ralf Baechle <ralf@gnu.org>
1577
1578 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1579 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1580 against local symbols.
1581 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 1582
3ef20aaa
AM
15832000-10-12 Alan Modra <alan@linuxcare.com.au>
1584
24376d1b
AM
1585 * section.c (struct sec): Add kept_section.
1586 (struct bfd_comdat_info): Remove sec, we can use above.
1587 (STD_SECTION): Add initializer.
1588 (bfd_make_section_anyway): Init here too.
1589
1590 * bfd-in2.h: Regenerate.
1591
1592 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 1593 zeroing of `flags'.
24376d1b
AM
1594 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1595 fudge values for discarded link-once section symbols.
1596
3ef20aaa
AM
1597 * elf64-hppa.c: Include alloca-conf.h
1598
c0e219cc
AM
15992000-10-11 Alan Modra <alan@linuxcare.com.au>
1600
d01e2a23
AM
1601 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1602
c0e219cc
AM
1603 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1604
fe268b66
AM
16052000-10-10 Alan Modra <alan@linuxcare.com.au>
1606
1607 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1608
4d7ce4dd
AM
16092000-10-10 Tom Rix <trix@redhat.com>
1610
d952f17a 1611 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
1612 newsect->symbol fails to alloc. Use bfd_release instead of free.
1613
f3b6f7c3
RH
16142000-10-09 Richard Henderson <rth@cygnus.com
1615
1616 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1617 (elf64_ia64_unwind_entry_compare): New.
1618 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1619
44852b19
AM
16202000-10-07 Alan Modra <alan@linuxcare.com.au>
1621
fc8c40a0
AM
1622 * elflink.h (size_dynamic_sections): Don't create various tags if
1623 .dynstr is excluded from the link. Don't set first dynsym entry
1624 if dynsymcount is zero.
1625 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1626 .dynsym excluded from the link. Don't try to write any dynamic
1627 sections excluded from the link.
1628
44852b19
AM
1629 * elf.c (swap_out_syms): Handle global section symbols.
1630
3e4554a2
DD
16312000-10-05 DJ Delorie <dj@redhat.com>
1632
1633 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1634 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1635 (coff_write_relocs): write extended reloc count
1636 (coff_write_object_contents): account for extended relocs
1637
fa152c49
JW
16382000-10-05 Jim Wilson <wilson@cygnus.com>
1639
1640 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1641 field.
1642 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1643 elf_backend_section_flags function.
1644 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1645 code.
1646 (elf64_ia64_section_flags): New function containing flag conversion
1647 code.
1648 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1649 * elfxx-target.h (elf_backend_section_flags): Define.
1650 (elfNN_bed): Initialize elf_backend_section_flags field.
1651
36605136
AM
16522000-10-02 Alan Modra <alan@linuxcare.com.au>
1653
1654 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1655 _bfd_elf32_gc_record_vtable. Correct a comment.
1656
4b6609a0
UC
16572000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1658
1659 From Ralf Baechle <ralf@gnu.org>
1660
1661 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1662 produces binaries with got[1] = 0x80000001 to differenciate them
1663 for the dynamic linker from the broken binaries produced by old
1664 versions.
36605136 1665
f572a39d
AM
16662000-09-30 Petr Sorfa <petrs@sco.com>
1667
1668 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1669 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1670 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1671 * configure: Regenerate.
1672
4da81684
HPN
16732000-09-27 Hans-Peter Nilsson <hp@axis.com>
1674
1675 Define two bfd_targets for absence and presence of leading
1676 underscore on symbols. Make sure to only link same kind.
1677 * elf32-cris.c (cris_elf_object_p,
1678 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1679 cris_elf_merge_private_bfd_data): New.
1680 (elf_backend_object_p, elf_backend_final_write_processing,
1681 bfd_elf32_bfd_print_private_bfd_data,
1682 bfd_elf32_bfd_merge_private_bfd_data): Define.
1683 <Target vector definition>: Include elf32-target.h twice with
1684 different macro settings:
1685 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1686 bfd_elf32_us_cris_vec.
1687 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1688 (elf_symbol_leading_char): First as 0, then '_'.
1689 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1690 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1691 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1692 * configure: Regenerate.
1693 * targets.c: Declare bfd_elf32_us_cris_vec.
1694 * po/bfd.pot: Regenerate.
1695
9a5aca8c
AM
16962000-09-29 Momchil Velikov <velco@fadata.bg>
1697
1698 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1699 R_ARM_THM_PC22 relocations.
1700
512a2384
AM
17012000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1702
1703 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1704
6c99a5c3
AM
17052000-09-29 Momchil Velikov <velco@fadata.bg>
1706
1707 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1708 is has the SEC_HAS_CONTENTS flag set.
1709