]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
* emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
ba26fd96
AM
12002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2
3 * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
4 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
5 Run "make dep-am".
6 * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
7 host_aout_vec.
8 * configure.in (vaxbsd_vec): Add.
9 * targets.c (vaxbsd_vec): Add.
10 * Makefile.in: Rebuild.
11 * configure: Rebuild.
12 * po/SRC-POTFILES.in: Rebuild.
13
1e2f5b6e
AM
142002-07-01 Alan Modra <amodra@bigpond.net.au>
15
16 * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
17 examining to gc_mark_hook, rather than the bfd.
18 (elf_gc_sections): Adjust.
19 * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
20 * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
21 * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
22 * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
23 * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
24 * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
25 * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
26 * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
27 * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
28 * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
29 * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
30 * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
31 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
32 * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
33 * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
34 * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
35 * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
36 * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
37 * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
38 * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
39 * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
40 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
41 * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
42 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
43 * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
44 * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
45 * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
46 * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
47 redundant local sym tests.
48 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
49 (link_hash_newfunc): Init is_entry.
50 (ppc64_elf_copy_indirect_symbol): Copy is_entry.
51 (ppc64_elf_link_hash_table_create): Init all_local_syms.
52 (create_linkage_sections): Use bfd_make_section_anyway rather than
53 bfd_make_section.
54 (ppc64_elf_mark_entry_syms): New function.
55 (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
56 up opd entry to function section map.
57 (ppc64_elf_gc_mark_hook): Special case opd section relocs, and
58 relocs that reference the opd section.
59 (edit_opd): New function.
60 (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
61 (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
62 (get_local_syms): Do so here. Exit if we already have local syms.
63 Remove bogus comment imported from elf32-hppa.c. Don't attempt to
64 read local syms on non-ELF input.
65 (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
66 than duplicating it's function here. Adjust free of internal
67 relocs to suit.
68 (ppc64_elf_relocate_section): Adjust local syms in opd section.
69 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
70 * elf32-hppa.c (elf32_hppa_size_stubs): Call
71 _bfd_elf32_link_read_relocs rather than duplicating it's function
72 here. Adjust free of internal relocs to suit.
73
1b71fb54
AJ
742002-07-01 Andreas Jaeger <aj@suse.de>
75
76 * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
77 are not allowed in shared libs code, enforce -fPIC.
78
8d28f606
HPN
792002-06-29 Hans-Peter Nilsson <hp@bitrange.com>
80
81 * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
82 trailing zero-sequences when there's previous left-over data.
83
5ac81c74
JL
842002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>
85
86 * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
87 (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
88 and opd_rel_sec in order for starting rela section. Check _raw_size.
89 (elf_backend_reloc_type_class): Define.
90
91a4d569
AM
912002-06-27 Kevin Buettner <kevinb@redhat.com>
92
93 * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
94 DWARF2 formats.
95
feee612b
AM
962002-06-27 Alan Modra <amodra@bigpond.net.au>
97
98 * cpu-powerpc.c: Comment on ordering of arch_info.
99 * elf32-ppc.c (ppc_elf_object_p): New function.
100 (elf_backend_object_p): Define.
101 * elf64-ppc.c (ppc64_elf_object_p): New function.
102 (elf_backend_object_p): Define.
103
a4e6cefc
JT
1042002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
105
106 * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
107 * configure: Regenerate.
108
dae2dd0d
NC
1092002-06-25 Jason Eckhardt <jle@rice.edu>
110
111 * dwarf2.c (decode_line_info): Check unit->addr_size
112 to read in the proper number of prologue bytes.
113
680f9d5c
NC
1142002-06-25 Nick Clifton <nickc@cambridge.redhat.com>
115
116 * config.bfd (powerpc-*-aix5*): Only create a selvecs for
117 aix5coff64_vec if 64-bit bfd support has been enabled.
91a4d569
AM
118 (powerpc64-*-aix5*): Only define if 64-bit bfd support has
119 been enabled.
dae2dd0d 120
680f9d5c
NC
121 * targets.c (_bfd_target_vector[]): Only include
122 aix5coff64_vec if 64-bit bfd support has been enabled.
123
d4c88bbb
AM
1242002-06-25 Alan Modra <amodra@bigpond.net.au>
125
126 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
127 * elf32-hppa.c (hppa_add_stub): Likewise.
128 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
129 * elflink.h (elf_add_default_symbol): Fix comment typo.
130 (elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
131 (elf_link_add_object_symbols): Likewise.
132 (elf_link_assign_sym_version): Likewise.
133 * hash.c (bfd_hash_lookup): Likewise.
134 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
135 * section.c (bfd_get_unique_section_name): Likewise.
136 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
137 * elf.c (_bfd_elf_make_section_from_phdr): Likewise.
138 (assign_section_numbers): Likewise.
139 (_bfd_elfcore_make_pseudosection): Likewise.
140 (elfcore_grok_lwpstatus): Likewise.
141 (elfcore_grok_win32pstatus): Likewise.
142 (elfcore_write_note): Constify input params. Use PTR instead of
143 void *. Include terminating NUL in namesz. Correct padding.
144 Support NULL "name" param. Use memcpy instead of strcpy.
145 (elfcore_write_prpsinfo): Constify input params.
146 (elfcore_write_prstatus): Likewise. Use PTR instead of void *.
147 (elfcore_write_lwpstatus): Likewise.
148 (elfcore_write_pstatus): Likewise.
149 (elfcore_write_prfpreg): Likewise.
150 (elfcore_write_prxfpreg): Likewise.
151 * elf-bfd.h (elfcore_write_note): Update declaration.
152 (elfcore_write_prpsinfo): Likewise.
153 (elfcore_write_prstatus): Likewise.
154 (elfcore_write_pstatus): Likewise.
155 (elfcore_write_prfpreg): Likewise.
156 (elfcore_write_prxfpreg): Likewise.
157 (elfcore_write_lwpstatus): Likewise.
158
b0ac09d2
NC
1592002-06-25 Jason Eckhardt <jle@rice.edu>
160
161 * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for
162 symbols of type stProc and stStaticProc.
163
1642002-06-25 Nick Clifton <nickc@redhat.com>
165
166 * ecoff.c: VArious formatting fixes.
167
021d6096
AM
1682002-06-25 Alan Modra <amodra@bigpond.net.au>
169
170 * coff-rs6000.c (xcoff_generate_rtinit): Fix typo.
171
82e51918
AM
1722002-06-25 Alan Modra <amodra@bigpond.net.au>
173
174 * aout-adobe.c: Don't compare against "true" or "false.
175 * aout-target.h: Likewise.
176 * aoutx.h: Likewise.
177 * archive.c: Likewise.
178 * bout.c: Likewise.
179 * cache.c: Likewise.
180 * coff-a29k.c: Likewise.
181 * coff-alpha.c: Likewise.
182 * coff-i386.c: Likewise.
183 * coff-mips.c: Likewise.
184 * coff-or32.c: Likewise.
185 * coff64-rs6000.c: Likewise.
186 * coffcode.h: Likewise.
187 * coffgen.c: Likewise.
188 * cpu-ns32k.c: Likewise.
189 * ecoff.c: Likewise.
190 * ecofflink.c: Likewise.
191 * elf.c: Likewise.
192 * elf32-arm.h: Likewise.
193 * elf32-cris.c: Likewise.
194 * elf32-d30v.c: Likewise.
195 * elf32-i386.c: Likewise.
196 * elf32-mcore.c: Likewise.
197 * elf32-ppc.c: Likewise.
198 * elf32-sh.c: Likewise.
199 * elf32-sh64.c: Likewise.
200 * elf32-v850.c: Likewise.
201 * elf64-alpha.c: Likewise.
202 * elf64-sh64.c: Likewise.
203 * elfcode.h: Likewise.
204 * elfcore.h: Likewise.
205 * elflink.h: Likewise.
206 * elfxx-mips.c: Likewise.
207 * i386os9k.c: Likewise.
208 * ieee.c: Likewise.
209 * libbfd.c: Likewise.
210 * linker.c: Likewise.
211 * mmo.c: Likewise.
212 * nlm32-alpha.c: Likewise.
213 * nlm32-i386.c: Likewise.
214 * nlm32-ppc.c: Likewise.
215 * nlm32-sparc.c: Likewise.
216 * nlmcode.h: Likewise.
217 * oasys.c: Likewise.
218 * pdp11.c: Likewise.
219 * peicode.h: Likewise.
220 * reloc.c: Likewise.
221 * som.c: Likewise.
222 * srec.c: Likewise.
223 * tekhex.c: Likewise.
224 * vms.c: Likewise.
225 * xcofflink.c: Likewise.
226 * elf64-sparc.c: Edit comment to not use "== false".
227
228 * aoutf1.h: Don't use "? true : false".
229 * ecoff.c: Likewise.
230 * format.c: Likewise.
231 * ieee.c: Likewise.
232 * linker.c: Likewise.
233 * mmo.c: Likewise.
234 * oasys.c: Likewise.
235
48fc70a2
AM
2362002-06-23 H.J. Lu <hjl@gnu.org>
237
238 * elflink.h (elf_link_add_archive_symbols): For the default
239 version, check references with only one `@' first.
240
47b7c2db
AM
2412002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
242
243 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
244 function.
245 (allocate_global_data_dlt): Don't add millicode symbols to dynamic
246 symbol table.
247 (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
248 (elf64_hppa_size_dynamic_sections): Revise to use
249 elf64_hppa_mark_milli_and_exported_functions.
250 (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
251 symbols out of dynamic symbol table.
252
f5d44ba0
AM
2532002-06-23 Alan Modra <amodra@bigpond.net.au>
254
bb3fff1e
AM
255 * Makefile.in: Regenerate.
256 * libbfd.h: Regenerate.
257 * bfd-in2.h: Regenerate.
258 * configure: Regenerate.
259 * po/SRC-POTFILES.in: Regenerate.
260
f5d44ba0
AM
261 * elflink.h: Comment typo fixes.
262
2632002-06-23 H.J. Lu <hjl@gnu.org>
264
265 * elf-bfd.h (elf_link_loaded_list): New structure.
266 (elf_link_hash_table): Add "loaded".
267 * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
268 * elflink.h (elf_link_check_versioned_symbol): New function.
269 (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
270
cc36acdf
NC
2712002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
272
273 * elflink.h (size_dynamic_sections): If the target does not
f5d44ba0 274 support an ELF style hash table, return true, indicating that
cc36acdf
NC
275 nothing needed to be done, rather than false, indicating that the
276 section's size could not be computed.
277
4e5ba5b7
DB
2782002-06-18 Dave Brolley <brolley@redhat.com>
279
280 From Catherine Moore, Michael Meissner, Dave Brolley:
281 * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
282 * targets.c: Support bfd_elf32_frv_vec.
283 * reloc.c: Add FRV relocs.
284 * configure.in: Add support for bfd-elf32-frv-vec.
285 * config.bfd (targ_cpu): Add support for frv-*-elf.
286 * archures.c: Add frv arch and machines.
287 * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
288 (ALL_MACHINES_CFILES): Add cpu-frv.c.
289 (BFD32_BACKENDS): Add elf32-frv.lo.
290 (BFD32_BACKENDS_CFILES): Add elf32-frv.c
291 (cpu-frv.lo): New target.
292 (elf32-frv.lo): New target.
293 * cpu-frv.c: New file.
294 * elf32-frv.c: New file.
295
7ece0d85
JJ
2962002-06-18 Jakub Jelinek <jakub@redhat.com>
297
298 * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
299 e_shnum == 0.
300 Only read the first section header if e_shoff is non-zero.
301 Don't consider e_shstrndx if there are no sections.
302
57fb03ac
TR
3032002-06-17 Tom Rix <trix@redhat.com>
304
305 * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
f5d44ba0 306 R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
57fb03ac
TR
307 complain_overflow_bitfield.
308
341ca622
AM
3092002-06-17 Alan Modra <amodra@bigpond.net.au>
310
767e34d1
AM
311 * opncls.c (bfd_openr): Remove redundant bfd_set_error.
312 (bfd_fdopenr): Likewise.
313 (bfd_openstreamr): Likewise.
314 (bfd_openw): Likewise.
315
341ca622
AM
316 * targets.c: Sort target vecs.
317 (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
318 bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
319 bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
320 bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
321 * configure.in: Sort target vecs. Add m88kmach3_vec.
322 * configure: Regenerate.
323
dfbbae4c
HPN
3242002-06-16 Hans-Peter Nilsson <hp@bitrange.com>
325
326 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
327 bpo_reloc_no to break sort order ties, not address of items.
328
d663e1cd
JL
3292002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
330
331 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
332 Skip excluded sections in determing __gp value.
333 (elf_hppa_final_link_relocate): Use the symbol's address in
334 R_PARISC_FPTR64 relocations that don't need an opd entry.
335 * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
336 (elf64_hppa_finalize_dynreloc): Likewise.
337 (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
338 (elf64_hppa_finish_dynamic_symbol): Break up assert.
339
a8295218
NC
3402002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE>
341
342 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
343 alignment for .bss, .data and .text sections so that sse and sse2
344 code will work.
345 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
346
3472002-06013 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
348
349 config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
350 sh[1234]*-elf*.
351
3db4b612
JL
3522002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
353
2cb69dd3
JL
354 * elflink.h (elf_bfd_final_link): Improve error handling for missing
355 dynamic sections.
356
3db4b612
JL
357 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
358 for a symbol that has no output section.
359 (allocate_dynrel_entries): Correct comment.
360 (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
361 unless we want one.
362 (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
363 (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
364 with no section. Remove unnecessary parentheses.
365
f3813499
TR
3662002-06-11 Tom Rix <trix@redhat.com>
367
368 * coffcode.h (coff_compute_section_file_positions): Add data
369 section to AIX loader alignment check.
370
f5d44ba0 371 * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
f3813499
TR
372 alignment to 4 bytes.
373 (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
374 power accessor macro.
375 (do_shared_object_padding): Remove invalid assertion.
376
0ebaf185
RS
3772002-06-10 Richard Sandiford <rsandifo@redhat.com>
378
379 * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
380 for removed output sections.
381
ebe3e2d1
NC
3822002-06-10 Geoffrey Keating <geoffk@redhat.com>
383
384 * merge.c (merge_strings): Use htab_create_alloc with calloc, not
385 htab_alloc.
386 * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
387
0b14c2aa
L
3882002-06-08 H.J. Lu <hjl@gnu.org>
389
390 * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
391 work around a long long bug in gcc 2.96 on mips.
392
3c2bfad6
JT
3932002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
394
395 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
396 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
397 Regenerate dependency lists.
398 * Makefile.in: Regenerate.
399 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
400 vax1knetbsd_vec to targ_selvecs.
401 * configure.in: Add vax1knetbsd_vec.
402 * configure: Regenerate.
403 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
404 * vax1knetbsd.c: New file.
405 * vaxnetbsd.c: Update copyright years.
406 (TARGET_PAGE_SIZE): Set to 0x1000.
407 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
408
91149be3
JT
4092002-06-08 Matt Thomas <matt@3am-software.com>
410
411 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
412
21e15248
AM
4132002-06-08 Alan Modra <amodra@bigpond.net.au>
414
415 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
416
986b7daa
AM
4172002-06-08 Alan Modra <amodra@bigpond.net.au>
418
e90b95f6
AM
419 * Makefile.am: Run "make dep-am".
420 * Makefile.in: Regenerate.
421
3f9c735e
AM
422 * armnetbsd.c: Replace CONST with const.
423 * corefile.c: Likewise.
424 * elf32-dlx.c: Likewise.
425 * elf64-mips.c: Likewise.
426 * mmo.c: Likewise.
427 * ns32knetbsd.c: Likewise.
428
986b7daa
AM
429 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
430 table is elf64-sparc.
431
5a659663
TS
4322002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
433
434 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
435 Fix RELA addends to get not shifted in the result. Don't do special
436 handling of R_MIPS_64 for NewABI.
437
9bab7074
AM
4382002-06-07 Alan Modra <amodra@bigpond.net.au>
439
440 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
441 (NAME(aout,slurp_reloc_table)): Likewise.
442 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
443 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
444 (xcoff_write_archive_contents_big): Likewise.
445 (xcoff_generate_rtinit): Likewise.
446 (xcoff_generate_rtinit): Likewise, and check error return.
447 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
448 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
449 (coff_get_normalized_symtab): Likewise.
450 (coff_make_empty_symbol): Likewise.
451 (bfd_coff_set_symbol_class): Likewise.
452 * cofflink.c (coff_link_add_symbols): Likewise.
453 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
454 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
455 (bfd_ecoff_write_accumulated_debug): Likewise.
456 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
457 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
458 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
459 * ieee.c (do_with_relocs): Use bfd_zalloc.
460 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
461 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
462 (NAME(aout,slurp_reloc_table)): Likewise.
463 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
464 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
465 * som.c (som_build_and_write_symbol_table): Likewise.
466 (som_slurp_string_table): Likewise.
467 (som_slurp_symbol_table): Likewise.
468 (som_bfd_ar_write_symbol_stuff): Likewise.
469 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
470 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
471 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
472 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
473 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
474
1126897b
AM
4752002-06-07 Alan Modra <amodra@bigpond.net.au>
476
477 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
478 "group" union.
479 (elf_group_name): Update.
480 (elf_group_id): Define.
481 (bfd_elf_set_group_contents): Declare.
482 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
483 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
484 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
485 that sym for the signature.
486 (_bfd_elf_compute_section_file_positions): Don't call
487 set_group_contents for "ld -r" case.
488 (swap_out_syms): Use bfd_zalloc.
489 * elflink.h (elf_link_add_archive_symbols): Likewise.
490 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
491 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
492
3fad3c7c
AM
4932002-06-07 Alan Modra <amodra@bigpond.net.au>
494
495 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
496 relocs in opd for non-shared too.
497
76f99c63
JL
4982002-06-06 Jeffrey Law <law@redhat.com
499
500 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
501 relocations.
502
7217313c
NC
5032002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
504
505 * merge.c: Include libiberty.h.
506 * elf-strtab.c: Include libiberty.h.
507
6cb22815
AM
5082002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
509
510 * peXXigen.c (pe_print_idata): Remove unused variable.
511
1ed89aa9
NC
5122002-06-06 David Heine <dlheine@tensilica.com>
513
514 * elf.c (assign_file_positions_for_segments): Remove unallocated
515 sections from the section to segment mapping for PT_LOAD segments.
516 Update comment about empty loadable segments.
517
644c4c80
RS
5182002-06-06 Richard Sandiford <rsandifo@redhat.com>
519
520 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
521 is within the .stabstr section.
522
f8ecb12b
AM
5232002-06-06 Alan Modra <amodra@bigpond.net.au>
524
525 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
526 are "const PTR", not "const PTR *".
527 (bfd_elf32_swap_symbol_in): Likewise.
528 (bfd_elf64_swap_symbol_in): Likewise.
529 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
530 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
531 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
532 (elf_link_add_object_symbols): Likewise.
533 (elf_link_record_local_dynamic_symbol): Likewise.
534 (elf_link_input_bfd): Likewise.
535 (elf_gc_mark): Likewise.
536 (elf_reloc_symbol_deleted_p): Likewise.
537 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
538 (mn10200_elf_relax_delete_bytes): Likewise.
539 (mn10200_elf_symbol_address_p): Likewise.
540 (mn10200_elf_get_relocated_section_contents): Likewise.
541 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
542 (mn10300_elf_relax_section): Likewise.
543 (mn10300_elf_relax_delete_bytes): Likewise.
544 (mn10300_elf_symbol_address_p): Likewise.
545 (mn10300_elf_get_relocated_section_contents): Likewise.
546 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
547 (elf32_h8_relax_delete_bytes): Likewise.
548 (elf32_h8_symbol_address_p): Likewise.
549 (elf32_h8_get_relocated_section_contents): Likewise.
550 * elf32-hppa.c (get_local_syms): Likewise.
551 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
552 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
553 * elf32-sh.c (sh_elf_relax_section): Likewise.
554 (sh_elf_relax_delete_bytes): Likewise.
555 (sh_elf_get_relocated_section_contents): Likewise.
556 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
557 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
558 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
559 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
560 * elf64-ppc.c (get_local_syms): Likewise.
561 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
562 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
563
1ed89aa9 5642002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
565
566 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
567
73ff0d56
AM
5682002-06-05 Alan Modra <amodra@bigpond.net.au>
569
9dce4196
AM
570 * elf.c (group_signature): Swap in the whole symbol, and handle
571 extracting section symbol names.
572 (setup_group): Add comment.
573 (set_group_contents): When called from objcopy or ld, arrange for
574 section contents to be written. Write group member output section
575 indices to allow objcopy to reorganize sections.
576 (_bfd_elf_copy_private_section_data): Copy group info.
577
73ff0d56
AM
578 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
579 (bfd_elf32_swap_symbol_in): Update prototype.
580 (bfd_elf64_swap_symbol_in): Likewise.
581 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
582 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
583 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
584 (elf_link_add_object_symbols): Likewise.
585 (elf_link_record_local_dynamic_symbol): Likewise.
586 (elf_link_input_bfd): Likewise.
587 (elf_gc_mark): Likewise.
588 (elf_reloc_symbol_deleted_p): Likewise.
589 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
590 (mn10200_elf_relax_delete_bytes): Likewise.
591 (mn10200_elf_symbol_address_p): Likewise.
592 (mn10200_elf_get_relocated_section_contents): Likewise.
593 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
594 (mn10300_elf_relax_section): Likewise.
595 (mn10300_elf_relax_delete_bytes): Likewise.
596 (mn10300_elf_symbol_address_p): Likewise.
597 (mn10300_elf_get_relocated_section_contents): Likewise.
598 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
599 (elf32_h8_relax_delete_bytes): Likewise.
600 (elf32_h8_symbol_address_p): Likewise.
601 (elf32_h8_get_relocated_section_contents): Likewise.
602 * elf32-hppa.c (get_local_syms): Likewise.
603 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
604 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
605 * elf32-sh.c (sh_elf_relax_section): Likewise.
606 (sh_elf_relax_delete_bytes): Likewise.
607 (sh_elf_get_relocated_section_contents): Likewise.
608 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
609 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
610 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
611 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
612 * elf64-ppc.c (get_local_syms): Likewise.
613 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
614 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
615 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
616 * elf64-alpha.c (alpha_elf_size_info): Likewise.
617 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
618 * elf64-mips.c (mips_elf64_size_info): Likewise.
619 * elf64-s390.c (s390_elf64_size_info): Likewise.
620 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
621
53bfd6b4
MR
6222002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
623
624 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
625 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
626 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
627 _bfd_mips_elf_ignore_discarded_relocs.
628 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
629
d4df96e6
L
6302002-06-05 H.J. Lu <hjl@gnu.org>
631
632 * elfxx-mips.c (mips_elf_calculate_relocation): Call
633 _bfd_elf_rel_local_sym for STT_SECTION relocations against
634 the SEC_MERGE section.
635
e61463e1
AM
6362002-06-05 Alan Modra <amodra@bigpond.net.au>
637
3cac74d0
AM
638 * coff-alpha.c: Update copyright date.
639 * coff-mips.c: Likewise.
640 * xcoff-target.h: Likewise.
641
e61463e1
AM
642 * bfd-in.h: Remove "taken from the source" comment.
643 * libbfd-in.h: Likewise.
644 * libcoff-in.h: Likewise.
645 * bfd-in2.h: Regenerate.
646 * libbfd.h: Regenerate.
647 * libcoff.h: Regenerate.
648
649 * elf.c (bfd_elf_discard_group): Return true.
650 * elf-bfd.h (bfd_elf_discard_group): Declare.
651 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
652 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
653 * bfd.c (bfd_discard_group): Define.
654 * targets.c (struct bfd_target): Add _bfd_discard_group.
655 (BFD_JUMP_TABLE_LINK): Here too.
656 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
657 * aout-adobe.c (aout_32_bfd_discard_group): Define.
658 * aout-target.h (MY_bfd_discard_group): Define.
659 * aout-tic30.c (MY_bfd_discard_group): Define.
660 * binary.c (binary_bfd_discard_group): Define.
661 * bout.c (b_out_bfd_discard_group): Define.
662 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
663 * coffcode.h (coff_bfd_discard_group): Define.
664 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
665 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
666 * i386msdos.c (msdos_bfd_discard_group): Define.
667 * i386os9k.c (os9k_bfd_discard_group): Define.
668 * ieee.c (ieee_bfd_discard_group): Define.
669 * ihex.c (ihex_bfd_discard_group): Define.
670 * mmo.c (mmo_bfd_discard_group): Define.
671 * nlm-target.h (nlm_bfd_discard_group): Define.
672 * oasys.c (oasys_bfd_discard_group): Define.
673 * ppcboot.c (ppcboot_bfd_discard_group): Define.
674 * som.c (som_bfd_discard_group): Define.
675 * srec.c (srec_bfd_discard_group): Define.
676 * tekhex.c (tekhex_bfd_discard_group): Define.
677 * versados.c (versados_bfd_discard_group): Define.
678 * vms.c (vms_bfd_discard_group): Define.
679 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
680 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
681 (aix5coff64_vec): Likewise.
682 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
683
9cba27b2
JT
6842002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
685
686 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
687 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
688 (elf32-sh64-com.lo): New dependency list.
689 * Makefile.in: Regenerate.
690 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
691 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
692 elf32-sh64-com.lo.
693 * configure: Regenerate.
694 * elf32-sh64.c (sh64_address_in_cranges)
695 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
696 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
697 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
698 * elf32-sh64-com.c: ...here. New file.
699
8d2c33be
AM
7002002-06-04 Alan Modra <amodra@bigpond.net.au>
701
702 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
703 ATTRIBUTE_UNUSED on used params.
704 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
705 before calling bfd_section_from_elf_index on local syms.
706 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
707
5b0e55b6
JT
7082002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
709
710 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
711 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
712 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
713 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
714 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
715 * Makefile.in: Regenerate.
716 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
717 (sh64-*-netbsd*): New targets.
718 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
719 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
720 * configure: Regenerate.
721 * elf32-sh64-nbsd.c: New file.
722 * elf64-sh64-nbsd.c: New file.
723 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
724 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
725 bfd_elf64_sh64lnbsd_vec.
726
b885599b
AM
7272002-06-04 Alan Modra <amodra@bigpond.net.au>
728
729 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
730 (bfd_section_from_shdr): Likewise. Set section name of group
731 sections from signature.
732 (group_signature): Split out from setup_group. Ensure symbol table
733 is available.
734 (bfd_elf_discard_group): New function.
735 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
736 .gnu.linkonce* sections if they are members of a group.
737 (set_group_contents): Set GRP_COMDAT flag.
738 * section.c (bfd_discard_group): New function.
739 * bfd-in.h (bfd_elf_discard_group): Declare.
740 * bfd-in2.h: Regenerate.
741 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
742 (elf_linkonce_p): Define.
743
90937f86
AM
7442002-06-04 Alan Modra <amodra@bigpond.net.au>
745
746 * elf.c (bfd_section_from_shdr): Make "name" const.
747 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
748 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
749 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
750 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
751 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
752 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
753 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
754 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
755 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
756 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
757 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
758
cf6fb9ce
MR
7592002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
760
761 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
762 ABI.
763
cedb70c5
KH
7642002-06-02 Kazu Hirata <kazu@cs.umass.edu>
765
766 * elf32-arc.c: Fix formatting.
767 * elf32-arm.h: Likewise.
768 * elf32-cris.c: Likewise.
769 * elf32-dlx.c: Likewise.
770 * elf32-hppa.c: Likewise.
771 * elf32-i386.c: Likewise.
772 * elf32-i386qnx.c: Likewise.
773 * elf32-or32.c: Likewise.
774 * elf32-s390.c: Likewise.
775 * elf32-sh64.c: Likewise.
776 * elf32-vax.c: Likewise.
777 * elf32-xstormy16.c: Likewise.
778 * elf64-alpha.c: Likewise.
779 * elf64-mmix.c: Likewise.
780 * elf64-ppc.c: Likewise.
781 * elf64-s390.c: Likewise.
782 * elf64-sh64.c: Likewise.
783 * elf64-x86-64.c: Likewise.
784
048d873d
RH
7852002-06-02 Richard Henderson <rth@redhat.com>
786
787 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
788 null when there are no got entries for a symbol.
789 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
790 uninitialized variable warning.
791
4a67a098
RH
7922002-06-01 Richard Henderson <rth@redhat.com>
793
794 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
795 undefined symbols here.
796 (elf64_alpha_relax_section): Do it here. Also test for not
797 defined in the current module.
798 (elf64_alpha_relocate_section_r): Split out of ...
799 (elf64_alpha_relocate_section): ... here. Don't dereference
800 NULL when looking up local got entries.
801
f44f99a5
RH
8022002-06-01 Richard Henderson <rth@redhat.com>
803
804 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
805 symbols from JSR relaxation.
806 (elf64_alpha_size_plt_section_1): New.
807 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
808 (elf64_alpha_size_rela_got_1): ... here.
809 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
810 (elf64_alpha_size_rela_got_section): ... here.
811 (elf64_alpha_size_plt_section): New.
812 (elf64_alpha_relax_section): Call them.
813 (elf64_alpha_size_got_sections): Remove output_bfd arg.
814 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
815
9e756d64
RH
8162002-06-01 Richard Henderson <rth@redhat.com>
817
818 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
819 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
820 in shared libraries. Fix DTPRELHI and TPRELHI value.
821 (INSN_ADDQ, INSN_RDUNIQ): New.
822 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
823 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
824 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
825 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
826 Handle GOTDTPREL and GOTTPREL relocations.
827 (elf64_alpha_relax_gprelhilo): New.
828 (elf64_alpha_relax_tls_get_addr): New.
829 (elf64_alpha_relax_find_tls_segment): New.
830 (elf64_alpha_relax_section): Handle TLS relocations.
831 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
832 (elf64_alpha_check_relocs): Set it.
833
c853d7f6
RH
8342002-06-01 Richard Henderson <rth@redhat.com>
835
b646261c
RH
836 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
837
c853d7f6
RH
838 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
839 check; don't suppress dynamic relocs for non-allocated sections.
840
d7e41a96
RH
841 * elf64-alpha.c: Remove dead code.
842
5f333394
AM
8432002-05-31 Alan Modra <amodra@bigpond.net.au>
844
08e0ee05
AM
845 * bfd-in2.h: Regenerate.
846 * libbfd.h: Regenerate.
847 * po/SRC-POTFILES.in: Regenerate.
848
5f333394
AM
849 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
850 space for bss .plt.
851
caf47ea6
AM
8522002-05-31 Graeme Peterson <gp@qnx.com>
853
854 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
855 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
856 Run "make dep-am".
857 * Makefile.in: Regenerate.
858 * config.bfd: Add i[3456]86-*-nto-qnx* support.
859 * configure.in: Add bfd_elf32_i386qnx_vec support.
860 * configure: Regenerate.
861 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
862 is_contained_by_filepos, and copy_private_bfd_data_p.
863 * elf.c (assign_file_positions_for_segments): Call backend
864 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
865 (IS_CONTAINED_BY_FILEPOS): Define.
866 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
867 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
868 Fix non-K&R call to _bfd_error_handler.
869 (_bfd_elf_copy_private_section_data): Use backend
870 copy_private_bfd_data_p.
871 * elf32-i386.c: Don't include elfxx-target.h when
872 ELF32_I386_C_INCLUDED is defined.
873 * elf32-i386qnx.c: New QNX elf backend file.
874 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
875 elf_backend_is_contained_by_filepos, and
876 elf_backend_do_copy_private_bfd_data.
877 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
878
5bc56484
AM
8792002-05-31 Alan Modra <amodra@bigpond.net.au>
880
881 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
882 Move other similar defines to start of file.
883
1b164155
TR
8842002-05-30 Tom Rix <trix@redhat.com>
885
886 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
887 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
888
3765b1be
RH
8892002-05-30 Richard Henderson <rth@redhat.com>
890
891 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
892 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
893 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
894 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
895 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
896 (struct alpha_elf_obj_tdata): Rename total_got_entries and
897 n_local_got_entries to total_got_size and local_got_size.
898 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
899 (alpha_got_entry_size): New.
900 (elf64_alpha_relax_with_lituse): Use it.
901 (elf64_alpha_relax_without_lituse): Likewise.
902 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
903 (get_got_entry): New.
904 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
905 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
906 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
907 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
908 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
909 (elf64_alpha_calc_got_offsets): Likewise.
910 (alpha_dynamic_entries_for_reloc): New.
911 (elf64_alpha_calc_dynrel_sizes): Use it.
912 (elf64_alpha_size_dynamic_sections): Likewise.
913 (elf64_alpha_relocate_section): Handle TLS relocations.
914 * reloc.c: Add Alpha TLS relocations.
915 * bfd-in2.h, libbfd.h: Rebuild.
916
5e226794
NC
9172002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
918
919 * peXXigen.c (pe_print_idata): Remove double printed
920 import table lines; add Bound-To comment.
921
90ace9e9
JT
9222002-05-29 Matt Thomas <matt@3am-software.com>
923
924 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
925 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
926 (elf32-vax.lo): New rule.
927 * Makefile.in: Regenerate.
928 * configure.in (bfd_elf32_vax_vec)
929 (vaxnetbsd_vec): New vectors.
930 * configure: Regenerate.
931 * config.bfd (vax-*-netbsdelf*)
932 (vax-*-netbsdaout*)
933 (vax-*-netbsd*): New targets.
934 * elf32-vax.c: New file.
935 * reloc.c: Add VAX relocations.
936 * bfd-in2.h: Regenerate.
937 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
938
4a253e81
JT
9392002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
940
941 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
942 and bfd_elf32_bigarm_vec to targ_selvecs.
943
6e7c73dd
CF
9442002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
945
946 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
947 with auto-imported symbols.
948
8afb0e02
NC
9492002-05-29 Adam Nemet <anemet@lnxw.com>
950
951 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
952 sections only record bfd.
9bab7074 953 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
8afb0e02 954 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
9bab7074 955 * bfd-in2.h: Regenerate.
8afb0e02 956
a95653f5
NC
9572002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
958
959 * syms.c (_bfd_stab_section_find_nearest_line): Move
960 declaration and initialisation of saw_line and saw_func out of
961 for loop.
962
7cdc5bba
AM
9632002-05-29 Alan Modra <amodra@bigpond.net.au>
964
965 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
966 (bfd_elf64_get_symbol_info): Define.
967 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
968
4c7aad1c
AM
9692002-05-29 Andrey Volkov <avolkov@transas.com>
970
971 * cpu-h8300.c: Make default h8300 machine first in machine list.
972
d172d4ba
NC
9732002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
974
975 * config.bfd: Added DLX configuraton.
976 * Makefile.am: Added DLX configuraton.
977 * configure.in: Added DLX configuraton.
978 * archures.c: Add DLX architecure.
979 * reloc.c: Add DLX relocs.
980 * targets.c: Added DLX target vector.
981 * configure: Regenerate.
982 * Makefile.in: Regenreate.
983 * bfd-in2.h: Regenreate.
984 * elf32-dlx.c: New file: Support DLX target.
985 * cpu-dlx.c: New file: Support DLX target.
986
d1329ca3
AM
9872002-05-25 Alan Modra <amodra@bigpond.net.au>
988
428d0de3
AM
989 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
990
d1329ca3
AM
991 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
992 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
993 strings to point inside function code sym string.
994 (func_desc_adjust): Likewise.
995 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
996
3bab7989
ML
9972002-05-24 Michal Ludvig <mludvig@suse.cz>
998
999 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
1000 (elf64_x86_64_grok_psinfo): Added.
1001
436e8db0
NC
10022002-05-24 TAMURA Kent <kent@netbsd.org>
1003
1004 * config.bfd: Add a target for i386-netbsdpe.
1005
ea1e4b0d
AM
10062002-05-24 Alan Modra <amodra@bigpond.net.au>
1007
1008 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
1009 and is_func_descriptor.
1010 (func_desc_adjust): Hide function code sym in shared libs unless
1011 there is a matching exported function descriptor sym.
1012
13ae64f3
JJ
10132002-05-23 Jakub Jelinek <jakub@redhat.com>
1014
1015 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
1016 for symbols from SHF_TLS section.
1017 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
1018 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
1019 (map_sections_to_segments): Build PT_TLS segment if necessary.
1020 (assign_file_positions_for_segments): Likewise.
1021 (get_program_header_size): Account for PT_TLS segment.
1022 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
1023 SEC_THREAD_LOCAL sections to STT_TLS.
1024 * reloc.c: Add 386 and IA-64 TLS relocs.
1025 * section.c (SEC_THREAD_LOCAL): Define.
1026 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
1027 Remove.
1028 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
1029 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
1030 unconditionally.
1031 (struct elf_final_link_info): Add first_tls_sec.
1032 (elf_bfd_final_link): Set first_tls_sec.
1033 Compute elf_hash_table (info)->tls_segment.
1034 (elf_link_output_extsym): Handle STT_TLS symbols.
1035 (elf_link_input_bfd): Likewise.
1036 * syms.c (BSF_THREAD_LOCAL): Define.
1037 * bfd-in2.h: Rebuilt.
1038 * libbfd.h: Rebuilt.
1039 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
1040 elf_i386_mkobject, elf_i386_object_p): New functions.
1041 (elf_howto_table): Add TLS relocs.
1042 (elf_i386_reloc_type_lookup): Support TLS relocs.
1043 (elf_i386_info_to_howto_rel): Likewise.
1044 (struct elf_i386_link_hash_entry): Add tls_type.
1045 (struct elf_i386_obj_tdata): New.
1046 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
1047 New macros.
1048 (struct elf_i386_link_hash_table): Add tls_ldm_got.
1049 (link_hash_newfunc): Clear tls_type.
1050 (elf_i386_check_relocs): Support TLS relocs.
1051 (elf_i386_gc_sweep_hook): Likewise.
1052 (allocate_dynrelocs): Likewise.
1053 (elf_i386_size_dynamic_sections): Likewise.
1054 (elf_i386_relocate_section): Likewise.
1055 (elf_i386_finish_dynamic_symbol): Likewise.
1056 (bfd_elf32_mkobject, elf_backend_object_p): Define.
1057 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
1058 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
1059 want_tprel, want_dtpmod, want_dtprel.
1060 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
1061 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
1062 R_IA64_LTOFF_TPREL22.
1063 (elf_code_to_howto_index): Add TLS relocs.
1064 (elfNN_ia64_check_relocs): Support TLS relocs.
1065 (allocate_global_data_got): Account for TLS .got data.
1066 (allocate_dynrel_entries): Account for TLS dynamic relocations.
1067 (elfNN_ia64_install_value): Supprt TLS relocs.
1068 (set_got_entry): Support TLS relocs.
1069 (elfNN_ia64_relocate_section): Likewise.
1070
c62e1cc3
NC
10712002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1072
1073 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
1074 BLX reloc round the relocation up rather than down.
1075 * coff-arm.c (coff_arm_relocate_section): Likewise.
1076
c5a43a5d
L
10772002-05-21 H.J. Lu (hjl@gnu.org)
1078
1079 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
1080 definition.
1081
afbe61cf
AM
10822002-05-22 Alan Modra <amodra@bigpond.net.au>
1083
1084 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
1085 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
1086
9c07fe7c
AM
10872002-05-22 Alan Modra <amodra@bigpond.net.au>
1088
1089 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
1090 unresolved relocs.
1091 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
1092
21611032
TS
10932002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1094
1095 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
1096 non-ELF targets.
1097
41241523
TS
10982002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1099
1100 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
1101 an error value.
1102 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
1103 return with false on error.
1104 (elf_link_input_bfd): Check reloc_emitter return value.
1105
658f2588
JT
11062002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1107
1108 * config.bfd (armeb-*-netbsdelf*): New target.
1109
c862ae31
AM
11102002-05-20 Alan Modra <amodra@bigpond.net.au>
1111
1112 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
1113 at the plt call stub.
1114
6dd14845
TS
11152002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1116
1117 * cpu-mips.c (mips_compatible): Don't try to check machine
1118 compatibility.
1119
a58d9c34
TR
11202002-05-18 Tom Rix <trix@redhat.com>
1121
1122 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
1123
ef60b7ff
AM
11242002-05-17 Alan Modra <amodra@bigpond.net.au>
1125
1126 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
1127 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
1128 we've already warned about an undefined symbol. Report more
1129 detail on reloc errors.
1130
a703a6ea
AM
11312002-05-17 Alan Modra <amodra@bigpond.net.au>
1132
1133 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
1134 * configure.in: Invoke AM_INSTALL_LIBBFD.
1135 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
1136 (install_libbfd): .. New target.
1137 (uninstall_libbfd): Likewise.
1138 (install-bfdlibLTLIBRARIES): Likewise.
1139 (uninstall-bfdlibLTLIBRARIES): Likewise.
1140 (bfdlibdir): New.
1141 (bfdincludedir): New.
1142 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
1143 * aclocal.m4: Regenerate.
1144 * configure: Regenerate.
1145 * Makefile.in: Regenerate.
1146
2c13d98b
NC
11472002-05-17 Stuart Balfour <sbalfour@cisco.com>
1148
1149 * hash.c (bfd_hash_lookup): Remove computation of len from inside
1150 hash loop.
1151
629936c5
NC
11522002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
1153
1154 * config.bfd: Add targets for sh64-linux (little endian and
1155 big endian).
1156
e4cf60a8
NC
11572002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
1158
1159 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
1160 is located in the same section as the import table. Instead
1161 check, and if necessary load the section containing the thunk.
1162
d1e66cd4
NC
11632002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
1164
1165 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
ea1e4b0d
AM
1166 bfd_bread.
1167 (xcoff64_core_file_matches_executable_p): Replace bfd_read
1168 with bfd_bread.
d1e66cd4 1169
2d653fc7
AM
11702002-05-15 Alan Modra <amodra@bigpond.net.au>
1171
1172 * aix5ppc-core.c: Warning fixes.
1173 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
1174 * aout-target.h (MY_bfd_link_just_syms): Define.
1175 * aout-tic30.c (MY_bfd_link_just_syms): Define.
1176 * bfd.c (bfd_link_just_syms): Define.
1177 * binary.c (binary_bfd_link_just_syms): Define.
1178 * bout.c (b_out_bfd_link_just_syms): Define.
1179 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
1180 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1181 * coffcode.h (coff_bfd_link_just_syms): Define.
1182 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
1183 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
1184 (_bfd_elf_link_just_syms): Declare.
1185 * elf.c (_bfd_elf_link_just_syms): New function.
1186 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
1187 sections haven't already been discarded by the linker.
1188 * elflink.h (elf_link_add_object_symbols): Likewise for stab
1189 sections and SEC_MERGE sections.
1190 (elf_bfd_discard_info): Similarly here.
1191 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
1192 * i386msdos.c (msdos_bfd_link_just_syms): Define.
1193 * i386os9k.c (os9k_bfd_link_just_syms): Define.
1194 * ieee.c (ieee_bfd_link_just_syms): Define.
1195 * ihex.c (ihex_bfd_link_just_syms): Define.
1196 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
1197 (_bfd_generic_link_just_syms): Declare.
1198 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
1199 * linker.c (_bfd_generic_link_just_syms): New function.
1200 * mmo.c (mmo_bfd_link_just_syms): Define.
1201 * nlm-target.h (nlm_bfd_link_just_syms): Define.
1202 * oasys.c (oasys_bfd_link_just_syms): Define.
1203 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
1204 * som.c (som_bfd_link_just_syms): Define.
1205 * srec.c (srec_bfd_link_just_syms): Define.
1206 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
1207 (BFD_JUMP_TABLE_LINK): And here.
1208 * tekhex.c (tekhex_bfd_link_just_syms): Define.
1209 * versados.c (versados_bfd_link_just_syms): Define.
1210 * vms.c (vms_bfd_link_just_syms): Define.
1211 * libbfd.h: Regenerate.
1212 * bfd-in2.h: Regenerate.
1213
cb7394f2
TS
12142002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1215
1216 * elf32-mips.c: Remove superfluous definitions copied from
1217 elfxx-mips.c.
1218 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
1219 SGIish vectors to check the special case.
1220 (mips_elf_hi16_reloc): Fix comment.
1221 (mips_elf_got16_reloc): Likewise.
1222 (_bfd_mips_elf32_gprel16_reloc): Likewise.
1223 (elf_reloc_map): Code cleanup.
1224 (mips_reloc_map): Add comment.
1225 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
1226 (mips_elf32_rtype_to_howto): Likewise.
1227 (mips_elf32_discard_info): Likewise.
1228 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
1229 lead to IRIX compatibility now.
1230
8dc1a139
TS
12312002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1232
1233 * elfxx-mips.c: Call it IRIX, not Irix in comments.
1234
2051e1b5
JT
12352002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
1236
1237 * config.bfd (shle-*-netbsdelf*): Add target which includes
1238 sh64 support.
1239
83954261
AM
12402002-05-13 David Edelsohn <edelsohn@gnu.org>
1241
1242 * configure.in: Revert 2002-04-07. Instead, auto-configure
1243 HAVE_ST_C_IMPL.
1244 * configure: Regenerate.
1245 * config.in: Regenerate.
1246 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
1247 or AIX_5_CORE.
1248
a9bf1154
NC
12492002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
1250
1251 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
1252 corefiles as well.2
1253 * configure: Regenerate.
1254
3129eb7a
AM
12552002-05-13 Alan Modra <amodra@bigpond.net.au>
1256
1257 * Makefile.am (install-data-local): Install headers to
1258 $(exec_prefix)/include.
1259 * Makefile.in: Regenerate.
1260
a9a32010
DJ
12612002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1262 Daniel Jacobowitz <drow@mvista.com>
1263
1264 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
1265 map BFD_RELOC_RVA.
1266
12672002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
690cc98b
NC
1268
1269 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
1270 hppa*-*-openbsd*): New targets.
1271 * configure.in (alpha*-*-openbsd*): Set COREFILE.
1272 * configure: Regenerate.
1273
f1f0d9ab
TR
12742002-05-10 Tom Rix <trix@redhat.com>
1275
ea1e4b0d 1276 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
f1f0d9ab
TR
1277 xcoff64_ppc_relocate_section.
1278 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
1279 * libxcoff.h: Common xcoff_reloc_type function declaration.
1280
c432ba1a
AM
12812002-05-10 Alan Modra <amodra@bigpond.net.au>
1282
16a10388 1283 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
90937f86 1284 added in 2002-05-09 commit.
16a10388 1285
c432ba1a
AM
1286 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
1287 don't look for stubs on all undefined syms.
1288
4a335f3d
AM
12892002-05-09 Alan Modra <amodra@bigpond.net.au>
1290
8fc39d5d
AM
1291 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
1292 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
1293 pcrel_offset.
1294
4a335f3d
AM
1295 * elf32-i386.c (elf_howto_table): Comments.
1296 (elf_i386_relocate_section): Handle more relocs for relocatable
1297 linking and against SEC_MERGE sections.
1298
41fcb14e
AM
12992002-05-08 Alan Modra <amodra@bigpond.net.au>
1300
1301 * elf32-ppc.c (ppc_elf_create_got): New function.
1302 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
ea1e4b0d 1303 _bfd_elf_create_dynamic_sections. Correct .plt flags.
41fcb14e
AM
1304 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
1305 _bfd_elf_create_got_section.
1306
b491616a
AM
13072002-05-07 Alan Modra <amodra@bigpond.net.au>
1308
1309 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
1310 * elfxx-target.h (elf_backend_rela_normal): Define.
1311 (elfNN_bed): Init rela_normal.
1312 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
1313 for section symbols here if rela_normal. Simplify abs section test.
1314 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
1315 return immediately. Remove code handling relocatable linking.
1316 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1317 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1318 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1319 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1320 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1321 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1322 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1323 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1324 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1325 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1326 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1327 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1328 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1329 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
1330 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
1331 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1332 * elf-m10200.c (elf_backend_rela_normal): Define.
1333 * elf-m10300.c (elf_backend_rela_normal): Define.
1334 * elf32-fr30.c (elf_backend_rela_normal): Define.
1335 * elf32-i370.c (elf_backend_rela_normal): Define.
1336 * elf32-i860.c (elf_backend_rela_normal): Define.
1337 * elf32-m68k.c (elf_backend_rela_normal): Define.
1338 * elf32-mcore.c (elf_backend_rela_normal): Define.
1339 * elf32-openrisc.c (elf_backend_rela_normal): Define.
1340 * elf32-ppc.c (elf_backend_rela_normal): Define.
1341 * elf32-s390.c (elf_backend_rela_normal): Define.
1342 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
1343 * elf64-ppc.c (elf_backend_rela_normal): Define.
1344 * elf64-s390.c (elf_backend_rela_normal): Define.
1345 * elf64-x86-64.c (elf_backend_rela_normal): Define.
1346 * elfxx-ia64.c (elf_backend_rela_normal): Define.
1347 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
1348 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
1349
df212a7e
NC
13502002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
1351
1352 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
1353 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
1354
3decf53c
AM
13552002-05-06 Alan Modra <amodra@bigpond.net.au>
1356
1357 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
1358 when not relocatable. Fix reloc_emitter call for K&R.
1359
f46c2da6
AM
13602002-05-04 Alan Modra <amodra@bigpond.net.au>
1361
1362 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
1363 reloading local sym addend mistakenly removed in 2002-05-01 change.
1364
1365 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
1366 (read_abbrevs): Change "offset" param to bfd_vma.
1367 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
1368 Change "abbrev_offset" to bfd_vma.
1369 (read_indirect_string): Use correct conversion chars in error
1370 message format string, cast bfd_vma's to unsigned long.
1371 (read_abbrevs): Likewise.
1372 (read_attribute_value): Likewise.
1373 (decode_line_info): Likewise.
1374 (scan_unit_for_functions): Likewise.
1375 (parse_comp_unit): Likewise.
1376
59862849
TR
13772002-05-04 Tom Rix <trix@redhat.com>
1378
1379 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
1380 (coff_swap_reloc_out): Same.
1381 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
1382 (xcoff_swap_reloc_out): Same.
1383 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
1384 case some 16 bit relocs. Add reloc value to output.
1385 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
ea1e4b0d 1386 R_RBR. Improve names.
59862849
TR
1387 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
1388 (bfd_xcoff_backend_data): Update with new reloc swap names.
1389 (bfd_pmac_xcoff_backend_data) : Same.
1390 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
1391 (xcoff64_swap_reloc_out): Same.
ea1e4b0d 1392 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
59862849 1393 R_POS. Add reloc value to output.
ea1e4b0d
AM
1394 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
1395 bit R_RBR. Improve names, masks.
59862849
TR
1396 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
1397 (bfd_xcoff_backend_data): Update with new reloc swap names.
1398 (bfd_xcoff_aix5_backend_data) : Same.
1399
b4655ea9
AM
14002002-05-04 Alan Modra <amodra@bigpond.net.au>
1401
1402 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
1403 bfd_count top_index, input_list, all_local_syms.
1404 (elf32_hppa_setup_section_lists): New function, split from
1405 elf32_hppa_size_stubs.
1406 (elf32_hppa_next_input_section): Likewise.
1407 (group_sections): Likewise.
1408 (get_local_syms): Likewise.
1409 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
1410 stubs on undefined syms too.
1411 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
8fc39d5d 1412 Only access htab elf fields when we have an elf hash table.
b4655ea9
AM
1413 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
1414 (elf32_hppa_next_input_section): Declare.
1415
301e3139
AM
14162002-05-04 Bob Byrnes <byrnes@curl.com>
1417
1418 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
1419 _bfd_new_bfd.
1420
7c5fcef7
L
14212002-05-03 H.J. Lu (hjl@gnu.org)
1422
1423 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
1424 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
1425 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
1426 to hide a global symbol.
1427 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
ea1e4b0d 1428 forced_local to true.
7c5fcef7 1429
84de6048
RH
14302002-05-02 Richard Henderson <rth@redhat.com>
1431
1432 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
1433 vs SHN_UNDEF to zero.
1434
805fc799
AM
14352002-05-02 Alan Modra <amodra@bigpond.net.au>
1436
c061c2d8
AM
1437 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
1438 16 bit reloc.
1439 <R_PPC64_SECTOFF_DS>: Likewise.
1440 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1441 SECTOFF reloc.
1442 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
1443 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1444 SECTOFF reloc.
1445
805fc799
AM
1446 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
1447 (ppc64_elf_ha_reloc): New function.
1448 (ppc64_elf_brtaken_reloc): New function.
1449 (ppc64_elf_sectoff_reloc): New function.
1450 (ppc64_elf_sectoff_ha_reloc): New function.
1451 (ppc64_elf_toc_reloc): New function.
1452 (ppc64_elf_toc_ha_reloc): New function.
1453 (ppc64_elf_toc64_reloc): New function.
1454 (ppc64_elf_unhandled_reloc): New function.
1455 (ppc64_elf_howto_raw): Use the above.
1456 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
1457 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
1458 <R_PPC64_SECTOFF_DS>: Likewise.
1459 (IS_ABSOLUTE_RELOC): Update.
1460 (struct ppc_link_hash_table): Add have_undefweak.
1461 (ppc64_elf_link_hash_table_create): Init.
1462 (func_desc_adjust): Set have_undefweak.
1463 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
1464 add the .sfpr blr when have_undefweak.
1465 (ppc64_elf_setup_section_lists): Check hash table flavour.
1466 (ppc64_elf_next_input_section): Move output_section->owner test to
1467 ppc64elf.em.
1468 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
1469 and relocatable test. Return TOCstart and don't set elf_gp.
1470 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
1471 offset calculation. Add assert on weak sym branch tweaks.
1472 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
1473 (ppc64_elf_toc): Declare.
1474 (ppc64_elf_next_input_section): Update.
ea1e4b0d 1475
818c39a3
AM
14762002-05-01 Alan Modra <amodra@bigpond.net.au>
1477
1478 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
1479 file_name.
1480
721956f4
AM
14812002-05-01 Alan Modra <amodra@bigpond.net.au>
1482
1483 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
1484 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
1485 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
1486 call branches. Correct undefined weak destination.
1487 (ppc64_elf_func_desc_adjust): Always create at least one blr in
1488 .sfpr, and correct case where either only savef* or restf* is
1489 needed.
1490
1491 Long branch stubs, multiple stub sections.
1492 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
1493 (ppc64_elf_next_input_section): Declare.
1494 * elf64-ppc.c: Move linker-only prototypes.
1495 (STUB_SUFFIX): Define.
1496 (enum ppc_stub_type): New.
1497 (struct ppc_stub_hash_entry): New.
1498 (struct ppc_branch_hash_entry): New.
1499 (struct ppc_link_hash_entry): Add stub_cache, oh.
1500 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
1501 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
1502 Rename plt_overflow to stub_error.
1503 (ppc_stub_hash_lookup): Define.
1504 (ppc_branch_hash_lookup): Define.
1505 (stub_hash_newfunc): New function.
1506 (branch_hash_newfunc): New function.
1507 (link_hash_newfunc): Init new fields.
1508 (ppc64_elf_link_hash_table_create): Likewise.
1509 (ppc64_elf_link_hash_table_free): New function.
1510 (ppc_stub_name): New function.
1511 (ppc_get_stub_entry): New function.
1512 (ppc_add_stub): New function.
1513 (create_linkage_sections): Use bfd_make_section_anyway. Create
1514 .branch_lt and .rela.branch_lt sections. Don't create .stub.
1515 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
1516 and set up for plt call stubs. Link func and func desc syms.
1517 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
1518 (func_desc_adjust): Avoid hash lookup when func desc sym available
1519 via shortcut, and set links when processing.
1520 (ppc64_elf_hide_symbol): Likewise.
1521 (allocate_dynrelocs): Don't allocate stub section here.
1522 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
1523 Remove sstub code.
1524 (ppc_type_of_stub): New function.
1525 (build_one_stub): Delete.
1526 (ppc_build_one_stub): New function.
1527 (ppc_size_one_stub): New function.
1528 (ppc64_elf_setup_section_lists): New function.
1529 (ppc64_elf_next_input_section): New function.
1530 (group_sections): New function.
1531 (get_local_syms): New function.
1532 (ppc64_elf_size_stubs): Rewrite.
1533 (ppc64_elf_build_stubs): Rewrite.
1534 (ppc64_elf_relocate_section): Look up stub entry for REL24
1535 relocs. Don't propagate REL14* to dynamic objects. Look for long
1536 branch stubs if REL14* or REL24 relocs won't reach.
1537 (bfd_elf64_bfd_link_hash_table_free): Define.
1538
09c2219b
MM
15392002-04-30 Mark Mitchell <mark@codesourcery.com>
1540
1541 * bfd/config.bfd: Add support for powerpc-*-windiss.
1542
07b678c0
TR
15432002-04-30 Tom Rix <trix@redhat.com>
1544
1545 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
1546 symbol names into the hash table.
1547
dbe341c6
TR
15482002-04-28 Tom Rix <trix@redhat.com>
1549
1550 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
ea1e4b0d 1551 calulating relocations.
dbe341c6 1552 (xcoff_complain_overflow) : Function table for relocation errors.
ea1e4b0d
AM
1553 (xcoff_ppc_relocate_section): Use relocation and complain function
1554 tables.
1555 (xcoff_complain_overflow_unsigned_func): New complain function.
dbe341c6
TR
1556 (xcoff_complain_overflow_signed_func): Same.
1557 (xcoff_complain_overflow_bitfield_func): Same.
1558 (xcoff_complain_overflow_dont_func): Same.
1559 (xcoff_reloc_type_crel): New recot function.
1560 (xcoff_reloc_type_br): Same.
1561 (xcoff_reloc_type_ba): Same.
1562 (xcoff_reloc_type_toc): Same.
1563 (xcoff_reloc_type_rel): Same.
1564 (xcoff_reloc_type_neg): Same.
1565 (xcoff_reloc_type_pos): Same.
1566 (xcoff_reloc_type_fail): Same.
1567 (xcoff_reloc_type_noop): Same.
1568 * libxcoff.h : Declare common parts for xcoff64.
1569 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
ea1e4b0d 1570 and complain function tables.
dbe341c6 1571
985142a4
AM
15722002-04-28 Alan Modra <amodra@bigpond.net.au>
1573
1574 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
1575 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
1576
eba91044
AM
15772002-04-26 Alan Modra <amodra@bigpond.net.au>
1578
e54fdaa5
AM
1579 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
1580 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
1581
a50c1845
AM
1582 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
1583 same as the output before calling elf_link_input_bfd.
1584
eba91044
AM
1585 * coffcode.h (coff_compute_section_file_positions): Set
1586 section_tail after shuffling section list.
1587
3c25c5f6
NC
15882002-04-24 Christian Groessler <chris@groessler.org>
1589
1590 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
1591 addresses are 23bit with a special layout, not plain 32bit
1592 values. Prevent relocation of immediate values.
1593
40d32fc6
CD
15942002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1595
1596 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
1597 MIPS-16 ASE flags are set, print something to indicate that.
1598
067fa4a6
AM
15992002-04-23 Alan Modra <amodra@bigpond.net.au>
1600
1601 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
1602 under which a plt call stub is used.
1603 (final_link_relocate): Similarly.
1604 (allocate_plt_static): Clear h-plabel except when plt entry is
1605 exclusively used for a plabel.
1606 (allocate_dynrelocs): Use the above to simplify plt sizing.
1607 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
1608 (elf32_hppa_link_hash_table_create): Init.
1609 (BL22_RP): Define.
1610 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
1611 (elf32_hppa_check_relocs): Set has_22bit_branch.
1612
1613 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
1614 (final_link_relocate): Likewise.
1615
af40ce3c
JJ
16162002-04-22 Jakub Jelinek <jakub@redhat.com>
1617
1618 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
1619 search table if some FDE is DW_EH_PE_aligned encoded either.
1620 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
1621
09ae86c2
JJ
16222002-04-22 Richard Smith <richard@ex-parrot.com>
1623 Jakub Jelinek <jakub@redhat.com>
1624
1625 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
1626 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
1627 encoded personality.
1628 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
1629 for CIE/FDE removal.
1630
deeb2cd7
TR
16312002-04-20 Tom Rix <trix@redhat.com>
1632
1633 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
1634
99dc0092
AM
16352002-04-20 Alan Modra <amodra@bigpond.net.au>
1636
aa3d5824
AM
1637 * archures.c (bfd_lookup_arch): Move the list order comment..
1638 (struct bfd_arch_info): ..to where it belongs.
1639 * bfd-in2.h: Regenerate.
1640
99dc0092
AM
1641 * archures.c (bfd_lookup_arch): Add comment on list order.
1642 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
1643 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
1644 is always at head of list.
1645
7831a775
NC
16462002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1647
1648 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
1649 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
1650 definition of these functions for ARM_WINCE builds as they are
1651 not used.
ea1e4b0d 1652 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
7831a775
NC
1653 for ARM_WINCE builds.
1654
16552002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1656
ea1e4b0d 1657 * coff-arm.c (bfd_arm_process_before_allocation):
7831a775
NC
1658
16592002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
1660
1661 * cpu-sh.c (scan_mach): Delete.
1662 (arch_info_struct): Replace scan_mach with bfd_default_scan.
1663 (bfd_sh_arch): Likewise.
1664
3d8dbe36
NC
16652002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
1666
1667 * ihex.c (ihex_write_object_contents): Fix check for records
1668 crossing 64K boundaries.
1669
4ab82700
AM
16702002-04-16 Alan Modra <amodra@bigpond.net.au>
1671
1672 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
1673 type rather than just assuming entries are ELF.
1674 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
1675 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
1676 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
1677 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
1678 rather than elf_link_hash_entry.
1679
036fe0fe
RH
16802002-04-15 Richard Henderson <rth@redhat.com>
1681
1682 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
1683 n32 binaries.
1684
c4f3d130
NC
16852002-04-15 Michael Snyder <msnyder@redhat.com>
1686
1687 * opncls.c (bfd_close): Write contents if writeable.
1688 Minor formatting tidy-ups.
1689
4ab82700 16902002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
1691
1692 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
1693
0c04d169
MS
16942002-04-12 Michael Snyder <msnyder@redhat.com>
1695
1696 * bfd-in.h (bfd_get_section_lma): New access macro.
1697 Minor white-space fix-up.
1698
89d4966f
AM
16992002-04-12 Alan Modra <amodra@bigpond.net.au>
1700
1701 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
1702 header pad.
1703
8d0da3c2
DD
17042002-04-09 DJ Delorie <dj@redhat.com>
1705
1706 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
1707
05793179
NC
17082002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
1709
1710 * coffcode.h (coff_read_word): New.
1711 (coff_compute_checksum): New.
1712 (coff_apply_checksum): New.
1713 (coff_write_object_contents): Call coff_apply_checksum () to
1714 apply checksum to PE image.
1715
46fe4e66
AM
17162002-04-08 Randolph Chung <tausq@debian.org>
1717
1718 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
1719 (elf32_hppa_final_link): Split out sorting logic to..
1720 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
1721 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
1722
3b5b409c
AC
17232002-04-07 Andrew Cagney <ac131313@redhat.com>
1724
1725 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
1726 pattern.
1727 * configure: Re-generate.
1728
ac7b6ceb
AC
17292002-04-07 Andrew Cagney <ac131313@redhat.com>
1730
1731 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
1732 is greater or equal to 4.3.3.
1733 * configure: Regenerate.
1734 Fix PR gdb/344.
1735
44aa49bb
HPN
17362002-04-05 Hans-Peter Nilsson <hp@axis.com>
1737
1738 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
1739 R_CRIS_32_PCREL>: Fix typo in name.
1740 (cris_elf_check_relocs): Always create .rela.got here when
1741 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
1742 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
1743 assume it's created.
1744
e2d34d7d
DJ
17452002-04-04 Daniel Jacobowitz <drow@mvista.com>
1746
1747 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
1748 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
1749 define.
1750 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
1751 * bfd.c (bfd_link_hash_table_free): Define.
1752 * binary.c (binary_bfd_link_hash_table_free): Define.
1753 * bout.c (b_out_bfd_link_hash_table_free): Define.
1754 * coff-rs6000.c (rs6000coff_vec): Include
1755 _bfd_generic_link_hash_table_free.
1756 (pmac_xcoff_vec): Likewise.
1757 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1758 (aix5coff64_vec): Likewise.
1759 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
1760 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
1761 (bfd_elf32_bfd_link_hash_table_free): Define.
1762 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
1763 (bfd_elf32_bfd_link_hash_table_free): Define.
1764 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
1765 define.
1766 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
1767 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
1768 * ieee.c (ieee_bfd_link_hash_table_free): Define.
1769 * ihex.c (ihex_bfd_link_hash_table_free): Define.
1770 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
1771 (_bfd_generic_link_hash_table_free): Add prototype.
1772 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
1773 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
1774 * linker.c (_bfd_generic_link_hash_table_free): New function.
1775 * mmo.c (mmo_bfd_link_hash_table_free): Define.
1776 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
1777 * oasys.c (oasys_bfd_link_hash_table_free): Define.
1778 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
1779 * som.c (som_bfd_link_hash_table_free): Define.
1780 * srec.c (srec_bfd_link_hash_table_free): Define.
1781 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
1782 * versados.c (versados_bfd_link_hash_table_free): Define.
1783 * vms.c (vms_bfd_link_hash_table_free): New function.
1784 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
1785
1786 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
1787 instead of bfd_alloc.
1788 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
1789 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
1790 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
1791 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
1792 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
1793 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
1794 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
1795 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
1796 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
1797 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
1798 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
1799 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
1800 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
1801 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
1802 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
1803 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
1804 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
1805 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
1806 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
1807 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
1808 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1809 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
1810 * m68klinux.c (linux_link_hash_table_create): Likewise.
1811 * sparclinux.c (linux_link_hash_table_create): Likewise.
1812 * sunos.c (sunos_link_hash_table_create): Likewise.
1813 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
1814
1815 * targets.c: Add _bfd_link_hash_table_free to xvec.
1816
1817 * bfd-in2.h: Regenerate.
1818 * libbfd.h: Regenerate.
1819 * libcoff.h: Regenerate.
1820
830629ab
AM
18212002-04-04 Alan Modra <amodra@bigpond.net.au>
1822
1823 * dep-in.sed: Cope with absolute paths.
1824 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
1825 Run "make dep-am".
1826 * Makefile.in: Regenerate.
1827 * coff-arm.c: Fix copyright date.
1828 * cpu-h8300.c: Likewise.
1829 * cpu-i370.c: Likewise.
1830 * cpu-s390.c: Likewise.
1831 * cpu-mips.c: Likewise.
1832 * po/SRC-POTFILES.in: Regenerate.
1833
c6e90b02
TS
18342002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1835
1836 * Makefile.am: Add elfxx-mips.c to the known backends.
1837 (elf32-mips.lo): remove dependency to coff/external.h.
1838 * Makefile.in: Regenerate.
1839 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
1840 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
1841 accordingly.
1842 * configure: Regenerate.
1843 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
1844 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
1845 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
1846 MIPS specific backend functions.
1847 * elf32-mips.c: Moved most code to elfxx-mips.c.
1848 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
1849 static.
1850 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
1851 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
1852 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
1853 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
1854 interface to allow selection of the right REL or RELA howto table.
1855 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
1856 static. Let it refuse n32 objects.
1857 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
1858 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
1859 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
1860 (elf32_mips_ignore_discarded_relocs): Rename from
1861 _bfd_elf32_mips_ignore_discarded_relocs.
1862 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
1863 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
1864 (elf_mips_howto_table_rela): Remove.
1865 * elf64-mips.c: Moved most code to elfxx-mips.c.
1866 (bfd_elf64_bfd_reloc_type_lookup): Make static.
1867 (mips_elf64_rtype_to_howto): New function.
1868 (mips_elf64_object_p): Likewise.
1869 (elf64_mips_irix_compat): Likewise.
1870 * elfxx-mips.c: New file containing common code merged together from
1871 elf32-mips.c and elf64-mips.c.
1872 * elfxx-mips.h: New file containing MIPS specific prototypes from
1873 elf-bfd.h.
1874 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
1875 elf_backend_mips_rtype_to_howto.
1876
d8dce692
AM
18772002-04-04 Alan Modra <amodra@bigpond.net.au>
1878
1879 * srec.c (MAXCHUNK, Chunk): Revise comments.
1880 (srec_write_record): Correct buffer size.
1881 (srec_write_header): Do without intermediate buffer.
1882 (srec_write_section): Validate Chunk.
1883 (srec_write_terminator): Pass NULL instead of dummy buffer.
1884 (srec_write_symbols): Pass file and symbol names directly to
1885 bfd_bwrite so sprintf won't overflow buffer.
1886
b88a866a
JJ
18872002-04-03 Jakub Jelinek <jakub@redhat.com>
1888
1889 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
1890 PC relative relocs against hidden symbols.
1891 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1892
d7866f04
AM
18932002-04-03 Alan Modra <amodra@bigpond.net.au>
1894
1895 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
1896 LMAs, loop over segments until p_vaddr and p_memsz specify an
1897 extent enclosing the section.
1898
9e81ee67
NC
18992002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
1900
1901 * ihex.c (ihex_write_object_contents): Do not allow records to
1902 cross a 64K boundary - wrap if necessary.
1903
d2b64500
JT
19042002-04-01 Nathan Williams <nathanw@wasabisystems.com>
1905
1906 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
1907 which caused the returned LWP ID to always be 0.
1908
e36f7d53
RH
19092002-04-01 Richard Henderson <rth@redhat.com>
1910
1911 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1912 (elf32_sparc_relocate_section): Use it to figure out when to
1913 initialize .got entries.
1914 * elf64-sparc.c: Similarly.
1915
e92d460e
AM
19162002-03-28 Alan Modra <amodra@bigpond.net.au>
1917
1918 * linker.c (link_action): Ignore duplicate warning syms.
1919 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
1920 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
1921 (elf_adjust_dynamic_symbol): Likewise.
1922 (elf_export_symbol): Likewise.
1923 (elf_link_find_version_dependencies): Likewise.
1924 (elf_link_assign_sym_version): Likewise.
1925 (elf_link_sec_merge_syms): Likewise.
1926 (elf_link_output_extsym): Likewise.
1927 (elf_gc_sweep_symbol): Likewise.
1928 (elf_gc_propagate_vtable_entries_used): Likewise.
1929 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1930 (elf_gc_allocate_got_offsets): Likewise.
1931 (elf_collect_hash_codes): Likewise.
1932 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
1933 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
1934 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
1935 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
1936 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
1937 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
1938 (elf_cris_discard_excess_dso_dynamics): Likewise.
1939 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
1940 (mark_PIC_calls): Likewise.
1941 (allocate_plt_static): Likewise.
1942 (allocate_dynrelocs): Likewise.
1943 (readonly_dynrelocs): Likewise.
1944 * elf32-i386.c (allocate_dynrelocs): Likewise.
1945 (readonly_dynrelocs): Likewise.
1946 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
1947 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
1948 * elf32-mips.c (mips_elf_output_extsym): Likewise.
1949 (mips_elf_sort_hash_table_f): Likewise.
1950 (mips_elf_check_mips16_stubs): Likewise.
1951 * elf32-s390.c (allocate_dynrelocs): Likewise.
1952 (readonly_dynrelocs): Likewise.
1953 * elf32-sh.c (sh_elf_discard_copies): Likewise.
1954 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
1955 (xstormy16_relax_plt_realloc): Likewise.
1956 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
1957 (elf64_alpha_output_extsym): Likewise.
1958 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
1959 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
1960 (mips_elf64_check_mips16_stubs): Likewise.
1961 (mips_elf64_output_extsym): Likewise.
1962 * elf64-ppc.c (func_desc_adjust): Likewise.
1963 (allocate_dynrelocs): Likewise.
1964 (readonly_dynrelocs): Likewise.
1965 * elf64-s390.c (allocate_dynrelocs): Likewise.
1966 (readonly_dynrelocs): Likewise.
1967 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
1968 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1969 (readonly_dynrelocs): Likewise.
1970 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
1971 * aoutx.h (aout_link_write_other_symbol): Likewise.
1972 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
1973 (_bfd_coff_write_global_sym): Likewise.
1974 * i386linux.c (linux_tally_symbols): Likewise.
1975 * m68klinux.c (linux_tally_symbols): Likewise.
1976 * sparclinux.c (linux_tally_symbols): Likewise.
1977 * pdp11.c (aout_link_write_other_symbol): Likewise.
1978 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
1979 * xcofflink.c (xcoff_build_ldsyms): Likewise.
1980 (xcoff_write_global_symbol): Likewise.
1981
1982 * cofflink.c (_bfd_coff_final_link): Formatting.
1983 * cpu-mips.c (mips_compatible): Make static, prototype.
1984 * elf32-i386.c (elf_i386_check_relocs): Formatting.
1985 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1986 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
1987 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
1988 (mips_elf64_final_link): Likewise.
1989 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
1990 prototype.
1991
2106126f
NC
19922002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
1993
1994 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
1995 (SWAP_OUT_RELOC_OFFSET): Define.
1996
b99d1833
AM
19972002-03-27 Gregory Steuck <greg@nest.cx>
1998
1999 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
2000 terminating NULL if empty symbol table.
2001 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
2002
ad43ed4c
L
20032002-03-26 H.J. Lu (hjl@gnu.org)
2004
2005 * elflink.h (elf_link_input_bfd): Revert the last change since
2006 the gcc exception handling isn't fixed yet.
2007
3851fca4
L
20082002-03-26 H.J. Lu (hjl@gnu.org)
2009
2010 * elflink.h (elf_link_input_bfd): Complain about relocations
2011 against local symbols in discarded sections.
2012
b91afed7
AM
20132002-03-26 Alan Modra <amodra@bigpond.net.au>
2014
2015 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
2016
dba143ef
AM
20172002-03-23 Alan Modra <amodra@bigpond.net.au>
2018
2019 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
2020 section file offset for !SEC_LOAD sections.
2021
ee29b9fb
RE
20222002-03-21 Richard Earnshaw <rearnsha@arm.com>
2023
830629ab
AM
2024 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
2025 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 2026
54327882
AM
20272002-03-21 Alan Modra <amodra@bigpond.net.au>
2028
2029 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
2030 Whitespace changes.
2031 * archive.c: Update copyright date.
2032 * bfd-in2.h: Regenerate.
2033 * libbfd.h: Regenerate.
2034 * Makefile.am: Run "make dep-am"
2035 * Makefile.in: Regenerate.
2036 * po/SRC-POTFILES.in: Regenerate.
2037
1ee24f27
DJ
20382002-03-20 Daniel Jacobowitz <drow@mvista.com>
2039
2040 * dwarf2.c (struct funcinfo): Move up.
2041 (lookup_address_in_function_table): New argument function_ptr.
2042 Set it.
2043 (lookup_address_in_line_table): New argument function. If function
2044 is non-NULL, use it to handle ``addr'' before the first line note of
2045 the function.
2046 (comp_unit_find_nearest_line): Update and swap calls to
2047 lookup_address_in_function_table and lookup_address_in_line_table.
2048 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
2049 N_SLINE encountered if we see an N_FUN before any N_SLINE.
2050
51b9608c
TR
20512002-03-20 Tom Rix <trix@redhat.com>
2052
ea1e4b0d 2053 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
51b9608c 2054 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
ea1e4b0d 2055 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
51b9608c 2056
789c90aa
TR
20572002-03-19 Tom Rix <trix@redhat.com>
2058
ea1e4b0d 2059 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
789c90aa
TR
2060 dynamic objects in archives.
2061
1da54d81
HPN
20622002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
2063
2064 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
2065 STT_NOTYPE symbols to STT_OBJECT.
2066
7831a775 20672002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
2068
2069 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
2070
eb1e0e80
NC
20712002-03-18 Tom Rix <trix@redhat.com>
2072
2073 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
2074 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
2075 * coff-rs6000 (do_pad) : New function for archive padding.
2076 (do_copy) : New function for object file copying in archives.
2077 (do_shared_object_padding) : New function for padding shared
2078 objects to their text section alignment in archives.
2079 (bfd_xcoff_ar_achive_set_magic) : Stub.
2080 (xcoff_write_armap_big) : Use do_copy and do_pad.
2081 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
2082 do_copy and do_pad.
2083 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
ea1e4b0d 2084 bfd_xcoff_magic_number.
eb1e0e80
NC
2085 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
2086 fop.
2087 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
2088 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
2089 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
2090 * rs6000-core.c : Update copyright date.
ea1e4b0d 2091 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
eb1e0e80
NC
2092 csectpp.
2093 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
2094 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
2095 (coff_set_flags) : Use bfd_xcoff_magic_number.
2096 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
2097 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
2098 * Makefile.am : Same.
2099 * config.bfd : Same.
2100 * targets.c : Same.
2101 * configure : Regnerate.
2102 * Makefile.in : Same.
2103 * bfd-in2.h : Same.
2104
a1c259a1
NC
21052002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2106
2107 * po/fr.po: Updated version.
2108
4dae1ae7
AM
21092002-03-18 Alan Modra <amodra@bigpond.net.au>
2110
2111 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
2112 * libbfd.h: Regenerate.
2113 * archive.c (coff_write_armap): Pass on failures from
2114 bfd_write_bigendian_4byte_int.
2115
36b4f6e7
L
21162002-03-14 H.J. Lu <hjl@gnu.org>
2117
2118 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
2119 error to bfd_error_nonrepresentable_section for reinit_array
2120 section in DSO.
2121
a1aefc76
NC
21222002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
2123
a181be0a
NC
2124 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
2125 OR it in rather than replacing previously selected flags.
2126
a1aefc76
NC
2127 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
2128 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
2129
c119f9b8
AM
21302002-03-14 Alan Modra <amodra@bigpond.net.au>
2131
2132 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
2133 (N): Use the above.
2134 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
2135 ensure reloc size matches before calling elf_link_input_bfd.
2136 Add an assert to check reloc size when counting output relocs.
2137
c295a511
NC
21382002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
2139
2140 * mmo.c (mmo_get_loc): Return NULL rather than false.
2141
9ce88e60
NC
21422002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2143
2144 * po/fr.po: Updated version.
2145
4ddafab0
AM
21462002-03-13 Alan Modra <amodra@bigpond.net.au>
2147
b74fa2cd
AM
2148 * archures.c (bfd_default_compatible): Test bits_per_word.
2149 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
2150 bfd_default_compatible.
2151 * cpu-i370.c (i370_compatible): Likewise.
2152 * cpu-sparc.c (sparc_compatible): Likewise.
2153 * cpu-h8300.c (compatible): Test in->arch == out->arch.
2154
40b829d4
AM
2155 * elflink.h: Formatting fixes.
2156 (elf_link_output_extsym): Merge undefined and undef weak cases.
2157
4ddafab0
AM
2158 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
2159 when word size of input matches output word size.
2160
dd53c801
AJ
21612002-03-12 Andreas Jaeger <aj@suse.de>
2162
2163 * cpu-i386.c (i386_compatible): New. Use it instead of
2164 bfd_default_compatible.
2165
aa066ac8
L
21662002-03-07 H.J. Lu (hjl@gnu.org)
2167
2168 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
2169 as the type for bfd_reloc_val.
2170
1bf42538
JL
21712002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2172
2173 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
2174 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
2175 (elf_hppa_final_link_relocate): Correct relocations for indirect
2176 references to local data through the DLT. Fix .opd creation for
2177 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
2178 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
2179 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
2180 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2181 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
2182 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
2183 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2184
86eaf01e
JJ
21852002-03-05 Jakub Jelinek <jakub@redhat.com>
2186
2187 * merge.c (_bfd_merge_sections): Don't segfault if there
2188 is nothing to merge due to GC.
2189
c44233aa
AM
21902002-03-05 Alan Modra <amodra@bigpond.net.au>
2191
039cc25f
AM
2192 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
2193 symbols that have been forced local.
2194
c44233aa
AM
2195 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
2196 to output forced local syms for non-shared link.
2197 (elf_link_output_extsym): Tweak condition for calling backend
2198 adjust_dynamic_symbol so that previous behaviour is kept.
2199 Whitespace changes throughout file.
2200
25e27870
L
22012002-03-04 H.J. Lu <hjl@gnu.org>
2202
2203 * elf.c (bfd_section_from_shdr): Handle special sections,
2204 .init_array, .fini_array and .preinit_array.
2205 (elf_fake_sections): Likewise.
2206
2207 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
2208 DT entry only if the section is in output for .init_array,
2209 .fini_array and .preinit_array. Complain about .preinit_array
2210 section in DSO.
2211 (elf_bfd_final_link): Warn zero size for .init_array,
2212 .fini_array and .preinit_array sections.
2213
2214 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
2215 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
2216 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
2217 .preinit_array.
2218
bb2a49f2
AM
22192002-03-04 Alan Modra <amodra@bigpond.net.au>
2220
2221 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
2222 * configure: Regenerate.
2223
38487e5e
TR
22242002-03-02 Tom Rix <trix@redhat.com>
2225
c44233aa
AM
2226 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
2227 symbolic equiv.
38487e5e
TR
2228 * coff-rs6000.c (xcoff_howto_table): Same.
2229
30831527
RH
22302002-03-01 David Mosberger <davidm@hpl.hp.com>
2231
2232 * elflink.h (size_dynamic_sections): If section named
2233 ".preinit_array" exists, create DT_PREINIT_ARRAY and
2234 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
2235 ".init_array" and ".fini_array".
2236 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
2237 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
2238 DT_FINI_ARRAY.
2239
c8e5ddc8
AM
22402002-02-26 Andrew Macleod <amacleod@cygnus.com>
2241
2242 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
2243 dynsyms.
2244
96e0dda4
AM
22452002-02-25 Alan Modra <amodra@bigpond.net.au>
2246
1c5b6bf8
AM
2247 * elf64-hppa.h: Update copyright date.
2248
96e0dda4
AM
2249 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
2250 (ppc64_elf_relocate_section): Don't generate power4 style branch
2251 hints for *_BRTAKEN and *_BRNTAKEN relocs.
2252
0fb19cbc
JJ
22532002-02-22 Jakub Jelinek <jakub@redhat.com>
2254
2255 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
2256 last patch.
2257 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2258
c434dee6
AJ
22592002-02-21 Andreas Jaeger <aj@suse.de>
2260
2261 * elf64-x86-64.c: Major rework that introduces all recent changes
2262 to the x86-64 backend. Get a closer match to elf32-i386.
2263 (struct elf64_x86_64_dyn_relocs): Rename from
2264 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
2265 all users.
2266 (struct elf64_x86_64_link_hash_table): Add short cuts to some
2267 sections.
2268 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
2269 remove casts, initialize new hash members.
2270 (create_got_section): New.
2271 (elf64_x86_64_create_dynamic_sections): New.
2272 (elf64_x86_64_copy_indirect_symbol): New.
2273 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
2274 relocs, .got or .relgot here but do it in allocate_dynrelocs.
2275 Reference count possible .plt and .got entries. Don't test input
2276 section SEC_READONLY here to try to avoid copy relocs, and keep
2277 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
2278 DF_TEXTREL here. Delay setting of variables until needed. Cache
2279 pointer to "sreloc" section in elf_section_data. Tweak condition
2280 under which .got created. Report files with bad relocation
2281 section names.
2282 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
2283 Reference count possible .plt entries. Don't deallocate .got and
2284 .relgot space here.
2285 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
2286 do copy reloc processing for weakdefs. Remove redundant casts and
2287 aborts. Delay setting of vars until needed. Move creation of
2288 dynamic symbols and allocation of .plt and .rela.plt to
2289 allocate_dynrelocs. Replace BFD_ASSERT with abort.
2290 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2291 (allocate_dynrelocs): New.
2292 (readonly_dynrelocs): New.
2293 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
2294 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
2295 Zero out the dynamic allocated content space.
2296 (elf64_x86_64_discard_copies): Removed.
2297 (elf64_x86_64_relocate_section): Make use of dynamic section
2298 short-cuts. Localise vars, and delay setting. Better error
2299 reporting, replace BFD_ASSERT with abort. Check
2300 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
2301 regular object file and tread the weak definition as the normal
2302 one. Don't discard relocs for undefweak or undefined symbols and
2303 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
2304 relocs.
2305 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
2306 symbols that have been forced local. Use same test to decide if
2307 we can use a relative reloc for got as relocate_section. Expand
2308 SHN_UNDEF comment. Move expressions out of function calls.
2309 Replace BFD_ASSERT with abort.
2310 (bfd_elf64_bfd_final_link): Removed.
2311 (elf_backend_copy_indirect_symbol): Define.
2312
ff3a6ee3
TR
23132002-02-20 Tom Rix <trix@redhat.com>
2314
2315 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
2316 (_bfd_xcoff_reloc_type_lookup): Use it.
2317 * coff64-rs6000.c (xcoff64_howto_table): Same.
2318 (xcoff64_reloc_type_lookup): Same.
c434dee6 2319
a68d41fb
AM
23202002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2321
2322 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
2323 little endian.
2324
befc3abb
MS
23252002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2326
2327 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
2328 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
2329 * bfd-in2.h: Regenerate.
2330 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
2331 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
2332 with "s390:64-bit".
2333 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
2334 (elf_s390_reloc_type_lookup): Likewise.
2335 (elf_s390_check_relocs): Likewise.
2336 (elf_s390_gc_sweep_hook): Likewise.
2337 (elf_s390_relocate_section): Likewise.
2338 (elf_s390_object_p): Use renamed architecture define.
2339 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
2340
6eeeec9b
FCE
23412002-02-19 Frank Ch. Eigler <fche@redhat.com>
2342
2343 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
2344
0bb2d96a
JJ
23452002-02-19 Jakub Jelinek <jakub@redhat.com>
2346
2347 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
2348 absptr -> pcrel optimization for shared libs.
2349 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
2350 library cannot be converted to pcrel.
2351 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
2352 relative.
2353 * elf32-i386.c (elf_i386_relocate_section): If
2354 _bfd_elf_section_offset returned -2, skip, but make sure the
2355 relocation is installed.
2356 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
2357 * elf32-cris.c (cris_elf_relocate_section): Likewise.
2358 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
2359 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2360 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2361 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2362 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2363 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2364 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2365 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
2366 * elf64-s390.c (elf_s390_relocate_section): Likewise.
2367 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2368 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2369 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2370 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
2371 _bfd_elf_section_offset returning -2 the same way as -1.
2372 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
2373 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
2374 and BFD_ASSERT.
2375 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
2376
69f284c7
TR
23772002-02-18 Tom Rix <trix@redhat.com>
2378
2379 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
2380 (bfd_xcoff_size_dynamic_sections): Same.
2381 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
2382 (bfd_xcoff_size_dynamic_sections): Same.
2383 * coff-rs6000.c (xcoff_generate_rtinit): Same.
2384 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
2385 * libxcoff.h (struct xcoff_backend_data_rec): Same.
2386 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
2387 * bfd-in2.h: Regenerate.
2388
82bd7b59
AM
23892002-02-18 Alan Modra <amodra@bigpond.net.au>
2390
2391 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
2392 (struct ppc_link_hash_table): Add sfpr.
2393 (ppc64_elf_link_hash_table_create): Init it.
2394 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
2395 .glink out to..
2396 (create_linkage_sections): ..here. Make .sfpr too.
2397 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
2398 dynobj early.
2399 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
2400 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
2401 ._restf* functions, and create as needed.
2402 (func_desc_adjust): Only force_local for shared libs.
2403
ef1355e8
NC
24042002-02-18 David O'Brien <obrien@FreeBSD.org>
2405
2406 * configure.in: Bump version number post 2.12 branching.
2407 * configure: Regenerate.
2408
dfa36a69
HPN
24092002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2410
2411 * mmo.c: Correct and improve comments.
2412 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
2413 zero-pad. Use input to fill up non-empty bfd buffer.
2414 (mmo_flush_chunk): New function.
2415 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
2416 changed. Don't emit location specifier if VMA is same as
2417 *LAST_VMAP after omitting leading zero contents. Call
2418 mmo_flush_chunk before emitting location specifier.
2419 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
2420 with mmo_write_loc_chunk calls.
2421 (mmo_internal_write_section): Call mmo_flush_chunk after
2422 mmo_write_chunk.
2423 (mmo_write_symbols_and_terminator): Move :Main to first position
2424 in symbol array. Add faked one if it does not exist if there are
2425 other symbols. Don't add it if there are no symbols at all. Move
2426 out test for value of :Main from symbol loop. Rename table
2427 fakemain to maintable and variable mainsym to fakemain.
2428
ccf00ab6
RH
24292002-02-15 Richard Henderson <rth@redhat.com>
2430
2431 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
2432 section with no got matches any got. Simplify error generaion.
2433
88eaccc2
AM
24342002-02-15 Alan Modra <amodra@bigpond.net.au>
2435
fd96f80f
AM
2436 Support arbitrary length fill patterns.
2437 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
2438 (_bfd_default_link_order): Remove bfd_fill_link_order code.
2439 Call default_data_link_order.
2440 (default_fill_link_order): Delete.
2441 (default_data_link_order): New function.
2442 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
2443 of bfd_fill_link_order with bfd_data_link_order.
2444 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
2445 * elf64-mips.c (mips_elf64_final_link): Likewise.
2446
88eaccc2
AM
2447 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
2448 Correct value returned in "end" for "0x<non-hex>".
2449
e2fd756b
NC
24502002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
2451
2452 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
2453 (scan): Test against 'mach' field in info structure.
2454
edd29cf9
AM
24552002-02-14 Alan Modra <amodra@bigpond.net.au>
2456
2457 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
2458
1e30956e 24592002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
2460
2461 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
2462 EF_M68000.
2463
bf36db18
NC
24642002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
2465
2466 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
2467 non-zero physical addresses when adjusting the LMAs of new
2468 sections.
bf36db18 2469
189c6563
AM
24702002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2471
2472 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
2473 from _bfd_elf_hppa_gen_reloc_type.
2474 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
2475 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
2476 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
2477 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
2478
e948afaf
AO
24792002-02-12 Alexandre Oliva <aoliva@redhat.com>
2480
2481 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
2482 loading its contents if there's nothing to do in it.
2483
19397422
AM
24842002-02-12 Alan Modra <amodra@bigpond.net.au>
2485
0ad3a73b
AM
2486 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
2487 64k boundary.
2488
19397422
AM
2489 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
2490 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
2491 (ppc64_elf_finish_dynamic_sections): Set values for them.
2492
51316059
MS
24932002-02-11 Michael Snyder <msnyder@redhat.com>
2494
2495 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
2496 * elf.c (elfcore_grok_pstatus): Add prototype.
2497 (elfcore_grok_lwpstatus): Add prototype.
2498 (elfcore_write_lwpstatus): New function.
2499 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
2500
518313c3
AO
25012002-02-11 Alexandre Oliva <aoliva@redhat.com>
2502
2503 * elf32-sh.c: Added missing prototypes.
2504 * elf32-sh64.c: Likewise.
2505 (sh_elf_align_loads): Mark unused args as such.
2506 * elf64-sh64.c: Added missing prototypes.
2507 (struct elf_sh64_link_hash_entry): Fix typo.
2508 (sh_elf64_relocate_section): Fix info argument passed to
2509 _bfd_elf_section_offset.
2510
2c73f9d8
AM
25112002-02-11 Alan Modra <amodra@bigpond.net.au>
2512
2513 * Makefile.am: "make dep-am".
2514 * Makefile.in: Regenerate.
2515 * aclocal.m4: Regenerate.
2516 * config.in: Regenerate.
2517 * configure: Regenerate.
2518
d426c6b0
DJ
25192002-02-10 Daniel Jacobowitz <drow@mvista.com>
2520
2521 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
2522 variable warnings.
2523 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
2524 comparison warning.
2525 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
2526 cast warnings for the common case.
2527
e58ee0cd
HPN
25282002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
2529
2530 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
2531 vectors.
2532 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
2533 vectors.
2534
7793f4d0
RH
25352002-02-09 Richard Henderson <rth@redhat.com>
2536
2537 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
2538 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
2539 (elf64_alpha_relocate_section): Likewise.
2540 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
2541 * bfd-in2.h, libbfd.h: Rebuild.
2542
7e799044
HPN
25432002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2544
2545 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
2546 that base-plus-offset reloc accounting is consistent.
2547 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
2548 up to date for undefined symbols.
2549
027d73eb
EC
25502002-02-08 Eric Christopher <echristo@redhat.com>
2551
2552 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2553
2554 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
2555 sections for the O32 ABI.
2556
517662d4
CD
25572002-02-08 Chris Demetriou <cgd@broadcom.com>
2558
2559 * elf32-arm.h: Fix formatting of _("...").
2560 * elf32-d10v.c: Likewise.
2561 * elf32-m68k.c: Likewise.
2562 * elf32-mips.c: Likewise.
2563
5e37cc46
NC
25642002-02-08 Ivan Guzvinec <ivang@opencores.org>
2565
2566 * coff-or32.c: Fix compile time warning messages.
2567
fbca6ad9
AO
25682002-02-08 Alexandre Oliva <aoliva@redhat.com>
2569
2570 Contribute sh64-elf.
2571 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
2572 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
2573 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
2574 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
2575 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
2576 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
2577 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
2578 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
2579 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
2580 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
2581 New relocs.
2582 * libbfd.h, bfd-in2.h: Rebuilt.
2583 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
2584 (sh_reloc_map): Map them.
2585 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2586 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
2587 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
2588 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2589 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
2590 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
2591 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
2592 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
2593 datalabel_got_offset.
2594 (sh_elf_link_hash_newfunc): Initialize it.
2595 (sh_elf_relocate_section): Augment the scope of
2596 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
2597 GOT and GOTOFF handling to new SHmedia relocation types. Support
2598 GOT_BIAS.
2599 (sh_elf_check_relocs): Likewise.
2600 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
2601 PLT entries using movi_shori_putval. Support GOT_BIAS.
2602 (sh_elf_finish_dynamic_sections): Likewise.
2603 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
2604 relocation, it's now done by the caller.
2605 (GOT_BIAS): New.
2606 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
2607 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
2608 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
2609 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
2610 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
2611 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
2612 sh64_elf64_hash_table): New.
2613 (sh_elf64_howto_table): Introduce new relocs.
2614 (sh_elf64_info_to_howto): Accept new PIC relocs.
2615 (sh_elf64_relocate_section): Augment the scope of
2616 seen_stt_datalabel. Support new PIC relocs.
2617 (sh_elf64_check_relocs): Support new PIC relocs.
2618 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
2619 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
2620 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
2621 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
2622 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
2623 movi_shori_putval, movi_3shori_putval,
2624 sh64_elf64_create_dynamic_sections,
2625 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
2626 sh64_elf64_size_dynamic_sections,
2627 sh64_elf64_finish_dynamic_symbol,
2628 sh64_elf64_finish_dynamic_sections): New.
2629 (elf_backend_create_dynamic-sections,
2630 bfd_elf64_bfd_link_hash_table_create,
2631 elf_backend_adjust_dynamic_symbol,
2632 elf_backend_size_dynamic_sections,
2633 elf_backend_finish_dynamic_symbol,
2634 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2635 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2636 elf_backend_got_header_size, elf_backend_plt_header_size):
2637 Define.
2638 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
2639 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
2640 match official numbers and names; moved unmaching ones to the
2641 range 0xf2-0xff.
2642 * elf32-sh64.c, elf64-sh64.c: Likewise.
2643 2001-03-12 DJ Delorie <dj@redhat.com>
2644 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
2645 sections.
2646 2001-03-12 DJ Delorie <dj@redhat.com>
2647 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
2648 be aligned.
2649 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
2650 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2651 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
2652 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
2653 .cranges section with SEC_SORT_ENTRIES set.
2654 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
2655 incoming sorted .cranges section.
2656 (sh64_bfd_elf_copy_private_section_data): New.
2657 (sh64_elf_final_write_processing): Only sort .cranges and modify
2658 start address if called by linker.
2659 2001-01-08 Ben Elliston <bje@redhat.com>
2660 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
2661 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
2662 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
2663 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2664 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
2665 line. Add comments before all entries.
2666 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
2667 comment.
2668 (sh_elf64_reloc): Correct head comment.
2669 (sh_elf64_relocate_section): Correct spacing.
2670 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
2671 instead call reloc_dangerous callback.
2672 <case R_SH_SHMEDIA_CODE>: New case.
2673 (sh_elf64_gc_mark_hook): Correct spacing.
2674 (sh_elf64_check_relocs): Ditto.
2675 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
2676 New case.
2677 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
2678 functions.
2679 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
2680 clarify describing comment. Add comments before all entries.
2681 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
2682 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
2683 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2684 Sort .cranges section in final link. Prepare to set bit 0 on
2685 entry address.
2686 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
2687 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
2688 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
2689 .cranges section.
2690 (sh64_backend_section_from_shdr): New, to recognize
2691 SHT_SH5_CR_SORTED on incoming .cranges section.
2692 (elf_backend_section_from_shdr): Define.
2693 (sh64_elf_final_write_processing): Sort outgoing .cranges
2694 section. (New, temporarily disabled:) Set bit 0 on entry address
2695 according to ISA type.
2696 (sh64_find_section_for_address): New.
2697 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
2698 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
2699 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
2700 bfd_malloc, not xmalloc.
2701 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
2702 global.
2703 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
2704 temporarily disabled) setting bit 0 on entry address.
2705 (elf_backend_final_write_processing): Define.
2706 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2707 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
2708 be a proper relocation for PTA and PTB rather than a marker.
2709 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
2710 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
2711 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
2712 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
2713 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
2714 Zero src_mask.
2715 * elf64-sh64.c: Ditto.
2716 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
2717 * elf32-sh64.c: Include opcodes/sh64-opc.h
2718 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
2719 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
2720 parameters. No unused parameters. Caller changed.
2721 <case R_SH_PT_16>: New case.
2722 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
2723 * Makefile.in: Regenerate.
2724 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2725 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
2726 all code sections.
2727 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2728 (sh64_elf_merge_private_data): Ditto.
2729 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
2730 to access stored section flags.
2731 (sh64_elf_final_write_processing): Return immediately unless
2732 called by linker. Use sh64_elf_section_data (cranges) to get size
2733 of linker-generated cranges entries.
2734 (sh64_elf_copy_private_data): Add missing "return true".
2735 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2736 (sh_elf64_merge_private_data): Ditto.
2737 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2738 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
2739 elf64-sh64.c:sh64_elf_fake_sections.
2740 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
2741 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2742 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
2743 (sh64_elf_final_write_processing): New.
2744 (elf_backend_final_write_processing): Define.
2745 (sh64_elf_fake_sections): Get header flags from tdata field.
2746 (sh64_elf_copy_private_data): Do not call
2747 sh64_elf_copy_private_data_internal, just copy e_flags field.
2748 (sh64_elf_merge_private_data): Do not call
2749 sh64_elf_copy_private_data_internal.
2750 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2751 Remove EF_SH64_ABI64, let ELF size make difference.
2752 Remove SH64-specific BFD section flag.
2753 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
2754 containing SHmedia through elf_section_data (asect)->tdata
2755 non-zero, not using a BFD section flag.
2756 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
2757 (sh64_elf_merge_private_data): Similar.
2758 (elf_backend_section_flags): Don't define.
2759 (sh64_elf_backend_section_flags): Delete.
2760 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
2761 not EF_SH64_ABI64.
2762 (sh_elf64_merge_private_data): Similar.
2763 * section.c (Section flags definitions): Don't define
2764 SEC_SH_ISA_SHMEDIA.
2765 (bfd-in2.h): Regenerate.
2766 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
2767 Make DataLabel references work with partial linking.
2768 * elf32-sh64.c: Fix formatting.
2769 (sh64_elf_link_output_symbol_hook): New.
2770 (elf_backend_link_output_symbol_hook): Define to
2771 sh64_elf_link_output_symbol_hook.
2772 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
2773 undefined if partial linking. Adjust sanity check.
2774 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
2775 (elf_backend_link_output_symbol_hook): Define to
2776 sh64_elf64_link_output_symbol_hook.
2777 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
2778 undefined if partial linking. Adjust sanity check.
2779 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
2780 Implement semantics for inter-file DataLabel references.
2781 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
2782 (sh64_elf64_add_symbol_hook): New.
2783 (sh_elf64_relocate_section): If passing an indirect symbol with
2784 st_type STT_DATALABEL on the way to a symbol with st_other
2785 STO_SH5_ISA32, do not bitor 1 to the relocation.
2786 (elf_backend_add_symbol_hook): Define to
2787 sh64_elf64_add_symbol_hook.
2788 * elf64-sh32.c: Tweak comments.
2789 (DATALABEL_SUFFIX): Define.
2790 (sh64_elf_add_symbol_hook): New.
2791 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
2792 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
2793 symbol with st_type STT_DATALABEL on the way to a symbol with
2794 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
2795 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
2796 Pass through STT_DATALABEL.
2797 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
2798 (elf_backend_get_symbol_type): Define.
2799 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
2800 (elf_backend_get_symbol_type): Define.
2801 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2802 * elf32-sh64.c: Tweak comments.
2803 (sh64_elf_copy_private_data_internal): Add prototype.
2804 (bfd_elf32_bfd_set_private_flags): Define.
2805 (sh64_elf_copy_private_data_internal): Compare machine name, not
2806 textual BFD target name, to check whether to copy section flag
2807 SHF_SH5_ISA32.
2808 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
2809 Tweak section-contents-type-mismatch message.
2810 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
2811 Validize reloc-types.
2812 * elf64-sh64.c: New file.
2813 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
2814 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
2815 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
2816 Regenerate dependencies.
2817 * Makefile.in: Regenerate.
2818 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
2819 bfd_elf64_sh64l_vec.
2820 * configure.in: Handle bfd_elf64_sh64_vec and
2821 bfd_elf64_sh64l_vec.
2822 * configure: Regenerate.
2823 * po/POTFILES.in: Regenerate.
2824 * po/bfd.pot: Regenerate.
2825 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2826 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
2827 anything else but EF_SH64 and EF_SH64_ABI64.
2828 (sh64_elf_merge_private_data): Emit error for anything else but
2829 EF_SH64 and EF_SH64_ABI64.
2830 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
2831 from targ_selvecs.
2832 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
2833 bfd_elf32_sh64l_vec as a temporary measure.
2834 * configure: Regenerate.
2835 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
2836 * cpu-sh.c (arch_info_struct): Include sh5 item
2837 unconditionalized.
2838 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
2839 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
2840 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
2841 * elf32-sh64.c: Tweak comments.
2842 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
2843 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
2844 (sh64_elf_copy_private_data_internal): Wrap long line.
2845 (sh64_elf_merge_private_data): Rewrite to allow objects from
2846 SH64 subsets to be linked together.
2847 (INCLUDE_SHMEDIA): Define.
2848 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
2849 Parenthesize plus-expression inside or-expression.
2850 <global symbol>: Ditto.
2851 (sh_elf_set_mach_from_flags): Remove code refusing
2852 deleted EF_SH64_32BIT_ABI flag.
2853 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
2854 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
2855 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
2856 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
2857 (sh_elf_relocate_section) <local symbol>: Or 1 in
2858 calculation of relocation if sym->st_other & STO_SH5_ISA32.
2859 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
2860 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
2861 relocation.
2862 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2863 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
2864 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
2865 Regenerate dependencies.
2866 * Makefile.in: Regenerate.
2867 * archures.c: Add bfd_mach_sh5.
2868 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
2869 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
2870 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
2871 * configure: Regenerate.
2872 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
2873 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
2874 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2875 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
2876 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
2877 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
2878 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
2879 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
2880 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
2881 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
2882 in item for SH5.
2883 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
2884 for SHmedia relocs.
2885 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
2886 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
2887 shmedia_prepare_reloc, goto final_link_relocate if it returns
2888 non-zero, else fail as before.
2889 (sh_elf_set_mach_from_flags): Provide function only if not defined
2890 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
2891 (sh_elf_set_private_flags): Provide function only if not defined
2892 as a macro.
2893 (sh_elf_copy_private_data): Similar.
2894 (sh_elf_merge_private_data): Similar.
2895 * section.c (SEC_SH_ISA_SHMEDIA): New.
2896 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
2897 * elf32-sh64.c: New file.
2898 * libbfd.h: Regenerate.
2899 * bfd-in2.h: Regenerate.
2900 * po/POTFILES.in: Regenerate.
2901 * po/bfd.pot: Regenerate.
2902 * bfd-in2.h: Regenerate.
2903 * libbfd.h: Regenerate.
2904
e108f470
DJ
29052002-02-07 Daniel Jacobowitz <drow@mvista.com>
2906
2907 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
2908 been included, not drag it in.
2909 * bfd-in2.h: Regenerate.
2910
259d18a3
L
29112002-02-06 H.J. Lu (hjl@gnu.org)
2912
2913 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
2914 the mach and ISA fields if necessary.
2915
f13b834e
NC
29162002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2917
2918 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
2919 ARM architecture when an F_ARM_5 flag is detected, since we cannot
2920 be sure exactly which architecture this represents.
2921
82f6addb
NC
29222002-02-05 Nick Clifton <nickc@redhat.com>
2923
2924 * po/tr.po: Updated translation.
2925
899f54f5
AM
29262002-02-05 Alan Modra <amodra@bigpond.net.au>
2927
2928 From Jimi X <jimix@watson.ibm.com>
2929 * archures (bfd_mach_ppc64): Define.
2930 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
2931 (bfd_powerpc_arch): Define.
2932 * bfd-in2.h: Regenerate.
2933 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
2934 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
2935 (bfd_powerpc_archs): Add default powerpc64 arch.
2936
248866a8
AM
29372002-02-05 Alan Modra <amodra@bigpond.net.au>
2938
2939 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
2940 against section syms in readonly sections. Don't do the global
2941 sym check if we find one.
2942 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
2943 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 2944 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
2945 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
2946 (elf_s390_grok_prstatus): Add missing prototype.
2947
4fa5c2a8
HPN
29482002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2949
2950 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
2951 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
2952 Call bfd_get_section_by_name only once. Initialize
2953 bpodata->n_bpo_relocs_this_section.
2954 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
2955 referring to DSOs.
2956 (bpo_reloc_request_sort_fn): Don't use difference of values as
2957 return-value.
2958
537c972e
DB
29592002-02-02 David O'Brien <obrien@FreeBSD>
2960
2961 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
2962 version 4.5 and later the same as 5-CURRENT.
2963 * configure: Re-generate.
2964
006336b8
JT
29652002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2966
2967 * config.bfd (hppa*-*-netbsd*): New target.
2968
6c571f00
PT
29692002-01-31 Philipp Thomas <pthomas@suse.de>
2970
19397422
AM
2971 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
2972 to front of message. Unify messages with elf32-arm.h. Use
2973 commas where neccessary.
2974 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
2975 ERROR in messages. Unify messages with coff-arm.c. Correct
2976 VFP/FPA error message.
2977 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
2978 APCS-32 for translation.
6c571f00 2979
930b4cb2
HPN
29802002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2981
2982 Perform on-demand global register allocation from
2983 R_MMIX_BASE_PLUS_OFFSET relocs.
2984 * elf64-mmix.c (struct bpo_reloc_section_info, struct
2985 bpo_reloc_request, struct bpo_greg_section_info): New.
2986 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
2987 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
2988 _bfd_mmix_check_all_relocs,
2989 _bfd_mmix_prepare_linker_allocated_gregs,
2990 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
2991 (elf_mmix_howto_table): Correct src_mask for most relocs.
2992 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
2993 case.
2994 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
2995 case. Fix typo in comment. New label do_mmix_reloc.
2996 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
2997 store first object file with a base-plus-offset reloc. Call
2998 mmix_elf_check_common_relocs for the part common with mmo.
2999 (mmix_elf_final_link): Write out linker-allocated register
3000 contents section.
3001 (elf_backend_gc_sweep_hook): Define.
3002 (bfd_elf64_bfd_relax_section): Define.
3003
3004 * mmo.c: Don't include <ctype.h>
3005 (mmo_init): Correct init-once logic.
3006
3e36d993
TR
30072002-02-01 Tom Rix <trix@redhat.com>
3008
3009 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
3010
ba323545
AM
30112002-02-01 Alan Modra <amodra@bigpond.net.au>
3012
3013 * Makefile.am: Run "make dep-am"
3014 * Makefile.in: Regenerate.
3015
012884d6
DB
30162002-01-31 David O'Brien <obrien@FreeBSD>
3017
3018 * configure.in: Recognize the differences in core files from FreeBSD
3019 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
3020 5-CURRENT.
3021 * configure: Regenerate.
3022
3b16e843
NC
30232002-01-31 Ivan Guzvinec <ivang@opencores.org>
3024
3025 * coff-or32.c: New file.
3026 * cpu-or32.c: New file.
3027 * elf32-or32.c: New file.
3028 * archures.c: Add support for or32.
3029 * targets.c: Add support for or32.
3030 * bfd-in2.h: Regenerate.
7dc0ab31 3031 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
3032 coff_write_object_contents): Add support for or32.
3033 * config.bfd: Add target.
3034 * configure.in: Add support for or32.
3035 * configure: Regenerate.
3036 * Makefile.am: Add support for or32.
3037 * Makefile.in: Regenerate.
3b16e843
NC
3038 * po/SRC-POTFILES.in: Add or32 files.
3039 * po/bfd.pot: Regenerate.
7dc0ab31 3040
caf8ca8e
NC
30412002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
3042 Don Lindsay <lindsayd@cisco.com>
3043
3044 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
3045 false' with a return of a bfd_reloc_ error code.
3046
e5dfef09
HPN
30472002-01-31 Hans-Peter Nilsson <hp@axis.com>
3048
3049 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
3050 unexport unreferenced symbols when --export-dynamic. Call
3051 _bfd_elf_strtab_delref when unexporting.
3052
4e4770d0
DJ
30532002-01-30 Daniel Jacobowitz <drow@mvista.com>
3054
3055 * bfd-in.h: Include <stdbool.h> if it is available.
3056 * bfd-in2.h: Regenerated.
3057
e1fa50e7
AM
30582002-01-31 Alan Modra <amodra@bigpond.net.au>
3059
3060 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
3061 not go via the plt.
3062
b5f79c76
NC
30632002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
3064
b5f79c76
NC
3065 * archures.c: Tidy up formatting of embedded comments.
3066 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 3067 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
3068 * reloc.c: Tidy up formatting of ordinary & embedded comments.
3069 * section.c: Tidy up formatting of embedded comments.
3070 * syms.c: Tidy up formatting of embedded comments.
3071 * targets.c: Tidy up formatting of embedded comments.
3072
3073 * bfd-in2.h: Regenerate.
3074
ca09e32b
NC
30752002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
3076
3077 * vms-tir.c (cmd_name): New function.
3078 (tir_cmd_name): New function.
3079 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
3080 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
3081 Fix formatting.
7dc0ab31 3082
ca09e32b
NC
3083 * peXXigen.c (pe_print_idata): Rearrange message to aid in
3084 translation.
3085 (pe_print_pdata): Rearrange message to aid in translation.
3086
3087 * libbfd.c (warn_deprecated): Rearrange error message to aid in
3088 translation.
3089
3090 * ihex.c (ihex_write_object_contents): Fix spelling typo.
3091
3092 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
3093
3094 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
3095 message to aid in translation.
3096
3097 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
3098 to aid in translation.
3099
3100 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
3101
7dc0ab31 31022002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
3103
3104 * coff-arm.c, elf32-elf.h: Unify messages.
3105
05f64ac6
NC
31062002-01-30 Nick Clifton <nickc@redhat.com>
3107
3108 * po/sv.po: Updated translation.
3109
f5a3e38a
NC
31102002-01-30 Philipp Thomas <pthomas@suse.de>
3111
3112 * dwarf2.c (read_abbrev): Use full section name in error message.
3113 (decode_line_info): Likewise.
661a3fd4
NC
3114
3115 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
3116 message.
3117
d926e03d
AM
31182002-01-30 Alan Modra <amodra@bigpond.net.au>
3119
3120 * elf64-ppc.c (func_desc_adjust): Only provide missing function
3121 descriptor symbols for undefined function code syms. Clear
3122 ELF_LINK_NON_ELF so that they can stay weak.
3123
030d18fb 31242002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 3125 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
3126
3127 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
3128 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
3129 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
3130 generation.
3131 * bfd-in2.h: Regenerate.
3132
fcc76bea
CD
31332002-01-29 Chris Demetriou <cgd@broadcom.com>
3134
3135 * elf32-mips.c: Add additional comments about HI16 relocation
3136 processing.
3137 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
3138 pc-relative relocations. (Reverts change made on 2001-10-31.)
3139 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
3140 for pc-relative relocations.
3141 (mips_elf_calculate_relocation): Add a comment about a kludge
3142 in the R_MIPS_GNU_REL_HI16 handling.
3143 (_bfd_mips_elf_relocate_section): Implement that kludge;
3144 adjust pc-relative HI16 relocation for difference in HI16 and
3145 LO16 addresses, since it can't easily be done in
3146 mips_elf_calculate_relocation.
3147
f9cd9119
MS
31482002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
3149
3150 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
3151 relocations with PC32 relocations for undefined or weak symbols.
3152 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
3153 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
3154
702248bb
JT
31552002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
3156
3157 * elfcore.h (elf_core_file_p): Improve comment for last change.
3158
4867be41
DJ
31592002-01-27 Daniel Jacobowitz <drow@mvista.com>
3160
3161 * configure: Regenerated.
3162
a94cef6a
JT
31632002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
3164
3165 * elfcore.h (elf_core_file_p): Set the machine architecture
3166 before processing the program headers.
3167
7562a296
HPN
31682002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3169
966abd70
HPN
3170 * configure.in <64-bit configuration>: If using gcc, check and
3171 emit error for egcs-1.1.2.
3172 * configure: Regenerate.
3173
e8eab623
NC
31742002-01-26 Egor Duda <deo@logos-m.ru>
3175
3176 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
3177 as possible to avoid stack corruption.
3178
73896efb
RH
31792002-01-26 Richard Henderson <rth@redhat.com>
3180
3181 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
3182 for non-allocated sections.
3183
31842002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
3185
3186 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
3187 prstat.pr_reg even if it is a struct.
3188
73896efb 31892002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
3190
3191 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
3192
3d66c4f7
NC
31932002-01-25 Philipp Thomas <pthomas@suse.de>
3194
3195 * coffgen.c (coff_print_symbol): Don't mark info message
3196 for translation.
3197
9460ecda
NC
31982002-01-25 Nick Clifton <nickc@redhat.com>
3199
3200 * po/fr.po: Updated translation.
3201 * po/es.po: Updated translation.
3202
cc9ff76a
AM
32032002-01-25 Philipp Thomas <pthomas@suse.de>
3204
3205 * coff-alpha.c (alpha_relocate_section): Unify warning message
3206 for GP relative relocations without GP defined.
3207 * coff-mips.c (mips_relocate_section): Likewise.
3208
c68836a9
AM
32092002-01-25 Alan Modra <amodra@bigpond.net.au>
3210
3211 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
3212 unsigned overflow when new_offset < old_offset.
3213
e8eab623 32142002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
3215
3216 * bfd.c (_bfd_abort): Fix typo.
3217
8ba89f17
RH
32182002-01-23 Richard Henderson <rth@redhat.com>
3219
3220 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
3221 plt entries for undefweak symbols.
3222
c6953948
NC
32232002-01-23 Steve Ellcey <sje@cup.hp.com>
3224
3225 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
3226 DEFAULT_VECTOR.
3227 (bfd_elf64_ia64_hpux_big_vec): Ditto.
3228 (bfd_elf32_h8300_vec): Ditto.
3229
41bd81ab
AM
32302002-01-23 Alan Modra <amodra@bigpond.net.au>
3231
3232 * elf64-ppc.c: Remove stale part of ABI comment.
3233 (NO_OPD_RELOCS): Define.
3234 (ppc64_elf_check_relocs): Use it.
3235 (ppc64_elf_relocate_section): Here too.
3236 (build_one_stub): Don't point function syms at the stub. Instead,
3237 hijack plt.offset.
3238 (ppc64_elf_relocate_section): Check whether REL24 relocs should
3239 really go to the stub. Make all dynamic relocs in opd against
3240 locals.
3241 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
3242 plt.offset.
3243
f304919d
RH
32442002-01-22 Richard Henderson <rth@redhat.com>
3245
3246 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
3247
c0ef99a7
AM
32482002-01-22 Alan Modra <amodra@bigpond.net.au>
3249
60ee0d4a
AM
3250 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
3251 TOC_BASE_OFF adjustment.
3252
c0ef99a7
AM
3253 * Makefile.am: Run "make dep-am".
3254 * Makefile.in: Regenerate.
3255 * po/SRC-POTFILES.in: Regenerate.
3256
64328b46
AM
32572002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
3258
3259 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
3260 host defines.
3261
59953665 32622002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
3263
3264 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
3265 Check for and emit error if sgot is NULL at this point.
3266
9596feea
JT
32672002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3268
3269 * config.bfd (ia64*-*-netbsd*): New target.
3270
7b45c6e1
AM
32712002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
3272
3273 * som.c (som_write_space_strings): Comment typo fix.
3274
e5094212
AM
32752002-01-21 Alan Modra <amodra@bigpond.net.au>
3276
e86ce104
AM
3277 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
3278 is_func_descriptor fields.
3279 (link_hash_newfunc): Init them.
3280 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
3281 dot are candidates for plt entries. When processing .opd relocs,
3282 set function descriptor strings to point inside function code
3283 string, and set new ppc_link_hash_entry fields.
3284 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
3285 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
3286 function descriptors. It's now done in..
3287 (func_desc_adjust): New.
3288 (ppc64_elf_func_desc_adjust): New.
3289 (define elf_backend_always_size_sections): Define.
3290 (ppc64_elf_hide_symbol): New.
3291 (define elf_backend_hide_symbol): Define.
3292 (allocate_dynrelocs): Remove code looking up function descriptors
3293 as that has been done earlier.
3294 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
3295 table.
3296 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
3297 up function descriptor.
3298 (build_one_stub): Look up the function code sym. Check for
3299 invalid plt offsets.
3300 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
3301 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
3302
e5094212
AM
3303 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
3304 boolean param.
3305 (_bfd_elf_link_hash_hide_symbol): Likewise.
3306 * elflink.h (elf_link_add_object_symbols): Adjust call to
3307 elf_backend_hide_symbol.
3308 (elf_fix_symbol_flags): Likewise.
3309 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
3310 than bfd_alloc.
3311 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
3312 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
3313 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3314 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
3315 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
3316 and adjust to suit.
3317 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
3318 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
3319 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3320
40b8271b
AM
33212002-01-18 Alan Modra <amodra@bigpond.net.au>
3322
3323 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
3324 dynamic function descriptor symbol, not the associated function
3325 symbol.
3326
55baa95b
EC
33272002-01-17 Eric Christopher <echristo@redhat.com>
3328
3329 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
3330
328577ad
NC
33312002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3332
3333 * po/bfd.pot: Regenerate.
3334 * po/fr.po: Regenerate.
3335
af746e92
AM
33362002-01-17 Alan Modra <amodra@bigpond.net.au>
3337
3338 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
3339 Remove "Elf_Internal_Shdr *" param.
3340 (_bfd_mips_elf_section_from_bfd_section): Ditto.
3341 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
3342 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
3343 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
3344 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
3345 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
3346 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
3347 function to override special sections. Remove hdr arg from
3348 backend call, and don't loop.
3349
175e9962
EC
33502002-01-16 Eric Christopher <echristo@redhat.com>
3351
3352 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
3353 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
3354 relocations requiring gp0 and gp.
3355
96a846ea
RE
33562002-01-16 Richard Earnshaw <rearnsha@arm.com>
3357
175e9962 3358 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
3359 EF_ARM_VFP_FLOAT.
3360 (elf32_arm_print_private_bfd_data): Likewise.
3361
af3ae48d
NC
33622002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3363
3364 * po/tr.po: Import new version.
3365
10ed1bba
AM
33662002-01-16 Alan Modra <amodra@bigpond.net.au>
3367
3368 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
3369 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
3370 (ORI_R0_R0_0): Correct.
3371
5d1634d7
AM
33722002-01-16 Alan Modra <amodra@bigpond.net.au>
3373
3374 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
3375 when plt_not_loaded.
3376 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
3377 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
3378 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
3379 (ppc64_elf_glink_code): Delete.
3380 (PPC64_ELF_GLINK_SIZE): Delete.
3381 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
3382 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
3383 ORI_R0_R0_0): Define.
3384 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
3385 (struct ppc_link_hash_table): Add sstub and plt_overflow.
3386 (ppc64_elf_link_hash_table_create): Init them.
3387 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
3388 Don't copy to shared lib.
3389 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
3390 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
3391 (allocate_dynrelocs <plt>): Don't change function sym here. Make
3392 room for .stub and .glink code.
3393 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
3394 DT_PPC64_GLINK.
3395 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
3396 bfd_elf64_bfd_final_link.
3397 (bfd_elf64_bfd_final_link): Don't define.
3398 (ppc64_elf_size_stubs): New.
3399 (build_plt_stub): New.
3400 (build_one_stub): New.
3401 (ppc64_elf_build_stubs): New.
3402 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
3403 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
3404 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
3405 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
3406 case output sections not separate. Adjust DT_RELASZ to not
3407 include plt relocs. Set reserved got entry. Set got and plt
3408 entry size.
3409 (elf_backend_got_header_size): Set to 8.
3410 * elf64-ppc.h: New file.
3411
c601ffdb
AM
34122002-01-16 Alan Modra <amodra@bigpond.net.au>
3413
3414 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
3415 sections, use bfd_section_list_remove.
3416 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3417 * elflink.h (elf_link_add_object_symbols): When removing all
3418 sections, use bfd_section_list_clear.
3419
8fb4cb7f
NC
34202002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3421
3422 * po/sv.po: New file: Swedish translation.
3423 * configure.in (ALL_LINGUAS): Add sv.
3424 * configure: Regenerate.
3425
d3c456e9
JJ
34262002-01-15 Jakub Jelinek <jakub@redhat.com>
3427
3428 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
3429 * elf.c (merge_sections_remove_hook): New function.
3430 (_bfd_elf_merge_sections): Pass it as 3rd argument to
3431 _bfd_merge_sections.
3432 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
3433 * libbfd.h: Rebuilt.
3434 * merge.c (_bfd_merge_sections): Add remove_hook argument.
3435 Call remove_hook if a SEC_EXCLUDE section is encountered.
3436
1f7fd478
NC
34372002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3438
3439 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
3440 (xstormy16_reloc_map): Initialise new field with correct howto
3441 table.
3442 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
3443 howto entry.
3444
b87011e9
MS
34452002-01-10 Michael Snyder <msnyder@redhat.com>
3446
3447 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
3448 (elfcore_write_pstatus): Use long instead of pid_t;
3449 * elf-bfd.h: Change prototypes to use long instead of pid_t;
3450
175e9962 34512002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
3452
3453 * elf.c: Update copyright years.
3454 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
3455 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
3456
7c76fa91
MS
34572002-01-08 Michael Snyder <msnyder@redhat.com>
3458
3459 Add capability to write corefile note sections, for gdb.
3460 * elf.c (elfcore_write_note): New function.
3461 (elfcore_write_prpsinfo): New function.
3462 (elfcore_write_prstatus): New function.
3463 (elfcore_write_pstatus): New function.
3464 (elfcore_write_prfpreg): New function.
3465 (elfcore_write_prxfpreg): New function.
97996af6 3466 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 3467
e1fddb6b
AO
34682002-01-08 Alexandre Oliva <aoliva@redhat.com>
3469
3470 * elf.c (elf_fake_sections): Propagate errors from
3471 elf_backend_fake_section.
3472
8d05742f
JT
34732002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3474
3475 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
3476 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
3477 (elf32-sh-nbsd.lo): New rule.
3478 * Makefile.in: Regenerate.
3479 * config.bfd (sh*le-*-netbsdelf*): New target.
3480 (sh*-*-netbsdelf*): New target.
3481 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
3482 (bfd_elf32_shnbsd_vec): New vector.
3483 (bfd_elf32_shlnbsd_vec): New vector.
3484 * configure: Regenerate.
3485 * elf32-sh-nbsd.c: New file.
3486 * targets.c: Update copyright years.
175e9962 3487 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
3488 bfd_elf32_shnbsd_vec.
3489
1dba4cb4
AH
34902002-01-07 Aldy Hernandez <aldyh@redhat.com>
3491
3492 * coff-rs6000.c (READ20): Use bfd_scan_vma.
3493
47b22aef
GK
34942002-01-07 Geoffrey Keating <geoffk@redhat.com>
3495
3496 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
3497 of a symbol in a section that will be deleted.
3498
be2d1673
NC
34992002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3500
3501 * po/es.po: New file: Spanish translation.
3502 * configure.in (ALL_LINGUAS): Add es.
3503 * configure: Regenerate.
3504
d9cf1b54
AM
35052002-01-06 Steve Ellcey <sje@cup.hp.com>
3506
3507 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
3508 argument so we can handle HP-UX specially.
3509 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
3510 (elfNN_hpux_backend_section_from_bfd_section): New for support
3511 of SHN_IA_64_ANSI_COMMON.
3512 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
3513 (is_unwind_section_name): Add special HP-UX support.
3514 (elfNN_ia64_section_from_shdr): Add support for more sections.
3515 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
3516 add support for more sections.
3517 (elfNN_ia64_additional_program_headers): Modify
3518 is_unwind_section_name call.
3519 (elfNN_ia64_modify_segment_map): Remove assumption that there is
3520 only one unwind section in segment.
3521
3f3c5c34
AM
35222002-01-06 Alan Modra <amodra@bigpond.net.au>
3523
3524 * syms.c (_bfd_generic_make_empty_symbol): New function.
3525 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
3526 _bfd_generic_make_empty_symbol.
3527 * libbfd.h: Regenerate.
3528 * bfd-in2.h: Regenerate.
3529 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
3530 (hppabsd_core_get_symtab_upper_bound): Don't define.
3531 (hppabsd_core_get_symtab): Likewise.
3532 (hppabsd_core_print_symbol): Likewise.
3533 (hppabsd_core_get_symbol_info): Likewise.
3534 (hppabsd_core_bfd_is_local_label_name): Likewise.
3535 (hppabsd_core_get_lineno): Likewise.
3536 (hppabsd_core_find_nearest_line): Likewise.
3537 (hppabsd_core_bfd_make_debug_symbol): Likewise.
3538 (hppabsd_core_read_minisymbols): Likewise.
3539 (hppabsd_core_minisymbol_to_symbol): Likewise.
3540 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
3541 Formatting fixes.
3542 * hpux-core.c: Similarly.
3543 * irix-core.c: Similarly.
3544 * osf-core.c: Similarly.
3545 * sco5-core.c: Similarly.
3546 * binary.c (binary_make_empty_symbol): Remove function, define as
3547 _bfd_generic_make_empty_symbol.
3548 * ihex.c (ihex_make_empty_symbol): Likewise.
3549 * mmo.c (mmo_make_empty_symbol): Likewise.
3550 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
3551 * srec.c (srec_make_empty_symbol): Likewise.
3552 * versados.c (versados_make_empty_symbol): Likewise.
3553 * vms.c (_bfd_vms_make_empty_symbol): Remove.
3554 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
3555 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
3556 rather than _bfd_vms_make_empty_symbol.
3557 * vms-misc.c (new_symbol): Likewise.
3558
3f0a7f7f
AM
35592002-01-05 Alan Modra <amodra@bigpond.net.au>
3560
9e7b37b3
AM
3561 * section.c (bfd_section_init): Remove unnecessary initialisations.
3562 (bfd_section_list_clear): New function.
3563 (bfd_section_list_remove, bfd_section_list_insert): New macros.
3564 (_bfd_strip_section_from_output): Use them.
3565 * coffcode.h (coff_set_alignment_hook): Likewise.
3566 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
3567 * elf64-mips.c (mips_elf64_final_link): Likewise.
3568 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3569 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3570 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3571 * bfd-in2.h: Regenerate.
3572
3573 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
3574 rather than doing our own section handling. Clean up after errors
3575 with bfd_release and bfd_section_list_clear. Handle unexpected
3576 flags.
3577 * aoutf1.h (sunos4_core_file_p): Likewise.
3578 * aix386-core.c (aix386_core_file_p): Likewise.
3579 * cisco-core.c (cisco_core_file_validate): Likewise.
3580 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
3581 * trad-core.c (trad_unix_core_file_p): Likewise.
3582
3583 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
3584 with bfd_release and bfd_section_list_clear.
3585 * hpux-core.c (hpux_core_core_file_p): Likewise.
3586 * irix-core.c (irix_core_core_file_p): Likewise.
3587 * lynx-core.c (lynx_core_file_p): Likewise.
3588 * osf-core.c (osf_core_core_file_p): Likewise.
3589 * rs6000-core.c (rs6000coff_core_p): Likewise.
3590 * sco5-core.c (sco5_core_file_p): Likewise.
3591
3f0a7f7f
AM
3592 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
3593 sign extension adjustments without conditionals.
3594
a3aa38ee
JJ
35952002-01-04 Jakub Jelinek <jakub@redhat.com>
3596
3597 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
3598 CIE at .eh_frame start is removed due to no FDEs referencing it.
3599
8a8b2d4b
AJ
36002002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3601
3602 * config.bfd (x86_64-*-netbsd*): New target.
3603 * configure.in (x86_64-*-netbsd*): Set COREFILE
3604 to netbsd-core.lo.
3605 * configure: Regenerated.
3606
04b5af89
TR
36072002-01-03 Tom Rix <trix@redhat.com>
3608
3609 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
3610 for recent bfd_make_section_anyway change.
3611
51c5503b
NC
36122002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
3613
3614 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3615 R_ARM_THM_PC11 reloc.
3616
07f7c046
NC
36172002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3618
3619 * configure.in (LINGUAS): Add ja.
3620 * configure: Regenerate.
3621 * po/ja.po: Import from translation project's web site.
3622
5eefb65f
NC
36232002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3624
3625 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
3626 messages to ease translation into other languages.
3627
39e90f10 3628For older changes see ChangeLog-0001
56882138
AM
3629\f
3630Local Variables:
3631mode: change-log
3632left-margin: 8
3633fill-column: 74
3634version-control: never
3635End: