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