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