* elf32-m68hc11.c (_bfd_m68hc11_elf_print_private_bfd_data): New.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
96405e3c
SC
12002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2
3 * elf32-m68hc11.c (_bfd_m68hc11_elf_print_private_bfd_data): New.
4 (_bfd_m68hc11_elf_merge_private_bfd_data): New function.
5 (_bfd_m68hc11_elf_set_private_flags): New function.
6 Use them to set/check/print ELF flags specific to 68HC11.
7
8 * elf32-m68hc12.c (_bfd_m68hc12_elf_print_private_bfd_data): New.
9 (_bfd_m68hc12_elf_merge_private_bfd_data): New function.
10 (_bfd_m68hc12_elf_set_private_flags): New function.
11 Use them to set/check/print ELF flags specific to 68HC12.
12
dae78fb0
SC
132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
14
15 * elf32-m68hc11.c (elf_m68hc11_howto_table): Add the new relocs;
16 fix masks for PC-rel relocs.
17 (m68hc11_elf_ignore_reloc): New function.
18
19 * elf32-m68hc12.c (m68hc12_elf_special_reloc): New to handle specific
20 68HC12 banked addressing relocs.
21 (m68hc12_phys_addr): New to compute physical address of banked memory.
22 (m68hc12_phys_page): Likewise for page.
23 (m68hc12_addr_is_banked): New to see if address is in banked area.
24 (elf_m68hc12_howto_table): Add new relocs and rename to xx12.
25
3dbfec86
SC
262002-08-13 Stephane Carrez <stcarrez@nerim.fr>
27
28 * reloc.c (BFD_RELOC_M68HC11_RL_JUMP, BFD_RELOC_M68HC11_RL_GROUP,
29 BFD_RELOC_M68HC11_LO16, BFD_RELOC_M68HC11_PAGE,
30 BFD_RELOC_M68HC11_24): New relocs for 68HC11/68HC12.
31 * bfd-in2.h: Regenerate.
32
871da94f
L
332002-08-12 H.J. Lu <hjl@gnu.org>
34
35 * elflink.h (elf_add_default_symbol): Preserve section across
36 elf_merge_symbol.
37
59bc061d
NC
382002-08-09 Graeme Peterson <gp@qnx.com>
39
40 * Makefile.am: Add entries for elf32-ppcqnx.c, and add
41 elf32-qnx.h dependency to elfarmqnx-nabi.c and elf32-i386qnx.c.
42 * Makefile.in: Regenerate.
43 * config.bfd: Add support for powerpc{le}-*-nto targets.
44 * configure.in: Add support for bfd_elf32_powerpc{le}qnx_vec.
45 * configure: Regenerate.
46 * elf32-i386qnx.c: Moved backend functions into a QNX specific
47 common file "elf32-qnx.h", and now include that file.
48 * elf32-qnx.h: New file: QNX specific common elf backend.
49 * elf32-ppc.c: Do not include elf32-target.h if
50 ELF32_PPC_C_INCLUDED is defined.
51 * elf32-ppcqnx.c: New file: Support for QNX.
52 * elfarmqnx-nabi.c: Include elf32-qnx.h for qnx elf backend.
53 * targets.c: Add bfd_elf32_powerpc{le}qnx_vec.
54
2b692c59
NC
552002-08-09 Nick Clifton <nickc@redhat.com>
56
57 * po/sv.po: Updated Swedish translation.
58
d0c7ff07
TS
592002-08-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
60
61 * elfxx-mips.c (mips_elf_global_got_index): Avoid segfault if
62 g->global_gotsym is NULL.
63
d8bbe778
L
642002-08-08 H.J. Lu <hjl@gnu.org>
65
66 * elflink.h (elf_add_default_symbol): Don't warn a defintion
67 overrides an indirect versioned symbol.
68
c366c25e
JJ
692002-08-08 Jakub Jelinek <jakub@redhat.com>
70
71 * elf32-i386.c (elf_i386_relocate_section): Fill in proper addend
72 for R_386_TLS_TPOFF32 relocs against symndx 0.
73
31941635
L
742002-08-07 H.J. Lu <hjl@gnu.org>
75
76 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Check symbol
77 with undefined version if needed.
78 (elf_link_assign_sym_version): Match a default symbol with a
79 version without definition. No need to hide the default
80 definition separately.
81
0f3bd64f
AM
822002-08-08 Alan Modra <amodra@bigpond.net.au>
83
7330fb86
AM
84 * elflink.h (elf_link_output_extsym): Don't output symbols from
85 SEC_EXCLUDE sections.
86
0f3bd64f
AM
87 * aoutx.h (aout_link_write_symbols): Correct handling of warning syms.
88
a4aa0fb7
AM
892002-08-07 Alan Modra <amodra@bigpond.net.au>
90
91 * elf64-ppc.c (edit_opd): Arrange to drop symbols for discarded .opd
92 entries.
93
34ea4a36
TS
942002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
95
96 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Cast signedness
97 mismatch.
98
141ff970
TS
992002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
100
101 * elfxx-mips.c (ABI_64_P): Remove superfluous check.
102
28458e7e
TS
1032002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
104
105 * elf32-mips.c (mips_reloc_map): Fix typo.
106
0121a3da
AM
1072002-08-06 Alan Modra <amodra@bigpond.net.au>
108
109 * xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section.
110
d006db6c
AM
1112002-08-06 Alan Modra <amodra@bigpond.net.au>
112
113 * elf64-ppc.c (ppc64_elf_howto_raw): Zero all src_mask entries.
114
8ea80f08
AM
1152002-08-06 Alan Modra <amodra@bigpond.net.au>
116
2a52da53
AM
117 * libxcoff.h: Use PARAMS on function declarations.
118 * coff-rs6000.c (xcoff_generate_rtinit): Simplify size calc.
119 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
120
8ea80f08
AM
121 * coff-rs6000.c: (xcoff_rtype2howto): Don't place reloc address in
122 addend.
123 * coff64-rs6000.c: (xcoff64_rtype2howto): Likewise.
124
cf9ab45b
AM
1252002-08-06 Alan Modra <amodra@bigpond.net.au>
126
127 * coff-rs6000.c: Formatting fixes.
128 (xcoff_calculate_relocation): Use PARAMS in declaration.
129 (xcoff_complain_overflow): Likewise.
130 (xcoff_ppc_relocate_section): Use old-style function pointer call.
131 (bfd_xcoff_backend_data): Remove useless comments.
132 (rs6000coff_vec): Likewise.
133 (bfd_pmac_xcoff_backend_data): Likewise.
134 (pmac_xcoff_vec): Likewise.
8ea80f08 135
cf9ab45b
AM
136 * coff64-rs6000.c: Formatting fixes.
137 (xcoff64_calculate_relocation): Use PARAMS in declaration.
138 (xcoff64_ppc_relocate_section): Use old-style function pointer call.
139 (bfd_xcoff_backend_data): Remove useless comments.
140 (rs6000coff64_vec): Likewise.
141 (bfd_xcoff_aix5_backend_data): Likewise.
142 (aix5coff64_vec): Likewise.
143
48bfecdd
AM
1442002-08-06 Alan Modra <amodra@bigpond.net.au>
145
a78eab4e
AM
146 * coff-rs6000.c (xcoff_howto_table): Revert some of last change to
147 mask entries. Use complain_overflow_dont for R_REF.
148 (xcoff_reloc_type_ba): Revert last change.
149 (xcoff_reloc_type_br): Likewise.
150 (xcoff_reloc_type_crel): Likewise.
151 (xcoff_ppc_relocate_section): Likewise.
152 * coff64-rs6000.c (xcoff64_reloc_type_br): Likewise.
153 (xcoff64_ppc_relocate_section): Likewise.
154 (xcoff64_howto_table): Revert some of last change to mask entries.
155 Use complain_overflow_dont for R_REF.
156
48bfecdd
AM
157 * coff-rs6000.c (xcoff_howto_table): Fix src_mask entries. Make all
158 relocs with bitsize == 16 have size = 1.
159 (xcoff_reloc_type_ba): Correct src_mask and dst_mask adjustment.
160 (xcoff_reloc_type_br): Likewise.
161 (xcoff_reloc_type_crel): Likewise.
162 (xcoff_ppc_relocate_section): Set up src_mask and dst_mask correctly.
163 * coff64-rs6000.c (xcoff64_reloc_type_br): Correct src_mask and
164 dst_mask adjustment.
165 (xcoff64_ppc_relocate_section): Set up src_mask and dst_mask correctly.
166 (xcoff64_howto_table): Fix src_mask entries. Make all relocs with
167 bitsize == 16 have size = 1.
168
fd13ed0c
DC
1692002-08-01 Denis Chertykov <denisc@overta.ru>
170
171 * elf32-ip2k.c: Processor manufacturer changed to Ubicom.
172 (struct misc): New field isymbuf. All free_* fields removed.
173 (symbol_value): Pass in internal syms. No need to swap syms in.
174 (ip2k_elf_relax_section): Use bfd_elf_get_elf_syms. Properly free
175 possibly cached info.
176 (tidyup_after_error): Removed.
177 (ip2k_elf_relax_section_pass1): Don't use removed fields of struct
178 misc. Use new field.
179 (adjust_all_relocations): Use internal syms. No need to swap syms
180 in and out.
181 (add_page_insn): Don't use removed fields of struct misc.
182
24a1ba0f
NC
1832002-08-01 Nick Clifton <nickc@redhat.com>
184
185 * elf32-arm.h: Revert previous delta.
186
a6903459
NC
1872002-08-01 Nick Clifton <nickc@redhat.com>
188
189 * configure.in (AM_INIT_AUTOMAKE): Bump version number.
190 * configure: Regenerate.
191
39a2a3eb
L
1922002-07-31 H.J. Lu <hjl@gnu.org>
193
194 * config.bfd: Add x86-64 vector to Linux/i386 if 64bit BFD is
195 selected.
196
a0dfa6a8
L
1972002-07-31 H.J. Lu <hjl@gnu.org>
198
199 * config.bfd: Add n32 vectors to 32bit Linux/mips if 64bit BFD
200 is selected.
201
cd67d266
JJ
2022002-07-31 Jakub Jelinek <jakub@redhat.com>
203
204 * elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type
205 if _bfd_elf_link_hash_copy_indirect will swap got.refcount.
206
4eb6b71c
NC
2072002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
208
209 * cpu-ns32k.c (_bfd_ns32k_put_immdeiate, _bfd_ns32k_get_immediate):
210 There is no 8 byte relocation type for this architecture.
211 (do_ns32k_reloc): Use bfd_vma instead of native types.
212 (bfd_ns32k_put_immediate, _bfd_ns32k_relocate_contents) put_data
213 returns void.
214 (_bfd_ns32k_put_displacement): Don't check for overflow. We can
215 rely on generic code to do that.
216 * aout-ns32k.c (howto_table): Add appropriate overflow detection
217 to all table entries.
218 (_bfd_ns32k_relocate_contents): put_data returns void.
219 * ns32k.h: (_bfd_ns32k_put_displacement, _bfd_ns32k_put_immediate)
220 (_bfd_do_ns32k_reloc_contents): Fix prototypes. put data functions
221 return void.
222
f7c33884
NC
2232002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
224
225 * aoutx.h (aout_link_check_ar_symbols): Whether to include an
226 archive object is target dependant.
227
8f64befb
NC
2282002-07-31 Adam Nemet <anemet@lnxw.com>
229
230 * elf32-arm.h (ARM_PLT_ENTRY_SIZE): Rename PLT_ENTRY_SIZE.
231 (THUMB_PLT_ENTRY_SIZE): New macro.
232 (PLT_ENTRY_SIZE): Return the appropriate *_PLT_ENTRY_SIZE.
233 (elf32_arm_plt0_entry): Rename PLT_ENTRY_SIZE to
234 ARM_PLT_ENTRY_SIZE.
235 (elf32_arm_plt_entry): Likewise.
236 (elf_backend_plt_header_size): Likewise.
237 (elf32_thumb_plt0_entry): New global.
238 (elf32_arm_finish_dynamic_sections): Use it. Put Thumb entries
239 into .plt.thumb.
240 (elf32_thumb_plt_entry): New global.
241 (elf32_arm_finish_dynamic_symbol): Use it. Use .thumb.plt for
242 Thumb entries. Set the bottom bit of the corresponding GOT entry
243 for a Thumb PLT entry.
244 (struct elf32_arm_plt_entry_info): New structure.
245 (struct elf32_arm_link_hash_entry, plt_info): New member of this
246 type.
247 (elf32_arm_link_hash_newfunc): Initialize new member.
248 (elf32_arm_final_link_relocate, R_ARM_THM_PC22 case): Handle
249 relocations against the PLT.
250 (elf32_arm_check_relocs, case R_ARM_PLT32 case): Set
251 first_rel_type if this is the first time we encounter the symbol.
252 (elf32_arm_check_relocs, case R_ARM_THM_PC22 case): New case.
253 Determine if relocation needs a PLT entry. Set first_rel_type if
254 this is the first time we encounter the symbol
255 (elf32_arm_adjust_dynamic_symbol): Create PLT entries for Thumb
256 functions as well.
257 (elf32_arm_size_dynamic_sections): Handle .plt.thumb like .plt.
258 (elf32_arm_create_dynamic_sections): New function. Create the
259 .plt.thumb section.
260 (elf_backend_create_dynamic_sections): Call it.
261
47badb7b
NC
2622002-07-31 Nick Clifton <nickc@redhat.com>
263
264 * bfd.c (bfd_alt_mach_code): Rename parameter 'index' to
265 'alternative' in order to avoid shadowing global symbol of the
266 same name.
267 * bfd-in2.h: Regenerate.
268 * libbfd.h: Regenerate.
269 * libcoff.h: Regenerate.
270
8a397dad
TS
2712002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
272
273 * Makefile.am: Add n32 ABI support.
274 * Makefile.in: Regenerate.
275 * config.bfd: Add n32 vectors to mips64*-*-linux* targets. Treat 64
276 bit vectors for mips*-*-linux targets as optional.
277 * configure.in: Add n32 ABI vectors.
278 * configure: Regenerate.
279 * elf32-mips.c (mips_elf32_object_p): Reject n32 ABI files.
280 * elfn32-mips.c: New file, n32 ABI support.
281 * targets.c: Add n32 ABI vectors.
282
7e392df6 2832002-07-30 Graeme Peterson <gp@qnx.com>
83e1617e 284
7e392df6
NC
285 * elfarmqnx-nabi.c: New file: Support for QNX.
286 * config.bfd: Add support for arm-*-nto target.
287 * configure.in: Add support for bfd_elf32_{big|little}armqnx_vec.
288 * configure: Regenerate.
289 * Makefile.am: Add entries for elfarmqnx-nabi.c.
290 * Makefile.in: Regenerate.
291 * elf32-arm.h (ELF_MAXPAGESIZE): Do not define if already defined.
292 Do not define global function if ELFARM_NABI_C_INCLUDED is defined.
293 * elfarm-nabi.c: Do not include elf32-arm.h if
294 ELFARM_NABI_C_INCLUDED is defined.
295 * targets.c: Add bfd_elf32_{big|little}armqnx_vec.
7330fb86 296
7e392df6 2972002-07-30 Nick Clifton <nickc@redhat.com>
7330fb86 298
83e1617e
NC
299 * po/sv.po: Updated Swedish translation.
300
704afa60
JJ
3012002-07-30 Jakub Jelinek <jakub@redhat.com>
302
303 * elf.c (elf_fake_sections): Fix up .tbss sh_size and sh_type.
304
487e54f2
AM
3052002-07-30 Alan Modra <amodra@bigpond.net.au>
306
307 * aoutx.h (some_aout_object_p): Clean up tdata properly on error.
308 * archive.c (bfd_generic_archive_p): Likewise.
309 * coff-rs6000.c (_bfd_xcoff_archive_p): Likewise.
310 (_bfd_xcoff_archive_p): Use bfd_scan_vma in place of strtol.
311 * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
312 (xcoff64_archive_p): Likewise.
313 (xcoff64_openr_next_archived_file): Likewise.
314 (xcoff64_archive_p): Clean up tdata properly on error.
315 * coffgen.c (coff_real_object_p): Likewise.
316 (coff_object_p): Release filehdr and opthdr.
317 * ecoff.c (_bfd_ecoff_archive_p): Clean up tdata properly on error.
318 * ieee.c (ieee_archive_p): Likewise.
319 * ihex.c (ihex_object_p): Likewise.
320 (ihex_mkobject): Always allocate tdata.
321 * peicode.h (pe_ILF_object_p): Release bfd_alloc'd buffer on error.
322 * srec.c (srec_mkobject): Always allocate tdata.
323 (srec_object_p): Clean up tdata properly on error.
324 (symbolsrec_object_p): Likewise.
325 * versados.c (versados_object_p): Likewise.
326 * vms-misc.c (_bfd_vms_get_record): Use bfd_malloc instead of malloc,
327 and bfd_realloc instead of realloc.
328 (add_new_contents): Use bfd_alloc instead of bfd_malloc for sections.
329 * vms.c (vms_initialize): Always allocate tdata. Use bfd_alloc in
330 place of bfd_malloc, simplifying error freeing. Free hash table too.
331 (vms_object_p): Clean up tdata on error.
332 (vms_mkobject): Don't complain on stderr if vms_initialize fails.
333 (vms_close_and_cleanup): Adjust for bfd_alloc use.
334
9d46020e
AM
3352002-07-30 Alan Modra <amodra@bigpond.net.au>
336
337 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set e_flags.
338
fb39dac1
RS
3392002-07-26 Chris Demetriou <cgd@broadcom.com>
340
341 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE
342 flags into resulting BFD.
343
7a624474
AM
3442002-07-26 Alan Modra <amodra@bigpond.net.au>
345
346 From John Reiser <jreiser@BitWagon.com>
347 * elf32-i386.c (elf_i386_link_hash_table_create): Clear
348 tls_ldm_got.refcount.
349
a4382ec6
TS
3502002-07-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
351
352 * elf64-mips.c: Update TODO comment.
353 (mips_elf64_higher_reloc,mips_elf64_highest_reloc,
354 mips_elf64_gprel16_reloca): Remove prototypes.
355 (mips16_jump_reloc,mips16_gprel_reloc): Add functions.
356 (UNUSED_RELOC): Replace by EMPTY_RELOC.
357 (mips_elf64_howto_table_rel): Use special R_MIPS_HI16 handling. Remove
358 wrong comments. Remove disfunctional support of R_MIPS_HIGHER and
359 R_MIPS_HIGHEST.
360 (mips_elf64_howto_table_rela): Fix handling of R_MIPS_GPREL16 and
361 R_MIPS_GOT16. Remove wrong comments.
362 (elf_mips16_jump_howto,elf_mips16_gprel_howto,
363 elf_mips_gnu_vtinherit_howto,elf_mips_gnu_vtentry_howto): New, code
364 from elf32-mips.c.
365 (mips_elf64_hi16_reloc): Fix formatting.
366 (mips_elf64_higher_reloc,mips_elf64_highest_reloc): Remove.
367 (mips_elf64_got16_reloc): Fix formatting. Remove superfluous code.
368 Better comment. Fall back to R_MIPS_GOT_DISP instead of abort().
369 (mips_elf64_gprel16_reloc): Make static. Add check for
370 partial_inplace.
371 (mips_elf64_gprel16_reloca): Remove.
372 (mips_elf64_literal_reloc): New function.
373 (mips_elf64_gprel32_reloc): Fix formatting.
374 (mips_elf64_shift6_reloc): Fix comment. Make static.
375 (mips16_jump_reloc,mips16_gprel_reloc): New functions, code from
376 elf32-mips.c.
377 (elf_reloc_map,mips_reloc_map): New mapping table, similiar as in
378 elf32-mips.c
379 (bfd_elf64_bfd_reloc_type_lookup): Use the mapping table. Enable GNU
380 specific relocations.
381 (mips_elf64_rtype_to_howto): Enable GNU specific relocations.
382 (mips_elf64_object_p): Invert logic to check for SGI-ish ABI.
383 (ELF_MAXPAGESIZE): Add comment.
384
219576a4
NC
3852002-07-25 Nick Clifton <nickc@redhat.com>
386
387 * po/sv.po: Updated Swedish translation.
388 * po/es.po: Updated Spanish translation.
389 * po/fr.po: Updated French translation.
390
8c58d23b
AM
3912002-07-25 Alan Modra <amodra@bigpond.net.au>
392
393 * elf-bfd.h (_bfd_elf32_link_record_local_dynamic_symbol): Define
394 as elf_link_record_local_dynamic_symbol.
395 (_bfd_elf64_link_record_local_dynamic_symbol): Likewise.
396 (elf_link_record_local_dynamic_symbol): Declare. Now returns int.
397 * elflink.h (elf_link_record_local_dynamic_symbol): Move to..
398 * elflink.c: .. here. Use bfd_elf_get_elf_syms. Check whether an
399 attempt is made to record a symbol in a discarded section, and
400 return `2' in that case.
401
ff3063f5
NC
4022002-07-24 Nick Clifton <nickc@redhat.com>
403
404 * po/sv.po: Updated Swedish translation.
405 * po/es.po: Updated Spanish translation.
406
f0fe0e16
AM
4072002-07-23 Alan Modra <amodra@bigpond.net.au>
408
c1fb5f8a
AM
409 * po/SRC-POTFILES.in: Regenerate.
410
f0fe0e16
AM
411 * elf-hppa.h (elf_hppa_relocate_section): If relocatable, return
412 immediately. Remove code handling relocatable linking.
413 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
414 * elf32-cris.c (cris_elf_relocate_section): Likewise.
415 * elf32-fr30.c (elf32_frv_relocate_section): Likewise.
de2d743e 416 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
f0fe0e16
AM
417 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
418 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
419 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
420 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
421 * elf32-v850.c (v850_elf_relocate_section): Likewise.
422 * elf32-vax.c (elf_vax_relocate_section): Likewise.
423 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
424 * elf32-avr.c (elf_backend_rela_normal): Define.
425 * elf32-cris.c: Likewise.
426 * elf32-fr30.c: Likewise.
de2d743e 427 * elf32-frv.c: Likewise.
f0fe0e16
AM
428 * elf32-h8300.c: Likewise.
429 * elf32-hppa.c: Likewise.
430 * elf32-ip2k.c: Likewise.
431 * elf32-sparc.c: Likewise.
432 * elf32-v850.c: Likewise.
433 * elf32-vax.c: Likewise.
434 * elf64-hppa.c: Likewise.
435 * elf64-sparc.c: Likewise.
436 * elf32-fr30.c (elf32_frv_relocate_section): Edit comment.
de2d743e 437 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
f0fe0e16
AM
438 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
439 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
440 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
441 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
442 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
443 * elf-m10200.c (USE_RELA): Don't define.
444 * elf-m10300.c: Likewise.
de2d743e 445 * elfarm-oabi.c: Likewise.
f0fe0e16
AM
446 * elf32-i370.c: Likewise.
447 * elf32-ip2k.c: Likewise.
448 * elf32-m68k.c: Likewise.
449 * elf32-mcore.c: Likewise.
450 * elf32-ppc.c: Likewise.
451 * elf32-s390.c: Likewise.
452 * elf32-vax.c: Likewise.
453 * elf64-ppc.c: Likewise.
454 * elf64-s390.c: Likewise.
455 * elf64-x86-64.c: Likewise.
456 * elfxx-ia64.c: Likewise.
457 * elf32-avr.c (USE_REL): Don't undef.
458 * elf32-ip2k.c: Likewise.
459
5e8d7549
NC
4602002-07-23 Nick Clifton <nickc@redhat.com>
461
462 * elf-bfd.h (struct elf_backend_data): Add new bitfield
463 'want_p_paddr_set_to_zero'.
464 * elfxx-target.h: Set default value for want_p_paddr_set_to_zero
465 to false;
466 * elfxx-ia64.c: Set want_p_paddr_set_zero for HPUX target.
467 * elf.c (copy_private_bfd_data): Test want_p_paddr_set_zero.
468
9e12c7db
NC
4692002-07-23 Gabor Keresztfalvi <keresztg@mail.com>
470
471 * nlmcode.h (nlm_swap_auxiliary_headers_out): Swapped the order of
472 the MeSsAgEs and CoPyRiGhT tags to make >=NW4.x NLM loaders to
473 show the Copyright string.
474 Minor formatting tidy ups.
475
0461a601
NC
4762002-07-23 Nick Clifton <nickc@redhat.com>
477
ff3063f5
NC
478 * po/fr.po: Updated French translation.
479 * po/sv.po: Updated Swedish translation.
0461a601 480
fad2542d
AM
4812002-07-23 Alan Modra <amodra@bigpond.net.au>
482
483 * elflink.h (elf_link_input_bfd): Don't change internal symbols
484 when outputting relocs.
485
c0647bfc
JT
4862002-07-20 Jason Thorpe <thorpej@wasabisystems.com>
487
488 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
489 DT_PLTGOT into the dynamic section if there is a PLT.
490
d01414a5
TS
4912002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
492
493 * elfxx-mips.c (_bfd_mips_elf_discard_info): New function, code from
494 elf32-mips.c.
495 (_bfd_mips_elf_write_section): Likewise.
496 * elfxx-mips.h (_bfd_mips_elf_discard_info): New prototype.
497 (_bfd_mips_elf_write_section): Likewise.
498 * elf32-mips.c (elf32_mips_discard_info): Move to elfxx-mips.c.
499 (elf32_mips_write_section): Likewise.
500 * elf64-mips.c (_bfd_mips_elf_ignore_discarded_relocs): Use it.
501 (_bfd_mips_elf_write_section): Likewise.
502
40c97fc6
AM
5032002-07-19 Alan Modra <amodra@bigpond.net.au>
504
505 * elfxx-ia64.c: (elfNN_ia64_modify_segment_map): Properly scan
506 PT_IA_64_UNWIND segments for a given section.
507
58378160
L
5082002-07-17 H.J. Lu <hjl@gnu.org>
509
510 * Makefile.am: Fix a typo.
511 * Makefile.in: Regenerate.
512
cf88bb9f
NC
5132002-07-15 Denis Chertykov <denisc@overta.ru>
514 Frank Ch. Eigler <fche@redhat.com>
515 Ben Elliston <bje@redhat.com>
516 Alan Lehotsky <alehotsky@cygnus.com>
517 John Healy <jhealy@redhat.com>
518 Graham Stott <grahams@redhat.com>
519 Jeff Johnston <jjohnstn@redhat.com>
520
521 * Makefile.am: Add support for ip2k.
522 * Makefile.in: Regenerate.
523 * doc/Makefile.in: Regenerate.
524 * archures.c: Add support for ip2k.
525 * config.bfd: Add support for ip2k.
526 * configure.in: Add support for ip2k.
527 * configure: Regenerate.
528 * reloc.c: Add support for ip2k.
529 * targets.c: Add support for ip2k.
530 * bfd-in2.h: Regenerate.
531 * libbfd.h: Regenerate.
532 * cpu-ip2k.c: New file.
533 * elf32-ip2k.c: New file.
534
0dafd5f6
RE
5352002-07-17 Ian Rickards <irickard@arm.com>
536
40c97fc6 537 * dwarf2.c (concat_filename): If we can't establish the directory
0dafd5f6
RE
538 just return the filename.
539
36b08f12
AM
5402002-07-16 Moritz Jodeit <moritz@jodeit.org>
541
542 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
543
58821868
AM
5442002-07-16 Alan Modra <amodra@bigpond.net.au>
545
546 * elflink.h: Formatting fixes, tidy prototypes.
547 (elf_link_assign_sym_version): Move common code out of loop.
548
c89583f8
AM
5492002-07-16 Alan Modra <amodra@bigpond.net.au>
550
551 * elflink.h (elf_link_input_bfd): Don't call reloc_emitter when
552 reloc section size is zero. Correct reloc output location.
553
ba94744e
AM
5542002-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
555
556 * elf-hppa.h (elf_hppa_reloc_final_type): Use R_PARISC_PCREL16F as
557 the final type for the e_fsel selector when generating PA2.0W code.
558 (elf_hppa_relocate_insn): Provide support for PA2.0W 16-bit format 1
559 relocations.
560
96a94295
L
5612002-07-14 H.J. Lu <hjl@gnu.org>
562
563 * elflink.h (elf_link_assign_sym_version): Hide the default
564 definition if there is a hidden versioned definition.
565
6849c52f
HPN
5662002-07-12 Hans-Peter Nilsson <hp@axis.com>
567
568 * elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
569 dynamic reference test in assertion when initializing GOT with
570 static contents. Just assert that there are either no dynamic
571 sections, the symbol is defined in the regular objects or that the
572 symbol is undef weak. Tweak comment.
573 (elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
574 only if the symbol isn't defined in the program and isn't undef
575 weak.
576 (elf_cris_adjust_dynamic_symbol): Simplify condition for getting
577 rid of PLT entry: only do it if the symbol isn't defined in a DSO.
578 When doing so, clear ELF_LINK_HASH_NEEDS_PLT. Tweak comments.
579 (elf_cris_discard_excess_program_dynamics): Don't consider
580 ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.
581
239e1f3a
AM
5822002-07-11 Alan Modra <amodra@bigpond.net.au>
583
584 * elf32-i386.c (elf_i386_relocate_section): Don't complain about
585 unresolved debugging relocs in dynamic applications.
586 * elf32-s390.c (elf_s390_relocate_section): Likewise.
587 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
588 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
589 * elf64-s390.c (elf_s390_relocate_section): Likewise.
590 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
591 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
592
2f6d9989
AM
5932002-07-10 Alan Modra <amodra@bigpond.net.au>
594
f5e87a1d
AM
595 * elf64-ppc.c (ONES): Define.
596 (ppc64_elf_howto_table): Use ONES here to avoid warnings. Fill in
597 missing src_mask fields. Tweak R_PPC64_NONE, R_PPC64_COPY. Fill
598 in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32.
599
2f6d9989
AM
600 * elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
601 (ppc64_elf_set_private_flags): Delete.
602 (ppc64_elf_section_from_shdr): Delete.
603 (ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code.
604 (ppc64_elf_fake_sections): Delete.
605 (bfd_elf64_bfd_set_private_flags): Don't define.
606 (bfd_elf64_get_symbol_info): Likewise.
607 (elf_backend_section_from_shdr): Likewise.
608 (elf_backend_fake_sections): Likewise.
609
0594c12d
AM
6102002-07-10 Marco Walther <Marco.Walther@sun.com>
611
612 * elf.c: (assign_section_numbers) Set sh_entsize for .stab only
613 when not already set.
614 * elf64-sparc.c: (sparc64_elf_fake_sections): New function.
615 (elf_backend_fake_sections): Define.
616
699cb9b8
AM
6172002-07-10 Alan Modra <amodra@bigpond.net.au>
618
619 * merge.c (_bfd_merge_section): Remove redundant output_section check.
620 Formatting.
621 (_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections.
622
0a4787a0
HPN
6232002-07-09 Hans-Peter Nilsson <hp@axis.com>
624
625 * elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
626 NULL sym_hashes to just before use.
627 <case R_CRIS_32_GOTREL>: In test for local symbol, accept also
628 symbol with non-default visibility.
629 <case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
630 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
631 Ditto.
632 (cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
633 symbol with non-default visibility.
634 (cris_elf_check_relocs): At tests for local symbol before
635 increasing h->plt.refcount, also check for non-default
636 visibility. Ditto when checking for local symbol to eliminate
637 pc-relative runtime relocs.
638
aecc8f8a
AM
6392002-07-08 Alan Modra <amodra@bigpond.net.au>
640
641 * elf.c: Formatting.
642 (IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
643 (INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
644 (copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
645 segments.
646
e9168c1e
MM
6472002-07-07 Mark Mitchell <mark@codesourcery.com>
648 Alan Modra <amodra@bigpond.net.au>
649
650 * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
651 account the impact of relocation count overflow when computing
652 section offsets.
653 * coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
654 or not to apply the PE COFF reloc overflow handling. Fix a
655 fencepost error in deciding whether or not to use that technique.
656
6cdc0ccc
AM
6572002-07-07 Alan Modra <amodra@bigpond.net.au>
658
659 * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
660 change type of locsyms.
661 (bfd_elf_get_elf_syms): Declare.
662 * elf.c (bfd_elf_get_elf_syms): New function.
663 (group_signature): Use bfd_elf_get_elf_syms.
664 (bfd_section_from_r_symndx): Likewise.
665 * elfcode.h (elf_slurp_symbol_table): Likewise.
666 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
667 (elf_link_add_object_symbols): Likewise. Reorganise to increase
668 locality of various data structures. Properly free internal relocs.
669 (elf_bfd_final_link): Properly free internal relocs.
670 (elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
671 (elf_link_input_bfd): Likewise.
672 (elf_gc_mark): Likewise. Properly free internal relocs.
673 (elf_gc_sweep): Properly free internal relocs.
674 (elf_reloc_symbol_deleted_p): No need to swap syms in.
675 (elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free
676 internal relocs.
677 * elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
678 Properly free possibly cached info.
679 (mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
680 (mn10200_elf_symbol_address_p): Pass in internal syms. Remove
681 symbol swapping code.
682 (mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
683 Properly free possibly cached info.
684 * elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
685 (mn10300_elf_relax_delete_bytes): Likewise.
686 (mn10300_elf_symbol_address_p): Likewise.
687 (mn10300_elf_get_relocated_section_contents): Likewise.
688 * elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
689 (elf32_h8_relax_delete_bytes): Likewise.
690 (elf32_h8_symbol_address_p): Likewise.
691 (elf32_h8_get_relocated_section_contents): Likewise.
692 * elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
693 (m32r_elf_relax_delete_bytes): Likewise.
694 (m32r_elf_get_relocated_section_contents): Likewise.
695 * elf32-sh.c (sh_elf_reloc_loop): Free section contents using
696 elf_section_data to determine whether cached.
697 (sh_elf_relax_section): As above for elf-m10200.c.
698 (sh_elf_relax_delete_bytes): Likewise.
699 (sh_elf_get_relocated_section_contents): Likewise.
700 * elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
701 * elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay
702 reading of local syms.
703 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
704 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
705 * elfxx-ia64.c (elfNN_ia64_relax_section): As above.
706 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
707 relocs.
708 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
709 free internal relocs and section contents. Don't read symbols.
710 * elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
711 (elf32_hppa_size_stubs): Don't free local syms.
712 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
713 reading of local syms. Use bfd_elf_get_elf_syms. Properly free
714 possibly cached info.
715 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
716 * elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
717 * elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
718 all_local_syms.
719 (get_local_syms): Delete function.
720 (edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache
721 on exit.
722 (ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit.
723
b3212001
JW
7242002-07-05 Jim Wilson <wilson@redhat.com>
725
726 * syms.c (decode_section_type): New.
727 (bfd_decode_symclass): Call decode_section_type.
728
894bb1ee
JJ
7292002-07-04 Jakub Jelinek <jakub@redhat.com>
730
731 * merge.c (_bfd_merged_section_offset): Avoid accessing byte before
732 section content start.
733 Reported by Michael Schumacher <mike@hightec-rt.com>.
734
bc0ba537
AM
7352002-07-04 Alan Modra <amodra@bigpond.net.au>
736
737 * section.c (_bfd_strip_section_from_output): Remove unnecessary
738 link order code. Don't actually remove the output section here;
739 Just set a flag for the linker to do so.
740 * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
741 sections when setting up output section dynsyms.
742
797fc050
AM
7432002-07-04 Alan Modra <amodra@bigpond.net.au>
744
745 * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
746 fudge.
747 * elf.c (bfd_section_from_shdr): Work around broken hpux shared
748 libs here instead.
749
99881371
MS
7502002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
751
752 * elf64-s390.c (create_got_section): Set .got section alignment to
753 8 bytes.
754 (elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.
755
47d9a591
AM
7562002-07-02 Alan Modra <amodra@bigpond.net.au>
757
758 * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
759
179d3252
JT
7602002-07-01 Matt Thomas <matt@3am-software.com>
761
762 * elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
763 to EF_VAX_*.
764
4a14403c
TS
7652002-07-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
766
767 * elfxx-mips.c (ABI_64_P): Fix comment.
768 (MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
769 new section names for N64 ABI.
770 (mips_elf_output_extsym): No special _gp_disp handling for NewABI.
771 (mips_elf_calculate_relocation): Code formatting.
772 (mips_elf_create_dynamic_relocation): Likewise.
773 (_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
774 (_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
775 (_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
776 in any NewABI.
777 (_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
778 for NewABI.
779 (_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
780 (_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
781 here, too.
782
607c0e09
AS
7832002-07-01 Andreas Schwab <schwab@suse.de>
784
785 * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
786 R_X86_64_64 to R_X86_64_RELATIVE.
787
ba26fd96
AM
7882002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
789
790 * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
791 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
792 Run "make dep-am".
793 * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
794 host_aout_vec.
795 * configure.in (vaxbsd_vec): Add.
796 * targets.c (vaxbsd_vec): Add.
797 * Makefile.in: Rebuild.
798 * configure: Rebuild.
799 * po/SRC-POTFILES.in: Rebuild.
800
1e2f5b6e
AM
8012002-07-01 Alan Modra <amodra@bigpond.net.au>
802
803 * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
804 examining to gc_mark_hook, rather than the bfd.
805 (elf_gc_sections): Adjust.
806 * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
807 * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
808 * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
809 * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
810 * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
811 * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
812 * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
813 * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
814 * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
815 * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
816 * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
817 * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
818 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
819 * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
820 * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
821 * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
822 * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
823 * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
824 * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
825 * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
826 * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
827 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
828 * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
829 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
830 * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
831 * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
832 * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
833 * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
834 redundant local sym tests.
835 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
836 (link_hash_newfunc): Init is_entry.
837 (ppc64_elf_copy_indirect_symbol): Copy is_entry.
838 (ppc64_elf_link_hash_table_create): Init all_local_syms.
839 (create_linkage_sections): Use bfd_make_section_anyway rather than
840 bfd_make_section.
841 (ppc64_elf_mark_entry_syms): New function.
842 (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
843 up opd entry to function section map.
844 (ppc64_elf_gc_mark_hook): Special case opd section relocs, and
845 relocs that reference the opd section.
846 (edit_opd): New function.
847 (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
848 (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
849 (get_local_syms): Do so here. Exit if we already have local syms.
850 Remove bogus comment imported from elf32-hppa.c. Don't attempt to
851 read local syms on non-ELF input.
852 (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
853 than duplicating it's function here. Adjust free of internal
854 relocs to suit.
855 (ppc64_elf_relocate_section): Adjust local syms in opd section.
856 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
857 * elf32-hppa.c (elf32_hppa_size_stubs): Call
858 _bfd_elf32_link_read_relocs rather than duplicating it's function
859 here. Adjust free of internal relocs to suit.
860
1b71fb54
AJ
8612002-07-01 Andreas Jaeger <aj@suse.de>
862
863 * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
864 are not allowed in shared libs code, enforce -fPIC.
865
8d28f606
HPN
8662002-06-29 Hans-Peter Nilsson <hp@bitrange.com>
867
868 * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
869 trailing zero-sequences when there's previous left-over data.
870
5ac81c74
JL
8712002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>
872
873 * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
874 (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
875 and opd_rel_sec in order for starting rela section. Check _raw_size.
876 (elf_backend_reloc_type_class): Define.
877
91a4d569
AM
8782002-06-27 Kevin Buettner <kevinb@redhat.com>
879
880 * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
881 DWARF2 formats.
882
feee612b
AM
8832002-06-27 Alan Modra <amodra@bigpond.net.au>
884
885 * cpu-powerpc.c: Comment on ordering of arch_info.
886 * elf32-ppc.c (ppc_elf_object_p): New function.
887 (elf_backend_object_p): Define.
888 * elf64-ppc.c (ppc64_elf_object_p): New function.
889 (elf_backend_object_p): Define.
890
a4e6cefc
JT
8912002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
892
893 * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
894 * configure: Regenerate.
895
dae2dd0d
NC
8962002-06-25 Jason Eckhardt <jle@rice.edu>
897
898 * dwarf2.c (decode_line_info): Check unit->addr_size
899 to read in the proper number of prologue bytes.
900
680f9d5c
NC
9012002-06-25 Nick Clifton <nickc@cambridge.redhat.com>
902
903 * config.bfd (powerpc-*-aix5*): Only create a selvecs for
904 aix5coff64_vec if 64-bit bfd support has been enabled.
91a4d569
AM
905 (powerpc64-*-aix5*): Only define if 64-bit bfd support has
906 been enabled.
dae2dd0d 907
680f9d5c
NC
908 * targets.c (_bfd_target_vector[]): Only include
909 aix5coff64_vec if 64-bit bfd support has been enabled.
910
d4c88bbb
AM
9112002-06-25 Alan Modra <amodra@bigpond.net.au>
912
913 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
914 * elf32-hppa.c (hppa_add_stub): Likewise.
915 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
916 * elflink.h (elf_add_default_symbol): Fix comment typo.
917 (elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
918 (elf_link_add_object_symbols): Likewise.
919 (elf_link_assign_sym_version): Likewise.
920 * hash.c (bfd_hash_lookup): Likewise.
921 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
922 * section.c (bfd_get_unique_section_name): Likewise.
923 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
924 * elf.c (_bfd_elf_make_section_from_phdr): Likewise.
925 (assign_section_numbers): Likewise.
926 (_bfd_elfcore_make_pseudosection): Likewise.
927 (elfcore_grok_lwpstatus): Likewise.
928 (elfcore_grok_win32pstatus): Likewise.
929 (elfcore_write_note): Constify input params. Use PTR instead of
930 void *. Include terminating NUL in namesz. Correct padding.
931 Support NULL "name" param. Use memcpy instead of strcpy.
932 (elfcore_write_prpsinfo): Constify input params.
933 (elfcore_write_prstatus): Likewise. Use PTR instead of void *.
934 (elfcore_write_lwpstatus): Likewise.
935 (elfcore_write_pstatus): Likewise.
936 (elfcore_write_prfpreg): Likewise.
937 (elfcore_write_prxfpreg): Likewise.
938 * elf-bfd.h (elfcore_write_note): Update declaration.
939 (elfcore_write_prpsinfo): Likewise.
940 (elfcore_write_prstatus): Likewise.
941 (elfcore_write_pstatus): Likewise.
942 (elfcore_write_prfpreg): Likewise.
943 (elfcore_write_prxfpreg): Likewise.
944 (elfcore_write_lwpstatus): Likewise.
945
b0ac09d2
NC
9462002-06-25 Jason Eckhardt <jle@rice.edu>
947
948 * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for
949 symbols of type stProc and stStaticProc.
950
9512002-06-25 Nick Clifton <nickc@redhat.com>
952
953 * ecoff.c: VArious formatting fixes.
954
021d6096
AM
9552002-06-25 Alan Modra <amodra@bigpond.net.au>
956
957 * coff-rs6000.c (xcoff_generate_rtinit): Fix typo.
958
82e51918
AM
9592002-06-25 Alan Modra <amodra@bigpond.net.au>
960
961 * aout-adobe.c: Don't compare against "true" or "false.
962 * aout-target.h: Likewise.
963 * aoutx.h: Likewise.
964 * archive.c: Likewise.
965 * bout.c: Likewise.
966 * cache.c: Likewise.
967 * coff-a29k.c: Likewise.
968 * coff-alpha.c: Likewise.
969 * coff-i386.c: Likewise.
970 * coff-mips.c: Likewise.
971 * coff-or32.c: Likewise.
972 * coff64-rs6000.c: Likewise.
973 * coffcode.h: Likewise.
974 * coffgen.c: Likewise.
975 * cpu-ns32k.c: Likewise.
976 * ecoff.c: Likewise.
977 * ecofflink.c: Likewise.
978 * elf.c: Likewise.
979 * elf32-arm.h: Likewise.
980 * elf32-cris.c: Likewise.
981 * elf32-d30v.c: Likewise.
982 * elf32-i386.c: Likewise.
983 * elf32-mcore.c: Likewise.
984 * elf32-ppc.c: Likewise.
985 * elf32-sh.c: Likewise.
986 * elf32-sh64.c: Likewise.
987 * elf32-v850.c: Likewise.
988 * elf64-alpha.c: Likewise.
989 * elf64-sh64.c: Likewise.
990 * elfcode.h: Likewise.
991 * elfcore.h: Likewise.
992 * elflink.h: Likewise.
993 * elfxx-mips.c: Likewise.
994 * i386os9k.c: Likewise.
995 * ieee.c: Likewise.
996 * libbfd.c: Likewise.
997 * linker.c: Likewise.
998 * mmo.c: Likewise.
999 * nlm32-alpha.c: Likewise.
1000 * nlm32-i386.c: Likewise.
1001 * nlm32-ppc.c: Likewise.
1002 * nlm32-sparc.c: Likewise.
1003 * nlmcode.h: Likewise.
1004 * oasys.c: Likewise.
1005 * pdp11.c: Likewise.
1006 * peicode.h: Likewise.
1007 * reloc.c: Likewise.
1008 * som.c: Likewise.
1009 * srec.c: Likewise.
1010 * tekhex.c: Likewise.
1011 * vms.c: Likewise.
1012 * xcofflink.c: Likewise.
1013 * elf64-sparc.c: Edit comment to not use "== false".
1014
1015 * aoutf1.h: Don't use "? true : false".
1016 * ecoff.c: Likewise.
1017 * format.c: Likewise.
1018 * ieee.c: Likewise.
1019 * linker.c: Likewise.
1020 * mmo.c: Likewise.
1021 * oasys.c: Likewise.
1022
48fc70a2
AM
10232002-06-23 H.J. Lu <hjl@gnu.org>
1024
1025 * elflink.h (elf_link_add_archive_symbols): For the default
1026 version, check references with only one `@' first.
1027
47b7c2db
AM
10282002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
1029
1030 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
1031 function.
1032 (allocate_global_data_dlt): Don't add millicode symbols to dynamic
1033 symbol table.
1034 (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
1035 (elf64_hppa_size_dynamic_sections): Revise to use
1036 elf64_hppa_mark_milli_and_exported_functions.
1037 (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
1038 symbols out of dynamic symbol table.
1039
f5d44ba0
AM
10402002-06-23 Alan Modra <amodra@bigpond.net.au>
1041
bb3fff1e
AM
1042 * Makefile.in: Regenerate.
1043 * libbfd.h: Regenerate.
1044 * bfd-in2.h: Regenerate.
1045 * configure: Regenerate.
1046 * po/SRC-POTFILES.in: Regenerate.
1047
f5d44ba0
AM
1048 * elflink.h: Comment typo fixes.
1049
10502002-06-23 H.J. Lu <hjl@gnu.org>
1051
1052 * elf-bfd.h (elf_link_loaded_list): New structure.
1053 (elf_link_hash_table): Add "loaded".
1054 * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
1055 * elflink.h (elf_link_check_versioned_symbol): New function.
1056 (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
1057
cc36acdf
NC
10582002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
1059
1060 * elflink.h (size_dynamic_sections): If the target does not
f5d44ba0 1061 support an ELF style hash table, return true, indicating that
cc36acdf
NC
1062 nothing needed to be done, rather than false, indicating that the
1063 section's size could not be computed.
1064
4e5ba5b7
DB
10652002-06-18 Dave Brolley <brolley@redhat.com>
1066
1067 From Catherine Moore, Michael Meissner, Dave Brolley:
1068 * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
1069 * targets.c: Support bfd_elf32_frv_vec.
1070 * reloc.c: Add FRV relocs.
1071 * configure.in: Add support for bfd-elf32-frv-vec.
1072 * config.bfd (targ_cpu): Add support for frv-*-elf.
1073 * archures.c: Add frv arch and machines.
1074 * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
1075 (ALL_MACHINES_CFILES): Add cpu-frv.c.
1076 (BFD32_BACKENDS): Add elf32-frv.lo.
1077 (BFD32_BACKENDS_CFILES): Add elf32-frv.c
1078 (cpu-frv.lo): New target.
1079 (elf32-frv.lo): New target.
1080 * cpu-frv.c: New file.
1081 * elf32-frv.c: New file.
1082
7ece0d85
JJ
10832002-06-18 Jakub Jelinek <jakub@redhat.com>
1084
1085 * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
1086 e_shnum == 0.
1087 Only read the first section header if e_shoff is non-zero.
1088 Don't consider e_shstrndx if there are no sections.
1089
57fb03ac
TR
10902002-06-17 Tom Rix <trix@redhat.com>
1091
1092 * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
f5d44ba0 1093 R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
57fb03ac
TR
1094 complain_overflow_bitfield.
1095
341ca622
AM
10962002-06-17 Alan Modra <amodra@bigpond.net.au>
1097
767e34d1
AM
1098 * opncls.c (bfd_openr): Remove redundant bfd_set_error.
1099 (bfd_fdopenr): Likewise.
1100 (bfd_openstreamr): Likewise.
1101 (bfd_openw): Likewise.
1102
341ca622
AM
1103 * targets.c: Sort target vecs.
1104 (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
1105 bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
1106 bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
1107 bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
1108 * configure.in: Sort target vecs. Add m88kmach3_vec.
1109 * configure: Regenerate.
1110
dfbbae4c
HPN
11112002-06-16 Hans-Peter Nilsson <hp@bitrange.com>
1112
1113 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
1114 bpo_reloc_no to break sort order ties, not address of items.
1115
d663e1cd
JL
11162002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1117
1118 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
1119 Skip excluded sections in determing __gp value.
1120 (elf_hppa_final_link_relocate): Use the symbol's address in
1121 R_PARISC_FPTR64 relocations that don't need an opd entry.
1122 * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
1123 (elf64_hppa_finalize_dynreloc): Likewise.
1124 (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
1125 (elf64_hppa_finish_dynamic_symbol): Break up assert.
1126
a8295218
NC
11272002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE>
1128
1129 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
1130 alignment for .bss, .data and .text sections so that sse and sse2
1131 code will work.
1132 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1133
11342002-06013 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
1135
1136 config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
1137 sh[1234]*-elf*.
1138
3db4b612
JL
11392002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1140
2cb69dd3
JL
1141 * elflink.h (elf_bfd_final_link): Improve error handling for missing
1142 dynamic sections.
1143
3db4b612
JL
1144 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
1145 for a symbol that has no output section.
1146 (allocate_dynrel_entries): Correct comment.
1147 (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
1148 unless we want one.
1149 (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
1150 (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
1151 with no section. Remove unnecessary parentheses.
1152
f3813499
TR
11532002-06-11 Tom Rix <trix@redhat.com>
1154
1155 * coffcode.h (coff_compute_section_file_positions): Add data
1156 section to AIX loader alignment check.
1157
f5d44ba0 1158 * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
f3813499
TR
1159 alignment to 4 bytes.
1160 (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
1161 power accessor macro.
1162 (do_shared_object_padding): Remove invalid assertion.
1163
0ebaf185
RS
11642002-06-10 Richard Sandiford <rsandifo@redhat.com>
1165
1166 * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
1167 for removed output sections.
1168
ebe3e2d1
NC
11692002-06-10 Geoffrey Keating <geoffk@redhat.com>
1170
1171 * merge.c (merge_strings): Use htab_create_alloc with calloc, not
1172 htab_alloc.
1173 * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
1174
0b14c2aa
L
11752002-06-08 H.J. Lu <hjl@gnu.org>
1176
1177 * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
1178 work around a long long bug in gcc 2.96 on mips.
1179
3c2bfad6
JT
11802002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1181
1182 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
1183 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
1184 Regenerate dependency lists.
1185 * Makefile.in: Regenerate.
1186 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
1187 vax1knetbsd_vec to targ_selvecs.
1188 * configure.in: Add vax1knetbsd_vec.
1189 * configure: Regenerate.
1190 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
1191 * vax1knetbsd.c: New file.
1192 * vaxnetbsd.c: Update copyright years.
1193 (TARGET_PAGE_SIZE): Set to 0x1000.
1194 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
1195
91149be3
JT
11962002-06-08 Matt Thomas <matt@3am-software.com>
1197
1198 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
1199
21e15248
AM
12002002-06-08 Alan Modra <amodra@bigpond.net.au>
1201
1202 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
1203
986b7daa
AM
12042002-06-08 Alan Modra <amodra@bigpond.net.au>
1205
e90b95f6
AM
1206 * Makefile.am: Run "make dep-am".
1207 * Makefile.in: Regenerate.
1208
3f9c735e
AM
1209 * armnetbsd.c: Replace CONST with const.
1210 * corefile.c: Likewise.
1211 * elf32-dlx.c: Likewise.
1212 * elf64-mips.c: Likewise.
1213 * mmo.c: Likewise.
1214 * ns32knetbsd.c: Likewise.
1215
986b7daa
AM
1216 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
1217 table is elf64-sparc.
1218
5a659663
TS
12192002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1220
1221 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
1222 Fix RELA addends to get not shifted in the result. Don't do special
1223 handling of R_MIPS_64 for NewABI.
1224
9bab7074
AM
12252002-06-07 Alan Modra <amodra@bigpond.net.au>
1226
1227 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
1228 (NAME(aout,slurp_reloc_table)): Likewise.
1229 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
1230 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
1231 (xcoff_write_archive_contents_big): Likewise.
1232 (xcoff_generate_rtinit): Likewise.
1233 (xcoff_generate_rtinit): Likewise, and check error return.
1234 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
1235 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
1236 (coff_get_normalized_symtab): Likewise.
1237 (coff_make_empty_symbol): Likewise.
1238 (bfd_coff_set_symbol_class): Likewise.
1239 * cofflink.c (coff_link_add_symbols): Likewise.
1240 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
1241 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
1242 (bfd_ecoff_write_accumulated_debug): Likewise.
1243 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
1244 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
1245 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
1246 * ieee.c (do_with_relocs): Use bfd_zalloc.
1247 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
1248 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
1249 (NAME(aout,slurp_reloc_table)): Likewise.
1250 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
1251 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
1252 * som.c (som_build_and_write_symbol_table): Likewise.
1253 (som_slurp_string_table): Likewise.
1254 (som_slurp_symbol_table): Likewise.
1255 (som_bfd_ar_write_symbol_stuff): Likewise.
1256 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
1257 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
1258 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
1259 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
1260 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
1261
1126897b
AM
12622002-06-07 Alan Modra <amodra@bigpond.net.au>
1263
1264 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
1265 "group" union.
1266 (elf_group_name): Update.
1267 (elf_group_id): Define.
1268 (bfd_elf_set_group_contents): Declare.
1269 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
1270 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
1271 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
1272 that sym for the signature.
1273 (_bfd_elf_compute_section_file_positions): Don't call
1274 set_group_contents for "ld -r" case.
1275 (swap_out_syms): Use bfd_zalloc.
1276 * elflink.h (elf_link_add_archive_symbols): Likewise.
1277 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
1278 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
1279
3fad3c7c
AM
12802002-06-07 Alan Modra <amodra@bigpond.net.au>
1281
1282 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
1283 relocs in opd for non-shared too.
1284
76f99c63
JL
12852002-06-06 Jeffrey Law <law@redhat.com
1286
1287 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
1288 relocations.
1289
7217313c
NC
12902002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
1291
1292 * merge.c: Include libiberty.h.
1293 * elf-strtab.c: Include libiberty.h.
1294
6cb22815
AM
12952002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
1296
1297 * peXXigen.c (pe_print_idata): Remove unused variable.
1298
1ed89aa9
NC
12992002-06-06 David Heine <dlheine@tensilica.com>
1300
1301 * elf.c (assign_file_positions_for_segments): Remove unallocated
1302 sections from the section to segment mapping for PT_LOAD segments.
1303 Update comment about empty loadable segments.
1304
644c4c80
RS
13052002-06-06 Richard Sandiford <rsandifo@redhat.com>
1306
1307 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
1308 is within the .stabstr section.
1309
f8ecb12b
AM
13102002-06-06 Alan Modra <amodra@bigpond.net.au>
1311
1312 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
1313 are "const PTR", not "const PTR *".
1314 (bfd_elf32_swap_symbol_in): Likewise.
1315 (bfd_elf64_swap_symbol_in): Likewise.
1316 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
1317 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
1318 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
1319 (elf_link_add_object_symbols): Likewise.
1320 (elf_link_record_local_dynamic_symbol): Likewise.
1321 (elf_link_input_bfd): Likewise.
1322 (elf_gc_mark): Likewise.
1323 (elf_reloc_symbol_deleted_p): Likewise.
1324 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
1325 (mn10200_elf_relax_delete_bytes): Likewise.
1326 (mn10200_elf_symbol_address_p): Likewise.
1327 (mn10200_elf_get_relocated_section_contents): Likewise.
1328 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
1329 (mn10300_elf_relax_section): Likewise.
1330 (mn10300_elf_relax_delete_bytes): Likewise.
1331 (mn10300_elf_symbol_address_p): Likewise.
1332 (mn10300_elf_get_relocated_section_contents): Likewise.
1333 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
1334 (elf32_h8_relax_delete_bytes): Likewise.
1335 (elf32_h8_symbol_address_p): Likewise.
1336 (elf32_h8_get_relocated_section_contents): Likewise.
1337 * elf32-hppa.c (get_local_syms): Likewise.
1338 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
1339 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
1340 * elf32-sh.c (sh_elf_relax_section): Likewise.
1341 (sh_elf_relax_delete_bytes): Likewise.
1342 (sh_elf_get_relocated_section_contents): Likewise.
1343 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
1344 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
1345 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
1346 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
1347 * elf64-ppc.c (get_local_syms): Likewise.
1348 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
1349 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
1350
1ed89aa9 13512002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
1352
1353 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
1354
73ff0d56
AM
13552002-06-05 Alan Modra <amodra@bigpond.net.au>
1356
9dce4196
AM
1357 * elf.c (group_signature): Swap in the whole symbol, and handle
1358 extracting section symbol names.
1359 (setup_group): Add comment.
1360 (set_group_contents): When called from objcopy or ld, arrange for
1361 section contents to be written. Write group member output section
1362 indices to allow objcopy to reorganize sections.
1363 (_bfd_elf_copy_private_section_data): Copy group info.
1364
73ff0d56
AM
1365 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
1366 (bfd_elf32_swap_symbol_in): Update prototype.
1367 (bfd_elf64_swap_symbol_in): Likewise.
1368 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
1369 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
1370 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
1371 (elf_link_add_object_symbols): Likewise.
1372 (elf_link_record_local_dynamic_symbol): Likewise.
1373 (elf_link_input_bfd): Likewise.
1374 (elf_gc_mark): Likewise.
1375 (elf_reloc_symbol_deleted_p): Likewise.
1376 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
1377 (mn10200_elf_relax_delete_bytes): Likewise.
1378 (mn10200_elf_symbol_address_p): Likewise.
1379 (mn10200_elf_get_relocated_section_contents): Likewise.
1380 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
1381 (mn10300_elf_relax_section): Likewise.
1382 (mn10300_elf_relax_delete_bytes): Likewise.
1383 (mn10300_elf_symbol_address_p): Likewise.
1384 (mn10300_elf_get_relocated_section_contents): Likewise.
1385 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
1386 (elf32_h8_relax_delete_bytes): Likewise.
1387 (elf32_h8_symbol_address_p): Likewise.
1388 (elf32_h8_get_relocated_section_contents): Likewise.
1389 * elf32-hppa.c (get_local_syms): Likewise.
1390 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
1391 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
1392 * elf32-sh.c (sh_elf_relax_section): Likewise.
1393 (sh_elf_relax_delete_bytes): Likewise.
1394 (sh_elf_get_relocated_section_contents): Likewise.
1395 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
1396 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
1397 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
1398 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
1399 * elf64-ppc.c (get_local_syms): Likewise.
1400 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
1401 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
1402 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
1403 * elf64-alpha.c (alpha_elf_size_info): Likewise.
1404 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
1405 * elf64-mips.c (mips_elf64_size_info): Likewise.
1406 * elf64-s390.c (s390_elf64_size_info): Likewise.
1407 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
1408
53bfd6b4
MR
14092002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1410
1411 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
1412 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
1413 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
1414 _bfd_mips_elf_ignore_discarded_relocs.
1415 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
1416
d4df96e6
L
14172002-06-05 H.J. Lu <hjl@gnu.org>
1418
1419 * elfxx-mips.c (mips_elf_calculate_relocation): Call
1420 _bfd_elf_rel_local_sym for STT_SECTION relocations against
1421 the SEC_MERGE section.
1422
e61463e1
AM
14232002-06-05 Alan Modra <amodra@bigpond.net.au>
1424
3cac74d0
AM
1425 * coff-alpha.c: Update copyright date.
1426 * coff-mips.c: Likewise.
1427 * xcoff-target.h: Likewise.
1428
e61463e1
AM
1429 * bfd-in.h: Remove "taken from the source" comment.
1430 * libbfd-in.h: Likewise.
1431 * libcoff-in.h: Likewise.
1432 * bfd-in2.h: Regenerate.
1433 * libbfd.h: Regenerate.
1434 * libcoff.h: Regenerate.
1435
1436 * elf.c (bfd_elf_discard_group): Return true.
1437 * elf-bfd.h (bfd_elf_discard_group): Declare.
1438 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
1439 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
1440 * bfd.c (bfd_discard_group): Define.
1441 * targets.c (struct bfd_target): Add _bfd_discard_group.
1442 (BFD_JUMP_TABLE_LINK): Here too.
1443 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
1444 * aout-adobe.c (aout_32_bfd_discard_group): Define.
1445 * aout-target.h (MY_bfd_discard_group): Define.
1446 * aout-tic30.c (MY_bfd_discard_group): Define.
1447 * binary.c (binary_bfd_discard_group): Define.
1448 * bout.c (b_out_bfd_discard_group): Define.
1449 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
1450 * coffcode.h (coff_bfd_discard_group): Define.
1451 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
1452 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
1453 * i386msdos.c (msdos_bfd_discard_group): Define.
1454 * i386os9k.c (os9k_bfd_discard_group): Define.
1455 * ieee.c (ieee_bfd_discard_group): Define.
1456 * ihex.c (ihex_bfd_discard_group): Define.
1457 * mmo.c (mmo_bfd_discard_group): Define.
1458 * nlm-target.h (nlm_bfd_discard_group): Define.
1459 * oasys.c (oasys_bfd_discard_group): Define.
1460 * ppcboot.c (ppcboot_bfd_discard_group): Define.
1461 * som.c (som_bfd_discard_group): Define.
1462 * srec.c (srec_bfd_discard_group): Define.
1463 * tekhex.c (tekhex_bfd_discard_group): Define.
1464 * versados.c (versados_bfd_discard_group): Define.
1465 * vms.c (vms_bfd_discard_group): Define.
1466 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
1467 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
1468 (aix5coff64_vec): Likewise.
1469 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
1470
9cba27b2
JT
14712002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1472
1473 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
1474 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
1475 (elf32-sh64-com.lo): New dependency list.
1476 * Makefile.in: Regenerate.
1477 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
1478 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
1479 elf32-sh64-com.lo.
1480 * configure: Regenerate.
1481 * elf32-sh64.c (sh64_address_in_cranges)
1482 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
1483 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
1484 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
1485 * elf32-sh64-com.c: ...here. New file.
1486
8d2c33be
AM
14872002-06-04 Alan Modra <amodra@bigpond.net.au>
1488
1489 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
1490 ATTRIBUTE_UNUSED on used params.
1491 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
1492 before calling bfd_section_from_elf_index on local syms.
1493 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
1494
5b0e55b6
JT
14952002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1496
1497 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
1498 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
1499 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
1500 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
1501 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
1502 * Makefile.in: Regenerate.
1503 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1504 (sh64-*-netbsd*): New targets.
1505 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
1506 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
1507 * configure: Regenerate.
1508 * elf32-sh64-nbsd.c: New file.
1509 * elf64-sh64-nbsd.c: New file.
1510 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
1511 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
1512 bfd_elf64_sh64lnbsd_vec.
1513
b885599b
AM
15142002-06-04 Alan Modra <amodra@bigpond.net.au>
1515
1516 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
1517 (bfd_section_from_shdr): Likewise. Set section name of group
1518 sections from signature.
1519 (group_signature): Split out from setup_group. Ensure symbol table
1520 is available.
1521 (bfd_elf_discard_group): New function.
1522 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
1523 .gnu.linkonce* sections if they are members of a group.
1524 (set_group_contents): Set GRP_COMDAT flag.
1525 * section.c (bfd_discard_group): New function.
1526 * bfd-in.h (bfd_elf_discard_group): Declare.
1527 * bfd-in2.h: Regenerate.
1528 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
1529 (elf_linkonce_p): Define.
1530
90937f86
AM
15312002-06-04 Alan Modra <amodra@bigpond.net.au>
1532
1533 * elf.c (bfd_section_from_shdr): Make "name" const.
1534 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
1535 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
1536 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
1537 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
1538 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
1539 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
1540 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
1541 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
1542 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
1543 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
1544 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
1545
cf6fb9ce
MR
15462002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1547
1548 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
1549 ABI.
1550
cedb70c5
KH
15512002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1552
1553 * elf32-arc.c: Fix formatting.
1554 * elf32-arm.h: Likewise.
1555 * elf32-cris.c: Likewise.
1556 * elf32-dlx.c: Likewise.
1557 * elf32-hppa.c: Likewise.
1558 * elf32-i386.c: Likewise.
1559 * elf32-i386qnx.c: Likewise.
1560 * elf32-or32.c: Likewise.
1561 * elf32-s390.c: Likewise.
1562 * elf32-sh64.c: Likewise.
1563 * elf32-vax.c: Likewise.
1564 * elf32-xstormy16.c: Likewise.
1565 * elf64-alpha.c: Likewise.
1566 * elf64-mmix.c: Likewise.
1567 * elf64-ppc.c: Likewise.
1568 * elf64-s390.c: Likewise.
1569 * elf64-sh64.c: Likewise.
1570 * elf64-x86-64.c: Likewise.
1571
048d873d
RH
15722002-06-02 Richard Henderson <rth@redhat.com>
1573
1574 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
1575 null when there are no got entries for a symbol.
1576 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
1577 uninitialized variable warning.
1578
4a67a098
RH
15792002-06-01 Richard Henderson <rth@redhat.com>
1580
1581 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
1582 undefined symbols here.
1583 (elf64_alpha_relax_section): Do it here. Also test for not
1584 defined in the current module.
1585 (elf64_alpha_relocate_section_r): Split out of ...
1586 (elf64_alpha_relocate_section): ... here. Don't dereference
1587 NULL when looking up local got entries.
1588
f44f99a5
RH
15892002-06-01 Richard Henderson <rth@redhat.com>
1590
1591 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
1592 symbols from JSR relaxation.
1593 (elf64_alpha_size_plt_section_1): New.
1594 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
1595 (elf64_alpha_size_rela_got_1): ... here.
1596 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
1597 (elf64_alpha_size_rela_got_section): ... here.
1598 (elf64_alpha_size_plt_section): New.
1599 (elf64_alpha_relax_section): Call them.
1600 (elf64_alpha_size_got_sections): Remove output_bfd arg.
1601 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
1602
9e756d64
RH
16032002-06-01 Richard Henderson <rth@redhat.com>
1604
1605 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
1606 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
1607 in shared libraries. Fix DTPRELHI and TPRELHI value.
1608 (INSN_ADDQ, INSN_RDUNIQ): New.
1609 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
1610 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
1611 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
1612 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
1613 Handle GOTDTPREL and GOTTPREL relocations.
1614 (elf64_alpha_relax_gprelhilo): New.
1615 (elf64_alpha_relax_tls_get_addr): New.
1616 (elf64_alpha_relax_find_tls_segment): New.
1617 (elf64_alpha_relax_section): Handle TLS relocations.
1618 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
1619 (elf64_alpha_check_relocs): Set it.
1620
c853d7f6
RH
16212002-06-01 Richard Henderson <rth@redhat.com>
1622
b646261c
RH
1623 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
1624
c853d7f6
RH
1625 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
1626 check; don't suppress dynamic relocs for non-allocated sections.
1627
d7e41a96
RH
1628 * elf64-alpha.c: Remove dead code.
1629
5f333394
AM
16302002-05-31 Alan Modra <amodra@bigpond.net.au>
1631
08e0ee05
AM
1632 * bfd-in2.h: Regenerate.
1633 * libbfd.h: Regenerate.
1634 * po/SRC-POTFILES.in: Regenerate.
1635
5f333394
AM
1636 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
1637 space for bss .plt.
1638
caf47ea6
AM
16392002-05-31 Graeme Peterson <gp@qnx.com>
1640
1641 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
1642 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
1643 Run "make dep-am".
1644 * Makefile.in: Regenerate.
1645 * config.bfd: Add i[3456]86-*-nto-qnx* support.
1646 * configure.in: Add bfd_elf32_i386qnx_vec support.
1647 * configure: Regenerate.
1648 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
1649 is_contained_by_filepos, and copy_private_bfd_data_p.
1650 * elf.c (assign_file_positions_for_segments): Call backend
1651 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
1652 (IS_CONTAINED_BY_FILEPOS): Define.
1653 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
1654 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
1655 Fix non-K&R call to _bfd_error_handler.
1656 (_bfd_elf_copy_private_section_data): Use backend
1657 copy_private_bfd_data_p.
1658 * elf32-i386.c: Don't include elfxx-target.h when
1659 ELF32_I386_C_INCLUDED is defined.
1660 * elf32-i386qnx.c: New QNX elf backend file.
1661 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
1662 elf_backend_is_contained_by_filepos, and
1663 elf_backend_do_copy_private_bfd_data.
1664 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
1665
5bc56484
AM
16662002-05-31 Alan Modra <amodra@bigpond.net.au>
1667
1668 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
1669 Move other similar defines to start of file.
1670
1b164155
TR
16712002-05-30 Tom Rix <trix@redhat.com>
1672
1673 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
1674 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
1675
3765b1be
RH
16762002-05-30 Richard Henderson <rth@redhat.com>
1677
1678 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
1679 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
1680 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
1681 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
1682 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
1683 (struct alpha_elf_obj_tdata): Rename total_got_entries and
1684 n_local_got_entries to total_got_size and local_got_size.
1685 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
1686 (alpha_got_entry_size): New.
1687 (elf64_alpha_relax_with_lituse): Use it.
1688 (elf64_alpha_relax_without_lituse): Likewise.
1689 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
1690 (get_got_entry): New.
1691 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
1692 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
1693 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
1694 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
1695 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
1696 (elf64_alpha_calc_got_offsets): Likewise.
1697 (alpha_dynamic_entries_for_reloc): New.
1698 (elf64_alpha_calc_dynrel_sizes): Use it.
1699 (elf64_alpha_size_dynamic_sections): Likewise.
1700 (elf64_alpha_relocate_section): Handle TLS relocations.
1701 * reloc.c: Add Alpha TLS relocations.
1702 * bfd-in2.h, libbfd.h: Rebuild.
1703
5e226794
NC
17042002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
1705
1706 * peXXigen.c (pe_print_idata): Remove double printed
1707 import table lines; add Bound-To comment.
1708
90ace9e9
JT
17092002-05-29 Matt Thomas <matt@3am-software.com>
1710
1711 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
1712 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
1713 (elf32-vax.lo): New rule.
1714 * Makefile.in: Regenerate.
1715 * configure.in (bfd_elf32_vax_vec)
1716 (vaxnetbsd_vec): New vectors.
1717 * configure: Regenerate.
1718 * config.bfd (vax-*-netbsdelf*)
1719 (vax-*-netbsdaout*)
1720 (vax-*-netbsd*): New targets.
1721 * elf32-vax.c: New file.
1722 * reloc.c: Add VAX relocations.
1723 * bfd-in2.h: Regenerate.
1724 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
1725
4a253e81
JT
17262002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1727
1728 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
1729 and bfd_elf32_bigarm_vec to targ_selvecs.
1730
6e7c73dd
CF
17312002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
1732
1733 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
1734 with auto-imported symbols.
1735
8afb0e02
NC
17362002-05-29 Adam Nemet <anemet@lnxw.com>
1737
1738 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
1739 sections only record bfd.
9bab7074 1740 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
8afb0e02 1741 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
9bab7074 1742 * bfd-in2.h: Regenerate.
8afb0e02 1743
a95653f5
NC
17442002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1745
1746 * syms.c (_bfd_stab_section_find_nearest_line): Move
1747 declaration and initialisation of saw_line and saw_func out of
1748 for loop.
1749
7cdc5bba
AM
17502002-05-29 Alan Modra <amodra@bigpond.net.au>
1751
1752 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
1753 (bfd_elf64_get_symbol_info): Define.
1754 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
1755
4c7aad1c
AM
17562002-05-29 Andrey Volkov <avolkov@transas.com>
1757
1758 * cpu-h8300.c: Make default h8300 machine first in machine list.
1759
d172d4ba
NC
17602002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1761
1762 * config.bfd: Added DLX configuraton.
1763 * Makefile.am: Added DLX configuraton.
1764 * configure.in: Added DLX configuraton.
1765 * archures.c: Add DLX architecure.
1766 * reloc.c: Add DLX relocs.
1767 * targets.c: Added DLX target vector.
1768 * configure: Regenerate.
1769 * Makefile.in: Regenreate.
1770 * bfd-in2.h: Regenreate.
1771 * elf32-dlx.c: New file: Support DLX target.
1772 * cpu-dlx.c: New file: Support DLX target.
1773
d1329ca3
AM
17742002-05-25 Alan Modra <amodra@bigpond.net.au>
1775
428d0de3
AM
1776 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
1777
d1329ca3
AM
1778 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
1779 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
1780 strings to point inside function code sym string.
1781 (func_desc_adjust): Likewise.
1782 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
1783
3bab7989
ML
17842002-05-24 Michal Ludvig <mludvig@suse.cz>
1785
1786 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
1787 (elf64_x86_64_grok_psinfo): Added.
1788
436e8db0
NC
17892002-05-24 TAMURA Kent <kent@netbsd.org>
1790
1791 * config.bfd: Add a target for i386-netbsdpe.
1792
ea1e4b0d
AM
17932002-05-24 Alan Modra <amodra@bigpond.net.au>
1794
1795 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
1796 and is_func_descriptor.
1797 (func_desc_adjust): Hide function code sym in shared libs unless
1798 there is a matching exported function descriptor sym.
1799
13ae64f3
JJ
18002002-05-23 Jakub Jelinek <jakub@redhat.com>
1801
1802 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
1803 for symbols from SHF_TLS section.
1804 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
1805 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
1806 (map_sections_to_segments): Build PT_TLS segment if necessary.
1807 (assign_file_positions_for_segments): Likewise.
1808 (get_program_header_size): Account for PT_TLS segment.
1809 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
1810 SEC_THREAD_LOCAL sections to STT_TLS.
1811 * reloc.c: Add 386 and IA-64 TLS relocs.
1812 * section.c (SEC_THREAD_LOCAL): Define.
1813 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
1814 Remove.
1815 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
1816 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
1817 unconditionally.
1818 (struct elf_final_link_info): Add first_tls_sec.
1819 (elf_bfd_final_link): Set first_tls_sec.
1820 Compute elf_hash_table (info)->tls_segment.
1821 (elf_link_output_extsym): Handle STT_TLS symbols.
1822 (elf_link_input_bfd): Likewise.
1823 * syms.c (BSF_THREAD_LOCAL): Define.
1824 * bfd-in2.h: Rebuilt.
1825 * libbfd.h: Rebuilt.
1826 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
1827 elf_i386_mkobject, elf_i386_object_p): New functions.
1828 (elf_howto_table): Add TLS relocs.
1829 (elf_i386_reloc_type_lookup): Support TLS relocs.
1830 (elf_i386_info_to_howto_rel): Likewise.
1831 (struct elf_i386_link_hash_entry): Add tls_type.
1832 (struct elf_i386_obj_tdata): New.
1833 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
1834 New macros.
1835 (struct elf_i386_link_hash_table): Add tls_ldm_got.
1836 (link_hash_newfunc): Clear tls_type.
1837 (elf_i386_check_relocs): Support TLS relocs.
1838 (elf_i386_gc_sweep_hook): Likewise.
1839 (allocate_dynrelocs): Likewise.
1840 (elf_i386_size_dynamic_sections): Likewise.
1841 (elf_i386_relocate_section): Likewise.
1842 (elf_i386_finish_dynamic_symbol): Likewise.
1843 (bfd_elf32_mkobject, elf_backend_object_p): Define.
1844 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
1845 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
1846 want_tprel, want_dtpmod, want_dtprel.
1847 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
1848 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
1849 R_IA64_LTOFF_TPREL22.
1850 (elf_code_to_howto_index): Add TLS relocs.
1851 (elfNN_ia64_check_relocs): Support TLS relocs.
1852 (allocate_global_data_got): Account for TLS .got data.
1853 (allocate_dynrel_entries): Account for TLS dynamic relocations.
1854 (elfNN_ia64_install_value): Supprt TLS relocs.
1855 (set_got_entry): Support TLS relocs.
1856 (elfNN_ia64_relocate_section): Likewise.
1857
c62e1cc3
NC
18582002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1859
1860 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
1861 BLX reloc round the relocation up rather than down.
1862 * coff-arm.c (coff_arm_relocate_section): Likewise.
1863
c5a43a5d
L
18642002-05-21 H.J. Lu (hjl@gnu.org)
1865
1866 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
1867 definition.
1868
afbe61cf
AM
18692002-05-22 Alan Modra <amodra@bigpond.net.au>
1870
1871 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
1872 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
1873
9c07fe7c
AM
18742002-05-22 Alan Modra <amodra@bigpond.net.au>
1875
1876 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
1877 unresolved relocs.
1878 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
1879
21611032
TS
18802002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1881
1882 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
1883 non-ELF targets.
1884
41241523
TS
18852002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1886
1887 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
1888 an error value.
1889 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
1890 return with false on error.
1891 (elf_link_input_bfd): Check reloc_emitter return value.
1892
658f2588
JT
18932002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1894
1895 * config.bfd (armeb-*-netbsdelf*): New target.
1896
c862ae31
AM
18972002-05-20 Alan Modra <amodra@bigpond.net.au>
1898
1899 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
1900 at the plt call stub.
1901
6dd14845
TS
19022002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1903
1904 * cpu-mips.c (mips_compatible): Don't try to check machine
1905 compatibility.
1906
a58d9c34
TR
19072002-05-18 Tom Rix <trix@redhat.com>
1908
1909 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
1910
ef60b7ff
AM
19112002-05-17 Alan Modra <amodra@bigpond.net.au>
1912
1913 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
1914 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
1915 we've already warned about an undefined symbol. Report more
1916 detail on reloc errors.
1917
a703a6ea
AM
19182002-05-17 Alan Modra <amodra@bigpond.net.au>
1919
1920 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
1921 * configure.in: Invoke AM_INSTALL_LIBBFD.
1922 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
1923 (install_libbfd): .. New target.
1924 (uninstall_libbfd): Likewise.
1925 (install-bfdlibLTLIBRARIES): Likewise.
1926 (uninstall-bfdlibLTLIBRARIES): Likewise.
1927 (bfdlibdir): New.
1928 (bfdincludedir): New.
1929 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
1930 * aclocal.m4: Regenerate.
1931 * configure: Regenerate.
1932 * Makefile.in: Regenerate.
1933
2c13d98b
NC
19342002-05-17 Stuart Balfour <sbalfour@cisco.com>
1935
1936 * hash.c (bfd_hash_lookup): Remove computation of len from inside
1937 hash loop.
1938
629936c5
NC
19392002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
1940
1941 * config.bfd: Add targets for sh64-linux (little endian and
1942 big endian).
1943
e4cf60a8
NC
19442002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
1945
1946 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
1947 is located in the same section as the import table. Instead
1948 check, and if necessary load the section containing the thunk.
1949
d1e66cd4
NC
19502002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
1951
1952 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
ea1e4b0d
AM
1953 bfd_bread.
1954 (xcoff64_core_file_matches_executable_p): Replace bfd_read
1955 with bfd_bread.
d1e66cd4 1956
2d653fc7
AM
19572002-05-15 Alan Modra <amodra@bigpond.net.au>
1958
1959 * aix5ppc-core.c: Warning fixes.
1960 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
1961 * aout-target.h (MY_bfd_link_just_syms): Define.
1962 * aout-tic30.c (MY_bfd_link_just_syms): Define.
1963 * bfd.c (bfd_link_just_syms): Define.
1964 * binary.c (binary_bfd_link_just_syms): Define.
1965 * bout.c (b_out_bfd_link_just_syms): Define.
1966 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
1967 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1968 * coffcode.h (coff_bfd_link_just_syms): Define.
1969 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
1970 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
1971 (_bfd_elf_link_just_syms): Declare.
1972 * elf.c (_bfd_elf_link_just_syms): New function.
1973 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
1974 sections haven't already been discarded by the linker.
1975 * elflink.h (elf_link_add_object_symbols): Likewise for stab
1976 sections and SEC_MERGE sections.
1977 (elf_bfd_discard_info): Similarly here.
1978 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
1979 * i386msdos.c (msdos_bfd_link_just_syms): Define.
1980 * i386os9k.c (os9k_bfd_link_just_syms): Define.
1981 * ieee.c (ieee_bfd_link_just_syms): Define.
1982 * ihex.c (ihex_bfd_link_just_syms): Define.
1983 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
1984 (_bfd_generic_link_just_syms): Declare.
1985 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
1986 * linker.c (_bfd_generic_link_just_syms): New function.
1987 * mmo.c (mmo_bfd_link_just_syms): Define.
1988 * nlm-target.h (nlm_bfd_link_just_syms): Define.
1989 * oasys.c (oasys_bfd_link_just_syms): Define.
1990 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
1991 * som.c (som_bfd_link_just_syms): Define.
1992 * srec.c (srec_bfd_link_just_syms): Define.
1993 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
1994 (BFD_JUMP_TABLE_LINK): And here.
1995 * tekhex.c (tekhex_bfd_link_just_syms): Define.
1996 * versados.c (versados_bfd_link_just_syms): Define.
1997 * vms.c (vms_bfd_link_just_syms): Define.
1998 * libbfd.h: Regenerate.
1999 * bfd-in2.h: Regenerate.
2000
cb7394f2
TS
20012002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2002
2003 * elf32-mips.c: Remove superfluous definitions copied from
2004 elfxx-mips.c.
2005 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
2006 SGIish vectors to check the special case.
2007 (mips_elf_hi16_reloc): Fix comment.
2008 (mips_elf_got16_reloc): Likewise.
2009 (_bfd_mips_elf32_gprel16_reloc): Likewise.
2010 (elf_reloc_map): Code cleanup.
2011 (mips_reloc_map): Add comment.
2012 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
2013 (mips_elf32_rtype_to_howto): Likewise.
2014 (mips_elf32_discard_info): Likewise.
2015 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
2016 lead to IRIX compatibility now.
2017
8dc1a139
TS
20182002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2019
2020 * elfxx-mips.c: Call it IRIX, not Irix in comments.
2021
2051e1b5
JT
20222002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
2023
2024 * config.bfd (shle-*-netbsdelf*): Add target which includes
2025 sh64 support.
2026
83954261
AM
20272002-05-13 David Edelsohn <edelsohn@gnu.org>
2028
2029 * configure.in: Revert 2002-04-07. Instead, auto-configure
2030 HAVE_ST_C_IMPL.
2031 * configure: Regenerate.
2032 * config.in: Regenerate.
2033 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
2034 or AIX_5_CORE.
2035
a9bf1154
NC
20362002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
2037
2038 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
2039 corefiles as well.2
2040 * configure: Regenerate.
2041
3129eb7a
AM
20422002-05-13 Alan Modra <amodra@bigpond.net.au>
2043
2044 * Makefile.am (install-data-local): Install headers to
2045 $(exec_prefix)/include.
2046 * Makefile.in: Regenerate.
2047
a9a32010
DJ
20482002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2049 Daniel Jacobowitz <drow@mvista.com>
2050
2051 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
2052 map BFD_RELOC_RVA.
2053
20542002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
690cc98b
NC
2055
2056 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
2057 hppa*-*-openbsd*): New targets.
2058 * configure.in (alpha*-*-openbsd*): Set COREFILE.
2059 * configure: Regenerate.
2060
f1f0d9ab
TR
20612002-05-10 Tom Rix <trix@redhat.com>
2062
ea1e4b0d 2063 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
f1f0d9ab
TR
2064 xcoff64_ppc_relocate_section.
2065 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
2066 * libxcoff.h: Common xcoff_reloc_type function declaration.
2067
c432ba1a
AM
20682002-05-10 Alan Modra <amodra@bigpond.net.au>
2069
16a10388 2070 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
90937f86 2071 added in 2002-05-09 commit.
16a10388 2072
c432ba1a
AM
2073 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
2074 don't look for stubs on all undefined syms.
2075
4a335f3d
AM
20762002-05-09 Alan Modra <amodra@bigpond.net.au>
2077
8fc39d5d
AM
2078 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
2079 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
2080 pcrel_offset.
2081
4a335f3d
AM
2082 * elf32-i386.c (elf_howto_table): Comments.
2083 (elf_i386_relocate_section): Handle more relocs for relocatable
2084 linking and against SEC_MERGE sections.
2085
41fcb14e
AM
20862002-05-08 Alan Modra <amodra@bigpond.net.au>
2087
2088 * elf32-ppc.c (ppc_elf_create_got): New function.
2089 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
ea1e4b0d 2090 _bfd_elf_create_dynamic_sections. Correct .plt flags.
41fcb14e
AM
2091 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
2092 _bfd_elf_create_got_section.
2093
b491616a
AM
20942002-05-07 Alan Modra <amodra@bigpond.net.au>
2095
2096 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
2097 * elfxx-target.h (elf_backend_rela_normal): Define.
2098 (elfNN_bed): Init rela_normal.
2099 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
2100 for section symbols here if rela_normal. Simplify abs section test.
2101 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
2102 return immediately. Remove code handling relocatable linking.
2103 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
2104 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
2105 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2106 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
2107 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2108 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2109 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
2110 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2111 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2112 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
2113 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
2114 * elf64-s390.c (elf_s390_relocate_section): Likewise.
2115 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2116 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
2117 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
2118 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
2119 * elf-m10200.c (elf_backend_rela_normal): Define.
2120 * elf-m10300.c (elf_backend_rela_normal): Define.
2121 * elf32-fr30.c (elf_backend_rela_normal): Define.
2122 * elf32-i370.c (elf_backend_rela_normal): Define.
2123 * elf32-i860.c (elf_backend_rela_normal): Define.
2124 * elf32-m68k.c (elf_backend_rela_normal): Define.
2125 * elf32-mcore.c (elf_backend_rela_normal): Define.
2126 * elf32-openrisc.c (elf_backend_rela_normal): Define.
2127 * elf32-ppc.c (elf_backend_rela_normal): Define.
2128 * elf32-s390.c (elf_backend_rela_normal): Define.
2129 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
2130 * elf64-ppc.c (elf_backend_rela_normal): Define.
2131 * elf64-s390.c (elf_backend_rela_normal): Define.
2132 * elf64-x86-64.c (elf_backend_rela_normal): Define.
2133 * elfxx-ia64.c (elf_backend_rela_normal): Define.
2134 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
2135 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
2136
df212a7e
NC
21372002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
2138
2139 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
2140 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
2141
3decf53c
AM
21422002-05-06 Alan Modra <amodra@bigpond.net.au>
2143
2144 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
2145 when not relocatable. Fix reloc_emitter call for K&R.
2146
f46c2da6
AM
21472002-05-04 Alan Modra <amodra@bigpond.net.au>
2148
2149 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
2150 reloading local sym addend mistakenly removed in 2002-05-01 change.
2151
2152 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
2153 (read_abbrevs): Change "offset" param to bfd_vma.
2154 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
2155 Change "abbrev_offset" to bfd_vma.
2156 (read_indirect_string): Use correct conversion chars in error
2157 message format string, cast bfd_vma's to unsigned long.
2158 (read_abbrevs): Likewise.
2159 (read_attribute_value): Likewise.
2160 (decode_line_info): Likewise.
2161 (scan_unit_for_functions): Likewise.
2162 (parse_comp_unit): Likewise.
2163
59862849
TR
21642002-05-04 Tom Rix <trix@redhat.com>
2165
2166 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
2167 (coff_swap_reloc_out): Same.
2168 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
2169 (xcoff_swap_reloc_out): Same.
2170 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
2171 case some 16 bit relocs. Add reloc value to output.
2172 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
ea1e4b0d 2173 R_RBR. Improve names.
59862849
TR
2174 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
2175 (bfd_xcoff_backend_data): Update with new reloc swap names.
2176 (bfd_pmac_xcoff_backend_data) : Same.
2177 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
2178 (xcoff64_swap_reloc_out): Same.
ea1e4b0d 2179 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
59862849 2180 R_POS. Add reloc value to output.
ea1e4b0d
AM
2181 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
2182 bit R_RBR. Improve names, masks.
59862849
TR
2183 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
2184 (bfd_xcoff_backend_data): Update with new reloc swap names.
2185 (bfd_xcoff_aix5_backend_data) : Same.
2186
b4655ea9
AM
21872002-05-04 Alan Modra <amodra@bigpond.net.au>
2188
2189 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
2190 bfd_count top_index, input_list, all_local_syms.
2191 (elf32_hppa_setup_section_lists): New function, split from
2192 elf32_hppa_size_stubs.
2193 (elf32_hppa_next_input_section): Likewise.
2194 (group_sections): Likewise.
2195 (get_local_syms): Likewise.
2196 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
2197 stubs on undefined syms too.
2198 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
8fc39d5d 2199 Only access htab elf fields when we have an elf hash table.
b4655ea9
AM
2200 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
2201 (elf32_hppa_next_input_section): Declare.
2202
301e3139
AM
22032002-05-04 Bob Byrnes <byrnes@curl.com>
2204
2205 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
2206 _bfd_new_bfd.
2207
7c5fcef7
L
22082002-05-03 H.J. Lu (hjl@gnu.org)
2209
2210 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
2211 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
2212 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
2213 to hide a global symbol.
2214 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
ea1e4b0d 2215 forced_local to true.
7c5fcef7 2216
84de6048
RH
22172002-05-02 Richard Henderson <rth@redhat.com>
2218
2219 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
2220 vs SHN_UNDEF to zero.
2221
805fc799
AM
22222002-05-02 Alan Modra <amodra@bigpond.net.au>
2223
c061c2d8
AM
2224 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
2225 16 bit reloc.
2226 <R_PPC64_SECTOFF_DS>: Likewise.
2227 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
2228 SECTOFF reloc.
2229 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
2230 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
2231 SECTOFF reloc.
2232
805fc799
AM
2233 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
2234 (ppc64_elf_ha_reloc): New function.
2235 (ppc64_elf_brtaken_reloc): New function.
2236 (ppc64_elf_sectoff_reloc): New function.
2237 (ppc64_elf_sectoff_ha_reloc): New function.
2238 (ppc64_elf_toc_reloc): New function.
2239 (ppc64_elf_toc_ha_reloc): New function.
2240 (ppc64_elf_toc64_reloc): New function.
2241 (ppc64_elf_unhandled_reloc): New function.
2242 (ppc64_elf_howto_raw): Use the above.
2243 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
2244 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
2245 <R_PPC64_SECTOFF_DS>: Likewise.
2246 (IS_ABSOLUTE_RELOC): Update.
2247 (struct ppc_link_hash_table): Add have_undefweak.
2248 (ppc64_elf_link_hash_table_create): Init.
2249 (func_desc_adjust): Set have_undefweak.
2250 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
2251 add the .sfpr blr when have_undefweak.
2252 (ppc64_elf_setup_section_lists): Check hash table flavour.
2253 (ppc64_elf_next_input_section): Move output_section->owner test to
2254 ppc64elf.em.
2255 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
2256 and relocatable test. Return TOCstart and don't set elf_gp.
2257 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
2258 offset calculation. Add assert on weak sym branch tweaks.
2259 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
2260 (ppc64_elf_toc): Declare.
2261 (ppc64_elf_next_input_section): Update.
ea1e4b0d 2262
818c39a3
AM
22632002-05-01 Alan Modra <amodra@bigpond.net.au>
2264
2265 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
2266 file_name.
2267
721956f4
AM
22682002-05-01 Alan Modra <amodra@bigpond.net.au>
2269
2270 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
2271 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
2272 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
2273 call branches. Correct undefined weak destination.
2274 (ppc64_elf_func_desc_adjust): Always create at least one blr in
2275 .sfpr, and correct case where either only savef* or restf* is
2276 needed.
2277
2278 Long branch stubs, multiple stub sections.
2279 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
2280 (ppc64_elf_next_input_section): Declare.
2281 * elf64-ppc.c: Move linker-only prototypes.
2282 (STUB_SUFFIX): Define.
2283 (enum ppc_stub_type): New.
2284 (struct ppc_stub_hash_entry): New.
2285 (struct ppc_branch_hash_entry): New.
2286 (struct ppc_link_hash_entry): Add stub_cache, oh.
2287 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
2288 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
2289 Rename plt_overflow to stub_error.
2290 (ppc_stub_hash_lookup): Define.
2291 (ppc_branch_hash_lookup): Define.
2292 (stub_hash_newfunc): New function.
2293 (branch_hash_newfunc): New function.
2294 (link_hash_newfunc): Init new fields.
2295 (ppc64_elf_link_hash_table_create): Likewise.
2296 (ppc64_elf_link_hash_table_free): New function.
2297 (ppc_stub_name): New function.
2298 (ppc_get_stub_entry): New function.
2299 (ppc_add_stub): New function.
2300 (create_linkage_sections): Use bfd_make_section_anyway. Create
2301 .branch_lt and .rela.branch_lt sections. Don't create .stub.
2302 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
2303 and set up for plt call stubs. Link func and func desc syms.
2304 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
2305 (func_desc_adjust): Avoid hash lookup when func desc sym available
2306 via shortcut, and set links when processing.
2307 (ppc64_elf_hide_symbol): Likewise.
2308 (allocate_dynrelocs): Don't allocate stub section here.
2309 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
2310 Remove sstub code.
2311 (ppc_type_of_stub): New function.
2312 (build_one_stub): Delete.
2313 (ppc_build_one_stub): New function.
2314 (ppc_size_one_stub): New function.
2315 (ppc64_elf_setup_section_lists): New function.
2316 (ppc64_elf_next_input_section): New function.
2317 (group_sections): New function.
2318 (get_local_syms): New function.
2319 (ppc64_elf_size_stubs): Rewrite.
2320 (ppc64_elf_build_stubs): Rewrite.
2321 (ppc64_elf_relocate_section): Look up stub entry for REL24
2322 relocs. Don't propagate REL14* to dynamic objects. Look for long
2323 branch stubs if REL14* or REL24 relocs won't reach.
2324 (bfd_elf64_bfd_link_hash_table_free): Define.
2325
09c2219b
MM
23262002-04-30 Mark Mitchell <mark@codesourcery.com>
2327
2328 * bfd/config.bfd: Add support for powerpc-*-windiss.
2329
07b678c0
TR
23302002-04-30 Tom Rix <trix@redhat.com>
2331
2332 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
2333 symbol names into the hash table.
2334
dbe341c6
TR
23352002-04-28 Tom Rix <trix@redhat.com>
2336
2337 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
ea1e4b0d 2338 calulating relocations.
dbe341c6 2339 (xcoff_complain_overflow) : Function table for relocation errors.
ea1e4b0d
AM
2340 (xcoff_ppc_relocate_section): Use relocation and complain function
2341 tables.
2342 (xcoff_complain_overflow_unsigned_func): New complain function.
dbe341c6
TR
2343 (xcoff_complain_overflow_signed_func): Same.
2344 (xcoff_complain_overflow_bitfield_func): Same.
2345 (xcoff_complain_overflow_dont_func): Same.
2346 (xcoff_reloc_type_crel): New recot function.
2347 (xcoff_reloc_type_br): Same.
2348 (xcoff_reloc_type_ba): Same.
2349 (xcoff_reloc_type_toc): Same.
2350 (xcoff_reloc_type_rel): Same.
2351 (xcoff_reloc_type_neg): Same.
2352 (xcoff_reloc_type_pos): Same.
2353 (xcoff_reloc_type_fail): Same.
2354 (xcoff_reloc_type_noop): Same.
2355 * libxcoff.h : Declare common parts for xcoff64.
2356 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
ea1e4b0d 2357 and complain function tables.
dbe341c6 2358
985142a4
AM
23592002-04-28 Alan Modra <amodra@bigpond.net.au>
2360
2361 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
2362 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
2363
eba91044
AM
23642002-04-26 Alan Modra <amodra@bigpond.net.au>
2365
e54fdaa5
AM
2366 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
2367 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
2368
a50c1845
AM
2369 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
2370 same as the output before calling elf_link_input_bfd.
2371
eba91044
AM
2372 * coffcode.h (coff_compute_section_file_positions): Set
2373 section_tail after shuffling section list.
2374
3c25c5f6
NC
23752002-04-24 Christian Groessler <chris@groessler.org>
2376
2377 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
2378 addresses are 23bit with a special layout, not plain 32bit
2379 values. Prevent relocation of immediate values.
2380
40d32fc6
CD
23812002-04-24 Chris G. Demetriou <cgd@broadcom.com>
2382
2383 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
2384 MIPS-16 ASE flags are set, print something to indicate that.
2385
067fa4a6
AM
23862002-04-23 Alan Modra <amodra@bigpond.net.au>
2387
2388 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
2389 under which a plt call stub is used.
2390 (final_link_relocate): Similarly.
2391 (allocate_plt_static): Clear h-plabel except when plt entry is
2392 exclusively used for a plabel.
2393 (allocate_dynrelocs): Use the above to simplify plt sizing.
2394 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
2395 (elf32_hppa_link_hash_table_create): Init.
2396 (BL22_RP): Define.
2397 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
2398 (elf32_hppa_check_relocs): Set has_22bit_branch.
2399
2400 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
2401 (final_link_relocate): Likewise.
2402
af40ce3c
JJ
24032002-04-22 Jakub Jelinek <jakub@redhat.com>
2404
2405 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
2406 search table if some FDE is DW_EH_PE_aligned encoded either.
2407 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
2408
09ae86c2
JJ
24092002-04-22 Richard Smith <richard@ex-parrot.com>
2410 Jakub Jelinek <jakub@redhat.com>
2411
2412 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
2413 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
2414 encoded personality.
2415 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
2416 for CIE/FDE removal.
2417
deeb2cd7
TR
24182002-04-20 Tom Rix <trix@redhat.com>
2419
2420 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
2421
99dc0092
AM
24222002-04-20 Alan Modra <amodra@bigpond.net.au>
2423
aa3d5824
AM
2424 * archures.c (bfd_lookup_arch): Move the list order comment..
2425 (struct bfd_arch_info): ..to where it belongs.
2426 * bfd-in2.h: Regenerate.
2427
99dc0092
AM
2428 * archures.c (bfd_lookup_arch): Add comment on list order.
2429 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
2430 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
2431 is always at head of list.
2432
7831a775
NC
24332002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
2434
2435 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
2436 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
2437 definition of these functions for ARM_WINCE builds as they are
2438 not used.
ea1e4b0d 2439 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
7831a775
NC
2440 for ARM_WINCE builds.
2441
24422002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
2443
ea1e4b0d 2444 * coff-arm.c (bfd_arm_process_before_allocation):
7831a775
NC
2445
24462002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
2447
2448 * cpu-sh.c (scan_mach): Delete.
2449 (arch_info_struct): Replace scan_mach with bfd_default_scan.
2450 (bfd_sh_arch): Likewise.
2451
3d8dbe36
NC
24522002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
2453
2454 * ihex.c (ihex_write_object_contents): Fix check for records
2455 crossing 64K boundaries.
2456
4ab82700
AM
24572002-04-16 Alan Modra <amodra@bigpond.net.au>
2458
2459 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
2460 type rather than just assuming entries are ELF.
2461 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
2462 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
2463 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
2464 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
2465 rather than elf_link_hash_entry.
2466
036fe0fe
RH
24672002-04-15 Richard Henderson <rth@redhat.com>
2468
2469 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
2470 n32 binaries.
2471
c4f3d130
NC
24722002-04-15 Michael Snyder <msnyder@redhat.com>
2473
2474 * opncls.c (bfd_close): Write contents if writeable.
2475 Minor formatting tidy-ups.
2476
4ab82700 24772002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
2478
2479 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
2480
0c04d169
MS
24812002-04-12 Michael Snyder <msnyder@redhat.com>
2482
2483 * bfd-in.h (bfd_get_section_lma): New access macro.
2484 Minor white-space fix-up.
2485
89d4966f
AM
24862002-04-12 Alan Modra <amodra@bigpond.net.au>
2487
2488 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
2489 header pad.
2490
8d0da3c2
DD
24912002-04-09 DJ Delorie <dj@redhat.com>
2492
2493 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
2494
05793179
NC
24952002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
2496
2497 * coffcode.h (coff_read_word): New.
2498 (coff_compute_checksum): New.
2499 (coff_apply_checksum): New.
2500 (coff_write_object_contents): Call coff_apply_checksum () to
2501 apply checksum to PE image.
2502
46fe4e66
AM
25032002-04-08 Randolph Chung <tausq@debian.org>
2504
2505 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
2506 (elf32_hppa_final_link): Split out sorting logic to..
2507 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
2508 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
2509
3b5b409c
AC
25102002-04-07 Andrew Cagney <ac131313@redhat.com>
2511
2512 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
2513 pattern.
2514 * configure: Re-generate.
2515
ac7b6ceb
AC
25162002-04-07 Andrew Cagney <ac131313@redhat.com>
2517
2518 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
2519 is greater or equal to 4.3.3.
2520 * configure: Regenerate.
2521 Fix PR gdb/344.
2522
44aa49bb
HPN
25232002-04-05 Hans-Peter Nilsson <hp@axis.com>
2524
2525 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
2526 R_CRIS_32_PCREL>: Fix typo in name.
2527 (cris_elf_check_relocs): Always create .rela.got here when
2528 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
2529 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
2530 assume it's created.
2531
e2d34d7d
DJ
25322002-04-04 Daniel Jacobowitz <drow@mvista.com>
2533
2534 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
2535 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
2536 define.
2537 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
2538 * bfd.c (bfd_link_hash_table_free): Define.
2539 * binary.c (binary_bfd_link_hash_table_free): Define.
2540 * bout.c (b_out_bfd_link_hash_table_free): Define.
2541 * coff-rs6000.c (rs6000coff_vec): Include
2542 _bfd_generic_link_hash_table_free.
2543 (pmac_xcoff_vec): Likewise.
2544 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2545 (aix5coff64_vec): Likewise.
2546 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
2547 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
2548 (bfd_elf32_bfd_link_hash_table_free): Define.
2549 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
2550 (bfd_elf32_bfd_link_hash_table_free): Define.
2551 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
2552 define.
2553 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
2554 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
2555 * ieee.c (ieee_bfd_link_hash_table_free): Define.
2556 * ihex.c (ihex_bfd_link_hash_table_free): Define.
2557 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
2558 (_bfd_generic_link_hash_table_free): Add prototype.
2559 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
2560 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
2561 * linker.c (_bfd_generic_link_hash_table_free): New function.
2562 * mmo.c (mmo_bfd_link_hash_table_free): Define.
2563 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
2564 * oasys.c (oasys_bfd_link_hash_table_free): Define.
2565 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
2566 * som.c (som_bfd_link_hash_table_free): Define.
2567 * srec.c (srec_bfd_link_hash_table_free): Define.
2568 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
2569 * versados.c (versados_bfd_link_hash_table_free): Define.
2570 * vms.c (vms_bfd_link_hash_table_free): New function.
2571 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
2572
2573 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
2574 instead of bfd_alloc.
2575 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
2576 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
2577 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
2578 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
2579 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
2580 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
2581 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
2582 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
2583 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
2584 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
2585 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
2586 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
2587 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
2588 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
2589 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
2590 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
2591 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
2592 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
2593 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
2594 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
2595 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
2596 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
2597 * m68klinux.c (linux_link_hash_table_create): Likewise.
2598 * sparclinux.c (linux_link_hash_table_create): Likewise.
2599 * sunos.c (sunos_link_hash_table_create): Likewise.
2600 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
2601
2602 * targets.c: Add _bfd_link_hash_table_free to xvec.
2603
2604 * bfd-in2.h: Regenerate.
2605 * libbfd.h: Regenerate.
2606 * libcoff.h: Regenerate.
2607
830629ab
AM
26082002-04-04 Alan Modra <amodra@bigpond.net.au>
2609
2610 * dep-in.sed: Cope with absolute paths.
2611 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
2612 Run "make dep-am".
2613 * Makefile.in: Regenerate.
2614 * coff-arm.c: Fix copyright date.
2615 * cpu-h8300.c: Likewise.
2616 * cpu-i370.c: Likewise.
2617 * cpu-s390.c: Likewise.
2618 * cpu-mips.c: Likewise.
2619 * po/SRC-POTFILES.in: Regenerate.
2620
c6e90b02
TS
26212002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2622
2623 * Makefile.am: Add elfxx-mips.c to the known backends.
2624 (elf32-mips.lo): remove dependency to coff/external.h.
2625 * Makefile.in: Regenerate.
2626 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
2627 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
2628 accordingly.
2629 * configure: Regenerate.
2630 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
2631 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
2632 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
2633 MIPS specific backend functions.
2634 * elf32-mips.c: Moved most code to elfxx-mips.c.
2635 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
2636 static.
2637 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
2638 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
2639 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
2640 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
2641 interface to allow selection of the right REL or RELA howto table.
2642 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
2643 static. Let it refuse n32 objects.
2644 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
2645 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
2646 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
2647 (elf32_mips_ignore_discarded_relocs): Rename from
2648 _bfd_elf32_mips_ignore_discarded_relocs.
2649 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
2650 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
2651 (elf_mips_howto_table_rela): Remove.
2652 * elf64-mips.c: Moved most code to elfxx-mips.c.
2653 (bfd_elf64_bfd_reloc_type_lookup): Make static.
2654 (mips_elf64_rtype_to_howto): New function.
2655 (mips_elf64_object_p): Likewise.
2656 (elf64_mips_irix_compat): Likewise.
2657 * elfxx-mips.c: New file containing common code merged together from
2658 elf32-mips.c and elf64-mips.c.
2659 * elfxx-mips.h: New file containing MIPS specific prototypes from
2660 elf-bfd.h.
2661 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
2662 elf_backend_mips_rtype_to_howto.
2663
d8dce692
AM
26642002-04-04 Alan Modra <amodra@bigpond.net.au>
2665
2666 * srec.c (MAXCHUNK, Chunk): Revise comments.
2667 (srec_write_record): Correct buffer size.
2668 (srec_write_header): Do without intermediate buffer.
2669 (srec_write_section): Validate Chunk.
2670 (srec_write_terminator): Pass NULL instead of dummy buffer.
2671 (srec_write_symbols): Pass file and symbol names directly to
2672 bfd_bwrite so sprintf won't overflow buffer.
2673
b88a866a
JJ
26742002-04-03 Jakub Jelinek <jakub@redhat.com>
2675
2676 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
2677 PC relative relocs against hidden symbols.
2678 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2679
d7866f04
AM
26802002-04-03 Alan Modra <amodra@bigpond.net.au>
2681
2682 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
2683 LMAs, loop over segments until p_vaddr and p_memsz specify an
2684 extent enclosing the section.
2685
9e81ee67
NC
26862002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
2687
2688 * ihex.c (ihex_write_object_contents): Do not allow records to
2689 cross a 64K boundary - wrap if necessary.
2690
d2b64500
JT
26912002-04-01 Nathan Williams <nathanw@wasabisystems.com>
2692
2693 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
2694 which caused the returned LWP ID to always be 0.
2695
e36f7d53
RH
26962002-04-01 Richard Henderson <rth@redhat.com>
2697
2698 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2699 (elf32_sparc_relocate_section): Use it to figure out when to
2700 initialize .got entries.
2701 * elf64-sparc.c: Similarly.
2702
e92d460e
AM
27032002-03-28 Alan Modra <amodra@bigpond.net.au>
2704
2705 * linker.c (link_action): Ignore duplicate warning syms.
2706 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
2707 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
2708 (elf_adjust_dynamic_symbol): Likewise.
2709 (elf_export_symbol): Likewise.
2710 (elf_link_find_version_dependencies): Likewise.
2711 (elf_link_assign_sym_version): Likewise.
2712 (elf_link_sec_merge_syms): Likewise.
2713 (elf_link_output_extsym): Likewise.
2714 (elf_gc_sweep_symbol): Likewise.
2715 (elf_gc_propagate_vtable_entries_used): Likewise.
2716 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2717 (elf_gc_allocate_got_offsets): Likewise.
2718 (elf_collect_hash_codes): Likewise.
2719 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
2720 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
2721 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2722 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
2723 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
2724 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
2725 (elf_cris_discard_excess_dso_dynamics): Likewise.
2726 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
2727 (mark_PIC_calls): Likewise.
2728 (allocate_plt_static): Likewise.
2729 (allocate_dynrelocs): Likewise.
2730 (readonly_dynrelocs): Likewise.
2731 * elf32-i386.c (allocate_dynrelocs): Likewise.
2732 (readonly_dynrelocs): Likewise.
2733 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
2734 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
2735 * elf32-mips.c (mips_elf_output_extsym): Likewise.
2736 (mips_elf_sort_hash_table_f): Likewise.
2737 (mips_elf_check_mips16_stubs): Likewise.
2738 * elf32-s390.c (allocate_dynrelocs): Likewise.
2739 (readonly_dynrelocs): Likewise.
2740 * elf32-sh.c (sh_elf_discard_copies): Likewise.
2741 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
2742 (xstormy16_relax_plt_realloc): Likewise.
2743 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
2744 (elf64_alpha_output_extsym): Likewise.
2745 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
2746 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
2747 (mips_elf64_check_mips16_stubs): Likewise.
2748 (mips_elf64_output_extsym): Likewise.
2749 * elf64-ppc.c (func_desc_adjust): Likewise.
2750 (allocate_dynrelocs): Likewise.
2751 (readonly_dynrelocs): Likewise.
2752 * elf64-s390.c (allocate_dynrelocs): Likewise.
2753 (readonly_dynrelocs): Likewise.
2754 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
2755 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
2756 (readonly_dynrelocs): Likewise.
2757 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
2758 * aoutx.h (aout_link_write_other_symbol): Likewise.
2759 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
2760 (_bfd_coff_write_global_sym): Likewise.
2761 * i386linux.c (linux_tally_symbols): Likewise.
2762 * m68klinux.c (linux_tally_symbols): Likewise.
2763 * sparclinux.c (linux_tally_symbols): Likewise.
2764 * pdp11.c (aout_link_write_other_symbol): Likewise.
2765 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
2766 * xcofflink.c (xcoff_build_ldsyms): Likewise.
2767 (xcoff_write_global_symbol): Likewise.
2768
2769 * cofflink.c (_bfd_coff_final_link): Formatting.
2770 * cpu-mips.c (mips_compatible): Make static, prototype.
2771 * elf32-i386.c (elf_i386_check_relocs): Formatting.
2772 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
2773 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
2774 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
2775 (mips_elf64_final_link): Likewise.
2776 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
2777 prototype.
2778
2106126f
NC
27792002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
2780
2781 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
2782 (SWAP_OUT_RELOC_OFFSET): Define.
2783
b99d1833
AM
27842002-03-27 Gregory Steuck <greg@nest.cx>
2785
2786 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
2787 terminating NULL if empty symbol table.
2788 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
2789
ad43ed4c
L
27902002-03-26 H.J. Lu (hjl@gnu.org)
2791
2792 * elflink.h (elf_link_input_bfd): Revert the last change since
2793 the gcc exception handling isn't fixed yet.
2794
3851fca4
L
27952002-03-26 H.J. Lu (hjl@gnu.org)
2796
2797 * elflink.h (elf_link_input_bfd): Complain about relocations
2798 against local symbols in discarded sections.
2799
b91afed7
AM
28002002-03-26 Alan Modra <amodra@bigpond.net.au>
2801
2802 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
2803
dba143ef
AM
28042002-03-23 Alan Modra <amodra@bigpond.net.au>
2805
2806 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
2807 section file offset for !SEC_LOAD sections.
2808
ee29b9fb
RE
28092002-03-21 Richard Earnshaw <rearnsha@arm.com>
2810
830629ab
AM
2811 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
2812 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 2813
54327882
AM
28142002-03-21 Alan Modra <amodra@bigpond.net.au>
2815
2816 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
2817 Whitespace changes.
2818 * archive.c: Update copyright date.
2819 * bfd-in2.h: Regenerate.
2820 * libbfd.h: Regenerate.
2821 * Makefile.am: Run "make dep-am"
2822 * Makefile.in: Regenerate.
2823 * po/SRC-POTFILES.in: Regenerate.
2824
1ee24f27
DJ
28252002-03-20 Daniel Jacobowitz <drow@mvista.com>
2826
2827 * dwarf2.c (struct funcinfo): Move up.
2828 (lookup_address_in_function_table): New argument function_ptr.
2829 Set it.
2830 (lookup_address_in_line_table): New argument function. If function
2831 is non-NULL, use it to handle ``addr'' before the first line note of
2832 the function.
2833 (comp_unit_find_nearest_line): Update and swap calls to
2834 lookup_address_in_function_table and lookup_address_in_line_table.
2835 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
2836 N_SLINE encountered if we see an N_FUN before any N_SLINE.
2837
51b9608c
TR
28382002-03-20 Tom Rix <trix@redhat.com>
2839
ea1e4b0d 2840 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
51b9608c 2841 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
ea1e4b0d 2842 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
51b9608c 2843
789c90aa
TR
28442002-03-19 Tom Rix <trix@redhat.com>
2845
ea1e4b0d 2846 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
789c90aa
TR
2847 dynamic objects in archives.
2848
1da54d81
HPN
28492002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
2850
2851 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
2852 STT_NOTYPE symbols to STT_OBJECT.
2853
7831a775 28542002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
2855
2856 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
2857
eb1e0e80
NC
28582002-03-18 Tom Rix <trix@redhat.com>
2859
2860 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
2861 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
2862 * coff-rs6000 (do_pad) : New function for archive padding.
2863 (do_copy) : New function for object file copying in archives.
2864 (do_shared_object_padding) : New function for padding shared
2865 objects to their text section alignment in archives.
2866 (bfd_xcoff_ar_achive_set_magic) : Stub.
2867 (xcoff_write_armap_big) : Use do_copy and do_pad.
2868 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
2869 do_copy and do_pad.
2870 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
ea1e4b0d 2871 bfd_xcoff_magic_number.
eb1e0e80
NC
2872 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
2873 fop.
2874 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
2875 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
2876 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
2877 * rs6000-core.c : Update copyright date.
ea1e4b0d 2878 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
eb1e0e80
NC
2879 csectpp.
2880 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
2881 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
2882 (coff_set_flags) : Use bfd_xcoff_magic_number.
2883 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
2884 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
2885 * Makefile.am : Same.
2886 * config.bfd : Same.
2887 * targets.c : Same.
2888 * configure : Regnerate.
2889 * Makefile.in : Same.
2890 * bfd-in2.h : Same.
2891
a1c259a1
NC
28922002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2893
2894 * po/fr.po: Updated version.
2895
4dae1ae7
AM
28962002-03-18 Alan Modra <amodra@bigpond.net.au>
2897
2898 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
2899 * libbfd.h: Regenerate.
2900 * archive.c (coff_write_armap): Pass on failures from
2901 bfd_write_bigendian_4byte_int.
2902
36b4f6e7
L
29032002-03-14 H.J. Lu <hjl@gnu.org>
2904
2905 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
2906 error to bfd_error_nonrepresentable_section for reinit_array
2907 section in DSO.
2908
a1aefc76
NC
29092002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
2910
a181be0a
NC
2911 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
2912 OR it in rather than replacing previously selected flags.
2913
a1aefc76
NC
2914 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
2915 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
2916
c119f9b8
AM
29172002-03-14 Alan Modra <amodra@bigpond.net.au>
2918
2919 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
2920 (N): Use the above.
2921 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
2922 ensure reloc size matches before calling elf_link_input_bfd.
2923 Add an assert to check reloc size when counting output relocs.
2924
c295a511
NC
29252002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
2926
2927 * mmo.c (mmo_get_loc): Return NULL rather than false.
2928
9ce88e60
NC
29292002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2930
2931 * po/fr.po: Updated version.
2932
4ddafab0
AM
29332002-03-13 Alan Modra <amodra@bigpond.net.au>
2934
b74fa2cd
AM
2935 * archures.c (bfd_default_compatible): Test bits_per_word.
2936 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
2937 bfd_default_compatible.
2938 * cpu-i370.c (i370_compatible): Likewise.
2939 * cpu-sparc.c (sparc_compatible): Likewise.
2940 * cpu-h8300.c (compatible): Test in->arch == out->arch.
2941
40b829d4
AM
2942 * elflink.h: Formatting fixes.
2943 (elf_link_output_extsym): Merge undefined and undef weak cases.
2944
4ddafab0
AM
2945 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
2946 when word size of input matches output word size.
2947
dd53c801
AJ
29482002-03-12 Andreas Jaeger <aj@suse.de>
2949
2950 * cpu-i386.c (i386_compatible): New. Use it instead of
2951 bfd_default_compatible.
2952
aa066ac8
L
29532002-03-07 H.J. Lu (hjl@gnu.org)
2954
2955 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
2956 as the type for bfd_reloc_val.
2957
1bf42538
JL
29582002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2959
2960 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
2961 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
2962 (elf_hppa_final_link_relocate): Correct relocations for indirect
2963 references to local data through the DLT. Fix .opd creation for
2964 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
2965 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
2966 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
2967 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2968 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
2969 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
2970 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2971
86eaf01e
JJ
29722002-03-05 Jakub Jelinek <jakub@redhat.com>
2973
2974 * merge.c (_bfd_merge_sections): Don't segfault if there
2975 is nothing to merge due to GC.
2976
c44233aa
AM
29772002-03-05 Alan Modra <amodra@bigpond.net.au>
2978
039cc25f
AM
2979 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
2980 symbols that have been forced local.
2981
c44233aa
AM
2982 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
2983 to output forced local syms for non-shared link.
2984 (elf_link_output_extsym): Tweak condition for calling backend
2985 adjust_dynamic_symbol so that previous behaviour is kept.
2986 Whitespace changes throughout file.
2987
25e27870
L
29882002-03-04 H.J. Lu <hjl@gnu.org>
2989
2990 * elf.c (bfd_section_from_shdr): Handle special sections,
2991 .init_array, .fini_array and .preinit_array.
2992 (elf_fake_sections): Likewise.
2993
2994 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
2995 DT entry only if the section is in output for .init_array,
2996 .fini_array and .preinit_array. Complain about .preinit_array
2997 section in DSO.
2998 (elf_bfd_final_link): Warn zero size for .init_array,
2999 .fini_array and .preinit_array sections.
3000
3001 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
3002 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
3003 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
3004 .preinit_array.
3005
bb2a49f2
AM
30062002-03-04 Alan Modra <amodra@bigpond.net.au>
3007
3008 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
3009 * configure: Regenerate.
3010
38487e5e
TR
30112002-03-02 Tom Rix <trix@redhat.com>
3012
c44233aa
AM
3013 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
3014 symbolic equiv.
38487e5e
TR
3015 * coff-rs6000.c (xcoff_howto_table): Same.
3016
30831527
RH
30172002-03-01 David Mosberger <davidm@hpl.hp.com>
3018
3019 * elflink.h (size_dynamic_sections): If section named
3020 ".preinit_array" exists, create DT_PREINIT_ARRAY and
3021 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
3022 ".init_array" and ".fini_array".
3023 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
3024 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
3025 DT_FINI_ARRAY.
3026
c8e5ddc8
AM
30272002-02-26 Andrew Macleod <amacleod@cygnus.com>
3028
3029 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
3030 dynsyms.
3031
96e0dda4
AM
30322002-02-25 Alan Modra <amodra@bigpond.net.au>
3033
1c5b6bf8
AM
3034 * elf64-hppa.h: Update copyright date.
3035
96e0dda4
AM
3036 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
3037 (ppc64_elf_relocate_section): Don't generate power4 style branch
3038 hints for *_BRTAKEN and *_BRNTAKEN relocs.
3039
0fb19cbc
JJ
30402002-02-22 Jakub Jelinek <jakub@redhat.com>
3041
3042 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
3043 last patch.
3044 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
3045
c434dee6
AJ
30462002-02-21 Andreas Jaeger <aj@suse.de>
3047
3048 * elf64-x86-64.c: Major rework that introduces all recent changes
3049 to the x86-64 backend. Get a closer match to elf32-i386.
3050 (struct elf64_x86_64_dyn_relocs): Rename from
3051 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
3052 all users.
3053 (struct elf64_x86_64_link_hash_table): Add short cuts to some
3054 sections.
3055 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
3056 remove casts, initialize new hash members.
3057 (create_got_section): New.
3058 (elf64_x86_64_create_dynamic_sections): New.
3059 (elf64_x86_64_copy_indirect_symbol): New.
3060 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
3061 relocs, .got or .relgot here but do it in allocate_dynrelocs.
3062 Reference count possible .plt and .got entries. Don't test input
3063 section SEC_READONLY here to try to avoid copy relocs, and keep
3064 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
3065 DF_TEXTREL here. Delay setting of variables until needed. Cache
3066 pointer to "sreloc" section in elf_section_data. Tweak condition
3067 under which .got created. Report files with bad relocation
3068 section names.
3069 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
3070 Reference count possible .plt entries. Don't deallocate .got and
3071 .relgot space here.
3072 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
3073 do copy reloc processing for weakdefs. Remove redundant casts and
3074 aborts. Delay setting of vars until needed. Move creation of
3075 dynamic symbols and allocation of .plt and .rela.plt to
3076 allocate_dynrelocs. Replace BFD_ASSERT with abort.
3077 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
3078 (allocate_dynrelocs): New.
3079 (readonly_dynrelocs): New.
3080 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
3081 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
3082 Zero out the dynamic allocated content space.
3083 (elf64_x86_64_discard_copies): Removed.
3084 (elf64_x86_64_relocate_section): Make use of dynamic section
3085 short-cuts. Localise vars, and delay setting. Better error
3086 reporting, replace BFD_ASSERT with abort. Check
3087 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
3088 regular object file and tread the weak definition as the normal
3089 one. Don't discard relocs for undefweak or undefined symbols and
3090 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
3091 relocs.
3092 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
3093 symbols that have been forced local. Use same test to decide if
3094 we can use a relative reloc for got as relocate_section. Expand
3095 SHN_UNDEF comment. Move expressions out of function calls.
3096 Replace BFD_ASSERT with abort.
3097 (bfd_elf64_bfd_final_link): Removed.
3098 (elf_backend_copy_indirect_symbol): Define.
3099
ff3a6ee3
TR
31002002-02-20 Tom Rix <trix@redhat.com>
3101
3102 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
3103 (_bfd_xcoff_reloc_type_lookup): Use it.
3104 * coff64-rs6000.c (xcoff64_howto_table): Same.
3105 (xcoff64_reloc_type_lookup): Same.
c434dee6 3106
a68d41fb
AM
31072002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3108
3109 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
3110 little endian.
3111
befc3abb
MS
31122002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3113
3114 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
3115 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
3116 * bfd-in2.h: Regenerate.
3117 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
3118 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
3119 with "s390:64-bit".
3120 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
3121 (elf_s390_reloc_type_lookup): Likewise.
3122 (elf_s390_check_relocs): Likewise.
3123 (elf_s390_gc_sweep_hook): Likewise.
3124 (elf_s390_relocate_section): Likewise.
3125 (elf_s390_object_p): Use renamed architecture define.
3126 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
3127
6eeeec9b
FCE
31282002-02-19 Frank Ch. Eigler <fche@redhat.com>
3129
3130 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
3131
0bb2d96a
JJ
31322002-02-19 Jakub Jelinek <jakub@redhat.com>
3133
3134 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
3135 absptr -> pcrel optimization for shared libs.
3136 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
3137 library cannot be converted to pcrel.
3138 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
3139 relative.
3140 * elf32-i386.c (elf_i386_relocate_section): If
3141 _bfd_elf_section_offset returned -2, skip, but make sure the
3142 relocation is installed.
3143 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
3144 * elf32-cris.c (cris_elf_relocate_section): Likewise.
3145 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3146 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3147 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3148 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3149 * elf32-s390.c (elf_s390_relocate_section): Likewise.
3150 * elf32-sh.c (sh_elf_relocate_section): Likewise.
3151 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3152 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
3153 * elf64-s390.c (elf_s390_relocate_section): Likewise.
3154 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
3155 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3156 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
3157 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
3158 _bfd_elf_section_offset returning -2 the same way as -1.
3159 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
3160 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
3161 and BFD_ASSERT.
3162 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
3163
69f284c7
TR
31642002-02-18 Tom Rix <trix@redhat.com>
3165
3166 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
3167 (bfd_xcoff_size_dynamic_sections): Same.
3168 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
3169 (bfd_xcoff_size_dynamic_sections): Same.
3170 * coff-rs6000.c (xcoff_generate_rtinit): Same.
3171 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
3172 * libxcoff.h (struct xcoff_backend_data_rec): Same.
3173 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
3174 * bfd-in2.h: Regenerate.
3175
82bd7b59
AM
31762002-02-18 Alan Modra <amodra@bigpond.net.au>
3177
3178 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
3179 (struct ppc_link_hash_table): Add sfpr.
3180 (ppc64_elf_link_hash_table_create): Init it.
3181 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
3182 .glink out to..
3183 (create_linkage_sections): ..here. Make .sfpr too.
3184 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
3185 dynobj early.
3186 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
3187 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
3188 ._restf* functions, and create as needed.
3189 (func_desc_adjust): Only force_local for shared libs.
3190
ef1355e8
NC
31912002-02-18 David O'Brien <obrien@FreeBSD.org>
3192
3193 * configure.in: Bump version number post 2.12 branching.
3194 * configure: Regenerate.
3195
dfa36a69
HPN
31962002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
3197
3198 * mmo.c: Correct and improve comments.
3199 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
3200 zero-pad. Use input to fill up non-empty bfd buffer.
3201 (mmo_flush_chunk): New function.
3202 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
3203 changed. Don't emit location specifier if VMA is same as
3204 *LAST_VMAP after omitting leading zero contents. Call
3205 mmo_flush_chunk before emitting location specifier.
3206 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
3207 with mmo_write_loc_chunk calls.
3208 (mmo_internal_write_section): Call mmo_flush_chunk after
3209 mmo_write_chunk.
3210 (mmo_write_symbols_and_terminator): Move :Main to first position
3211 in symbol array. Add faked one if it does not exist if there are
3212 other symbols. Don't add it if there are no symbols at all. Move
3213 out test for value of :Main from symbol loop. Rename table
3214 fakemain to maintable and variable mainsym to fakemain.
3215
ccf00ab6
RH
32162002-02-15 Richard Henderson <rth@redhat.com>
3217
3218 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
3219 section with no got matches any got. Simplify error generaion.
3220
88eaccc2
AM
32212002-02-15 Alan Modra <amodra@bigpond.net.au>
3222
fd96f80f
AM
3223 Support arbitrary length fill patterns.
3224 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
3225 (_bfd_default_link_order): Remove bfd_fill_link_order code.
3226 Call default_data_link_order.
3227 (default_fill_link_order): Delete.
3228 (default_data_link_order): New function.
3229 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
3230 of bfd_fill_link_order with bfd_data_link_order.
3231 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
3232 * elf64-mips.c (mips_elf64_final_link): Likewise.
3233
88eaccc2
AM
3234 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
3235 Correct value returned in "end" for "0x<non-hex>".
3236
e2fd756b
NC
32372002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
3238
3239 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
3240 (scan): Test against 'mach' field in info structure.
3241
edd29cf9
AM
32422002-02-14 Alan Modra <amodra@bigpond.net.au>
3243
3244 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
3245
1e30956e 32462002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
3247
3248 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
3249 EF_M68000.
3250
bf36db18
NC
32512002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
3252
3253 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
3254 non-zero physical addresses when adjusting the LMAs of new
3255 sections.
bf36db18 3256
189c6563
AM
32572002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3258
3259 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
3260 from _bfd_elf_hppa_gen_reloc_type.
3261 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
3262 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
3263 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
3264 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
3265
e948afaf
AO
32662002-02-12 Alexandre Oliva <aoliva@redhat.com>
3267
3268 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
3269 loading its contents if there's nothing to do in it.
3270
19397422
AM
32712002-02-12 Alan Modra <amodra@bigpond.net.au>
3272
0ad3a73b
AM
3273 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
3274 64k boundary.
3275
19397422
AM
3276 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
3277 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
3278 (ppc64_elf_finish_dynamic_sections): Set values for them.
3279
51316059
MS
32802002-02-11 Michael Snyder <msnyder@redhat.com>
3281
3282 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
3283 * elf.c (elfcore_grok_pstatus): Add prototype.
3284 (elfcore_grok_lwpstatus): Add prototype.
3285 (elfcore_write_lwpstatus): New function.
3286 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
3287
518313c3
AO
32882002-02-11 Alexandre Oliva <aoliva@redhat.com>
3289
3290 * elf32-sh.c: Added missing prototypes.
3291 * elf32-sh64.c: Likewise.
3292 (sh_elf_align_loads): Mark unused args as such.
3293 * elf64-sh64.c: Added missing prototypes.
3294 (struct elf_sh64_link_hash_entry): Fix typo.
3295 (sh_elf64_relocate_section): Fix info argument passed to
3296 _bfd_elf_section_offset.
3297
2c73f9d8
AM
32982002-02-11 Alan Modra <amodra@bigpond.net.au>
3299
3300 * Makefile.am: "make dep-am".
3301 * Makefile.in: Regenerate.
3302 * aclocal.m4: Regenerate.
3303 * config.in: Regenerate.
3304 * configure: Regenerate.
3305
d426c6b0
DJ
33062002-02-10 Daniel Jacobowitz <drow@mvista.com>
3307
3308 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
3309 variable warnings.
3310 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
3311 comparison warning.
3312 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
3313 cast warnings for the common case.
3314
e58ee0cd
HPN
33152002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
3316
3317 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
3318 vectors.
3319 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
3320 vectors.
3321
7793f4d0
RH
33222002-02-09 Richard Henderson <rth@redhat.com>
3323
3324 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
3325 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
3326 (elf64_alpha_relocate_section): Likewise.
3327 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
3328 * bfd-in2.h, libbfd.h: Rebuild.
3329
7e799044
HPN
33302002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
3331
3332 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
3333 that base-plus-offset reloc accounting is consistent.
3334 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
3335 up to date for undefined symbols.
3336
027d73eb
EC
33372002-02-08 Eric Christopher <echristo@redhat.com>
3338
3339 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3340
3341 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
3342 sections for the O32 ABI.
3343
517662d4
CD
33442002-02-08 Chris Demetriou <cgd@broadcom.com>
3345
3346 * elf32-arm.h: Fix formatting of _("...").
3347 * elf32-d10v.c: Likewise.
3348 * elf32-m68k.c: Likewise.
3349 * elf32-mips.c: Likewise.
3350
5e37cc46
NC
33512002-02-08 Ivan Guzvinec <ivang@opencores.org>
3352
3353 * coff-or32.c: Fix compile time warning messages.
3354
fbca6ad9
AO
33552002-02-08 Alexandre Oliva <aoliva@redhat.com>
3356
3357 Contribute sh64-elf.
3358 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
3359 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
3360 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
3361 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
3362 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
3363 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
3364 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
3365 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
3366 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
3367 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
3368 New relocs.
3369 * libbfd.h, bfd-in2.h: Rebuilt.
3370 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
3371 (sh_reloc_map): Map them.
3372 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3373 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
3374 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
3375 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3376 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
3377 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
3378 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
3379 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
3380 datalabel_got_offset.
3381 (sh_elf_link_hash_newfunc): Initialize it.
3382 (sh_elf_relocate_section): Augment the scope of
3383 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
3384 GOT and GOTOFF handling to new SHmedia relocation types. Support
3385 GOT_BIAS.
3386 (sh_elf_check_relocs): Likewise.
3387 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
3388 PLT entries using movi_shori_putval. Support GOT_BIAS.
3389 (sh_elf_finish_dynamic_sections): Likewise.
3390 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
3391 relocation, it's now done by the caller.
3392 (GOT_BIAS): New.
3393 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
3394 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
3395 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
3396 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
3397 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
3398 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
3399 sh64_elf64_hash_table): New.
3400 (sh_elf64_howto_table): Introduce new relocs.
3401 (sh_elf64_info_to_howto): Accept new PIC relocs.
3402 (sh_elf64_relocate_section): Augment the scope of
3403 seen_stt_datalabel. Support new PIC relocs.
3404 (sh_elf64_check_relocs): Support new PIC relocs.
3405 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
3406 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
3407 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
3408 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
3409 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
3410 movi_shori_putval, movi_3shori_putval,
3411 sh64_elf64_create_dynamic_sections,
3412 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
3413 sh64_elf64_size_dynamic_sections,
3414 sh64_elf64_finish_dynamic_symbol,
3415 sh64_elf64_finish_dynamic_sections): New.
3416 (elf_backend_create_dynamic-sections,
3417 bfd_elf64_bfd_link_hash_table_create,
3418 elf_backend_adjust_dynamic_symbol,
3419 elf_backend_size_dynamic_sections,
3420 elf_backend_finish_dynamic_symbol,
3421 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3422 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3423 elf_backend_got_header_size, elf_backend_plt_header_size):
3424 Define.
3425 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
3426 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
3427 match official numbers and names; moved unmaching ones to the
3428 range 0xf2-0xff.
3429 * elf32-sh64.c, elf64-sh64.c: Likewise.
3430 2001-03-12 DJ Delorie <dj@redhat.com>
3431 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
3432 sections.
3433 2001-03-12 DJ Delorie <dj@redhat.com>
3434 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
3435 be aligned.
3436 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
3437 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
3438 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
3439 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
3440 .cranges section with SEC_SORT_ENTRIES set.
3441 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
3442 incoming sorted .cranges section.
3443 (sh64_bfd_elf_copy_private_section_data): New.
3444 (sh64_elf_final_write_processing): Only sort .cranges and modify
3445 start address if called by linker.
3446 2001-01-08 Ben Elliston <bje@redhat.com>
3447 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
3448 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
3449 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
3450 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3451 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
3452 line. Add comments before all entries.
3453 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
3454 comment.
3455 (sh_elf64_reloc): Correct head comment.
3456 (sh_elf64_relocate_section): Correct spacing.
3457 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
3458 instead call reloc_dangerous callback.
3459 <case R_SH_SHMEDIA_CODE>: New case.
3460 (sh_elf64_gc_mark_hook): Correct spacing.
3461 (sh_elf64_check_relocs): Ditto.
3462 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
3463 New case.
3464 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
3465 functions.
3466 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
3467 clarify describing comment. Add comments before all entries.
3468 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
3469 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
3470 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3471 Sort .cranges section in final link. Prepare to set bit 0 on
3472 entry address.
3473 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
3474 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
3475 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
3476 .cranges section.
3477 (sh64_backend_section_from_shdr): New, to recognize
3478 SHT_SH5_CR_SORTED on incoming .cranges section.
3479 (elf_backend_section_from_shdr): Define.
3480 (sh64_elf_final_write_processing): Sort outgoing .cranges
3481 section. (New, temporarily disabled:) Set bit 0 on entry address
3482 according to ISA type.
3483 (sh64_find_section_for_address): New.
3484 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
3485 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
3486 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
3487 bfd_malloc, not xmalloc.
3488 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
3489 global.
3490 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
3491 temporarily disabled) setting bit 0 on entry address.
3492 (elf_backend_final_write_processing): Define.
3493 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3494 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
3495 be a proper relocation for PTA and PTB rather than a marker.
3496 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
3497 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
3498 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
3499 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
3500 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
3501 Zero src_mask.
3502 * elf64-sh64.c: Ditto.
3503 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
3504 * elf32-sh64.c: Include opcodes/sh64-opc.h
3505 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
3506 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
3507 parameters. No unused parameters. Caller changed.
3508 <case R_SH_PT_16>: New case.
3509 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
3510 * Makefile.in: Regenerate.
3511 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3512 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
3513 all code sections.
3514 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
3515 (sh64_elf_merge_private_data): Ditto.
3516 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
3517 to access stored section flags.
3518 (sh64_elf_final_write_processing): Return immediately unless
3519 called by linker. Use sh64_elf_section_data (cranges) to get size
3520 of linker-generated cranges entries.
3521 (sh64_elf_copy_private_data): Add missing "return true".
3522 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
3523 (sh_elf64_merge_private_data): Ditto.
3524 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3525 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
3526 elf64-sh64.c:sh64_elf_fake_sections.
3527 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
3528 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3529 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
3530 (sh64_elf_final_write_processing): New.
3531 (elf_backend_final_write_processing): Define.
3532 (sh64_elf_fake_sections): Get header flags from tdata field.
3533 (sh64_elf_copy_private_data): Do not call
3534 sh64_elf_copy_private_data_internal, just copy e_flags field.
3535 (sh64_elf_merge_private_data): Do not call
3536 sh64_elf_copy_private_data_internal.
3537 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3538 Remove EF_SH64_ABI64, let ELF size make difference.
3539 Remove SH64-specific BFD section flag.
3540 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
3541 containing SHmedia through elf_section_data (asect)->tdata
3542 non-zero, not using a BFD section flag.
3543 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
3544 (sh64_elf_merge_private_data): Similar.
3545 (elf_backend_section_flags): Don't define.
3546 (sh64_elf_backend_section_flags): Delete.
3547 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
3548 not EF_SH64_ABI64.
3549 (sh_elf64_merge_private_data): Similar.
3550 * section.c (Section flags definitions): Don't define
3551 SEC_SH_ISA_SHMEDIA.
3552 (bfd-in2.h): Regenerate.
3553 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
3554 Make DataLabel references work with partial linking.
3555 * elf32-sh64.c: Fix formatting.
3556 (sh64_elf_link_output_symbol_hook): New.
3557 (elf_backend_link_output_symbol_hook): Define to
3558 sh64_elf_link_output_symbol_hook.
3559 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
3560 undefined if partial linking. Adjust sanity check.
3561 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
3562 (elf_backend_link_output_symbol_hook): Define to
3563 sh64_elf64_link_output_symbol_hook.
3564 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
3565 undefined if partial linking. Adjust sanity check.
3566 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3567 Implement semantics for inter-file DataLabel references.
3568 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
3569 (sh64_elf64_add_symbol_hook): New.
3570 (sh_elf64_relocate_section): If passing an indirect symbol with
3571 st_type STT_DATALABEL on the way to a symbol with st_other
3572 STO_SH5_ISA32, do not bitor 1 to the relocation.
3573 (elf_backend_add_symbol_hook): Define to
3574 sh64_elf64_add_symbol_hook.
3575 * elf64-sh32.c: Tweak comments.
3576 (DATALABEL_SUFFIX): Define.
3577 (sh64_elf_add_symbol_hook): New.
3578 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
3579 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
3580 symbol with st_type STT_DATALABEL on the way to a symbol with
3581 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
3582 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3583 Pass through STT_DATALABEL.
3584 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
3585 (elf_backend_get_symbol_type): Define.
3586 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
3587 (elf_backend_get_symbol_type): Define.
3588 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3589 * elf32-sh64.c: Tweak comments.
3590 (sh64_elf_copy_private_data_internal): Add prototype.
3591 (bfd_elf32_bfd_set_private_flags): Define.
3592 (sh64_elf_copy_private_data_internal): Compare machine name, not
3593 textual BFD target name, to check whether to copy section flag
3594 SHF_SH5_ISA32.
3595 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
3596 Tweak section-contents-type-mismatch message.
3597 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
3598 Validize reloc-types.
3599 * elf64-sh64.c: New file.
3600 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
3601 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
3602 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
3603 Regenerate dependencies.
3604 * Makefile.in: Regenerate.
3605 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
3606 bfd_elf64_sh64l_vec.
3607 * configure.in: Handle bfd_elf64_sh64_vec and
3608 bfd_elf64_sh64l_vec.
3609 * configure: Regenerate.
3610 * po/POTFILES.in: Regenerate.
3611 * po/bfd.pot: Regenerate.
3612 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3613 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
3614 anything else but EF_SH64 and EF_SH64_ABI64.
3615 (sh64_elf_merge_private_data): Emit error for anything else but
3616 EF_SH64 and EF_SH64_ABI64.
3617 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
3618 from targ_selvecs.
3619 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
3620 bfd_elf32_sh64l_vec as a temporary measure.
3621 * configure: Regenerate.
3622 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3623 * cpu-sh.c (arch_info_struct): Include sh5 item
3624 unconditionalized.
3625 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
3626 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
3627 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
3628 * elf32-sh64.c: Tweak comments.
3629 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
3630 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
3631 (sh64_elf_copy_private_data_internal): Wrap long line.
3632 (sh64_elf_merge_private_data): Rewrite to allow objects from
3633 SH64 subsets to be linked together.
3634 (INCLUDE_SHMEDIA): Define.
3635 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
3636 Parenthesize plus-expression inside or-expression.
3637 <global symbol>: Ditto.
3638 (sh_elf_set_mach_from_flags): Remove code refusing
3639 deleted EF_SH64_32BIT_ABI flag.
3640 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
3641 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
3642 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
3643 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
3644 (sh_elf_relocate_section) <local symbol>: Or 1 in
3645 calculation of relocation if sym->st_other & STO_SH5_ISA32.
3646 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
3647 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
3648 relocation.
3649 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3650 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
3651 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
3652 Regenerate dependencies.
3653 * Makefile.in: Regenerate.
3654 * archures.c: Add bfd_mach_sh5.
3655 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
3656 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
3657 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
3658 * configure: Regenerate.
3659 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
3660 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
3661 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3662 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
3663 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
3664 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
3665 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
3666 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
3667 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
3668 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
3669 in item for SH5.
3670 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
3671 for SHmedia relocs.
3672 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
3673 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
3674 shmedia_prepare_reloc, goto final_link_relocate if it returns
3675 non-zero, else fail as before.
3676 (sh_elf_set_mach_from_flags): Provide function only if not defined
3677 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
3678 (sh_elf_set_private_flags): Provide function only if not defined
3679 as a macro.
3680 (sh_elf_copy_private_data): Similar.
3681 (sh_elf_merge_private_data): Similar.
3682 * section.c (SEC_SH_ISA_SHMEDIA): New.
3683 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
3684 * elf32-sh64.c: New file.
3685 * libbfd.h: Regenerate.
3686 * bfd-in2.h: Regenerate.
3687 * po/POTFILES.in: Regenerate.
3688 * po/bfd.pot: Regenerate.
3689 * bfd-in2.h: Regenerate.
3690 * libbfd.h: Regenerate.
3691
e108f470
DJ
36922002-02-07 Daniel Jacobowitz <drow@mvista.com>
3693
3694 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
3695 been included, not drag it in.
3696 * bfd-in2.h: Regenerate.
3697
259d18a3
L
36982002-02-06 H.J. Lu (hjl@gnu.org)
3699
3700 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
3701 the mach and ISA fields if necessary.
3702
f13b834e
NC
37032002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3704
3705 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
3706 ARM architecture when an F_ARM_5 flag is detected, since we cannot
3707 be sure exactly which architecture this represents.
3708
82f6addb
NC
37092002-02-05 Nick Clifton <nickc@redhat.com>
3710
3711 * po/tr.po: Updated translation.
3712
899f54f5
AM
37132002-02-05 Alan Modra <amodra@bigpond.net.au>
3714
3715 From Jimi X <jimix@watson.ibm.com>
3716 * archures (bfd_mach_ppc64): Define.
3717 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
3718 (bfd_powerpc_arch): Define.
3719 * bfd-in2.h: Regenerate.
3720 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
3721 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
3722 (bfd_powerpc_archs): Add default powerpc64 arch.
3723
248866a8
AM
37242002-02-05 Alan Modra <amodra@bigpond.net.au>
3725
3726 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
3727 against section syms in readonly sections. Don't do the global
3728 sym check if we find one.
3729 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
3730 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 3731 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
3732 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
3733 (elf_s390_grok_prstatus): Add missing prototype.
3734
4fa5c2a8
HPN
37352002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3736
3737 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
3738 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
3739 Call bfd_get_section_by_name only once. Initialize
3740 bpodata->n_bpo_relocs_this_section.
3741 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
3742 referring to DSOs.
3743 (bpo_reloc_request_sort_fn): Don't use difference of values as
3744 return-value.
3745
537c972e
DB
37462002-02-02 David O'Brien <obrien@FreeBSD>
3747
3748 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
3749 version 4.5 and later the same as 5-CURRENT.
3750 * configure: Re-generate.
3751
006336b8
JT
37522002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3753
3754 * config.bfd (hppa*-*-netbsd*): New target.
3755
6c571f00
PT
37562002-01-31 Philipp Thomas <pthomas@suse.de>
3757
19397422
AM
3758 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
3759 to front of message. Unify messages with elf32-arm.h. Use
3760 commas where neccessary.
3761 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
3762 ERROR in messages. Unify messages with coff-arm.c. Correct
3763 VFP/FPA error message.
3764 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
3765 APCS-32 for translation.
6c571f00 3766
930b4cb2
HPN
37672002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3768
3769 Perform on-demand global register allocation from
3770 R_MMIX_BASE_PLUS_OFFSET relocs.
3771 * elf64-mmix.c (struct bpo_reloc_section_info, struct
3772 bpo_reloc_request, struct bpo_greg_section_info): New.
3773 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
3774 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
3775 _bfd_mmix_check_all_relocs,
3776 _bfd_mmix_prepare_linker_allocated_gregs,
3777 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
3778 (elf_mmix_howto_table): Correct src_mask for most relocs.
3779 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
3780 case.
3781 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
3782 case. Fix typo in comment. New label do_mmix_reloc.
3783 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
3784 store first object file with a base-plus-offset reloc. Call
3785 mmix_elf_check_common_relocs for the part common with mmo.
3786 (mmix_elf_final_link): Write out linker-allocated register
3787 contents section.
3788 (elf_backend_gc_sweep_hook): Define.
3789 (bfd_elf64_bfd_relax_section): Define.
3790
3791 * mmo.c: Don't include <ctype.h>
3792 (mmo_init): Correct init-once logic.
3793
3e36d993
TR
37942002-02-01 Tom Rix <trix@redhat.com>
3795
3796 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
3797
ba323545
AM
37982002-02-01 Alan Modra <amodra@bigpond.net.au>
3799
3800 * Makefile.am: Run "make dep-am"
3801 * Makefile.in: Regenerate.
3802
012884d6
DB
38032002-01-31 David O'Brien <obrien@FreeBSD>
3804
3805 * configure.in: Recognize the differences in core files from FreeBSD
3806 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
3807 5-CURRENT.
3808 * configure: Regenerate.
3809
3b16e843
NC
38102002-01-31 Ivan Guzvinec <ivang@opencores.org>
3811
3812 * coff-or32.c: New file.
3813 * cpu-or32.c: New file.
3814 * elf32-or32.c: New file.
3815 * archures.c: Add support for or32.
3816 * targets.c: Add support for or32.
3817 * bfd-in2.h: Regenerate.
7dc0ab31 3818 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
3819 coff_write_object_contents): Add support for or32.
3820 * config.bfd: Add target.
3821 * configure.in: Add support for or32.
3822 * configure: Regenerate.
3823 * Makefile.am: Add support for or32.
3824 * Makefile.in: Regenerate.
3b16e843
NC
3825 * po/SRC-POTFILES.in: Add or32 files.
3826 * po/bfd.pot: Regenerate.
7dc0ab31 3827
caf8ca8e
NC
38282002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
3829 Don Lindsay <lindsayd@cisco.com>
3830
3831 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
3832 false' with a return of a bfd_reloc_ error code.
3833
e5dfef09
HPN
38342002-01-31 Hans-Peter Nilsson <hp@axis.com>
3835
3836 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
3837 unexport unreferenced symbols when --export-dynamic. Call
3838 _bfd_elf_strtab_delref when unexporting.
3839
4e4770d0
DJ
38402002-01-30 Daniel Jacobowitz <drow@mvista.com>
3841
3842 * bfd-in.h: Include <stdbool.h> if it is available.
3843 * bfd-in2.h: Regenerated.
3844
e1fa50e7
AM
38452002-01-31 Alan Modra <amodra@bigpond.net.au>
3846
3847 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
3848 not go via the plt.
3849
b5f79c76
NC
38502002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
3851
b5f79c76
NC
3852 * archures.c: Tidy up formatting of embedded comments.
3853 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 3854 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
3855 * reloc.c: Tidy up formatting of ordinary & embedded comments.
3856 * section.c: Tidy up formatting of embedded comments.
3857 * syms.c: Tidy up formatting of embedded comments.
3858 * targets.c: Tidy up formatting of embedded comments.
3859
3860 * bfd-in2.h: Regenerate.
3861
ca09e32b
NC
38622002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
3863
3864 * vms-tir.c (cmd_name): New function.
3865 (tir_cmd_name): New function.
3866 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
3867 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
3868 Fix formatting.
7dc0ab31 3869
ca09e32b
NC
3870 * peXXigen.c (pe_print_idata): Rearrange message to aid in
3871 translation.
3872 (pe_print_pdata): Rearrange message to aid in translation.
3873
3874 * libbfd.c (warn_deprecated): Rearrange error message to aid in
3875 translation.
3876
3877 * ihex.c (ihex_write_object_contents): Fix spelling typo.
3878
3879 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
3880
3881 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
3882 message to aid in translation.
3883
3884 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
3885 to aid in translation.
3886
3887 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
3888
7dc0ab31 38892002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
3890
3891 * coff-arm.c, elf32-elf.h: Unify messages.
3892
05f64ac6
NC
38932002-01-30 Nick Clifton <nickc@redhat.com>
3894
3895 * po/sv.po: Updated translation.
3896
f5a3e38a
NC
38972002-01-30 Philipp Thomas <pthomas@suse.de>
3898
3899 * dwarf2.c (read_abbrev): Use full section name in error message.
3900 (decode_line_info): Likewise.
661a3fd4
NC
3901
3902 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
3903 message.
3904
d926e03d
AM
39052002-01-30 Alan Modra <amodra@bigpond.net.au>
3906
3907 * elf64-ppc.c (func_desc_adjust): Only provide missing function
3908 descriptor symbols for undefined function code syms. Clear
3909 ELF_LINK_NON_ELF so that they can stay weak.
3910
030d18fb 39112002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 3912 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
3913
3914 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
3915 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
3916 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
3917 generation.
3918 * bfd-in2.h: Regenerate.
3919
fcc76bea
CD
39202002-01-29 Chris Demetriou <cgd@broadcom.com>
3921
3922 * elf32-mips.c: Add additional comments about HI16 relocation
3923 processing.
3924 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
3925 pc-relative relocations. (Reverts change made on 2001-10-31.)
3926 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
3927 for pc-relative relocations.
3928 (mips_elf_calculate_relocation): Add a comment about a kludge
3929 in the R_MIPS_GNU_REL_HI16 handling.
3930 (_bfd_mips_elf_relocate_section): Implement that kludge;
3931 adjust pc-relative HI16 relocation for difference in HI16 and
3932 LO16 addresses, since it can't easily be done in
3933 mips_elf_calculate_relocation.
3934
f9cd9119
MS
39352002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
3936
3937 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
3938 relocations with PC32 relocations for undefined or weak symbols.
3939 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
3940 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
3941
702248bb
JT
39422002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
3943
3944 * elfcore.h (elf_core_file_p): Improve comment for last change.
3945
4867be41
DJ
39462002-01-27 Daniel Jacobowitz <drow@mvista.com>
3947
3948 * configure: Regenerated.
3949
a94cef6a
JT
39502002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
3951
3952 * elfcore.h (elf_core_file_p): Set the machine architecture
3953 before processing the program headers.
3954
7562a296
HPN
39552002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3956
966abd70
HPN
3957 * configure.in <64-bit configuration>: If using gcc, check and
3958 emit error for egcs-1.1.2.
3959 * configure: Regenerate.
3960
e8eab623
NC
39612002-01-26 Egor Duda <deo@logos-m.ru>
3962
3963 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
3964 as possible to avoid stack corruption.
3965
73896efb
RH
39662002-01-26 Richard Henderson <rth@redhat.com>
3967
3968 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
3969 for non-allocated sections.
3970
39712002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
3972
3973 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
3974 prstat.pr_reg even if it is a struct.
3975
73896efb 39762002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
3977
3978 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
3979
3d66c4f7
NC
39802002-01-25 Philipp Thomas <pthomas@suse.de>
3981
3982 * coffgen.c (coff_print_symbol): Don't mark info message
3983 for translation.
3984
9460ecda
NC
39852002-01-25 Nick Clifton <nickc@redhat.com>
3986
3987 * po/fr.po: Updated translation.
3988 * po/es.po: Updated translation.
3989
cc9ff76a
AM
39902002-01-25 Philipp Thomas <pthomas@suse.de>
3991
3992 * coff-alpha.c (alpha_relocate_section): Unify warning message
3993 for GP relative relocations without GP defined.
3994 * coff-mips.c (mips_relocate_section): Likewise.
3995
c68836a9
AM
39962002-01-25 Alan Modra <amodra@bigpond.net.au>
3997
3998 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
3999 unsigned overflow when new_offset < old_offset.
4000
e8eab623 40012002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
4002
4003 * bfd.c (_bfd_abort): Fix typo.
4004
8ba89f17
RH
40052002-01-23 Richard Henderson <rth@redhat.com>
4006
4007 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
4008 plt entries for undefweak symbols.
4009
c6953948
NC
40102002-01-23 Steve Ellcey <sje@cup.hp.com>
4011
4012 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
4013 DEFAULT_VECTOR.
4014 (bfd_elf64_ia64_hpux_big_vec): Ditto.
4015 (bfd_elf32_h8300_vec): Ditto.
4016
41bd81ab
AM
40172002-01-23 Alan Modra <amodra@bigpond.net.au>
4018
4019 * elf64-ppc.c: Remove stale part of ABI comment.
4020 (NO_OPD_RELOCS): Define.
4021 (ppc64_elf_check_relocs): Use it.
4022 (ppc64_elf_relocate_section): Here too.
4023 (build_one_stub): Don't point function syms at the stub. Instead,
4024 hijack plt.offset.
4025 (ppc64_elf_relocate_section): Check whether REL24 relocs should
4026 really go to the stub. Make all dynamic relocs in opd against
4027 locals.
4028 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
4029 plt.offset.
4030
f304919d
RH
40312002-01-22 Richard Henderson <rth@redhat.com>
4032
4033 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
4034
c0ef99a7
AM
40352002-01-22 Alan Modra <amodra@bigpond.net.au>
4036
60ee0d4a
AM
4037 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
4038 TOC_BASE_OFF adjustment.
4039
c0ef99a7
AM
4040 * Makefile.am: Run "make dep-am".
4041 * Makefile.in: Regenerate.
4042 * po/SRC-POTFILES.in: Regenerate.
4043
64328b46
AM
40442002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
4045
4046 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
4047 host defines.
4048
59953665 40492002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
4050
4051 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
4052 Check for and emit error if sgot is NULL at this point.
4053
9596feea
JT
40542002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4055
4056 * config.bfd (ia64*-*-netbsd*): New target.
4057
7b45c6e1
AM
40582002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
4059
4060 * som.c (som_write_space_strings): Comment typo fix.
4061
e5094212
AM
40622002-01-21 Alan Modra <amodra@bigpond.net.au>
4063
e86ce104
AM
4064 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
4065 is_func_descriptor fields.
4066 (link_hash_newfunc): Init them.
4067 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
4068 dot are candidates for plt entries. When processing .opd relocs,
4069 set function descriptor strings to point inside function code
4070 string, and set new ppc_link_hash_entry fields.
4071 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
4072 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
4073 function descriptors. It's now done in..
4074 (func_desc_adjust): New.
4075 (ppc64_elf_func_desc_adjust): New.
4076 (define elf_backend_always_size_sections): Define.
4077 (ppc64_elf_hide_symbol): New.
4078 (define elf_backend_hide_symbol): Define.
4079 (allocate_dynrelocs): Remove code looking up function descriptors
4080 as that has been done earlier.
4081 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
4082 table.
4083 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
4084 up function descriptor.
4085 (build_one_stub): Look up the function code sym. Check for
4086 invalid plt offsets.
4087 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
4088 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
4089
e5094212
AM
4090 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
4091 boolean param.
4092 (_bfd_elf_link_hash_hide_symbol): Likewise.
4093 * elflink.h (elf_link_add_object_symbols): Adjust call to
4094 elf_backend_hide_symbol.
4095 (elf_fix_symbol_flags): Likewise.
4096 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
4097 than bfd_alloc.
4098 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
4099 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
4100 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
4101 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
4102 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
4103 and adjust to suit.
4104 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
4105 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
4106 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
4107
40b8271b
AM
41082002-01-18 Alan Modra <amodra@bigpond.net.au>
4109
4110 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
4111 dynamic function descriptor symbol, not the associated function
4112 symbol.
4113
55baa95b
EC
41142002-01-17 Eric Christopher <echristo@redhat.com>
4115
4116 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
4117
328577ad
NC
41182002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4119
4120 * po/bfd.pot: Regenerate.
4121 * po/fr.po: Regenerate.
4122
af746e92
AM
41232002-01-17 Alan Modra <amodra@bigpond.net.au>
4124
4125 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
4126 Remove "Elf_Internal_Shdr *" param.
4127 (_bfd_mips_elf_section_from_bfd_section): Ditto.
4128 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
4129 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
4130 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
4131 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
4132 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
4133 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
4134 function to override special sections. Remove hdr arg from
4135 backend call, and don't loop.
4136
175e9962
EC
41372002-01-16 Eric Christopher <echristo@redhat.com>
4138
4139 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
4140 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
4141 relocations requiring gp0 and gp.
4142
96a846ea
RE
41432002-01-16 Richard Earnshaw <rearnsha@arm.com>
4144
175e9962 4145 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
4146 EF_ARM_VFP_FLOAT.
4147 (elf32_arm_print_private_bfd_data): Likewise.
4148
af3ae48d
NC
41492002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4150
4151 * po/tr.po: Import new version.
4152
10ed1bba
AM
41532002-01-16 Alan Modra <amodra@bigpond.net.au>
4154
4155 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
4156 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
4157 (ORI_R0_R0_0): Correct.
4158
5d1634d7
AM
41592002-01-16 Alan Modra <amodra@bigpond.net.au>
4160
4161 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
4162 when plt_not_loaded.
4163 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
4164 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
4165 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
4166 (ppc64_elf_glink_code): Delete.
4167 (PPC64_ELF_GLINK_SIZE): Delete.
4168 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
4169 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
4170 ORI_R0_R0_0): Define.
4171 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
4172 (struct ppc_link_hash_table): Add sstub and plt_overflow.
4173 (ppc64_elf_link_hash_table_create): Init them.
4174 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
4175 Don't copy to shared lib.
4176 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
4177 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
4178 (allocate_dynrelocs <plt>): Don't change function sym here. Make
4179 room for .stub and .glink code.
4180 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
4181 DT_PPC64_GLINK.
4182 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
4183 bfd_elf64_bfd_final_link.
4184 (bfd_elf64_bfd_final_link): Don't define.
4185 (ppc64_elf_size_stubs): New.
4186 (build_plt_stub): New.
4187 (build_one_stub): New.
4188 (ppc64_elf_build_stubs): New.
4189 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
4190 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
4191 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
4192 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
4193 case output sections not separate. Adjust DT_RELASZ to not
4194 include plt relocs. Set reserved got entry. Set got and plt
4195 entry size.
4196 (elf_backend_got_header_size): Set to 8.
4197 * elf64-ppc.h: New file.
4198
c601ffdb
AM
41992002-01-16 Alan Modra <amodra@bigpond.net.au>
4200
4201 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
4202 sections, use bfd_section_list_remove.
4203 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
4204 * elflink.h (elf_link_add_object_symbols): When removing all
4205 sections, use bfd_section_list_clear.
4206
8fb4cb7f
NC
42072002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4208
4209 * po/sv.po: New file: Swedish translation.
4210 * configure.in (ALL_LINGUAS): Add sv.
4211 * configure: Regenerate.
4212
d3c456e9
JJ
42132002-01-15 Jakub Jelinek <jakub@redhat.com>
4214
4215 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
4216 * elf.c (merge_sections_remove_hook): New function.
4217 (_bfd_elf_merge_sections): Pass it as 3rd argument to
4218 _bfd_merge_sections.
4219 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
4220 * libbfd.h: Rebuilt.
4221 * merge.c (_bfd_merge_sections): Add remove_hook argument.
4222 Call remove_hook if a SEC_EXCLUDE section is encountered.
4223
1f7fd478
NC
42242002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4225
4226 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
4227 (xstormy16_reloc_map): Initialise new field with correct howto
4228 table.
4229 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
4230 howto entry.
4231
b87011e9
MS
42322002-01-10 Michael Snyder <msnyder@redhat.com>
4233
4234 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
4235 (elfcore_write_pstatus): Use long instead of pid_t;
4236 * elf-bfd.h: Change prototypes to use long instead of pid_t;
4237
175e9962 42382002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
4239
4240 * elf.c: Update copyright years.
4241 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
4242 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
4243
7c76fa91
MS
42442002-01-08 Michael Snyder <msnyder@redhat.com>
4245
4246 Add capability to write corefile note sections, for gdb.
4247 * elf.c (elfcore_write_note): New function.
4248 (elfcore_write_prpsinfo): New function.
4249 (elfcore_write_prstatus): New function.
4250 (elfcore_write_pstatus): New function.
4251 (elfcore_write_prfpreg): New function.
4252 (elfcore_write_prxfpreg): New function.
97996af6 4253 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 4254
e1fddb6b
AO
42552002-01-08 Alexandre Oliva <aoliva@redhat.com>
4256
4257 * elf.c (elf_fake_sections): Propagate errors from
4258 elf_backend_fake_section.
4259
8d05742f
JT
42602002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4261
4262 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
4263 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
4264 (elf32-sh-nbsd.lo): New rule.
4265 * Makefile.in: Regenerate.
4266 * config.bfd (sh*le-*-netbsdelf*): New target.
4267 (sh*-*-netbsdelf*): New target.
4268 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
4269 (bfd_elf32_shnbsd_vec): New vector.
4270 (bfd_elf32_shlnbsd_vec): New vector.
4271 * configure: Regenerate.
4272 * elf32-sh-nbsd.c: New file.
4273 * targets.c: Update copyright years.
175e9962 4274 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
4275 bfd_elf32_shnbsd_vec.
4276
1dba4cb4
AH
42772002-01-07 Aldy Hernandez <aldyh@redhat.com>
4278
4279 * coff-rs6000.c (READ20): Use bfd_scan_vma.
4280
47b22aef
GK
42812002-01-07 Geoffrey Keating <geoffk@redhat.com>
4282
4283 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
4284 of a symbol in a section that will be deleted.
4285
be2d1673
NC
42862002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4287
4288 * po/es.po: New file: Spanish translation.
4289 * configure.in (ALL_LINGUAS): Add es.
4290 * configure: Regenerate.
4291
d9cf1b54
AM
42922002-01-06 Steve Ellcey <sje@cup.hp.com>
4293
4294 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
4295 argument so we can handle HP-UX specially.
4296 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
4297 (elfNN_hpux_backend_section_from_bfd_section): New for support
4298 of SHN_IA_64_ANSI_COMMON.
4299 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
4300 (is_unwind_section_name): Add special HP-UX support.
4301 (elfNN_ia64_section_from_shdr): Add support for more sections.
4302 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
4303 add support for more sections.
4304 (elfNN_ia64_additional_program_headers): Modify
4305 is_unwind_section_name call.
4306 (elfNN_ia64_modify_segment_map): Remove assumption that there is
4307 only one unwind section in segment.
4308
3f3c5c34
AM
43092002-01-06 Alan Modra <amodra@bigpond.net.au>
4310
4311 * syms.c (_bfd_generic_make_empty_symbol): New function.
4312 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
4313 _bfd_generic_make_empty_symbol.
4314 * libbfd.h: Regenerate.
4315 * bfd-in2.h: Regenerate.
4316 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
4317 (hppabsd_core_get_symtab_upper_bound): Don't define.
4318 (hppabsd_core_get_symtab): Likewise.
4319 (hppabsd_core_print_symbol): Likewise.
4320 (hppabsd_core_get_symbol_info): Likewise.
4321 (hppabsd_core_bfd_is_local_label_name): Likewise.
4322 (hppabsd_core_get_lineno): Likewise.
4323 (hppabsd_core_find_nearest_line): Likewise.
4324 (hppabsd_core_bfd_make_debug_symbol): Likewise.
4325 (hppabsd_core_read_minisymbols): Likewise.
4326 (hppabsd_core_minisymbol_to_symbol): Likewise.
4327 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
4328 Formatting fixes.
4329 * hpux-core.c: Similarly.
4330 * irix-core.c: Similarly.
4331 * osf-core.c: Similarly.
4332 * sco5-core.c: Similarly.
4333 * binary.c (binary_make_empty_symbol): Remove function, define as
4334 _bfd_generic_make_empty_symbol.
4335 * ihex.c (ihex_make_empty_symbol): Likewise.
4336 * mmo.c (mmo_make_empty_symbol): Likewise.
4337 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
4338 * srec.c (srec_make_empty_symbol): Likewise.
4339 * versados.c (versados_make_empty_symbol): Likewise.
4340 * vms.c (_bfd_vms_make_empty_symbol): Remove.
4341 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
4342 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
4343 rather than _bfd_vms_make_empty_symbol.
4344 * vms-misc.c (new_symbol): Likewise.
4345
3f0a7f7f
AM
43462002-01-05 Alan Modra <amodra@bigpond.net.au>
4347
9e7b37b3
AM
4348 * section.c (bfd_section_init): Remove unnecessary initialisations.
4349 (bfd_section_list_clear): New function.
4350 (bfd_section_list_remove, bfd_section_list_insert): New macros.
4351 (_bfd_strip_section_from_output): Use them.
4352 * coffcode.h (coff_set_alignment_hook): Likewise.
4353 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
4354 * elf64-mips.c (mips_elf64_final_link): Likewise.
4355 * elf64-mmix.c (mmix_elf_final_link): Likewise.
4356 * sunos.c (sunos_add_dynamic_symbols): Likewise.
4357 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
4358 * bfd-in2.h: Regenerate.
4359
4360 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
4361 rather than doing our own section handling. Clean up after errors
4362 with bfd_release and bfd_section_list_clear. Handle unexpected
4363 flags.
4364 * aoutf1.h (sunos4_core_file_p): Likewise.
4365 * aix386-core.c (aix386_core_file_p): Likewise.
4366 * cisco-core.c (cisco_core_file_validate): Likewise.
4367 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
4368 * trad-core.c (trad_unix_core_file_p): Likewise.
4369
4370 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
4371 with bfd_release and bfd_section_list_clear.
4372 * hpux-core.c (hpux_core_core_file_p): Likewise.
4373 * irix-core.c (irix_core_core_file_p): Likewise.
4374 * lynx-core.c (lynx_core_file_p): Likewise.
4375 * osf-core.c (osf_core_core_file_p): Likewise.
4376 * rs6000-core.c (rs6000coff_core_p): Likewise.
4377 * sco5-core.c (sco5_core_file_p): Likewise.
4378
3f0a7f7f
AM
4379 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
4380 sign extension adjustments without conditionals.
4381
a3aa38ee
JJ
43822002-01-04 Jakub Jelinek <jakub@redhat.com>
4383
4384 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
4385 CIE at .eh_frame start is removed due to no FDEs referencing it.
4386
8a8b2d4b
AJ
43872002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4388
4389 * config.bfd (x86_64-*-netbsd*): New target.
4390 * configure.in (x86_64-*-netbsd*): Set COREFILE
4391 to netbsd-core.lo.
4392 * configure: Regenerated.
4393
04b5af89
TR
43942002-01-03 Tom Rix <trix@redhat.com>
4395
4396 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
4397 for recent bfd_make_section_anyway change.
4398
51c5503b
NC
43992002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
4400
4401 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4402 R_ARM_THM_PC11 reloc.
4403
07f7c046
NC
44042002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4405
4406 * configure.in (LINGUAS): Add ja.
4407 * configure: Regenerate.
4408 * po/ja.po: Import from translation project's web site.
4409
5eefb65f
NC
44102002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4411
4412 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
4413 messages to ease translation into other languages.
4414
39e90f10 4415For older changes see ChangeLog-0001
56882138
AM
4416\f
4417Local Variables:
4418mode: change-log
4419left-margin: 8
4420fill-column: 74
4421version-control: never
4422End:
This page took 0.308715 seconds and 4 git commands to generate.