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