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