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