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