XCOFF booke tests. Fix tlbre, tlbwe ppc WS field.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2002-02-20 Tom Rix <trix@redhat.com>
2
3 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
4 (_bfd_xcoff_reloc_type_lookup): Use it.
5 * coff64-rs6000.c (xcoff64_howto_table): Same.
6 (xcoff64_reloc_type_lookup): Same.
7
8 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9
10 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
11 little endian.
12
13 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
14
15 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
16 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
17 * bfd-in2.h: Regenerate.
18 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
19 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
20 with "s390:64-bit".
21 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
22 (elf_s390_reloc_type_lookup): Likewise.
23 (elf_s390_check_relocs): Likewise.
24 (elf_s390_gc_sweep_hook): Likewise.
25 (elf_s390_relocate_section): Likewise.
26 (elf_s390_object_p): Use renamed architecture define.
27 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
28
29 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
30
31 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
32
33 2002-02-19 Jakub Jelinek <jakub@redhat.com>
34
35 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
36 absptr -> pcrel optimization for shared libs.
37 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
38 library cannot be converted to pcrel.
39 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
40 relative.
41 * elf32-i386.c (elf_i386_relocate_section): If
42 _bfd_elf_section_offset returned -2, skip, but make sure the
43 relocation is installed.
44 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
45 * elf32-cris.c (cris_elf_relocate_section): Likewise.
46 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
47 * elf32-i370.c (i370_elf_relocate_section): Likewise.
48 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
49 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
50 * elf32-s390.c (elf_s390_relocate_section): Likewise.
51 * elf32-sh.c (sh_elf_relocate_section): Likewise.
52 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
53 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
54 * elf64-s390.c (elf_s390_relocate_section): Likewise.
55 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
56 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
57 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
58 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
59 _bfd_elf_section_offset returning -2 the same way as -1.
60 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
61 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
62 and BFD_ASSERT.
63 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
64
65 2002-02-18 Tom Rix <trix@redhat.com>
66
67 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
68 (bfd_xcoff_size_dynamic_sections): Same.
69 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
70 (bfd_xcoff_size_dynamic_sections): Same.
71 * coff-rs6000.c (xcoff_generate_rtinit): Same.
72 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
73 * libxcoff.h (struct xcoff_backend_data_rec): Same.
74 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
75 * bfd-in2.h: Regenerate.
76
77 2002-02-18 Alan Modra <amodra@bigpond.net.au>
78
79 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
80 (struct ppc_link_hash_table): Add sfpr.
81 (ppc64_elf_link_hash_table_create): Init it.
82 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
83 .glink out to..
84 (create_linkage_sections): ..here. Make .sfpr too.
85 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
86 dynobj early.
87 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
88 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
89 ._restf* functions, and create as needed.
90 (func_desc_adjust): Only force_local for shared libs.
91
92 2002-02-18 David O'Brien <obrien@FreeBSD.org>
93
94 * configure.in: Bump version number post 2.12 branching.
95 * configure: Regenerate.
96
97 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
98
99 * mmo.c: Correct and improve comments.
100 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
101 zero-pad. Use input to fill up non-empty bfd buffer.
102 (mmo_flush_chunk): New function.
103 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
104 changed. Don't emit location specifier if VMA is same as
105 *LAST_VMAP after omitting leading zero contents. Call
106 mmo_flush_chunk before emitting location specifier.
107 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
108 with mmo_write_loc_chunk calls.
109 (mmo_internal_write_section): Call mmo_flush_chunk after
110 mmo_write_chunk.
111 (mmo_write_symbols_and_terminator): Move :Main to first position
112 in symbol array. Add faked one if it does not exist if there are
113 other symbols. Don't add it if there are no symbols at all. Move
114 out test for value of :Main from symbol loop. Rename table
115 fakemain to maintable and variable mainsym to fakemain.
116
117 2002-02-15 Richard Henderson <rth@redhat.com>
118
119 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
120 section with no got matches any got. Simplify error generaion.
121
122 2002-02-15 Alan Modra <amodra@bigpond.net.au>
123
124 Support arbitrary length fill patterns.
125 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
126 (_bfd_default_link_order): Remove bfd_fill_link_order code.
127 Call default_data_link_order.
128 (default_fill_link_order): Delete.
129 (default_data_link_order): New function.
130 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
131 of bfd_fill_link_order with bfd_data_link_order.
132 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
133 * elf64-mips.c (mips_elf64_final_link): Likewise.
134
135 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
136 Correct value returned in "end" for "0x<non-hex>".
137
138 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
139
140 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
141 (scan): Test against 'mach' field in info structure.
142
143 2002-02-14 Alan Modra <amodra@bigpond.net.au>
144
145 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
146
147 2002-02-14 Matt Fredette <fredette@netbsd.org>
148
149 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
150 EF_M68000.
151
152 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
153
154 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
155 non-zero physical addresses when adjusting the LMAs of new
156 sections.
157
158 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
159
160 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
161 from _bfd_elf_hppa_gen_reloc_type.
162 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
163 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
164 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
165 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
166
167 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
168
169 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
170 loading its contents if there's nothing to do in it.
171
172 2002-02-12 Alan Modra <amodra@bigpond.net.au>
173
174 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
175 64k boundary.
176
177 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
178 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
179 (ppc64_elf_finish_dynamic_sections): Set values for them.
180
181 2002-02-11 Michael Snyder <msnyder@redhat.com>
182
183 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
184 * elf.c (elfcore_grok_pstatus): Add prototype.
185 (elfcore_grok_lwpstatus): Add prototype.
186 (elfcore_write_lwpstatus): New function.
187 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
188
189 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
190
191 * elf32-sh.c: Added missing prototypes.
192 * elf32-sh64.c: Likewise.
193 (sh_elf_align_loads): Mark unused args as such.
194 * elf64-sh64.c: Added missing prototypes.
195 (struct elf_sh64_link_hash_entry): Fix typo.
196 (sh_elf64_relocate_section): Fix info argument passed to
197 _bfd_elf_section_offset.
198
199 2002-02-11 Alan Modra <amodra@bigpond.net.au>
200
201 * Makefile.am: "make dep-am".
202 * Makefile.in: Regenerate.
203 * aclocal.m4: Regenerate.
204 * config.in: Regenerate.
205 * configure: Regenerate.
206
207 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
208
209 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
210 variable warnings.
211 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
212 comparison warning.
213 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
214 cast warnings for the common case.
215
216 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
217
218 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
219 vectors.
220 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
221 vectors.
222
223 2002-02-09 Richard Henderson <rth@redhat.com>
224
225 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
226 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
227 (elf64_alpha_relocate_section): Likewise.
228 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
229 * bfd-in2.h, libbfd.h: Rebuild.
230
231 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
232
233 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
234 that base-plus-offset reloc accounting is consistent.
235 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
236 up to date for undefined symbols.
237
238 2002-02-08 Eric Christopher <echristo@redhat.com>
239
240 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
241
242 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
243 sections for the O32 ABI.
244
245 2002-02-08 Chris Demetriou <cgd@broadcom.com>
246
247 * elf32-arm.h: Fix formatting of _("...").
248 * elf32-d10v.c: Likewise.
249 * elf32-m68k.c: Likewise.
250 * elf32-mips.c: Likewise.
251
252 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
253
254 * coff-or32.c: Fix compile time warning messages.
255
256 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
257
258 Contribute sh64-elf.
259 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
260 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
261 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
262 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
263 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
264 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
265 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
266 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
267 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
268 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
269 New relocs.
270 * libbfd.h, bfd-in2.h: Rebuilt.
271 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
272 (sh_reloc_map): Map them.
273 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
274 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
275 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
276 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
277 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
278 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
279 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
280 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
281 datalabel_got_offset.
282 (sh_elf_link_hash_newfunc): Initialize it.
283 (sh_elf_relocate_section): Augment the scope of
284 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
285 GOT and GOTOFF handling to new SHmedia relocation types. Support
286 GOT_BIAS.
287 (sh_elf_check_relocs): Likewise.
288 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
289 PLT entries using movi_shori_putval. Support GOT_BIAS.
290 (sh_elf_finish_dynamic_sections): Likewise.
291 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
292 relocation, it's now done by the caller.
293 (GOT_BIAS): New.
294 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
295 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
296 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
297 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
298 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
299 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
300 sh64_elf64_hash_table): New.
301 (sh_elf64_howto_table): Introduce new relocs.
302 (sh_elf64_info_to_howto): Accept new PIC relocs.
303 (sh_elf64_relocate_section): Augment the scope of
304 seen_stt_datalabel. Support new PIC relocs.
305 (sh_elf64_check_relocs): Support new PIC relocs.
306 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
307 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
308 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
309 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
310 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
311 movi_shori_putval, movi_3shori_putval,
312 sh64_elf64_create_dynamic_sections,
313 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
314 sh64_elf64_size_dynamic_sections,
315 sh64_elf64_finish_dynamic_symbol,
316 sh64_elf64_finish_dynamic_sections): New.
317 (elf_backend_create_dynamic-sections,
318 bfd_elf64_bfd_link_hash_table_create,
319 elf_backend_adjust_dynamic_symbol,
320 elf_backend_size_dynamic_sections,
321 elf_backend_finish_dynamic_symbol,
322 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
323 elf_backend_plt_readonly, elf_backend_want_plt_sym,
324 elf_backend_got_header_size, elf_backend_plt_header_size):
325 Define.
326 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
327 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
328 match official numbers and names; moved unmaching ones to the
329 range 0xf2-0xff.
330 * elf32-sh64.c, elf64-sh64.c: Likewise.
331 2001-03-12 DJ Delorie <dj@redhat.com>
332 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
333 sections.
334 2001-03-12 DJ Delorie <dj@redhat.com>
335 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
336 be aligned.
337 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
338 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
339 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
340 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
341 .cranges section with SEC_SORT_ENTRIES set.
342 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
343 incoming sorted .cranges section.
344 (sh64_bfd_elf_copy_private_section_data): New.
345 (sh64_elf_final_write_processing): Only sort .cranges and modify
346 start address if called by linker.
347 2001-01-08 Ben Elliston <bje@redhat.com>
348 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
349 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
350 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
351 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
352 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
353 line. Add comments before all entries.
354 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
355 comment.
356 (sh_elf64_reloc): Correct head comment.
357 (sh_elf64_relocate_section): Correct spacing.
358 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
359 instead call reloc_dangerous callback.
360 <case R_SH_SHMEDIA_CODE>: New case.
361 (sh_elf64_gc_mark_hook): Correct spacing.
362 (sh_elf64_check_relocs): Ditto.
363 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
364 New case.
365 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
366 functions.
367 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
368 clarify describing comment. Add comments before all entries.
369 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
370 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
371 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
372 Sort .cranges section in final link. Prepare to set bit 0 on
373 entry address.
374 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
375 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
376 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
377 .cranges section.
378 (sh64_backend_section_from_shdr): New, to recognize
379 SHT_SH5_CR_SORTED on incoming .cranges section.
380 (elf_backend_section_from_shdr): Define.
381 (sh64_elf_final_write_processing): Sort outgoing .cranges
382 section. (New, temporarily disabled:) Set bit 0 on entry address
383 according to ISA type.
384 (sh64_find_section_for_address): New.
385 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
386 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
387 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
388 bfd_malloc, not xmalloc.
389 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
390 global.
391 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
392 temporarily disabled) setting bit 0 on entry address.
393 (elf_backend_final_write_processing): Define.
394 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
395 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
396 be a proper relocation for PTA and PTB rather than a marker.
397 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
398 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
399 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
400 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
401 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
402 Zero src_mask.
403 * elf64-sh64.c: Ditto.
404 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
405 * elf32-sh64.c: Include opcodes/sh64-opc.h
406 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
407 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
408 parameters. No unused parameters. Caller changed.
409 <case R_SH_PT_16>: New case.
410 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
411 * Makefile.in: Regenerate.
412 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
413 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
414 all code sections.
415 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
416 (sh64_elf_merge_private_data): Ditto.
417 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
418 to access stored section flags.
419 (sh64_elf_final_write_processing): Return immediately unless
420 called by linker. Use sh64_elf_section_data (cranges) to get size
421 of linker-generated cranges entries.
422 (sh64_elf_copy_private_data): Add missing "return true".
423 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
424 (sh_elf64_merge_private_data): Ditto.
425 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
426 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
427 elf64-sh64.c:sh64_elf_fake_sections.
428 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
429 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
430 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
431 (sh64_elf_final_write_processing): New.
432 (elf_backend_final_write_processing): Define.
433 (sh64_elf_fake_sections): Get header flags from tdata field.
434 (sh64_elf_copy_private_data): Do not call
435 sh64_elf_copy_private_data_internal, just copy e_flags field.
436 (sh64_elf_merge_private_data): Do not call
437 sh64_elf_copy_private_data_internal.
438 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
439 Remove EF_SH64_ABI64, let ELF size make difference.
440 Remove SH64-specific BFD section flag.
441 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
442 containing SHmedia through elf_section_data (asect)->tdata
443 non-zero, not using a BFD section flag.
444 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
445 (sh64_elf_merge_private_data): Similar.
446 (elf_backend_section_flags): Don't define.
447 (sh64_elf_backend_section_flags): Delete.
448 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
449 not EF_SH64_ABI64.
450 (sh_elf64_merge_private_data): Similar.
451 * section.c (Section flags definitions): Don't define
452 SEC_SH_ISA_SHMEDIA.
453 (bfd-in2.h): Regenerate.
454 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
455 Make DataLabel references work with partial linking.
456 * elf32-sh64.c: Fix formatting.
457 (sh64_elf_link_output_symbol_hook): New.
458 (elf_backend_link_output_symbol_hook): Define to
459 sh64_elf_link_output_symbol_hook.
460 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
461 undefined if partial linking. Adjust sanity check.
462 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
463 (elf_backend_link_output_symbol_hook): Define to
464 sh64_elf64_link_output_symbol_hook.
465 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
466 undefined if partial linking. Adjust sanity check.
467 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
468 Implement semantics for inter-file DataLabel references.
469 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
470 (sh64_elf64_add_symbol_hook): New.
471 (sh_elf64_relocate_section): If passing an indirect symbol with
472 st_type STT_DATALABEL on the way to a symbol with st_other
473 STO_SH5_ISA32, do not bitor 1 to the relocation.
474 (elf_backend_add_symbol_hook): Define to
475 sh64_elf64_add_symbol_hook.
476 * elf64-sh32.c: Tweak comments.
477 (DATALABEL_SUFFIX): Define.
478 (sh64_elf_add_symbol_hook): New.
479 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
480 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
481 symbol with st_type STT_DATALABEL on the way to a symbol with
482 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
483 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
484 Pass through STT_DATALABEL.
485 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
486 (elf_backend_get_symbol_type): Define.
487 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
488 (elf_backend_get_symbol_type): Define.
489 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
490 * elf32-sh64.c: Tweak comments.
491 (sh64_elf_copy_private_data_internal): Add prototype.
492 (bfd_elf32_bfd_set_private_flags): Define.
493 (sh64_elf_copy_private_data_internal): Compare machine name, not
494 textual BFD target name, to check whether to copy section flag
495 SHF_SH5_ISA32.
496 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
497 Tweak section-contents-type-mismatch message.
498 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
499 Validize reloc-types.
500 * elf64-sh64.c: New file.
501 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
502 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
503 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
504 Regenerate dependencies.
505 * Makefile.in: Regenerate.
506 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
507 bfd_elf64_sh64l_vec.
508 * configure.in: Handle bfd_elf64_sh64_vec and
509 bfd_elf64_sh64l_vec.
510 * configure: Regenerate.
511 * po/POTFILES.in: Regenerate.
512 * po/bfd.pot: Regenerate.
513 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
514 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
515 anything else but EF_SH64 and EF_SH64_ABI64.
516 (sh64_elf_merge_private_data): Emit error for anything else but
517 EF_SH64 and EF_SH64_ABI64.
518 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
519 from targ_selvecs.
520 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
521 bfd_elf32_sh64l_vec as a temporary measure.
522 * configure: Regenerate.
523 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
524 * cpu-sh.c (arch_info_struct): Include sh5 item
525 unconditionalized.
526 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
527 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
528 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
529 * elf32-sh64.c: Tweak comments.
530 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
531 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
532 (sh64_elf_copy_private_data_internal): Wrap long line.
533 (sh64_elf_merge_private_data): Rewrite to allow objects from
534 SH64 subsets to be linked together.
535 (INCLUDE_SHMEDIA): Define.
536 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
537 Parenthesize plus-expression inside or-expression.
538 <global symbol>: Ditto.
539 (sh_elf_set_mach_from_flags): Remove code refusing
540 deleted EF_SH64_32BIT_ABI flag.
541 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
542 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
543 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
544 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
545 (sh_elf_relocate_section) <local symbol>: Or 1 in
546 calculation of relocation if sym->st_other & STO_SH5_ISA32.
547 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
548 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
549 relocation.
550 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
551 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
552 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
553 Regenerate dependencies.
554 * Makefile.in: Regenerate.
555 * archures.c: Add bfd_mach_sh5.
556 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
557 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
558 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
559 * configure: Regenerate.
560 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
561 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
562 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
563 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
564 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
565 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
566 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
567 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
568 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
569 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
570 in item for SH5.
571 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
572 for SHmedia relocs.
573 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
574 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
575 shmedia_prepare_reloc, goto final_link_relocate if it returns
576 non-zero, else fail as before.
577 (sh_elf_set_mach_from_flags): Provide function only if not defined
578 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
579 (sh_elf_set_private_flags): Provide function only if not defined
580 as a macro.
581 (sh_elf_copy_private_data): Similar.
582 (sh_elf_merge_private_data): Similar.
583 * section.c (SEC_SH_ISA_SHMEDIA): New.
584 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
585 * elf32-sh64.c: New file.
586 * libbfd.h: Regenerate.
587 * bfd-in2.h: Regenerate.
588 * po/POTFILES.in: Regenerate.
589 * po/bfd.pot: Regenerate.
590 * bfd-in2.h: Regenerate.
591 * libbfd.h: Regenerate.
592
593 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
594
595 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
596 been included, not drag it in.
597 * bfd-in2.h: Regenerate.
598
599 2002-02-06 H.J. Lu (hjl@gnu.org)
600
601 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
602 the mach and ISA fields if necessary.
603
604 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
605
606 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
607 ARM architecture when an F_ARM_5 flag is detected, since we cannot
608 be sure exactly which architecture this represents.
609
610 2002-02-05 Nick Clifton <nickc@redhat.com>
611
612 * po/tr.po: Updated translation.
613
614 2002-02-05 Alan Modra <amodra@bigpond.net.au>
615
616 From Jimi X <jimix@watson.ibm.com>
617 * archures (bfd_mach_ppc64): Define.
618 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
619 (bfd_powerpc_arch): Define.
620 * bfd-in2.h: Regenerate.
621 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
622 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
623 (bfd_powerpc_archs): Add default powerpc64 arch.
624
625 2002-02-05 Alan Modra <amodra@bigpond.net.au>
626
627 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
628 against section syms in readonly sections. Don't do the global
629 sym check if we find one.
630 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
631 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
632 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
633 (elf_s390_grok_prstatus): Add missing prototype.
634
635 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
636
637 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
638 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
639 Call bfd_get_section_by_name only once. Initialize
640 bpodata->n_bpo_relocs_this_section.
641 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
642 referring to DSOs.
643 (bpo_reloc_request_sort_fn): Don't use difference of values as
644 return-value.
645
646 2002-02-02 David O'Brien <obrien@FreeBSD>
647
648 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
649 version 4.5 and later the same as 5-CURRENT.
650 * configure: Re-generate.
651
652 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
653
654 * config.bfd (hppa*-*-netbsd*): New target.
655
656 2002-01-31 Philipp Thomas <pthomas@suse.de>
657
658 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
659 to front of message. Unify messages with elf32-arm.h. Use
660 commas where neccessary.
661 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
662 ERROR in messages. Unify messages with coff-arm.c. Correct
663 VFP/FPA error message.
664 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
665 APCS-32 for translation.
666
667 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
668
669 Perform on-demand global register allocation from
670 R_MMIX_BASE_PLUS_OFFSET relocs.
671 * elf64-mmix.c (struct bpo_reloc_section_info, struct
672 bpo_reloc_request, struct bpo_greg_section_info): New.
673 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
674 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
675 _bfd_mmix_check_all_relocs,
676 _bfd_mmix_prepare_linker_allocated_gregs,
677 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
678 (elf_mmix_howto_table): Correct src_mask for most relocs.
679 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
680 case.
681 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
682 case. Fix typo in comment. New label do_mmix_reloc.
683 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
684 store first object file with a base-plus-offset reloc. Call
685 mmix_elf_check_common_relocs for the part common with mmo.
686 (mmix_elf_final_link): Write out linker-allocated register
687 contents section.
688 (elf_backend_gc_sweep_hook): Define.
689 (bfd_elf64_bfd_relax_section): Define.
690
691 * mmo.c: Don't include <ctype.h>
692 (mmo_init): Correct init-once logic.
693
694 2002-02-01 Tom Rix <trix@redhat.com>
695
696 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
697
698 2002-02-01 Alan Modra <amodra@bigpond.net.au>
699
700 * Makefile.am: Run "make dep-am"
701 * Makefile.in: Regenerate.
702
703 2002-01-31 David O'Brien <obrien@FreeBSD>
704
705 * configure.in: Recognize the differences in core files from FreeBSD
706 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
707 5-CURRENT.
708 * configure: Regenerate.
709
710 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
711
712 * coff-or32.c: New file.
713 * cpu-or32.c: New file.
714 * elf32-or32.c: New file.
715 * archures.c: Add support for or32.
716 * targets.c: Add support for or32.
717 * bfd-in2.h: Regenerate.
718 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
719 coff_write_object_contents): Add support for or32.
720 * config.bfd: Add target.
721 * configure.in: Add support for or32.
722 * configure: Regenerate.
723 * Makefile.am: Add support for or32.
724 * Makefile.in: Regenerate.
725 * po/SRC-POTFILES.in: Add or32 files.
726 * po/bfd.pot: Regenerate.
727
728 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
729 Don Lindsay <lindsayd@cisco.com>
730
731 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
732 false' with a return of a bfd_reloc_ error code.
733
734 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
735
736 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
737 unexport unreferenced symbols when --export-dynamic. Call
738 _bfd_elf_strtab_delref when unexporting.
739
740 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
741
742 * bfd-in.h: Include <stdbool.h> if it is available.
743 * bfd-in2.h: Regenerated.
744
745 2002-01-31 Alan Modra <amodra@bigpond.net.au>
746
747 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
748 not go via the plt.
749
750 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
751
752 * archures.c: Tidy up formatting of embedded comments.
753 * bfd.c: Tidy up formatting of embedded comments.
754 * bfd-in.h: Fix formatting of comments.
755 * reloc.c: Tidy up formatting of ordinary & embedded comments.
756 * section.c: Tidy up formatting of embedded comments.
757 * syms.c: Tidy up formatting of embedded comments.
758 * targets.c: Tidy up formatting of embedded comments.
759
760 * bfd-in2.h: Regenerate.
761
762 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
763
764 * vms-tir.c (cmd_name): New function.
765 (tir_cmd_name): New function.
766 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
767 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
768 Fix formatting.
769
770 * peXXigen.c (pe_print_idata): Rearrange message to aid in
771 translation.
772 (pe_print_pdata): Rearrange message to aid in translation.
773
774 * libbfd.c (warn_deprecated): Rearrange error message to aid in
775 translation.
776
777 * ihex.c (ihex_write_object_contents): Fix spelling typo.
778
779 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
780
781 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
782 message to aid in translation.
783
784 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
785 to aid in translation.
786
787 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
788
789 2002-01-30 Philipp Thomas <pthomas@suse.de>
790
791 * coff-arm.c, elf32-elf.h: Unify messages.
792
793 2002-01-30 Nick Clifton <nickc@redhat.com>
794
795 * po/sv.po: Updated translation.
796
797 2002-01-30 Philipp Thomas <pthomas@suse.de>
798
799 * dwarf2.c (read_abbrev): Use full section name in error message.
800 (decode_line_info): Likewise.
801
802 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
803 message.
804
805 2002-01-30 Alan Modra <amodra@bigpond.net.au>
806
807 * elf64-ppc.c (func_desc_adjust): Only provide missing function
808 descriptor symbols for undefined function code syms. Clear
809 ELF_LINK_NON_ELF so that they can stay weak.
810
811 2002-01-29 Chris Demetriou <cgd@broadcom.com>
812 Mitch Lichtenberg <mpl@broadcom.com>
813
814 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
815 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
816 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
817 generation.
818 * bfd-in2.h: Regenerate.
819
820 2002-01-29 Chris Demetriou <cgd@broadcom.com>
821
822 * elf32-mips.c: Add additional comments about HI16 relocation
823 processing.
824 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
825 pc-relative relocations. (Reverts change made on 2001-10-31.)
826 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
827 for pc-relative relocations.
828 (mips_elf_calculate_relocation): Add a comment about a kludge
829 in the R_MIPS_GNU_REL_HI16 handling.
830 (_bfd_mips_elf_relocate_section): Implement that kludge;
831 adjust pc-relative HI16 relocation for difference in HI16 and
832 LO16 addresses, since it can't easily be done in
833 mips_elf_calculate_relocation.
834
835 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
836
837 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
838 relocations with PC32 relocations for undefined or weak symbols.
839 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
840 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
841
842 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
843
844 * elfcore.h (elf_core_file_p): Improve comment for last change.
845
846 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
847
848 * configure: Regenerated.
849
850 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
851
852 * elfcore.h (elf_core_file_p): Set the machine architecture
853 before processing the program headers.
854
855 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
856
857 * configure.in <64-bit configuration>: If using gcc, check and
858 emit error for egcs-1.1.2.
859 * configure: Regenerate.
860
861 2002-01-26 Egor Duda <deo@logos-m.ru>
862
863 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
864 as possible to avoid stack corruption.
865
866 2002-01-26 Richard Henderson <rth@redhat.com>
867
868 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
869 for non-allocated sections.
870
871 2002-01-25 Mark Kettenis <kettenis@gnu.org>
872
873 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
874 prstat.pr_reg even if it is a struct.
875
876 2002-01-25 Steve Ellcey <sje@cup.hp.com>
877
878 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
879
880 2002-01-25 Philipp Thomas <pthomas@suse.de>
881
882 * coffgen.c (coff_print_symbol): Don't mark info message
883 for translation.
884
885 2002-01-25 Nick Clifton <nickc@redhat.com>
886
887 * po/fr.po: Updated translation.
888 * po/es.po: Updated translation.
889
890 2002-01-25 Philipp Thomas <pthomas@suse.de>
891
892 * coff-alpha.c (alpha_relocate_section): Unify warning message
893 for GP relative relocations without GP defined.
894 * coff-mips.c (mips_relocate_section): Likewise.
895
896 2002-01-25 Alan Modra <amodra@bigpond.net.au>
897
898 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
899 unsigned overflow when new_offset < old_offset.
900
901 2002-01-24 Philipp Thomas <pthomas@suse.de>
902
903 * bfd.c (_bfd_abort): Fix typo.
904
905 2002-01-23 Richard Henderson <rth@redhat.com>
906
907 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
908 plt entries for undefweak symbols.
909
910 2002-01-23 Steve Ellcey <sje@cup.hp.com>
911
912 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
913 DEFAULT_VECTOR.
914 (bfd_elf64_ia64_hpux_big_vec): Ditto.
915 (bfd_elf32_h8300_vec): Ditto.
916
917 2002-01-23 Alan Modra <amodra@bigpond.net.au>
918
919 * elf64-ppc.c: Remove stale part of ABI comment.
920 (NO_OPD_RELOCS): Define.
921 (ppc64_elf_check_relocs): Use it.
922 (ppc64_elf_relocate_section): Here too.
923 (build_one_stub): Don't point function syms at the stub. Instead,
924 hijack plt.offset.
925 (ppc64_elf_relocate_section): Check whether REL24 relocs should
926 really go to the stub. Make all dynamic relocs in opd against
927 locals.
928 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
929 plt.offset.
930
931 2002-01-22 Richard Henderson <rth@redhat.com>
932
933 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
934
935 2002-01-22 Alan Modra <amodra@bigpond.net.au>
936
937 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
938 TOC_BASE_OFF adjustment.
939
940 * Makefile.am: Run "make dep-am".
941 * Makefile.in: Regenerate.
942 * po/SRC-POTFILES.in: Regenerate.
943
944 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
945
946 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
947 host defines.
948
949 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
950
951 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
952 Check for and emit error if sgot is NULL at this point.
953
954 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
955
956 * config.bfd (ia64*-*-netbsd*): New target.
957
958 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
959
960 * som.c (som_write_space_strings): Comment typo fix.
961
962 2002-01-21 Alan Modra <amodra@bigpond.net.au>
963
964 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
965 is_func_descriptor fields.
966 (link_hash_newfunc): Init them.
967 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
968 dot are candidates for plt entries. When processing .opd relocs,
969 set function descriptor strings to point inside function code
970 string, and set new ppc_link_hash_entry fields.
971 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
972 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
973 function descriptors. It's now done in..
974 (func_desc_adjust): New.
975 (ppc64_elf_func_desc_adjust): New.
976 (define elf_backend_always_size_sections): Define.
977 (ppc64_elf_hide_symbol): New.
978 (define elf_backend_hide_symbol): Define.
979 (allocate_dynrelocs): Remove code looking up function descriptors
980 as that has been done earlier.
981 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
982 table.
983 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
984 up function descriptor.
985 (build_one_stub): Look up the function code sym. Check for
986 invalid plt offsets.
987 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
988 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
989
990 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
991 boolean param.
992 (_bfd_elf_link_hash_hide_symbol): Likewise.
993 * elflink.h (elf_link_add_object_symbols): Adjust call to
994 elf_backend_hide_symbol.
995 (elf_fix_symbol_flags): Likewise.
996 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
997 than bfd_alloc.
998 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
999 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
1000 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1001 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
1002 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
1003 and adjust to suit.
1004 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
1005 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
1006 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1007
1008 2002-01-18 Alan Modra <amodra@bigpond.net.au>
1009
1010 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
1011 dynamic function descriptor symbol, not the associated function
1012 symbol.
1013
1014 2002-01-17 Eric Christopher <echristo@redhat.com>
1015
1016 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
1017
1018 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1019
1020 * po/bfd.pot: Regenerate.
1021 * po/fr.po: Regenerate.
1022
1023 2002-01-17 Alan Modra <amodra@bigpond.net.au>
1024
1025 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
1026 Remove "Elf_Internal_Shdr *" param.
1027 (_bfd_mips_elf_section_from_bfd_section): Ditto.
1028 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
1029 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
1030 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
1031 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
1032 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
1033 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
1034 function to override special sections. Remove hdr arg from
1035 backend call, and don't loop.
1036
1037 2002-01-16 Eric Christopher <echristo@redhat.com>
1038
1039 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
1040 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
1041 relocations requiring gp0 and gp.
1042
1043 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
1044
1045 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
1046 EF_ARM_VFP_FLOAT.
1047 (elf32_arm_print_private_bfd_data): Likewise.
1048
1049 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
1050
1051 * po/tr.po: Import new version.
1052
1053 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1054
1055 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
1056 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
1057 (ORI_R0_R0_0): Correct.
1058
1059 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1060
1061 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
1062 when plt_not_loaded.
1063 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
1064 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
1065 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
1066 (ppc64_elf_glink_code): Delete.
1067 (PPC64_ELF_GLINK_SIZE): Delete.
1068 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
1069 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
1070 ORI_R0_R0_0): Define.
1071 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
1072 (struct ppc_link_hash_table): Add sstub and plt_overflow.
1073 (ppc64_elf_link_hash_table_create): Init them.
1074 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
1075 Don't copy to shared lib.
1076 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
1077 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
1078 (allocate_dynrelocs <plt>): Don't change function sym here. Make
1079 room for .stub and .glink code.
1080 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
1081 DT_PPC64_GLINK.
1082 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
1083 bfd_elf64_bfd_final_link.
1084 (bfd_elf64_bfd_final_link): Don't define.
1085 (ppc64_elf_size_stubs): New.
1086 (build_plt_stub): New.
1087 (build_one_stub): New.
1088 (ppc64_elf_build_stubs): New.
1089 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
1090 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
1091 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
1092 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
1093 case output sections not separate. Adjust DT_RELASZ to not
1094 include plt relocs. Set reserved got entry. Set got and plt
1095 entry size.
1096 (elf_backend_got_header_size): Set to 8.
1097 * elf64-ppc.h: New file.
1098
1099 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1100
1101 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
1102 sections, use bfd_section_list_remove.
1103 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1104 * elflink.h (elf_link_add_object_symbols): When removing all
1105 sections, use bfd_section_list_clear.
1106
1107 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1108
1109 * po/sv.po: New file: Swedish translation.
1110 * configure.in (ALL_LINGUAS): Add sv.
1111 * configure: Regenerate.
1112
1113 2002-01-15 Jakub Jelinek <jakub@redhat.com>
1114
1115 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
1116 * elf.c (merge_sections_remove_hook): New function.
1117 (_bfd_elf_merge_sections): Pass it as 3rd argument to
1118 _bfd_merge_sections.
1119 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
1120 * libbfd.h: Rebuilt.
1121 * merge.c (_bfd_merge_sections): Add remove_hook argument.
1122 Call remove_hook if a SEC_EXCLUDE section is encountered.
1123
1124 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1125
1126 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
1127 (xstormy16_reloc_map): Initialise new field with correct howto
1128 table.
1129 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
1130 howto entry.
1131
1132 2002-01-10 Michael Snyder <msnyder@redhat.com>
1133
1134 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
1135 (elfcore_write_pstatus): Use long instead of pid_t;
1136 * elf-bfd.h: Change prototypes to use long instead of pid_t;
1137
1138 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
1139
1140 * elf.c: Update copyright years.
1141 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
1142 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
1143
1144 2002-01-08 Michael Snyder <msnyder@redhat.com>
1145
1146 Add capability to write corefile note sections, for gdb.
1147 * elf.c (elfcore_write_note): New function.
1148 (elfcore_write_prpsinfo): New function.
1149 (elfcore_write_prstatus): New function.
1150 (elfcore_write_pstatus): New function.
1151 (elfcore_write_prfpreg): New function.
1152 (elfcore_write_prxfpreg): New function.
1153 * elf-bfd.h: Add prototypes for above functions.
1154
1155 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1156
1157 * elf.c (elf_fake_sections): Propagate errors from
1158 elf_backend_fake_section.
1159
1160 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1161
1162 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
1163 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
1164 (elf32-sh-nbsd.lo): New rule.
1165 * Makefile.in: Regenerate.
1166 * config.bfd (sh*le-*-netbsdelf*): New target.
1167 (sh*-*-netbsdelf*): New target.
1168 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
1169 (bfd_elf32_shnbsd_vec): New vector.
1170 (bfd_elf32_shlnbsd_vec): New vector.
1171 * configure: Regenerate.
1172 * elf32-sh-nbsd.c: New file.
1173 * targets.c: Update copyright years.
1174 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
1175 bfd_elf32_shnbsd_vec.
1176
1177 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
1178
1179 * coff-rs6000.c (READ20): Use bfd_scan_vma.
1180
1181 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
1182
1183 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
1184 of a symbol in a section that will be deleted.
1185
1186 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1187
1188 * po/es.po: New file: Spanish translation.
1189 * configure.in (ALL_LINGUAS): Add es.
1190 * configure: Regenerate.
1191
1192 2002-01-06 Steve Ellcey <sje@cup.hp.com>
1193
1194 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
1195 argument so we can handle HP-UX specially.
1196 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
1197 (elfNN_hpux_backend_section_from_bfd_section): New for support
1198 of SHN_IA_64_ANSI_COMMON.
1199 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
1200 (is_unwind_section_name): Add special HP-UX support.
1201 (elfNN_ia64_section_from_shdr): Add support for more sections.
1202 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
1203 add support for more sections.
1204 (elfNN_ia64_additional_program_headers): Modify
1205 is_unwind_section_name call.
1206 (elfNN_ia64_modify_segment_map): Remove assumption that there is
1207 only one unwind section in segment.
1208
1209 2002-01-06 Alan Modra <amodra@bigpond.net.au>
1210
1211 * syms.c (_bfd_generic_make_empty_symbol): New function.
1212 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
1213 _bfd_generic_make_empty_symbol.
1214 * libbfd.h: Regenerate.
1215 * bfd-in2.h: Regenerate.
1216 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
1217 (hppabsd_core_get_symtab_upper_bound): Don't define.
1218 (hppabsd_core_get_symtab): Likewise.
1219 (hppabsd_core_print_symbol): Likewise.
1220 (hppabsd_core_get_symbol_info): Likewise.
1221 (hppabsd_core_bfd_is_local_label_name): Likewise.
1222 (hppabsd_core_get_lineno): Likewise.
1223 (hppabsd_core_find_nearest_line): Likewise.
1224 (hppabsd_core_bfd_make_debug_symbol): Likewise.
1225 (hppabsd_core_read_minisymbols): Likewise.
1226 (hppabsd_core_minisymbol_to_symbol): Likewise.
1227 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
1228 Formatting fixes.
1229 * hpux-core.c: Similarly.
1230 * irix-core.c: Similarly.
1231 * osf-core.c: Similarly.
1232 * sco5-core.c: Similarly.
1233 * binary.c (binary_make_empty_symbol): Remove function, define as
1234 _bfd_generic_make_empty_symbol.
1235 * ihex.c (ihex_make_empty_symbol): Likewise.
1236 * mmo.c (mmo_make_empty_symbol): Likewise.
1237 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
1238 * srec.c (srec_make_empty_symbol): Likewise.
1239 * versados.c (versados_make_empty_symbol): Likewise.
1240 * vms.c (_bfd_vms_make_empty_symbol): Remove.
1241 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
1242 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
1243 rather than _bfd_vms_make_empty_symbol.
1244 * vms-misc.c (new_symbol): Likewise.
1245
1246 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1247
1248 * section.c (bfd_section_init): Remove unnecessary initialisations.
1249 (bfd_section_list_clear): New function.
1250 (bfd_section_list_remove, bfd_section_list_insert): New macros.
1251 (_bfd_strip_section_from_output): Use them.
1252 * coffcode.h (coff_set_alignment_hook): Likewise.
1253 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
1254 * elf64-mips.c (mips_elf64_final_link): Likewise.
1255 * elf64-mmix.c (mmix_elf_final_link): Likewise.
1256 * sunos.c (sunos_add_dynamic_symbols): Likewise.
1257 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
1258 * bfd-in2.h: Regenerate.
1259
1260 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
1261 rather than doing our own section handling. Clean up after errors
1262 with bfd_release and bfd_section_list_clear. Handle unexpected
1263 flags.
1264 * aoutf1.h (sunos4_core_file_p): Likewise.
1265 * aix386-core.c (aix386_core_file_p): Likewise.
1266 * cisco-core.c (cisco_core_file_validate): Likewise.
1267 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
1268 * trad-core.c (trad_unix_core_file_p): Likewise.
1269
1270 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
1271 with bfd_release and bfd_section_list_clear.
1272 * hpux-core.c (hpux_core_core_file_p): Likewise.
1273 * irix-core.c (irix_core_core_file_p): Likewise.
1274 * lynx-core.c (lynx_core_file_p): Likewise.
1275 * osf-core.c (osf_core_core_file_p): Likewise.
1276 * rs6000-core.c (rs6000coff_core_p): Likewise.
1277 * sco5-core.c (sco5_core_file_p): Likewise.
1278
1279 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
1280 sign extension adjustments without conditionals.
1281
1282 2002-01-04 Jakub Jelinek <jakub@redhat.com>
1283
1284 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
1285 CIE at .eh_frame start is removed due to no FDEs referencing it.
1286
1287 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1288
1289 * config.bfd (x86_64-*-netbsd*): New target.
1290 * configure.in (x86_64-*-netbsd*): Set COREFILE
1291 to netbsd-core.lo.
1292 * configure: Regenerated.
1293
1294 2002-01-03 Tom Rix <trix@redhat.com>
1295
1296 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
1297 for recent bfd_make_section_anyway change.
1298
1299 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
1300
1301 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
1302 R_ARM_THM_PC11 reloc.
1303
1304 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1305
1306 * configure.in (LINGUAS): Add ja.
1307 * configure: Regenerate.
1308 * po/ja.po: Import from translation project's web site.
1309
1310 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1311
1312 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
1313 messages to ease translation into other languages.
1314
1315 For older changes see ChangeLog-0001
1316 \f
1317 Local Variables:
1318 mode: change-log
1319 left-margin: 8
1320 fill-column: 74
1321 version-control: never
1322 End:
This page took 0.054344 seconds and 5 git commands to generate.