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