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