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