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