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