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