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