Commit | Line | Data |
---|---|---|
ef60b7ff AM |
1 | 2002-05-17 Alan Modra <amodra@bigpond.net.au> |
2 | ||
3 | * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting. | |
4 | (ppc64_elf_relocate_section): Don't warn about reloc overflow when | |
5 | we've already warned about an undefined symbol. Report more | |
6 | detail on reloc errors. | |
7 | ||
a703a6ea AM |
8 | 2002-05-17 Alan Modra <amodra@bigpond.net.au> |
9 | ||
10 | * acinclude.m4 (AM_INSTALL_LIBBFD): New. | |
11 | * configure.in: Invoke AM_INSTALL_LIBBFD. | |
12 | * Makefile.am (install-data-local): Revert 2002-05-13. Move to.. | |
13 | (install_libbfd): .. New target. | |
14 | (uninstall_libbfd): Likewise. | |
15 | (install-bfdlibLTLIBRARIES): Likewise. | |
16 | (uninstall-bfdlibLTLIBRARIES): Likewise. | |
17 | (bfdlibdir): New. | |
18 | (bfdincludedir): New. | |
19 | (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES. | |
20 | * aclocal.m4: Regenerate. | |
21 | * configure: Regenerate. | |
22 | * Makefile.in: Regenerate. | |
23 | ||
2c13d98b NC |
24 | 2002-05-17 Stuart Balfour <sbalfour@cisco.com> |
25 | ||
26 | * hash.c (bfd_hash_lookup): Remove computation of len from inside | |
27 | hash loop. | |
28 | ||
629936c5 NC |
29 | 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com> |
30 | ||
31 | * config.bfd: Add targets for sh64-linux (little endian and | |
32 | big endian). | |
33 | ||
e4cf60a8 NC |
34 | 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be> |
35 | ||
36 | * peXXigen.c (pe_print_idata): Do not assume that the first thunk | |
37 | is located in the same section as the import table. Instead | |
38 | check, and if necessary load the section containing the thunk. | |
39 | ||
d1e66cd4 NC |
40 | 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com> |
41 | ||
42 | * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with | |
43 | bfd_bread. | |
44 | (xcoff64_core_file_matches_executable_p): Replace bfd_read | |
45 | with bfd_bread. | |
46 | ||
2d653fc7 AM |
47 | 2002-05-15 Alan Modra <amodra@bigpond.net.au> |
48 | ||
49 | * aix5ppc-core.c: Warning fixes. | |
50 | * aout-adobe.c (aout_32_bfd_link_just_syms): Define. | |
51 | * aout-target.h (MY_bfd_link_just_syms): Define. | |
52 | * aout-tic30.c (MY_bfd_link_just_syms): Define. | |
53 | * bfd.c (bfd_link_just_syms): Define. | |
54 | * binary.c (binary_bfd_link_just_syms): Define. | |
55 | * bout.c (b_out_bfd_link_just_syms): Define. | |
56 | * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer. | |
57 | * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. | |
58 | * coffcode.h (coff_bfd_link_just_syms): Define. | |
59 | * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS. | |
60 | (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS. | |
61 | (_bfd_elf_link_just_syms): Declare. | |
62 | * elf.c (_bfd_elf_link_just_syms): New function. | |
63 | * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that | |
64 | sections haven't already been discarded by the linker. | |
65 | * elflink.h (elf_link_add_object_symbols): Likewise for stab | |
66 | sections and SEC_MERGE sections. | |
67 | (elf_bfd_discard_info): Similarly here. | |
68 | * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define. | |
69 | * i386msdos.c (msdos_bfd_link_just_syms): Define. | |
70 | * i386os9k.c (os9k_bfd_link_just_syms): Define. | |
71 | * ieee.c (ieee_bfd_link_just_syms): Define. | |
72 | * ihex.c (ihex_bfd_link_just_syms): Define. | |
73 | * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define. | |
74 | (_bfd_generic_link_just_syms): Declare. | |
75 | * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define. | |
76 | * linker.c (_bfd_generic_link_just_syms): New function. | |
77 | * mmo.c (mmo_bfd_link_just_syms): Define. | |
78 | * nlm-target.h (nlm_bfd_link_just_syms): Define. | |
79 | * oasys.c (oasys_bfd_link_just_syms): Define. | |
80 | * ppcboot.c (ppcboot_bfd_link_just_syms): Define. | |
81 | * som.c (som_bfd_link_just_syms): Define. | |
82 | * srec.c (srec_bfd_link_just_syms): Define. | |
83 | * targets.c (struct bfd_target): Add _bfd_link_just_syms. | |
84 | (BFD_JUMP_TABLE_LINK): And here. | |
85 | * tekhex.c (tekhex_bfd_link_just_syms): Define. | |
86 | * versados.c (versados_bfd_link_just_syms): Define. | |
87 | * vms.c (vms_bfd_link_just_syms): Define. | |
88 | * libbfd.h: Regenerate. | |
89 | * bfd-in2.h: Regenerate. | |
90 | ||
cb7394f2 TS |
91 | 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
92 | ||
93 | * elf32-mips.c: Remove superfluous definitions copied from | |
94 | elfxx-mips.c. | |
95 | (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the | |
96 | SGIish vectors to check the special case. | |
97 | (mips_elf_hi16_reloc): Fix comment. | |
98 | (mips_elf_got16_reloc): Likewise. | |
99 | (_bfd_mips_elf32_gprel16_reloc): Likewise. | |
100 | (elf_reloc_map): Code cleanup. | |
101 | (mips_reloc_map): Add comment. | |
102 | (bfd_elf23_bfd_reloc_type_lookup): Code cleanup. | |
103 | (mips_elf32_rtype_to_howto): Likewise. | |
104 | (mips_elf32_discard_info): Likewise. | |
105 | (elf32_mips_irix_compat): Invert logic: Only SGIish vectors | |
106 | lead to IRIX compatibility now. | |
107 | ||
8dc1a139 TS |
108 | 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
109 | ||
110 | * elfxx-mips.c: Call it IRIX, not Irix in comments. | |
111 | ||
2051e1b5 JT |
112 | 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com> |
113 | ||
114 | * config.bfd (shle-*-netbsdelf*): Add target which includes | |
115 | sh64 support. | |
116 | ||
83954261 AM |
117 | 2002-05-13 David Edelsohn <edelsohn@gnu.org> |
118 | ||
119 | * configure.in: Revert 2002-04-07. Instead, auto-configure | |
120 | HAVE_ST_C_IMPL. | |
121 | * configure: Regenerate. | |
122 | * config.in: Regenerate. | |
123 | * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL | |
124 | or AIX_5_CORE. | |
125 | ||
a9bf1154 NC |
126 | 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br> |
127 | ||
128 | * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd | |
129 | corefiles as well.2 | |
130 | * configure: Regenerate. | |
131 | ||
3129eb7a AM |
132 | 2002-05-13 Alan Modra <amodra@bigpond.net.au> |
133 | ||
134 | * Makefile.am (install-data-local): Install headers to | |
135 | $(exec_prefix)/include. | |
136 | * Makefile.in: Regenerate. | |
137 | ||
a9a32010 DJ |
138 | 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de> |
139 | Daniel Jacobowitz <drow@mvista.com> | |
140 | ||
141 | * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't | |
142 | map BFD_RELOC_RVA. | |
143 | ||
144 | 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br> | |
690cc98b NC |
145 | |
146 | * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*, | |
147 | hppa*-*-openbsd*): New targets. | |
148 | * configure.in (alpha*-*-openbsd*): Set COREFILE. | |
149 | * configure: Regenerate. | |
150 | ||
f1f0d9ab TR |
151 | 2002-05-10 Tom Rix <trix@redhat.com> |
152 | ||
153 | * coff64-rs6000.c (xcoff64_reloc_type_br): New function for | |
154 | xcoff64_ppc_relocate_section. | |
155 | * coff-rs6000.c : Extern common xcoff_reloc_type functions. | |
156 | * libxcoff.h: Common xcoff_reloc_type function declaration. | |
157 | ||
c432ba1a AM |
158 | 2002-05-10 Alan Modra <amodra@bigpond.net.au> |
159 | ||
16a10388 AM |
160 | * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks |
161 | addend in 2002-05-09 commit. | |
162 | ||
c432ba1a AM |
163 | * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04, |
164 | don't look for stubs on all undefined syms. | |
165 | ||
4a335f3d AM |
166 | 2002-05-09 Alan Modra <amodra@bigpond.net.au> |
167 | ||
8fc39d5d AM |
168 | * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete. |
169 | (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or | |
170 | pcrel_offset. | |
171 | ||
4a335f3d AM |
172 | * elf32-i386.c (elf_howto_table): Comments. |
173 | (elf_i386_relocate_section): Handle more relocs for relocatable | |
174 | linking and against SEC_MERGE sections. | |
175 | ||
41fcb14e AM |
176 | 2002-05-08 Alan Modra <amodra@bigpond.net.au> |
177 | ||
178 | * elf32-ppc.c (ppc_elf_create_got): New function. | |
179 | (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before | |
180 | _bfd_elf_create_dynamic_sections. Correct .plt flags. | |
181 | (ppc_elf_check_relocs): Use ppc_elf_create_got in place of | |
182 | _bfd_elf_create_got_section. | |
183 | ||
b491616a AM |
184 | 2002-05-07 Alan Modra <amodra@bigpond.net.au> |
185 | ||
186 | * elf-bfd.h (struct elf_backend_data): Add rela_normal. | |
187 | * elfxx-target.h (elf_backend_rela_normal): Define. | |
188 | (elfNN_bed): Init rela_normal. | |
189 | * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment | |
190 | for section symbols here if rela_normal. Simplify abs section test. | |
191 | * elf-m10200.c (mn10200_elf_relocate_section): If relocatable, | |
192 | return immediately. Remove code handling relocatable linking. | |
193 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
194 | * elf32-fr30.c (fr30_elf_relocate_section): Likewise. | |
195 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
196 | * elf32-i860.c (elf32_i860_relocate_section): Likewise. | |
197 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
198 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
199 | * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. | |
200 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
201 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
202 | * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. | |
203 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
204 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
205 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
206 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
207 | * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL. | |
208 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
209 | * elf-m10200.c (elf_backend_rela_normal): Define. | |
210 | * elf-m10300.c (elf_backend_rela_normal): Define. | |
211 | * elf32-fr30.c (elf_backend_rela_normal): Define. | |
212 | * elf32-i370.c (elf_backend_rela_normal): Define. | |
213 | * elf32-i860.c (elf_backend_rela_normal): Define. | |
214 | * elf32-m68k.c (elf_backend_rela_normal): Define. | |
215 | * elf32-mcore.c (elf_backend_rela_normal): Define. | |
216 | * elf32-openrisc.c (elf_backend_rela_normal): Define. | |
217 | * elf32-ppc.c (elf_backend_rela_normal): Define. | |
218 | * elf32-s390.c (elf_backend_rela_normal): Define. | |
219 | * elf32-xstormy16.c (elf_backend_rela_normal): Define. | |
220 | * elf64-ppc.c (elf_backend_rela_normal): Define. | |
221 | * elf64-s390.c (elf_backend_rela_normal): Define. | |
222 | * elf64-x86-64.c (elf_backend_rela_normal): Define. | |
223 | * elfxx-ia64.c (elf_backend_rela_normal): Define. | |
224 | * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL. | |
225 | * elf32-m32r.c (elf_backend_rela_normal): Likewise. | |
226 | ||
df212a7e NC |
227 | 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com> |
228 | ||
229 | * elf32-arm.h (elf32_arm_final_link_relocate): Convert | |
230 | 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets. | |
231 | ||
3decf53c AM |
232 | 2002-05-06 Alan Modra <amodra@bigpond.net.au> |
233 | ||
234 | * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset | |
235 | when not relocatable. Fix reloc_emitter call for K&R. | |
236 | ||
f46c2da6 AM |
237 | 2002-05-04 Alan Modra <amodra@bigpond.net.au> |
238 | ||
239 | * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code | |
240 | reloading local sym addend mistakenly removed in 2002-05-01 change. | |
241 | ||
242 | * dwarf2.c (struct line_head): Make prologue_length a bfd_vma. | |
243 | (read_abbrevs): Change "offset" param to bfd_vma. | |
244 | (parse_comp_unit): Change "version" and addr_size to unsigned ints. | |
245 | Change "abbrev_offset" to bfd_vma. | |
246 | (read_indirect_string): Use correct conversion chars in error | |
247 | message format string, cast bfd_vma's to unsigned long. | |
248 | (read_abbrevs): Likewise. | |
249 | (read_attribute_value): Likewise. | |
250 | (decode_line_info): Likewise. | |
251 | (scan_unit_for_functions): Likewise. | |
252 | (parse_comp_unit): Likewise. | |
253 | ||
59862849 TR |
254 | 2002-05-04 Tom Rix <trix@redhat.com> |
255 | ||
256 | * coffswap.h (coff_swap_reloc_in): Remove XCOFF support. | |
257 | (coff_swap_reloc_out): Same. | |
258 | * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h. | |
259 | (xcoff_swap_reloc_out): Same. | |
260 | (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special | |
261 | case some 16 bit relocs. Add reloc value to output. | |
262 | (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit | |
263 | R_RBR. Improve names. | |
264 | (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS. | |
265 | (bfd_xcoff_backend_data): Update with new reloc swap names. | |
266 | (bfd_pmac_xcoff_backend_data) : Same. | |
267 | * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h. | |
268 | (xcoff64_swap_reloc_out): Same. | |
269 | (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit | |
270 | R_POS. Add reloc value to output. | |
271 | (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16 | |
272 | bit R_RBR. Improve names, masks. | |
273 | (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS. | |
274 | (bfd_xcoff_backend_data): Update with new reloc swap names. | |
275 | (bfd_xcoff_aix5_backend_data) : Same. | |
276 | ||
b4655ea9 AM |
277 | 2002-05-04 Alan Modra <amodra@bigpond.net.au> |
278 | ||
279 | * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add | |
280 | bfd_count top_index, input_list, all_local_syms. | |
281 | (elf32_hppa_setup_section_lists): New function, split from | |
282 | elf32_hppa_size_stubs. | |
283 | (elf32_hppa_next_input_section): Likewise. | |
284 | (group_sections): Likewise. | |
285 | (get_local_syms): Likewise. | |
286 | (elf32_hppa_size_stubs): Adjust for split out functions. Look for | |
287 | stubs on undefined syms too. | |
288 | (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*. | |
8fc39d5d | 289 | Only access htab elf fields when we have an elf hash table. |
b4655ea9 AM |
290 | * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare. |
291 | (elf32_hppa_next_input_section): Declare. | |
292 | ||
301e3139 AM |
293 | 2002-05-04 Bob Byrnes <byrnes@curl.com> |
294 | ||
295 | * opncls.c (_bfd_new_bfd_contained_in): Check return value of | |
296 | _bfd_new_bfd. | |
297 | ||
7c5fcef7 L |
298 | 2002-05-03 H.J. Lu (hjl@gnu.org) |
299 | ||
300 | * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local. | |
301 | (mips_elf_link_hash_newfunc): Initialize forced_local to false. | |
302 | (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol | |
303 | to hide a global symbol. | |
304 | (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set | |
305 | forced_local to true. | |
306 | ||
84de6048 RH |
307 | 2002-05-02 Richard Henderson <rth@redhat.com> |
308 | ||
309 | * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs | |
310 | vs SHN_UNDEF to zero. | |
311 | ||
805fc799 AM |
312 | 2002-05-02 Alan Modra <amodra@bigpond.net.au> |
313 | ||
c061c2d8 AM |
314 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a |
315 | 16 bit reloc. | |
316 | <R_PPC64_SECTOFF_DS>: Likewise. | |
317 | (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to | |
318 | SECTOFF reloc. | |
319 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct. | |
320 | (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to | |
321 | SECTOFF reloc. | |
322 | ||
805fc799 AM |
323 | * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete. |
324 | (ppc64_elf_ha_reloc): New function. | |
325 | (ppc64_elf_brtaken_reloc): New function. | |
326 | (ppc64_elf_sectoff_reloc): New function. | |
327 | (ppc64_elf_sectoff_ha_reloc): New function. | |
328 | (ppc64_elf_toc_reloc): New function. | |
329 | (ppc64_elf_toc_ha_reloc): New function. | |
330 | (ppc64_elf_toc64_reloc): New function. | |
331 | (ppc64_elf_unhandled_reloc): New function. | |
332 | (ppc64_elf_howto_raw): Use the above. | |
333 | <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset. | |
334 | <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask. | |
335 | <R_PPC64_SECTOFF_DS>: Likewise. | |
336 | (IS_ABSOLUTE_RELOC): Update. | |
337 | (struct ppc_link_hash_table): Add have_undefweak. | |
338 | (ppc64_elf_link_hash_table_create): Init. | |
339 | (func_desc_adjust): Set have_undefweak. | |
340 | (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only | |
341 | add the .sfpr blr when have_undefweak. | |
342 | (ppc64_elf_setup_section_lists): Check hash table flavour. | |
343 | (ppc64_elf_next_input_section): Move output_section->owner test to | |
344 | ppc64elf.em. | |
345 | (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param | |
346 | and relocatable test. Return TOCstart and don't set elf_gp. | |
347 | (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch | |
348 | offset calculation. Add assert on weak sym branch tweaks. | |
349 | * elf64-ppc.h (ppc64_elf_set_toc): Delete. | |
350 | (ppc64_elf_toc): Declare. | |
351 | (ppc64_elf_next_input_section): Update. | |
352 | ||
818c39a3 AM |
353 | 2002-05-01 Alan Modra <amodra@bigpond.net.au> |
354 | ||
355 | * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL | |
356 | file_name. | |
357 | ||
721956f4 AM |
358 | 2002-05-01 Alan Modra <amodra@bigpond.net.au> |
359 | ||
360 | * elf64-ppc.c (CROR_151515, CROR_313131): Define. | |
361 | (ppc64_elf_relocate_section): Use them. Don't look for plt calls | |
362 | on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt | |
363 | call branches. Correct undefined weak destination. | |
364 | (ppc64_elf_func_desc_adjust): Always create at least one blr in | |
365 | .sfpr, and correct case where either only savef* or restf* is | |
366 | needed. | |
367 | ||
368 | Long branch stubs, multiple stub sections. | |
369 | * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare. | |
370 | (ppc64_elf_next_input_section): Declare. | |
371 | * elf64-ppc.c: Move linker-only prototypes. | |
372 | (STUB_SUFFIX): Define. | |
373 | (enum ppc_stub_type): New. | |
374 | (struct ppc_stub_hash_entry): New. | |
375 | (struct ppc_branch_hash_entry): New. | |
376 | (struct ppc_link_hash_entry): Add stub_cache, oh. | |
377 | (struct ppc_link_hash_table): Add stub_hash_table etc. Remove | |
378 | sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration. | |
379 | Rename plt_overflow to stub_error. | |
380 | (ppc_stub_hash_lookup): Define. | |
381 | (ppc_branch_hash_lookup): Define. | |
382 | (stub_hash_newfunc): New function. | |
383 | (branch_hash_newfunc): New function. | |
384 | (link_hash_newfunc): Init new fields. | |
385 | (ppc64_elf_link_hash_table_create): Likewise. | |
386 | (ppc64_elf_link_hash_table_free): New function. | |
387 | (ppc_stub_name): New function. | |
388 | (ppc_get_stub_entry): New function. | |
389 | (ppc_add_stub): New function. | |
390 | (create_linkage_sections): Use bfd_make_section_anyway. Create | |
391 | .branch_lt and .rela.branch_lt sections. Don't create .stub. | |
392 | (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*, | |
393 | and set up for plt call stubs. Link func and func desc syms. | |
394 | (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24. | |
395 | (func_desc_adjust): Avoid hash lookup when func desc sym available | |
396 | via shortcut, and set links when processing. | |
397 | (ppc64_elf_hide_symbol): Likewise. | |
398 | (allocate_dynrelocs): Don't allocate stub section here. | |
399 | (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt. | |
400 | Remove sstub code. | |
401 | (ppc_type_of_stub): New function. | |
402 | (build_one_stub): Delete. | |
403 | (ppc_build_one_stub): New function. | |
404 | (ppc_size_one_stub): New function. | |
405 | (ppc64_elf_setup_section_lists): New function. | |
406 | (ppc64_elf_next_input_section): New function. | |
407 | (group_sections): New function. | |
408 | (get_local_syms): New function. | |
409 | (ppc64_elf_size_stubs): Rewrite. | |
410 | (ppc64_elf_build_stubs): Rewrite. | |
411 | (ppc64_elf_relocate_section): Look up stub entry for REL24 | |
412 | relocs. Don't propagate REL14* to dynamic objects. Look for long | |
413 | branch stubs if REL14* or REL24 relocs won't reach. | |
414 | (bfd_elf64_bfd_link_hash_table_free): Define. | |
415 | ||
09c2219b MM |
416 | 2002-04-30 Mark Mitchell <mark@codesourcery.com> |
417 | ||
418 | * bfd/config.bfd: Add support for powerpc-*-windiss. | |
419 | ||
07b678c0 TR |
420 | 2002-04-30 Tom Rix <trix@redhat.com> |
421 | ||
422 | * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT | |
423 | symbol names into the hash table. | |
424 | ||
dbe341c6 TR |
425 | 2002-04-28 Tom Rix <trix@redhat.com> |
426 | ||
427 | * coff-rs6000.c (xcoff_calculate_relocation) : Function table for | |
428 | calulating relocations. | |
429 | (xcoff_complain_overflow) : Function table for relocation errors. | |
430 | (xcoff_ppc_relocate_section): Use relocation and complain function | |
431 | tables. | |
432 | (xcoff_complain_overflow_unsigned_func): New complain function. | |
433 | (xcoff_complain_overflow_signed_func): Same. | |
434 | (xcoff_complain_overflow_bitfield_func): Same. | |
435 | (xcoff_complain_overflow_dont_func): Same. | |
436 | (xcoff_reloc_type_crel): New recot function. | |
437 | (xcoff_reloc_type_br): Same. | |
438 | (xcoff_reloc_type_ba): Same. | |
439 | (xcoff_reloc_type_toc): Same. | |
440 | (xcoff_reloc_type_rel): Same. | |
441 | (xcoff_reloc_type_neg): Same. | |
442 | (xcoff_reloc_type_pos): Same. | |
443 | (xcoff_reloc_type_fail): Same. | |
444 | (xcoff_reloc_type_noop): Same. | |
445 | * libxcoff.h : Declare common parts for xcoff64. | |
446 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation | |
447 | and complain function tables. | |
448 | ||
985142a4 AM |
449 | 2002-04-28 Alan Modra <amodra@bigpond.net.au> |
450 | ||
451 | * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo. | |
452 | * elf32-hppa.c (elf32_hppa_final_link): Formatting. | |
453 | ||
eba91044 AM |
454 | 2002-04-26 Alan Modra <amodra@bigpond.net.au> |
455 | ||
e54fdaa5 AM |
456 | * opncls.c (bfd_make_readable): Call bfd_section_list_clear. |
457 | * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise. | |
458 | ||
a50c1845 AM |
459 | * elflink.h (elf_bfd_final_link): Ensure input bfd class is the |
460 | same as the output before calling elf_link_input_bfd. | |
461 | ||
eba91044 AM |
462 | * coffcode.h (coff_compute_section_file_positions): Set |
463 | section_tail after shuffling section list. | |
464 | ||
3c25c5f6 NC |
465 | 2002-04-24 Christian Groessler <chris@groessler.org> |
466 | ||
467 | * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The | |
468 | addresses are 23bit with a special layout, not plain 32bit | |
469 | values. Prevent relocation of immediate values. | |
470 | ||
40d32fc6 CD |
471 | 2002-04-24 Chris G. Demetriou <cgd@broadcom.com> |
472 | ||
473 | * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or | |
474 | MIPS-16 ASE flags are set, print something to indicate that. | |
475 | ||
067fa4a6 AM |
476 | 2002-04-23 Alan Modra <amodra@bigpond.net.au> |
477 | ||
478 | * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition | |
479 | under which a plt call stub is used. | |
480 | (final_link_relocate): Similarly. | |
481 | (allocate_plt_static): Clear h-plabel except when plt entry is | |
482 | exclusively used for a plabel. | |
483 | (allocate_dynrelocs): Use the above to simplify plt sizing. | |
484 | (struct elf32_hppa_link_hash_table): Add has_22bit_branch. | |
485 | (elf32_hppa_link_hash_table_create): Init. | |
486 | (BL22_RP): Define. | |
487 | (hppa_build_one_stub): Use BL22_RP if has_22bit_branch. | |
488 | (elf32_hppa_check_relocs): Set has_22bit_branch. | |
489 | ||
490 | * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message. | |
491 | (final_link_relocate): Likewise. | |
492 | ||
af40ce3c JJ |
493 | 2002-04-22 Jakub Jelinek <jakub@redhat.com> |
494 | ||
495 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build | |
496 | search table if some FDE is DW_EH_PE_aligned encoded either. | |
497 | (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially. | |
498 | ||
09ae86c2 JJ |
499 | 2002-04-22 Richard Smith <richard@ex-parrot.com> |
500 | Jakub Jelinek <jakub@redhat.com> | |
501 | ||
502 | * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative. | |
503 | (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel | |
504 | encoded personality. | |
505 | (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality | |
506 | for CIE/FDE removal. | |
507 | ||
deeb2cd7 TR |
508 | 2002-04-20 Tom Rix <trix@redhat.com> |
509 | ||
510 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent. | |
511 | ||
99dc0092 AM |
512 | 2002-04-20 Alan Modra <amodra@bigpond.net.au> |
513 | ||
aa3d5824 AM |
514 | * archures.c (bfd_lookup_arch): Move the list order comment.. |
515 | (struct bfd_arch_info): ..to where it belongs. | |
516 | * bfd-in2.h: Regenerate. | |
517 | ||
99dc0092 AM |
518 | * archures.c (bfd_lookup_arch): Add comment on list order. |
519 | (bfd_default_set_arch_mach): Use bfd_lookup_arch. | |
520 | * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default | |
521 | is always at head of list. | |
522 | ||
7831a775 NC |
523 | 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com> |
524 | ||
525 | * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9, | |
526 | insert_thumb_branch, record_thumb_to_arm_glue): Suppress | |
527 | definition of these functions for ARM_WINCE builds as they are | |
528 | not used. | |
529 | (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define | |
530 | for ARM_WINCE builds. | |
531 | ||
532 | 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com> | |
533 | ||
534 | * coff-arm.c (bfd_arm_process_before_allocation): | |
535 | ||
536 | 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com> | |
a44d7f9c JR |
537 | |
538 | * cpu-sh.c (scan_mach): Delete. | |
539 | (arch_info_struct): Replace scan_mach with bfd_default_scan. | |
540 | (bfd_sh_arch): Likewise. | |
541 | ||
3d8dbe36 NC |
542 | 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com> |
543 | ||
544 | * ihex.c (ihex_write_object_contents): Fix check for records | |
545 | crossing 64K boundaries. | |
546 | ||
4ab82700 AM |
547 | 2002-04-16 Alan Modra <amodra@bigpond.net.au> |
548 | ||
549 | * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table | |
550 | type rather than just assuming entries are ELF. | |
551 | * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise. | |
552 | * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise. | |
553 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise. | |
554 | * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry | |
555 | rather than elf_link_hash_entry. | |
556 | ||
036fe0fe RH |
557 | 2002-04-15 Richard Henderson <rth@redhat.com> |
558 | ||
559 | * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow | |
560 | n32 binaries. | |
561 | ||
c4f3d130 NC |
562 | 2002-04-15 Michael Snyder <msnyder@redhat.com> |
563 | ||
564 | * opncls.c (bfd_close): Write contents if writeable. | |
565 | Minor formatting tidy-ups. | |
566 | ||
4ab82700 | 567 | 2002-04-15 Alan Modra <amodra@bigpond.net.au> |
27242387 AM |
568 | |
569 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type. | |
570 | ||
0c04d169 MS |
571 | 2002-04-12 Michael Snyder <msnyder@redhat.com> |
572 | ||
573 | * bfd-in.h (bfd_get_section_lma): New access macro. | |
574 | Minor white-space fix-up. | |
575 | ||
89d4966f AM |
576 | 2002-04-12 Alan Modra <amodra@bigpond.net.au> |
577 | ||
578 | * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or | |
579 | header pad. | |
580 | ||
8d0da3c2 DD |
581 | 2002-04-09 DJ Delorie <dj@redhat.com> |
582 | ||
583 | * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks. | |
584 | ||
05793179 NC |
585 | 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net> |
586 | ||
587 | * coffcode.h (coff_read_word): New. | |
588 | (coff_compute_checksum): New. | |
589 | (coff_apply_checksum): New. | |
590 | (coff_write_object_contents): Call coff_apply_checksum () to | |
591 | apply checksum to PE image. | |
592 | ||
46fe4e66 AM |
593 | 2002-04-08 Randolph Chung <tausq@debian.org> |
594 | ||
595 | * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h. | |
596 | (elf32_hppa_final_link): Split out sorting logic to.. | |
597 | * elf-hppa.h (elf_hppa_sort_unwind): ..here. | |
598 | (elf_hppa_final_link): Call elf_hppa_sort_unwind. | |
599 | ||
3b5b409c AC |
600 | 2002-04-07 Andrew Cagney <ac131313@redhat.com> |
601 | ||
602 | * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]* | |
603 | pattern. | |
604 | * configure: Re-generate. | |
605 | ||
ac7b6ceb AC |
606 | 2002-04-07 Andrew Cagney <ac131313@redhat.com> |
607 | ||
608 | * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version | |
609 | is greater or equal to 4.3.3. | |
610 | * configure: Regenerate. | |
611 | Fix PR gdb/344. | |
612 | ||
44aa49bb HPN |
613 | 2002-04-05 Hans-Peter Nilsson <hp@axis.com> |
614 | ||
615 | * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL, | |
616 | R_CRIS_32_PCREL>: Fix typo in name. | |
617 | (cris_elf_check_relocs): Always create .rela.got here when | |
618 | R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen. | |
619 | (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here; | |
620 | assume it's created. | |
621 | ||
e2d34d7d DJ |
622 | 2002-04-04 Daniel Jacobowitz <drow@mvista.com> |
623 | ||
624 | * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define. | |
625 | * aout-target.h (MY_bfd_link_hash_table_free): Conditionally | |
626 | define. | |
627 | * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise. | |
628 | * bfd.c (bfd_link_hash_table_free): Define. | |
629 | * binary.c (binary_bfd_link_hash_table_free): Define. | |
630 | * bout.c (b_out_bfd_link_hash_table_free): Define. | |
631 | * coff-rs6000.c (rs6000coff_vec): Include | |
632 | _bfd_generic_link_hash_table_free. | |
633 | (pmac_xcoff_vec): Likewise. | |
634 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
635 | (aix5coff64_vec): Likewise. | |
636 | * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define. | |
637 | * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function. | |
638 | (bfd_elf32_bfd_link_hash_table_free): Define. | |
639 | * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function. | |
640 | (bfd_elf32_bfd_link_hash_table_free): Define. | |
641 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally | |
642 | define. | |
643 | * i386msdos.c (msdos_bfd_link_hash_table_free): Define. | |
644 | * i386os9k.c (os9k_bfd_link_hash_table_free): Define. | |
645 | * ieee.c (ieee_bfd_link_hash_table_free): Define. | |
646 | * ihex.c (ihex_bfd_link_hash_table_free): Define. | |
647 | * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define. | |
648 | (_bfd_generic_link_hash_table_free): Add prototype. | |
649 | * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype. | |
650 | * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define. | |
651 | * linker.c (_bfd_generic_link_hash_table_free): New function. | |
652 | * mmo.c (mmo_bfd_link_hash_table_free): Define. | |
653 | * nlm-target.h (nlm_bfd_link_hash_table_free): Define. | |
654 | * oasys.c (oasys_bfd_link_hash_table_free): Define. | |
655 | * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define. | |
656 | * som.c (som_bfd_link_hash_table_free): Define. | |
657 | * srec.c (srec_bfd_link_hash_table_free): Define. | |
658 | * tekhex.c (tekhex_bfd_link_hash_table_free): Define. | |
659 | * versados.c (versados_bfd_link_hash_table_free): Define. | |
660 | * vms.c (vms_bfd_link_hash_table_free): New function. | |
661 | * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function. | |
662 | ||
663 | * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc | |
664 | instead of bfd_alloc. | |
665 | * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise. | |
666 | * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise. | |
667 | * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise. | |
668 | * cofflink.c (_bfd_coff_link_hash_table_create): Likewise. | |
669 | * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise. | |
670 | * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise. | |
671 | * elf.c (_bfd_elf_link_hash_table_create): Likewise. | |
672 | * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise. | |
673 | * elf32-cris.c (elf_cris_link_hash_table_create): Likewise. | |
674 | * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise. | |
675 | * elf32-i386.c (elf_i386_link_hash_table_create): Likewise. | |
676 | * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise. | |
677 | * elf32-s390.c (elf_s390_link_hash_table_create): Likewise. | |
678 | * elf32-sh.c (sh_elf_link_hash_table_create): Likewise. | |
679 | * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise. | |
680 | * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise. | |
681 | * elf64-s390.c (elf_s390_link_hash_table_create): Likewise. | |
682 | * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise. | |
683 | * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise. | |
684 | * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise. | |
685 | * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise. | |
686 | * linker.c (_bfd_generic_link_hash_table_create): Likewise. | |
687 | * m68klinux.c (linux_link_hash_table_create): Likewise. | |
688 | * sparclinux.c (linux_link_hash_table_create): Likewise. | |
689 | * sunos.c (sunos_link_hash_table_create): Likewise. | |
690 | * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise. | |
691 | ||
692 | * targets.c: Add _bfd_link_hash_table_free to xvec. | |
693 | ||
694 | * bfd-in2.h: Regenerate. | |
695 | * libbfd.h: Regenerate. | |
696 | * libcoff.h: Regenerate. | |
697 | ||
830629ab AM |
698 | 2002-04-04 Alan Modra <amodra@bigpond.net.au> |
699 | ||
700 | * dep-in.sed: Cope with absolute paths. | |
701 | * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR. | |
702 | Run "make dep-am". | |
703 | * Makefile.in: Regenerate. | |
704 | * coff-arm.c: Fix copyright date. | |
705 | * cpu-h8300.c: Likewise. | |
706 | * cpu-i370.c: Likewise. | |
707 | * cpu-s390.c: Likewise. | |
708 | * cpu-mips.c: Likewise. | |
709 | * po/SRC-POTFILES.in: Regenerate. | |
710 | ||
c6e90b02 TS |
711 | 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
712 | ||
713 | * Makefile.am: Add elfxx-mips.c to the known backends. | |
714 | (elf32-mips.lo): remove dependency to coff/external.h. | |
715 | * Makefile.in: Regenerate. | |
716 | * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo | |
717 | Remove elf32-mips.lo from 64 bit vectors. Update dependencies | |
718 | accordingly. | |
719 | * configure: Regenerate. | |
720 | * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h. | |
721 | (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c. | |
722 | (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New | |
723 | MIPS specific backend functions. | |
724 | * elf32-mips.c: Moved most code to elfxx-mips.c. | |
725 | (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make | |
726 | static. | |
727 | (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc. | |
728 | (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc. | |
729 | (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc. | |
730 | (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed | |
731 | interface to allow selection of the right REL or RELA howto table. | |
732 | (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made | |
733 | static. Let it refuse n32 objects. | |
734 | (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus. | |
735 | (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo. | |
736 | (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info. | |
737 | (elf32_mips_ignore_discarded_relocs): Rename from | |
738 | _bfd_elf32_mips_ignore_discarded_relocs. | |
739 | (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section. | |
740 | (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT. | |
741 | (elf_mips_howto_table_rela): Remove. | |
742 | * elf64-mips.c: Moved most code to elfxx-mips.c. | |
743 | (bfd_elf64_bfd_reloc_type_lookup): Make static. | |
744 | (mips_elf64_rtype_to_howto): New function. | |
745 | (mips_elf64_object_p): Likewise. | |
746 | (elf64_mips_irix_compat): Likewise. | |
747 | * elfxx-mips.c: New file containing common code merged together from | |
748 | elf32-mips.c and elf64-mips.c. | |
749 | * elfxx-mips.h: New file containing MIPS specific prototypes from | |
750 | elf-bfd.h. | |
751 | * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and | |
752 | elf_backend_mips_rtype_to_howto. | |
753 | ||
d8dce692 AM |
754 | 2002-04-04 Alan Modra <amodra@bigpond.net.au> |
755 | ||
756 | * srec.c (MAXCHUNK, Chunk): Revise comments. | |
757 | (srec_write_record): Correct buffer size. | |
758 | (srec_write_header): Do without intermediate buffer. | |
759 | (srec_write_section): Validate Chunk. | |
760 | (srec_write_terminator): Pass NULL instead of dummy buffer. | |
761 | (srec_write_symbols): Pass file and symbol names directly to | |
762 | bfd_bwrite so sprintf won't overflow buffer. | |
763 | ||
b88a866a JJ |
764 | 2002-04-03 Jakub Jelinek <jakub@redhat.com> |
765 | ||
766 | * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic | |
767 | PC relative relocs against hidden symbols. | |
768 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
769 | ||
d7866f04 AM |
770 | 2002-04-03 Alan Modra <amodra@bigpond.net.au> |
771 | ||
772 | * elf.c (_bfd_elf_make_section_from_shdr): When setting section | |
773 | LMAs, loop over segments until p_vaddr and p_memsz specify an | |
774 | extent enclosing the section. | |
775 | ||
9e81ee67 NC |
776 | 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com> |
777 | ||
778 | * ihex.c (ihex_write_object_contents): Do not allow records to | |
779 | cross a 64K boundary - wrap if necessary. | |
780 | ||
d2b64500 JT |
781 | 2002-04-01 Nathan Williams <nathanw@wasabisystems.com> |
782 | ||
783 | * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error | |
784 | which caused the returned LWP ID to always be 0. | |
785 | ||
e36f7d53 RH |
786 | 2002-04-01 Richard Henderson <rth@redhat.com> |
787 | ||
788 | * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. | |
789 | (elf32_sparc_relocate_section): Use it to figure out when to | |
790 | initialize .got entries. | |
791 | * elf64-sparc.c: Similarly. | |
792 | ||
e92d460e AM |
793 | 2002-03-28 Alan Modra <amodra@bigpond.net.au> |
794 | ||
795 | * linker.c (link_action): Ignore duplicate warning syms. | |
796 | (_bfd_generic_link_write_global_symbol): Follow warning symbol link. | |
797 | * elflink.h (elf_adjust_dynstr_offsets): Likewise. | |
798 | (elf_adjust_dynamic_symbol): Likewise. | |
799 | (elf_export_symbol): Likewise. | |
800 | (elf_link_find_version_dependencies): Likewise. | |
801 | (elf_link_assign_sym_version): Likewise. | |
802 | (elf_link_sec_merge_syms): Likewise. | |
803 | (elf_link_output_extsym): Likewise. | |
804 | (elf_gc_sweep_symbol): Likewise. | |
805 | (elf_gc_propagate_vtable_entries_used): Likewise. | |
806 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
807 | (elf_gc_allocate_got_offsets): Likewise. | |
808 | (elf_collect_hash_codes): Likewise. | |
809 | * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise. | |
810 | * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise. | |
811 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. | |
812 | * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise. | |
813 | * elf32-arm.h (elf32_arm_discard_copies): Likewise. | |
814 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise. | |
815 | (elf_cris_discard_excess_dso_dynamics): Likewise. | |
816 | * elf32-hppa.c (clobber_millicode_symbols): Likewise. | |
817 | (mark_PIC_calls): Likewise. | |
818 | (allocate_plt_static): Likewise. | |
819 | (allocate_dynrelocs): Likewise. | |
820 | (readonly_dynrelocs): Likewise. | |
821 | * elf32-i386.c (allocate_dynrelocs): Likewise. | |
822 | (readonly_dynrelocs): Likewise. | |
823 | * elf32-i370.c (i370_elf_adjust_dynindx): Likewise. | |
824 | * elf32-m68k.c (elf_m68k_discard_copies): Likewise. | |
825 | * elf32-mips.c (mips_elf_output_extsym): Likewise. | |
826 | (mips_elf_sort_hash_table_f): Likewise. | |
827 | (mips_elf_check_mips16_stubs): Likewise. | |
828 | * elf32-s390.c (allocate_dynrelocs): Likewise. | |
829 | (readonly_dynrelocs): Likewise. | |
830 | * elf32-sh.c (sh_elf_discard_copies): Likewise. | |
831 | * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise. | |
832 | (xstormy16_relax_plt_realloc): Likewise. | |
833 | * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise. | |
834 | (elf64_alpha_output_extsym): Likewise. | |
835 | * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise. | |
836 | * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise. | |
837 | (mips_elf64_check_mips16_stubs): Likewise. | |
838 | (mips_elf64_output_extsym): Likewise. | |
839 | * elf64-ppc.c (func_desc_adjust): Likewise. | |
840 | (allocate_dynrelocs): Likewise. | |
841 | (readonly_dynrelocs): Likewise. | |
842 | * elf64-s390.c (allocate_dynrelocs): Likewise. | |
843 | (readonly_dynrelocs): Likewise. | |
844 | * elf64-sh64.c (sh64_elf64_discard_copies): Likewise. | |
845 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
846 | (readonly_dynrelocs): Likewise. | |
847 | * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise. | |
848 | * aoutx.h (aout_link_write_other_symbol): Likewise. | |
849 | * cofflink.c (_bfd_coff_write_task_globals): Likewise. | |
850 | (_bfd_coff_write_global_sym): Likewise. | |
851 | * i386linux.c (linux_tally_symbols): Likewise. | |
852 | * m68klinux.c (linux_tally_symbols): Likewise. | |
853 | * sparclinux.c (linux_tally_symbols): Likewise. | |
854 | * pdp11.c (aout_link_write_other_symbol): Likewise. | |
855 | * sunos.c (sunos_scan_dynamic_symbol): Likewise. | |
856 | * xcofflink.c (xcoff_build_ldsyms): Likewise. | |
857 | (xcoff_write_global_symbol): Likewise. | |
858 | ||
859 | * cofflink.c (_bfd_coff_final_link): Formatting. | |
860 | * cpu-mips.c (mips_compatible): Make static, prototype. | |
861 | * elf32-i386.c (elf_i386_check_relocs): Formatting. | |
862 | * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise. | |
863 | * elf64-alpha.c (elf64_alpha_output_extsym): Likewise. | |
864 | * elf64-mips.c (mips_elf64_sort_hash_table): Likewise. | |
865 | (mips_elf64_final_link): Likewise. | |
866 | * elflink.h (elf_link_find_version_dependencies): Remove duplicate | |
867 | prototype. | |
868 | ||
2106126f NC |
869 | 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com> |
870 | ||
871 | * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define. | |
872 | (SWAP_OUT_RELOC_OFFSET): Define. | |
873 | ||
b99d1833 AM |
874 | 2002-03-27 Gregory Steuck <greg@nest.cx> |
875 | ||
876 | * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for | |
877 | terminating NULL if empty symbol table. | |
878 | (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise. | |
879 | ||
ad43ed4c L |
880 | 2002-03-26 H.J. Lu (hjl@gnu.org) |
881 | ||
882 | * elflink.h (elf_link_input_bfd): Revert the last change since | |
883 | the gcc exception handling isn't fixed yet. | |
884 | ||
3851fca4 L |
885 | 2002-03-26 H.J. Lu (hjl@gnu.org) |
886 | ||
887 | * elflink.h (elf_link_input_bfd): Complain about relocations | |
888 | against local symbols in discarded sections. | |
889 | ||
b91afed7 AM |
890 | 2002-03-26 Alan Modra <amodra@bigpond.net.au> |
891 | ||
892 | * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections. | |
893 | ||
dba143ef AM |
894 | 2002-03-23 Alan Modra <amodra@bigpond.net.au> |
895 | ||
896 | * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on | |
897 | section file offset for !SEC_LOAD sections. | |
898 | ||
ee29b9fb RE |
899 | 2002-03-21 Richard Earnshaw <rearnsha@arm.com> |
900 | ||
830629ab AM |
901 | * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>, |
902 | <case R_ARM_GOT>): Handle relocations to Thumb functions. | |
ee29b9fb | 903 | |
54327882 AM |
904 | 2002-03-21 Alan Modra <amodra@bigpond.net.au> |
905 | ||
906 | * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype. | |
907 | Whitespace changes. | |
908 | * archive.c: Update copyright date. | |
909 | * bfd-in2.h: Regenerate. | |
910 | * libbfd.h: Regenerate. | |
911 | * Makefile.am: Run "make dep-am" | |
912 | * Makefile.in: Regenerate. | |
913 | * po/SRC-POTFILES.in: Regenerate. | |
914 | ||
1ee24f27 DJ |
915 | 2002-03-20 Daniel Jacobowitz <drow@mvista.com> |
916 | ||
917 | * dwarf2.c (struct funcinfo): Move up. | |
918 | (lookup_address_in_function_table): New argument function_ptr. | |
919 | Set it. | |
920 | (lookup_address_in_line_table): New argument function. If function | |
921 | is non-NULL, use it to handle ``addr'' before the first line note of | |
922 | the function. | |
923 | (comp_unit_find_nearest_line): Update and swap calls to | |
924 | lookup_address_in_function_table and lookup_address_in_line_table. | |
925 | * syms.c (_bfd_stab_section_find_nearest_line): Use the first | |
926 | N_SLINE encountered if we see an N_FUN before any N_SLINE. | |
927 | ||
51b9608c TR |
928 | 2002-03-20 Tom Rix <trix@redhat.com> |
929 | ||
930 | * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from | |
931 | _bfd_xcoff_generic_stat_arch_elt. Fix format check. | |
932 | * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt. | |
933 | ||
789c90aa TR |
934 | 2002-03-19 Tom Rix <trix@redhat.com> |
935 | ||
936 | * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all | |
937 | dynamic objects in archives. | |
938 | ||
1da54d81 HPN |
939 | 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com> |
940 | ||
941 | * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set | |
942 | STT_NOTYPE symbols to STT_OBJECT. | |
943 | ||
7831a775 | 944 | 2002-03-18 Jan Hubicka <jh@suse.cz> |
beb43bb9 JH |
945 | |
946 | * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64" | |
947 | ||
eb1e0e80 NC |
948 | 2002-03-18 Tom Rix <trix@redhat.com> |
949 | ||
950 | * aix5ppc.core.c : New file for AIX 5 64 bit core support. | |
951 | * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration. | |
952 | * coff-rs6000 (do_pad) : New function for archive padding. | |
953 | (do_copy) : New function for object file copying in archives. | |
954 | (do_shared_object_padding) : New function for padding shared | |
955 | objects to their text section alignment in archives. | |
956 | (bfd_xcoff_ar_achive_set_magic) : Stub. | |
957 | (xcoff_write_armap_big) : Use do_copy and do_pad. | |
958 | (xcoff_write_archive_contents_big) : Use do_shared_object_padding, | |
959 | do_copy and do_pad. | |
960 | * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use | |
961 | bfd_xcoff_magic_number. | |
962 | (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook | |
963 | fop. | |
964 | (xcoff_backend_data_r) : Use xcoff64_bad_format_hook. | |
965 | (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data. | |
966 | (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000. | |
967 | * rs6000-core.c : Update copyright date. | |
968 | * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL | |
969 | csectpp. | |
970 | * coffcode.h (coff_new_section_hook) : Use new accessor macros. | |
971 | (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #. | |
972 | (coff_set_flags) : Use bfd_xcoff_magic_number. | |
973 | * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC. | |
974 | * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support. | |
975 | * Makefile.am : Same. | |
976 | * config.bfd : Same. | |
977 | * targets.c : Same. | |
978 | * configure : Regnerate. | |
979 | * Makefile.in : Same. | |
980 | * bfd-in2.h : Same. | |
981 | ||
a1c259a1 NC |
982 | 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com> |
983 | ||
984 | * po/fr.po: Updated version. | |
985 | ||
4dae1ae7 AM |
986 | 2002-03-18 Alan Modra <amodra@bigpond.net.au> |
987 | ||
988 | * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success. | |
989 | * libbfd.h: Regenerate. | |
990 | * archive.c (coff_write_armap): Pass on failures from | |
991 | bfd_write_bigendian_4byte_int. | |
992 | ||
36b4f6e7 L |
993 | 2002-03-14 H.J. Lu <hjl@gnu.org> |
994 | ||
995 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD | |
996 | error to bfd_error_nonrepresentable_section for reinit_array | |
997 | section in DSO. | |
998 | ||
a1aefc76 NC |
999 | 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com> |
1000 | ||
a181be0a NC |
1001 | * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag, |
1002 | OR it in rather than replacing previously selected flags. | |
1003 | ||
a1aefc76 NC |
1004 | * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15. |
1005 | (TARGET_LITTLE_SYM): Set ar_max_namelen to 15. | |
1006 | ||
c119f9b8 AM |
1007 | 2002-03-14 Alan Modra <amodra@bigpond.net.au> |
1008 | ||
1009 | * cpu-mips.c (mips_compatible): New. Don't check bits_per_word. | |
1010 | (N): Use the above. | |
1011 | * elflink.h (elf_bfd_final_link): Revert last change. Instead, | |
1012 | ensure reloc size matches before calling elf_link_input_bfd. | |
1013 | Add an assert to check reloc size when counting output relocs. | |
1014 | ||
c295a511 NC |
1015 | 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com> |
1016 | ||
1017 | * mmo.c (mmo_get_loc): Return NULL rather than false. | |
1018 | ||
9ce88e60 NC |
1019 | 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com> |
1020 | ||
1021 | * po/fr.po: Updated version. | |
1022 | ||
4ddafab0 AM |
1023 | 2002-03-13 Alan Modra <amodra@bigpond.net.au> |
1024 | ||
b74fa2cd AM |
1025 | * archures.c (bfd_default_compatible): Test bits_per_word. |
1026 | * cpu-i386.c (i386_compatible): Remove. Replace occurrences with | |
1027 | bfd_default_compatible. | |
1028 | * cpu-i370.c (i370_compatible): Likewise. | |
1029 | * cpu-sparc.c (sparc_compatible): Likewise. | |
1030 | * cpu-h8300.c (compatible): Test in->arch == out->arch. | |
1031 | ||
40b829d4 AM |
1032 | * elflink.h: Formatting fixes. |
1033 | (elf_link_output_extsym): Merge undefined and undef weak cases. | |
1034 | ||
4ddafab0 AM |
1035 | * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd |
1036 | when word size of input matches output word size. | |
1037 | ||
dd53c801 AJ |
1038 | 2002-03-12 Andreas Jaeger <aj@suse.de> |
1039 | ||
1040 | * cpu-i386.c (i386_compatible): New. Use it instead of | |
1041 | bfd_default_compatible. | |
1042 | ||
aa066ac8 L |
1043 | 2002-03-07 H.J. Lu (hjl@gnu.org) |
1044 | ||
1045 | * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type | |
1046 | as the type for bfd_reloc_val. | |
1047 | ||
1bf42538 JL |
1048 | 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca> |
1049 | ||
1050 | * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function. | |
1051 | (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols. | |
1052 | (elf_hppa_final_link_relocate): Correct relocations for indirect | |
1053 | references to local data through the DLT. Fix .opd creation for | |
1054 | local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64 | |
1055 | relocations. Use e_lsel selector for R_PARISC_DLTIND21L, | |
1056 | R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per | |
1057 | "Processor-Specific ELF for PA_RISC, Version 1.43" document. | |
1058 | Similarly, use e_rsel for DLT and LTOFF 'R' relocations. | |
1059 | * elf32-hppa.c (final_link_relocate): Revise relocation selectors | |
1060 | as per "Processor-Specific ELF for PA_RISC, Version 1.43" document. | |
1061 | ||
86eaf01e JJ |
1062 | 2002-03-05 Jakub Jelinek <jakub@redhat.com> |
1063 | ||
1064 | * merge.c (_bfd_merge_sections): Don't segfault if there | |
1065 | is nothing to merge due to GC. | |
1066 | ||
c44233aa AM |
1067 | 2002-03-05 Alan Modra <amodra@bigpond.net.au> |
1068 | ||
039cc25f AM |
1069 | * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep |
1070 | symbols that have been forced local. | |
1071 | ||
c44233aa AM |
1072 | * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym |
1073 | to output forced local syms for non-shared link. | |
1074 | (elf_link_output_extsym): Tweak condition for calling backend | |
1075 | adjust_dynamic_symbol so that previous behaviour is kept. | |
1076 | Whitespace changes throughout file. | |
1077 | ||
25e27870 L |
1078 | 2002-03-04 H.J. Lu <hjl@gnu.org> |
1079 | ||
1080 | * elf.c (bfd_section_from_shdr): Handle special sections, | |
1081 | .init_array, .fini_array and .preinit_array. | |
1082 | (elf_fake_sections): Likewise. | |
1083 | ||
1084 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the | |
1085 | DT entry only if the section is in output for .init_array, | |
1086 | .fini_array and .preinit_array. Complain about .preinit_array | |
1087 | section in DSO. | |
1088 | (elf_bfd_final_link): Warn zero size for .init_array, | |
1089 | .fini_array and .preinit_array sections. | |
1090 | ||
1091 | * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove | |
1092 | SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY. | |
1093 | (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and | |
1094 | .preinit_array. | |
1095 | ||
bb2a49f2 AM |
1096 | 2002-03-04 Alan Modra <amodra@bigpond.net.au> |
1097 | ||
1098 | * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment. | |
1099 | * configure: Regenerate. | |
1100 | ||
38487e5e TR |
1101 | 2002-03-02 Tom Rix <trix@redhat.com> |
1102 | ||
c44233aa AM |
1103 | * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with |
1104 | symbolic equiv. | |
38487e5e TR |
1105 | * coff-rs6000.c (xcoff_howto_table): Same. |
1106 | ||
30831527 RH |
1107 | 2002-03-01 David Mosberger <davidm@hpl.hp.com> |
1108 | ||
1109 | * elflink.h (size_dynamic_sections): If section named | |
1110 | ".preinit_array" exists, create DT_PREINIT_ARRAY and | |
1111 | DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for | |
1112 | ".init_array" and ".fini_array". | |
1113 | (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ, | |
1114 | DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and | |
1115 | DT_FINI_ARRAY. | |
1116 | ||
c8e5ddc8 AM |
1117 | 2002-02-26 Andrew Macleod <amacleod@cygnus.com> |
1118 | ||
1119 | * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local | |
1120 | dynsyms. | |
1121 | ||
96e0dda4 AM |
1122 | 2002-02-25 Alan Modra <amodra@bigpond.net.au> |
1123 | ||
1c5b6bf8 AM |
1124 | * elf64-hppa.h: Update copyright date. |
1125 | ||
96e0dda4 AM |
1126 | * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix. |
1127 | (ppc64_elf_relocate_section): Don't generate power4 style branch | |
1128 | hints for *_BRTAKEN and *_BRNTAKEN relocs. | |
1129 | ||
0fb19cbc JJ |
1130 | 2002-02-22 Jakub Jelinek <jakub@redhat.com> |
1131 | ||
1132 | * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my | |
1133 | last patch. | |
1134 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
1135 | ||
c434dee6 AJ |
1136 | 2002-02-21 Andreas Jaeger <aj@suse.de> |
1137 | ||
1138 | * elf64-x86-64.c: Major rework that introduces all recent changes | |
1139 | to the x86-64 backend. Get a closer match to elf32-i386. | |
1140 | (struct elf64_x86_64_dyn_relocs): Rename from | |
1141 | elf64_x86_64_pcrel_relocs_copied, add additional fields. Change | |
1142 | all users. | |
1143 | (struct elf64_x86_64_link_hash_table): Add short cuts to some | |
1144 | sections. | |
1145 | (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc, | |
1146 | remove casts, initialize new hash members. | |
1147 | (create_got_section): New. | |
1148 | (elf64_x86_64_create_dynamic_sections): New. | |
1149 | (elf64_x86_64_copy_indirect_symbol): New. | |
1150 | (elf64_x86_64_check_relocs): Don't allocate space for dynamic | |
1151 | relocs, .got or .relgot here but do it in allocate_dynrelocs. | |
1152 | Reference count possible .plt and .got entries. Don't test input | |
1153 | section SEC_READONLY here to try to avoid copy relocs, and keep | |
1154 | dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set | |
1155 | DF_TEXTREL here. Delay setting of variables until needed. Cache | |
1156 | pointer to "sreloc" section in elf_section_data. Tweak condition | |
1157 | under which .got created. Report files with bad relocation | |
1158 | section names. | |
1159 | (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
1160 | Reference count possible .plt entries. Don't deallocate .got and | |
1161 | .relgot space here. | |
1162 | (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't | |
1163 | do copy reloc processing for weakdefs. Remove redundant casts and | |
1164 | aborts. Delay setting of vars until needed. Move creation of | |
1165 | dynamic symbols and allocation of .plt and .rela.plt to | |
1166 | allocate_dynrelocs. Replace BFD_ASSERT with abort. | |
1167 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. | |
1168 | (allocate_dynrelocs): New. | |
1169 | (readonly_dynrelocs): New. | |
1170 | (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs. | |
1171 | Allocate space for dyn relocs. Replace BFD_ASSERT with abort. | |
1172 | Zero out the dynamic allocated content space. | |
1173 | (elf64_x86_64_discard_copies): Removed. | |
1174 | (elf64_x86_64_relocate_section): Make use of dynamic section | |
1175 | short-cuts. Localise vars, and delay setting. Better error | |
1176 | reporting, replace BFD_ASSERT with abort. Check | |
1177 | ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the | |
1178 | regular object file and tread the weak definition as the normal | |
1179 | one. Don't discard relocs for undefweak or undefined symbols and | |
1180 | check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy | |
1181 | relocs. | |
1182 | (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for | |
1183 | symbols that have been forced local. Use same test to decide if | |
1184 | we can use a relative reloc for got as relocate_section. Expand | |
1185 | SHN_UNDEF comment. Move expressions out of function calls. | |
1186 | Replace BFD_ASSERT with abort. | |
1187 | (bfd_elf64_bfd_final_link): Removed. | |
1188 | (elf_backend_copy_indirect_symbol): Define. | |
1189 | ||
ff3a6ee3 TR |
1190 | 2002-02-20 Tom Rix <trix@redhat.com> |
1191 | ||
1192 | * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA. | |
1193 | (_bfd_xcoff_reloc_type_lookup): Use it. | |
1194 | * coff64-rs6000.c (xcoff64_howto_table): Same. | |
1195 | (xcoff64_reloc_type_lookup): Same. | |
c434dee6 | 1196 | |
a68d41fb AM |
1197 | 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> |
1198 | ||
1199 | * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are | |
1200 | little endian. | |
1201 | ||
befc3abb MS |
1202 | 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com> |
1203 | ||
1204 | * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31. | |
1205 | (bfd_mach_s390_esame): Rename to bfd_mach_s390_64. | |
1206 | * bfd-in2.h: Regenerate. | |
1207 | * cpu-s390.c (arch_info_struct): Use renamed architecture defines. | |
1208 | Replace architecture name "s390" with "s390:31-bit" and "s390:esame" | |
1209 | with "s390:64-bit". | |
1210 | * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations. | |
1211 | (elf_s390_reloc_type_lookup): Likewise. | |
1212 | (elf_s390_check_relocs): Likewise. | |
1213 | (elf_s390_gc_sweep_hook): Likewise. | |
1214 | (elf_s390_relocate_section): Likewise. | |
1215 | (elf_s390_object_p): Use renamed architecture define. | |
1216 | * elf64-s390.c (elf_s390_object_p): Use renamed architecture define. | |
1217 | ||
6eeeec9b FCE |
1218 | 2002-02-19 Frank Ch. Eigler <fche@redhat.com> |
1219 | ||
1220 | * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping. | |
1221 | ||
0bb2d96a JJ |
1222 | 2002-02-19 Jakub Jelinek <jakub@redhat.com> |
1223 | ||
1224 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable | |
1225 | absptr -> pcrel optimization for shared libs. | |
1226 | Only create minimal .eh_frame_hdr if absptr FDE encoding in shared | |
1227 | library cannot be converted to pcrel. | |
1228 | (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr | |
1229 | relative. | |
1230 | * elf32-i386.c (elf_i386_relocate_section): If | |
1231 | _bfd_elf_section_offset returned -2, skip, but make sure the | |
1232 | relocation is installed. | |
1233 | * elf32-arm.h (elf32_arm_final_link_relocate): Likewise. | |
1234 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
1235 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
1236 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
1237 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
1238 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
1239 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
1240 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
1241 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
1242 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
1243 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
1244 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
1245 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
1246 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
1247 | * elf64-alpha.c (elf64_alpha_relocate_section): Handle | |
1248 | _bfd_elf_section_offset returning -2 the same way as -1. | |
1249 | * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise. | |
1250 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME | |
1251 | and BFD_ASSERT. | |
1252 | * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise. | |
1253 | ||
69f284c7 TR |
1254 | 2002-02-18 Tom Rix <trix@redhat.com> |
1255 | ||
1256 | * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support. | |
1257 | (bfd_xcoff_size_dynamic_sections): Same. | |
1258 | * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same. | |
1259 | (bfd_xcoff_size_dynamic_sections): Same. | |
1260 | * coff-rs6000.c (xcoff_generate_rtinit): Same. | |
1261 | * coff-rs646000.c (xcoff64_generate_rtinit): Same. | |
1262 | * libxcoff.h (struct xcoff_backend_data_rec): Same. | |
1263 | * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean. | |
1264 | * bfd-in2.h: Regenerate. | |
1265 | ||
82bd7b59 AM |
1266 | 2002-02-18 Alan Modra <amodra@bigpond.net.au> |
1267 | ||
1268 | * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define. | |
1269 | (struct ppc_link_hash_table): Add sfpr. | |
1270 | (ppc64_elf_link_hash_table_create): Init it. | |
1271 | (ppc64_elf_create_dynamic_sections): Split creation of .stub and | |
1272 | .glink out to.. | |
1273 | (create_linkage_sections): ..here. Make .sfpr too. | |
1274 | (ppc64_elf_check_relocs): Call create_linkage_sections, and set | |
1275 | dynobj early. | |
1276 | (MIN_SAVE_FPR, MAX_SAVE_FPR): Define. | |
1277 | (ppc64_elf_func_desc_adjust): Look for missing ._savef* and | |
1278 | ._restf* functions, and create as needed. | |
1279 | (func_desc_adjust): Only force_local for shared libs. | |
1280 | ||
ef1355e8 NC |
1281 | 2002-02-18 David O'Brien <obrien@FreeBSD.org> |
1282 | ||
1283 | * configure.in: Bump version number post 2.12 branching. | |
1284 | * configure: Regenerate. | |
1285 | ||
dfa36a69 HPN |
1286 | 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com> |
1287 | ||
1288 | * mmo.c: Correct and improve comments. | |
1289 | (mmo_write_chunk): Store trailing byte in bfd buffer; don't | |
1290 | zero-pad. Use input to fill up non-empty bfd buffer. | |
1291 | (mmo_flush_chunk): New function. | |
1292 | (mmo_write_loc_chunk): Add parameter last_vmap, all callers | |
1293 | changed. Don't emit location specifier if VMA is same as | |
1294 | *LAST_VMAP after omitting leading zero contents. Call | |
1295 | mmo_flush_chunk before emitting location specifier. | |
1296 | (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished | |
1297 | with mmo_write_loc_chunk calls. | |
1298 | (mmo_internal_write_section): Call mmo_flush_chunk after | |
1299 | mmo_write_chunk. | |
1300 | (mmo_write_symbols_and_terminator): Move :Main to first position | |
1301 | in symbol array. Add faked one if it does not exist if there are | |
1302 | other symbols. Don't add it if there are no symbols at all. Move | |
1303 | out test for value of :Main from symbol loop. Rename table | |
1304 | fakemain to maintable and variable mainsym to fakemain. | |
1305 | ||
ccf00ab6 RH |
1306 | 2002-02-15 Richard Henderson <rth@redhat.com> |
1307 | ||
1308 | * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target | |
1309 | section with no got matches any got. Simplify error generaion. | |
1310 | ||
88eaccc2 AM |
1311 | 2002-02-15 Alan Modra <amodra@bigpond.net.au> |
1312 | ||
fd96f80f AM |
1313 | Support arbitrary length fill patterns. |
1314 | * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc. | |
1315 | (_bfd_default_link_order): Remove bfd_fill_link_order code. | |
1316 | Call default_data_link_order. | |
1317 | (default_fill_link_order): Delete. | |
1318 | (default_data_link_order): New function. | |
1319 | * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences | |
1320 | of bfd_fill_link_order with bfd_data_link_order. | |
1321 | * elf64-alpha.c (elf64_alpha_final_link): Likewise. | |
1322 | * elf64-mips.c (mips_elf64_final_link): Likewise. | |
1323 | ||
88eaccc2 AM |
1324 | * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value. |
1325 | Correct value returned in "end" for "0x<non-hex>". | |
1326 | ||
e2fd756b NC |
1327 | 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com> |
1328 | ||
1329 | * cpu-arm.c (processors): Replace 'arch' field with 'mach'. | |
1330 | (scan): Test against 'mach' field in info structure. | |
1331 | ||
edd29cf9 AM |
1332 | 2002-02-14 Alan Modra <amodra@bigpond.net.au> |
1333 | ||
1334 | * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD. | |
1335 | ||
1e30956e | 1336 | 2002-02-14 Matt Fredette <fredette@netbsd.org> |
76f57f3a JT |
1337 | |
1338 | * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize | |
1339 | EF_M68000. | |
1340 | ||
bf36db18 NC |
1341 | 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com> |
1342 | ||
1343 | * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on | |
edd29cf9 AM |
1344 | non-zero physical addresses when adjusting the LMAs of new |
1345 | sections. | |
bf36db18 | 1346 | |
189c6563 AM |
1347 | 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca> |
1348 | ||
1349 | * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped | |
1350 | from _bfd_elf_hppa_gen_reloc_type. | |
1351 | (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype. | |
1352 | * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype. | |
1353 | * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h. | |
1354 | * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype. | |
1355 | ||
e948afaf AO |
1356 | 2002-02-12 Alexandre Oliva <aoliva@redhat.com> |
1357 | ||
1358 | * elf-m10300.c (mn10300_elf_relax_section): Skip section before | |
1359 | loading its contents if there's nothing to do in it. | |
1360 | ||
19397422 AM |
1361 | 2002-02-12 Alan Modra <amodra@bigpond.net.au> |
1362 | ||
0ad3a73b AM |
1363 | * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing |
1364 | 64k boundary. | |
1365 | ||
19397422 AM |
1366 | * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic |
1367 | DT_PPC64_OPD and DT_PPC64_OPDSZ tags. | |
1368 | (ppc64_elf_finish_dynamic_sections): Set values for them. | |
1369 | ||
51316059 MS |
1370 | 2002-02-11 Michael Snyder <msnyder@redhat.com> |
1371 | ||
1372 | * elf-bfd.h (elfcore_write_lwpstatus): Add prototype. | |
1373 | * elf.c (elfcore_grok_pstatus): Add prototype. | |
1374 | (elfcore_grok_lwpstatus): Add prototype. | |
1375 | (elfcore_write_lwpstatus): New function. | |
1376 | (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy. | |
1377 | ||
518313c3 AO |
1378 | 2002-02-11 Alexandre Oliva <aoliva@redhat.com> |
1379 | ||
1380 | * elf32-sh.c: Added missing prototypes. | |
1381 | * elf32-sh64.c: Likewise. | |
1382 | (sh_elf_align_loads): Mark unused args as such. | |
1383 | * elf64-sh64.c: Added missing prototypes. | |
1384 | (struct elf_sh64_link_hash_entry): Fix typo. | |
1385 | (sh_elf64_relocate_section): Fix info argument passed to | |
1386 | _bfd_elf_section_offset. | |
1387 | ||
2c73f9d8 AM |
1388 | 2002-02-11 Alan Modra <amodra@bigpond.net.au> |
1389 | ||
1390 | * Makefile.am: "make dep-am". | |
1391 | * Makefile.in: Regenerate. | |
1392 | * aclocal.m4: Regenerate. | |
1393 | * config.in: Regenerate. | |
1394 | * configure: Regenerate. | |
1395 | ||
d426c6b0 DJ |
1396 | 2002-02-10 Daniel Jacobowitz <drow@mvista.com> |
1397 | ||
1398 | * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized | |
1399 | variable warnings. | |
1400 | * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned | |
1401 | comparison warning. | |
1402 | * trad-core.c (trad_unix_core_file_p): Silence pointer/integer | |
1403 | cast warnings for the common case. | |
1404 | ||
e58ee0cd HPN |
1405 | 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com> |
1406 | ||
1407 | * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64 | |
1408 | vectors. | |
1409 | (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64 | |
1410 | vectors. | |
1411 | ||
7793f4d0 RH |
1412 | 2002-02-09 Richard Henderson <rth@redhat.com> |
1413 | ||
1414 | * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP. | |
1415 | (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise. | |
1416 | (elf64_alpha_relocate_section): Likewise. | |
1417 | * reloc.c (BFD_RELOC_ALPHA_BRSGP): New. | |
1418 | * bfd-in2.h, libbfd.h: Rebuild. | |
1419 | ||
7e799044 HPN |
1420 | 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com> |
1421 | ||
1422 | * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check | |
1423 | that base-plus-offset reloc accounting is consistent. | |
1424 | (mmix_elf_relax_section): Keep base-plus-offset reloc accounting | |
1425 | up to date for undefined symbols. | |
1426 | ||
027d73eb EC |
1427 | 2002-02-08 Eric Christopher <echristo@redhat.com> |
1428 | ||
1429 | From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | |
1430 | ||
1431 | * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela | |
1432 | sections for the O32 ABI. | |
1433 | ||
517662d4 CD |
1434 | 2002-02-08 Chris Demetriou <cgd@broadcom.com> |
1435 | ||
1436 | * elf32-arm.h: Fix formatting of _("..."). | |
1437 | * elf32-d10v.c: Likewise. | |
1438 | * elf32-m68k.c: Likewise. | |
1439 | * elf32-mips.c: Likewise. | |
1440 | ||
5e37cc46 NC |
1441 | 2002-02-08 Ivan Guzvinec <ivang@opencores.org> |
1442 | ||
1443 | * coff-or32.c: Fix compile time warning messages. | |
1444 | ||
fbca6ad9 AO |
1445 | 2002-02-08 Alexandre Oliva <aoliva@redhat.com> |
1446 | ||
1447 | Contribute sh64-elf. | |
1448 | 2002-01-23 Alexandre Oliva <aoliva@redhat.com> | |
1449 | * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16, | |
1450 | R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16, | |
1451 | R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16, | |
1452 | R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16, | |
1453 | R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16, | |
1454 | R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16, | |
1455 | R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16, | |
1456 | R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8, | |
1457 | R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64): | |
1458 | New relocs. | |
1459 | * libbfd.h, bfd-in2.h: Rebuilt. | |
1460 | * elf32-sh.c (sh_elf_howto_table): Define new relocs. | |
1461 | (sh_reloc_map): Map them. | |
1462 | (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le, | |
1463 | elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be, | |
1464 | elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry, | |
1465 | elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset, | |
1466 | elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset, | |
1467 | elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset, | |
1468 | movi_shori_putval) [INCLUDE_SHMEDIA]: New. | |
1469 | (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add | |
1470 | datalabel_got_offset. | |
1471 | (sh_elf_link_hash_newfunc): Initialize it. | |
1472 | (sh_elf_relocate_section): Augment the scope of | |
1473 | seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT, | |
1474 | GOT and GOTOFF handling to new SHmedia relocation types. Support | |
1475 | GOT_BIAS. | |
1476 | (sh_elf_check_relocs): Likewise. | |
1477 | (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in | |
1478 | PLT entries using movi_shori_putval. Support GOT_BIAS. | |
1479 | (sh_elf_finish_dynamic_sections): Likewise. | |
1480 | * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to | |
1481 | relocation, it's now done by the caller. | |
1482 | (GOT_BIAS): New. | |
1483 | * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt, | |
1484 | elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset, | |
1485 | elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset, | |
1486 | elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER, | |
1487 | elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry, | |
1488 | elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse, | |
1489 | sh64_elf64_hash_table): New. | |
1490 | (sh_elf64_howto_table): Introduce new relocs. | |
1491 | (sh_elf64_info_to_howto): Accept new PIC relocs. | |
1492 | (sh_elf64_relocate_section): Augment the scope of | |
1493 | seen_stt_datalabel. Support new PIC relocs. | |
1494 | (sh_elf64_check_relocs): Support new PIC relocs. | |
1495 | (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le, | |
1496 | elf_sh64_plt_entry_be, elf_sh64_plt_entry_le, | |
1497 | elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le, | |
1498 | elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry, | |
1499 | sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create, | |
1500 | movi_shori_putval, movi_3shori_putval, | |
1501 | sh64_elf64_create_dynamic_sections, | |
1502 | sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies, | |
1503 | sh64_elf64_size_dynamic_sections, | |
1504 | sh64_elf64_finish_dynamic_symbol, | |
1505 | sh64_elf64_finish_dynamic_sections): New. | |
1506 | (elf_backend_create_dynamic-sections, | |
1507 | bfd_elf64_bfd_link_hash_table_create, | |
1508 | elf_backend_adjust_dynamic_symbol, | |
1509 | elf_backend_size_dynamic_sections, | |
1510 | elf_backend_finish_dynamic_symbol, | |
1511 | elf_backend_finish_dynamic_sections, elf_backend_want_got_plt, | |
1512 | elf_backend_plt_readonly, elf_backend_want_plt_sym, | |
1513 | elf_backend_got_header_size, elf_backend_plt_header_size): | |
1514 | Define. | |
1515 | 2001-05-16 Alexandre Oliva <aoliva@redhat.com> | |
1516 | * elf32-sh.c: Renumbered and renamed some SH5 relocations to | |
1517 | match official numbers and names; moved unmaching ones to the | |
1518 | range 0xf2-0xff. | |
1519 | * elf32-sh64.c, elf64-sh64.c: Likewise. | |
1520 | 2001-03-12 DJ Delorie <dj@redhat.com> | |
1521 | * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia | |
1522 | sections. | |
1523 | 2001-03-12 DJ Delorie <dj@redhat.com> | |
1524 | * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must | |
1525 | be aligned. | |
1526 | * elf64-sh64.c (sh_elf64_relocate_section): Ditto. | |
1527 | 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com> | |
1528 | * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define. | |
1529 | (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a | |
1530 | .cranges section with SEC_SORT_ENTRIES set. | |
1531 | (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an | |
1532 | incoming sorted .cranges section. | |
1533 | (sh64_bfd_elf_copy_private_section_data): New. | |
1534 | (sh64_elf_final_write_processing): Only sort .cranges and modify | |
1535 | start address if called by linker. | |
1536 | 2001-01-08 Ben Elliston <bje@redhat.com> | |
1537 | * elf32-sh64.c (sh64_elf_final_write_processing): Activate | |
1538 | Hans-Peter Nilsson's set bit 0 patch from 2001-01-06. | |
1539 | * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto. | |
1540 | 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com> | |
1541 | * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of | |
1542 | line. Add comments before all entries. | |
1543 | <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing | |
1544 | comment. | |
1545 | (sh_elf64_reloc): Correct head comment. | |
1546 | (sh_elf64_relocate_section): Correct spacing. | |
1547 | <relocating for a local symbol>: Do not honour STO_SH5_ISA32; | |
1548 | instead call reloc_dangerous callback. | |
1549 | <case R_SH_SHMEDIA_CODE>: New case. | |
1550 | (sh_elf64_gc_mark_hook): Correct spacing. | |
1551 | (sh_elf64_check_relocs): Ditto. | |
1552 | * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>: | |
1553 | New case. | |
1554 | * elf32-sh.c: Correct #endif comments for #ifndef-wrapped | |
1555 | functions. | |
1556 | (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct, | |
1557 | clarify describing comment. Add comments before all entries. | |
1558 | (sh_elf_relocate_section) <relocating for a local symbol>: Do not | |
1559 | honour STO_SH5_ISA32; instead call reloc_dangerous callback. | |
1560 | 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com> | |
1561 | Sort .cranges section in final link. Prepare to set bit 0 on | |
1562 | entry address. | |
1563 | * elf32-sh64.c (struct sh64_find_section_vma_data): New. | |
1564 | (sh64_elf_link_output_symbol_hook): Fix typo in prototype. | |
1565 | (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming | |
1566 | .cranges section. | |
1567 | (sh64_backend_section_from_shdr): New, to recognize | |
1568 | SHT_SH5_CR_SORTED on incoming .cranges section. | |
1569 | (elf_backend_section_from_shdr): Define. | |
1570 | (sh64_elf_final_write_processing): Sort outgoing .cranges | |
1571 | section. (New, temporarily disabled:) Set bit 0 on entry address | |
1572 | according to ISA type. | |
1573 | (sh64_find_section_for_address): New. | |
1574 | (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb, | |
1575 | crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c. | |
1576 | (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use | |
1577 | bfd_malloc, not xmalloc. | |
1578 | (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make | |
1579 | global. | |
1580 | * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but | |
1581 | temporarily disabled) setting bit 0 on entry address. | |
1582 | (elf_backend_final_write_processing): Define. | |
1583 | 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com> | |
1584 | * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to | |
1585 | be a proper relocation for PTA and PTB rather than a marker. | |
1586 | <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2, | |
1587 | R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16, | |
1588 | R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16, | |
1589 | R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL, | |
1590 | R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>: | |
1591 | Zero src_mask. | |
1592 | * elf64-sh64.c: Ditto. | |
1593 | (sh_elf64_relocate_section) <case R_SH_PT_16>: New case. | |
1594 | * elf32-sh64.c: Include opcodes/sh64-opc.h | |
1595 | (shmedia_prepare_reloc): Take a bfd_link_info pointer as first | |
1596 | argument. Drop const qualifiers from "bfd *" and "bfd_byte *" | |
1597 | parameters. No unused parameters. Caller changed. | |
1598 | <case R_SH_PT_16>: New case. | |
1599 | * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h. | |
1600 | * Makefile.in: Regenerate. | |
1601 | 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com> | |
1602 | * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for | |
1603 | all code sections. | |
1604 | (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5. | |
1605 | (sh64_elf_merge_private_data): Ditto. | |
1606 | * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data | |
1607 | to access stored section flags. | |
1608 | (sh64_elf_final_write_processing): Return immediately unless | |
1609 | called by linker. Use sh64_elf_section_data (cranges) to get size | |
1610 | of linker-generated cranges entries. | |
1611 | (sh64_elf_copy_private_data): Add missing "return true". | |
1612 | (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5. | |
1613 | (sh_elf64_merge_private_data): Ditto. | |
1614 | 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com> | |
1615 | * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of | |
1616 | elf64-sh64.c:sh64_elf_fake_sections. | |
1617 | (elf_backend_fake_sections): Define as sh64_elf64_fake_sections. | |
1618 | 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com> | |
1619 | * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete. | |
1620 | (sh64_elf_final_write_processing): New. | |
1621 | (elf_backend_final_write_processing): Define. | |
1622 | (sh64_elf_fake_sections): Get header flags from tdata field. | |
1623 | (sh64_elf_copy_private_data): Do not call | |
1624 | sh64_elf_copy_private_data_internal, just copy e_flags field. | |
1625 | (sh64_elf_merge_private_data): Do not call | |
1626 | sh64_elf_copy_private_data_internal. | |
1627 | 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com> | |
1628 | Remove EF_SH64_ABI64, let ELF size make difference. | |
1629 | Remove SH64-specific BFD section flag. | |
1630 | * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as | |
1631 | containing SHmedia through elf_section_data (asect)->tdata | |
1632 | non-zero, not using a BFD section flag. | |
1633 | (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64. | |
1634 | (sh64_elf_merge_private_data): Similar. | |
1635 | (elf_backend_section_flags): Don't define. | |
1636 | (sh64_elf_backend_section_flags): Delete. | |
1637 | * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64, | |
1638 | not EF_SH64_ABI64. | |
1639 | (sh_elf64_merge_private_data): Similar. | |
1640 | * section.c (Section flags definitions): Don't define | |
1641 | SEC_SH_ISA_SHMEDIA. | |
1642 | (bfd-in2.h): Regenerate. | |
1643 | 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com> | |
1644 | Make DataLabel references work with partial linking. | |
1645 | * elf32-sh64.c: Fix formatting. | |
1646 | (sh64_elf_link_output_symbol_hook): New. | |
1647 | (elf_backend_link_output_symbol_hook): Define to | |
1648 | sh64_elf_link_output_symbol_hook. | |
1649 | (sh64_elf_add_symbol_hook): Make DataLabel symbol just global | |
1650 | undefined if partial linking. Adjust sanity check. | |
1651 | * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New. | |
1652 | (elf_backend_link_output_symbol_hook): Define to | |
1653 | sh64_elf64_link_output_symbol_hook. | |
1654 | (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global | |
1655 | undefined if partial linking. Adjust sanity check. | |
1656 | 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com> | |
1657 | Implement semantics for inter-file DataLabel references. | |
1658 | * elf64-sh64.c (DATALABEL_SUFFIX): Define. | |
1659 | (sh64_elf64_add_symbol_hook): New. | |
1660 | (sh_elf64_relocate_section): If passing an indirect symbol with | |
1661 | st_type STT_DATALABEL on the way to a symbol with st_other | |
1662 | STO_SH5_ISA32, do not bitor 1 to the relocation. | |
1663 | (elf_backend_add_symbol_hook): Define to | |
1664 | sh64_elf64_add_symbol_hook. | |
1665 | * elf64-sh32.c: Tweak comments. | |
1666 | (DATALABEL_SUFFIX): Define. | |
1667 | (sh64_elf_add_symbol_hook): New. | |
1668 | (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook. | |
1669 | * elf32-sh.c (sh_elf_relocate_section): If passing an indirect | |
1670 | symbol with st_type STT_DATALABEL on the way to a symbol with | |
1671 | st_other STO_SH5_ISA32, do not bitor 1 to the relocation. | |
1672 | 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com> | |
1673 | Pass through STT_DATALABEL. | |
1674 | * elf32-sh64.c (sh64_elf_get_symbol_type): New. | |
1675 | (elf_backend_get_symbol_type): Define. | |
1676 | * elf64-sh64.c (sh64_elf64_get_symbol_type): New. | |
1677 | (elf_backend_get_symbol_type): Define. | |
1678 | 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com> | |
1679 | * elf32-sh64.c: Tweak comments. | |
1680 | (sh64_elf_copy_private_data_internal): Add prototype. | |
1681 | (bfd_elf32_bfd_set_private_flags): Define. | |
1682 | (sh64_elf_copy_private_data_internal): Compare machine name, not | |
1683 | textual BFD target name, to check whether to copy section flag | |
1684 | SHF_SH5_ISA32. | |
1685 | (sh64_elf_merge_private_data): Validize bfd_get_arch_size. | |
1686 | Tweak section-contents-type-mismatch message. | |
1687 | (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers. | |
1688 | Validize reloc-types. | |
1689 | * elf64-sh64.c: New file. | |
1690 | * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare. | |
1691 | * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo. | |
1692 | (BFD64_BACKENDS_CFILES): Add elf64-sh64.c. | |
1693 | Regenerate dependencies. | |
1694 | * Makefile.in: Regenerate. | |
1695 | * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and | |
1696 | bfd_elf64_sh64l_vec. | |
1697 | * configure.in: Handle bfd_elf64_sh64_vec and | |
1698 | bfd_elf64_sh64l_vec. | |
1699 | * configure: Regenerate. | |
1700 | * po/POTFILES.in: Regenerate. | |
1701 | * po/bfd.pot: Regenerate. | |
1702 | 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com> | |
1703 | * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize | |
1704 | anything else but EF_SH64 and EF_SH64_ABI64. | |
1705 | (sh64_elf_merge_private_data): Emit error for anything else but | |
1706 | EF_SH64 and EF_SH64_ABI64. | |
1707 | * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec | |
1708 | from targ_selvecs. | |
1709 | * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and | |
1710 | bfd_elf32_sh64l_vec as a temporary measure. | |
1711 | * configure: Regenerate. | |
1712 | 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com> | |
1713 | * cpu-sh.c (arch_info_struct): Include sh5 item | |
1714 | unconditionalized. | |
1715 | * config.bfd (sh64-*-elf*): Do not set targ_cflags. | |
1716 | Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec, | |
1717 | bfd_elf32_shblin_vec and bfd_elf32_shlin_vec. | |
1718 | * elf32-sh64.c: Tweak comments. | |
1719 | (sh64_elf_set_mach_from_flags): Recognize all machine flags that | |
1720 | are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64. | |
1721 | (sh64_elf_copy_private_data_internal): Wrap long line. | |
1722 | (sh64_elf_merge_private_data): Rewrite to allow objects from | |
1723 | SH64 subsets to be linked together. | |
1724 | (INCLUDE_SHMEDIA): Define. | |
1725 | * elf32-sh.c (sh_elf_relocate_section) <local symbol>: | |
1726 | Parenthesize plus-expression inside or-expression. | |
1727 | <global symbol>: Ditto. | |
1728 | (sh_elf_set_mach_from_flags): Remove code refusing | |
1729 | deleted EF_SH64_32BIT_ABI flag. | |
1730 | 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com> | |
1731 | * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL, | |
1732 | R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL, | |
1733 | R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true. | |
1734 | (sh_elf_relocate_section) <local symbol>: Or 1 in | |
1735 | calculation of relocation if sym->st_other & STO_SH5_ISA32. | |
1736 | <global symbol>: Ditto if h->other & STO_SH5_ISA32. | |
1737 | * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to | |
1738 | relocation. | |
1739 | 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com> | |
1740 | * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo. | |
1741 | (BFD32_BACKENDS_CFILES): Add elf32-sh64.c. | |
1742 | Regenerate dependencies. | |
1743 | * Makefile.in: Regenerate. | |
1744 | * archures.c: Add bfd_mach_sh5. | |
1745 | * config.bfd: Map targ_cpu sh* to bfd_sh_arch. | |
1746 | Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA. | |
1747 | * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec. | |
1748 | * configure: Regenerate. | |
1749 | * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5, | |
1750 | BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6, | |
1751 | BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2, | |
1752 | BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8, | |
1753 | BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16, | |
1754 | BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16, | |
1755 | BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16, | |
1756 | BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16, | |
1757 | BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations. | |
1758 | * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link | |
1759 | in item for SH5. | |
1760 | * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items | |
1761 | for SHmedia relocs. | |
1762 | [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs. | |
1763 | [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call | |
1764 | shmedia_prepare_reloc, goto final_link_relocate if it returns | |
1765 | non-zero, else fail as before. | |
1766 | (sh_elf_set_mach_from_flags): Provide function only if not defined | |
1767 | as macro. Do not recognize objects with EF_SH64_32BIT_ABI set. | |
1768 | (sh_elf_set_private_flags): Provide function only if not defined | |
1769 | as a macro. | |
1770 | (sh_elf_copy_private_data): Similar. | |
1771 | (sh_elf_merge_private_data): Similar. | |
1772 | * section.c (SEC_SH_ISA_SHMEDIA): New. | |
1773 | * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare. | |
1774 | * elf32-sh64.c: New file. | |
1775 | * libbfd.h: Regenerate. | |
1776 | * bfd-in2.h: Regenerate. | |
1777 | * po/POTFILES.in: Regenerate. | |
1778 | * po/bfd.pot: Regenerate. | |
1779 | * bfd-in2.h: Regenerate. | |
1780 | * libbfd.h: Regenerate. | |
1781 | ||
e108f470 DJ |
1782 | 2002-02-07 Daniel Jacobowitz <drow@mvista.com> |
1783 | ||
1784 | * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has | |
1785 | been included, not drag it in. | |
1786 | * bfd-in2.h: Regenerate. | |
1787 | ||
259d18a3 L |
1788 | 2002-02-06 H.J. Lu (hjl@gnu.org) |
1789 | ||
1790 | * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update | |
1791 | the mach and ISA fields if necessary. | |
1792 | ||
f13b834e NC |
1793 | 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com> |
1794 | ||
1795 | * coffcode.h (coff_set_arch_mach_hook): Select the highest known | |
1796 | ARM architecture when an F_ARM_5 flag is detected, since we cannot | |
1797 | be sure exactly which architecture this represents. | |
1798 | ||
82f6addb NC |
1799 | 2002-02-05 Nick Clifton <nickc@redhat.com> |
1800 | ||
1801 | * po/tr.po: Updated translation. | |
1802 | ||
899f54f5 AM |
1803 | 2002-02-05 Alan Modra <amodra@bigpond.net.au> |
1804 | ||
1805 | From Jimi X <jimix@watson.ibm.com> | |
1806 | * archures (bfd_mach_ppc64): Define. | |
1807 | (bfd_powerpc_arch): Rename to bfd_powerpc_archs. | |
1808 | (bfd_powerpc_arch): Define. | |
1809 | * bfd-in2.h: Regenerate. | |
1810 | * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs. | |
1811 | (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs. | |
1812 | (bfd_powerpc_archs): Add default powerpc64 arch. | |
1813 | ||
248866a8 AM |
1814 | 2002-02-05 Alan Modra <amodra@bigpond.net.au> |
1815 | ||
1816 | * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs | |
1817 | against section syms in readonly sections. Don't do the global | |
1818 | sym check if we find one. | |
1819 | * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise. | |
1820 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise. | |
0a6958db | 1821 | * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise. |
248866a8 AM |
1822 | * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise. |
1823 | (elf_s390_grok_prstatus): Add missing prototype. | |
1824 | ||
4fa5c2a8 HPN |
1825 | 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com> |
1826 | ||
1827 | * elf64-mmix.c (mmix_dump_bpo_gregs): New function. | |
1828 | (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>: | |
1829 | Call bfd_get_section_by_name only once. Initialize | |
1830 | bpodata->n_bpo_relocs_this_section. | |
1831 | (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment | |
1832 | referring to DSOs. | |
1833 | (bpo_reloc_request_sort_fn): Don't use difference of values as | |
1834 | return-value. | |
1835 | ||
537c972e DB |
1836 | 2002-02-02 David O'Brien <obrien@FreeBSD> |
1837 | ||
1838 | * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat | |
1839 | version 4.5 and later the same as 5-CURRENT. | |
1840 | * configure: Re-generate. | |
1841 | ||
006336b8 JT |
1842 | 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com> |
1843 | ||
1844 | * config.bfd (hppa*-*-netbsd*): New target. | |
1845 | ||
6c571f00 PT |
1846 | 2002-01-31 Philipp Thomas <pthomas@suse.de> |
1847 | ||
19397422 AM |
1848 | * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR |
1849 | to front of message. Unify messages with elf32-arm.h. Use | |
1850 | commas where neccessary. | |
1851 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase | |
1852 | ERROR in messages. Unify messages with coff-arm.c. Correct | |
1853 | VFP/FPA error message. | |
1854 | (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and | |
1855 | APCS-32 for translation. | |
6c571f00 | 1856 | |
930b4cb2 HPN |
1857 | 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com> |
1858 | ||
1859 | Perform on-demand global register allocation from | |
1860 | R_MMIX_BASE_PLUS_OFFSET relocs. | |
1861 | * elf64-mmix.c (struct bpo_reloc_section_info, struct | |
1862 | bpo_reloc_request, struct bpo_greg_section_info): New. | |
1863 | (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook, | |
1864 | bpo_reloc_request_sort_fn, mmix_elf_relax_section, | |
1865 | _bfd_mmix_check_all_relocs, | |
1866 | _bfd_mmix_prepare_linker_allocated_gregs, | |
1867 | _bfd_mmix_finalize_linker_allocated_gregs): New functions. | |
1868 | (elf_mmix_howto_table): Correct src_mask for most relocs. | |
1869 | (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New | |
1870 | case. | |
1871 | (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New | |
1872 | case. Fix typo in comment. New label do_mmix_reloc. | |
1873 | (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to | |
1874 | store first object file with a base-plus-offset reloc. Call | |
1875 | mmix_elf_check_common_relocs for the part common with mmo. | |
1876 | (mmix_elf_final_link): Write out linker-allocated register | |
1877 | contents section. | |
1878 | (elf_backend_gc_sweep_hook): Define. | |
1879 | (bfd_elf64_bfd_relax_section): Define. | |
1880 | ||
1881 | * mmo.c: Don't include <ctype.h> | |
1882 | (mmo_init): Correct init-once logic. | |
1883 | ||
3e36d993 TR |
1884 | 2002-02-01 Tom Rix <trix@redhat.com> |
1885 | ||
1886 | * config.bfd: Conditionally support <aiaff> for pre AIX 4.3. | |
1887 | ||
ba323545 AM |
1888 | 2002-02-01 Alan Modra <amodra@bigpond.net.au> |
1889 | ||
1890 | * Makefile.am: Run "make dep-am" | |
1891 | * Makefile.in: Regenerate. | |
1892 | ||
012884d6 DB |
1893 | 2002-01-31 David O'Brien <obrien@FreeBSD> |
1894 | ||
1895 | * configure.in: Recognize the differences in core files from FreeBSD | |
1896 | 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as | |
1897 | 5-CURRENT. | |
1898 | * configure: Regenerate. | |
1899 | ||
3b16e843 NC |
1900 | 2002-01-31 Ivan Guzvinec <ivang@opencores.org> |
1901 | ||
1902 | * coff-or32.c: New file. | |
1903 | * cpu-or32.c: New file. | |
1904 | * elf32-or32.c: New file. | |
1905 | * archures.c: Add support for or32. | |
1906 | * targets.c: Add support for or32. | |
1907 | * bfd-in2.h: Regenerate. | |
7dc0ab31 | 1908 | * coffcode.h (coff_set_arch_mach_hook, coff_set_flags, |
3b16e843 NC |
1909 | coff_write_object_contents): Add support for or32. |
1910 | * config.bfd: Add target. | |
1911 | * configure.in: Add support for or32. | |
1912 | * configure: Regenerate. | |
1913 | * Makefile.am: Add support for or32. | |
1914 | * Makefile.in: Regenerate. | |
3b16e843 NC |
1915 | * po/SRC-POTFILES.in: Add or32 files. |
1916 | * po/bfd.pot: Regenerate. | |
7dc0ab31 | 1917 | |
caf8ca8e NC |
1918 | 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com> |
1919 | Don Lindsay <lindsayd@cisco.com> | |
1920 | ||
1921 | * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return | |
1922 | false' with a return of a bfd_reloc_ error code. | |
1923 | ||
e5dfef09 HPN |
1924 | 2002-01-31 Hans-Peter Nilsson <hp@axis.com> |
1925 | ||
1926 | * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't | |
1927 | unexport unreferenced symbols when --export-dynamic. Call | |
1928 | _bfd_elf_strtab_delref when unexporting. | |
1929 | ||
4e4770d0 DJ |
1930 | 2002-01-30 Daniel Jacobowitz <drow@mvista.com> |
1931 | ||
1932 | * bfd-in.h: Include <stdbool.h> if it is available. | |
1933 | * bfd-in2.h: Regenerated. | |
1934 | ||
e1fa50e7 AM |
1935 | 2002-01-31 Alan Modra <amodra@bigpond.net.au> |
1936 | ||
1937 | * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should | |
1938 | not go via the plt. | |
1939 | ||
b5f79c76 NC |
1940 | 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com> |
1941 | ||
b5f79c76 NC |
1942 | * archures.c: Tidy up formatting of embedded comments. |
1943 | * bfd.c: Tidy up formatting of embedded comments. | |
7dc0ab31 | 1944 | * bfd-in.h: Fix formatting of comments. |
b5f79c76 NC |
1945 | * reloc.c: Tidy up formatting of ordinary & embedded comments. |
1946 | * section.c: Tidy up formatting of embedded comments. | |
1947 | * syms.c: Tidy up formatting of embedded comments. | |
1948 | * targets.c: Tidy up formatting of embedded comments. | |
1949 | ||
1950 | * bfd-in2.h: Regenerate. | |
1951 | ||
ca09e32b NC |
1952 | 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com> |
1953 | ||
1954 | * vms-tir.c (cmd_name): New function. | |
1955 | (tir_cmd_name): New function. | |
1956 | (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name(). | |
1957 | (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name(). | |
1958 | Fix formatting. | |
7dc0ab31 | 1959 | |
ca09e32b NC |
1960 | * peXXigen.c (pe_print_idata): Rearrange message to aid in |
1961 | translation. | |
1962 | (pe_print_pdata): Rearrange message to aid in translation. | |
1963 | ||
1964 | * libbfd.c (warn_deprecated): Rearrange error message to aid in | |
1965 | translation. | |
1966 | ||
1967 | * ihex.c (ihex_write_object_contents): Fix spelling typo. | |
1968 | ||
1969 | * ieee.c (ieee_slurp_external_symbols): Remove spurious space. | |
1970 | ||
1971 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error | |
1972 | message to aid in translation. | |
1973 | ||
1974 | * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message | |
1975 | to aid in translation. | |
1976 | ||
1977 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo. | |
1978 | ||
7dc0ab31 | 1979 | 2002-01-30 Philipp Thomas <pthomas@suse.de> |
ae1a89b7 PT |
1980 | |
1981 | * coff-arm.c, elf32-elf.h: Unify messages. | |
1982 | ||
05f64ac6 NC |
1983 | 2002-01-30 Nick Clifton <nickc@redhat.com> |
1984 | ||
1985 | * po/sv.po: Updated translation. | |
1986 | ||
f5a3e38a NC |
1987 | 2002-01-30 Philipp Thomas <pthomas@suse.de> |
1988 | ||
1989 | * dwarf2.c (read_abbrev): Use full section name in error message. | |
1990 | (decode_line_info): Likewise. | |
661a3fd4 NC |
1991 | |
1992 | * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging | |
1993 | message. | |
1994 | ||
d926e03d AM |
1995 | 2002-01-30 Alan Modra <amodra@bigpond.net.au> |
1996 | ||
1997 | * elf64-ppc.c (func_desc_adjust): Only provide missing function | |
1998 | descriptor symbols for undefined function code syms. Clear | |
1999 | ELF_LINK_NON_ELF so that they can stay weak. | |
2000 | ||
030d18fb | 2001 | 2002-01-29 Chris Demetriou <cgd@broadcom.com> |
7dc0ab31 | 2002 | Mitch Lichtenberg <mpl@broadcom.com> |
030d18fb CD |
2003 | |
2004 | * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype. | |
2005 | * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function | |
2006 | to handle 32-bit ELF embedded reloc (ld --embedded-relocs) | |
2007 | generation. | |
2008 | * bfd-in2.h: Regenerate. | |
2009 | ||
fcc76bea CD |
2010 | 2002-01-29 Chris Demetriou <cgd@broadcom.com> |
2011 | ||
2012 | * elf32-mips.c: Add additional comments about HI16 relocation | |
2013 | processing. | |
2014 | (_bfd_mips_elf_hi16_reloc): Don't subtract address here for | |
2015 | pc-relative relocations. (Reverts change made on 2001-10-31.) | |
2016 | (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here | |
2017 | for pc-relative relocations. | |
2018 | (mips_elf_calculate_relocation): Add a comment about a kludge | |
2019 | in the R_MIPS_GNU_REL_HI16 handling. | |
2020 | (_bfd_mips_elf_relocate_section): Implement that kludge; | |
2021 | adjust pc-relative HI16 relocation for difference in HI16 and | |
2022 | LO16 addresses, since it can't easily be done in | |
2023 | mips_elf_calculate_relocation. | |
2024 | ||
f9cd9119 MS |
2025 | 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com> |
2026 | ||
2027 | * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32 | |
2028 | relocations with PC32 relocations for undefined or weak symbols. | |
2029 | * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise. | |
2030 | * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise. | |
2031 | ||
702248bb JT |
2032 | 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com> |
2033 | ||
2034 | * elfcore.h (elf_core_file_p): Improve comment for last change. | |
2035 | ||
4867be41 DJ |
2036 | 2002-01-27 Daniel Jacobowitz <drow@mvista.com> |
2037 | ||
2038 | * configure: Regenerated. | |
2039 | ||
a94cef6a JT |
2040 | 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com> |
2041 | ||
2042 | * elfcore.h (elf_core_file_p): Set the machine architecture | |
2043 | before processing the program headers. | |
2044 | ||
7562a296 HPN |
2045 | 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com> |
2046 | ||
966abd70 HPN |
2047 | * configure.in <64-bit configuration>: If using gcc, check and |
2048 | emit error for egcs-1.1.2. | |
2049 | * configure: Regenerate. | |
2050 | ||
e8eab623 NC |
2051 | 2002-01-26 Egor Duda <deo@logos-m.ru> |
2052 | ||
2053 | * elf.c (elfcore_grok_win32pstatus): Copy only as much information | |
2054 | as possible to avoid stack corruption. | |
2055 | ||
73896efb RH |
2056 | 2002-01-26 Richard Henderson <rth@redhat.com> |
2057 | ||
2058 | * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext | |
2059 | for non-allocated sections. | |
2060 | ||
2061 | 2002-01-25 Mark Kettenis <kettenis@gnu.org> | |
c106e334 MK |
2062 | |
2063 | * elf.c (elfcore_write_prstatus): Make sure we pass the address of | |
2064 | prstat.pr_reg even if it is a struct. | |
2065 | ||
73896efb | 2066 | 2002-01-25 Steve Ellcey <sje@cup.hp.com> |
254ed743 NC |
2067 | |
2068 | * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX. | |
2069 | ||
3d66c4f7 NC |
2070 | 2002-01-25 Philipp Thomas <pthomas@suse.de> |
2071 | ||
2072 | * coffgen.c (coff_print_symbol): Don't mark info message | |
2073 | for translation. | |
2074 | ||
9460ecda NC |
2075 | 2002-01-25 Nick Clifton <nickc@redhat.com> |
2076 | ||
2077 | * po/fr.po: Updated translation. | |
2078 | * po/es.po: Updated translation. | |
2079 | ||
cc9ff76a AM |
2080 | 2002-01-25 Philipp Thomas <pthomas@suse.de> |
2081 | ||
2082 | * coff-alpha.c (alpha_relocate_section): Unify warning message | |
2083 | for GP relative relocations without GP defined. | |
2084 | * coff-mips.c (mips_relocate_section): Likewise. | |
2085 | ||
c68836a9 AM |
2086 | 2002-01-25 Alan Modra <amodra@bigpond.net.au> |
2087 | ||
2088 | * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid | |
2089 | unsigned overflow when new_offset < old_offset. | |
2090 | ||
e8eab623 | 2091 | 2002-01-24 Philipp Thomas <pthomas@suse.de> |
391154e9 NC |
2092 | |
2093 | * bfd.c (_bfd_abort): Fix typo. | |
2094 | ||
8ba89f17 RH |
2095 | 2002-01-23 Richard Henderson <rth@redhat.com> |
2096 | ||
2097 | * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress | |
2098 | plt entries for undefweak symbols. | |
2099 | ||
c6953948 NC |
2100 | 2002-01-23 Steve Ellcey <sje@cup.hp.com> |
2101 | ||
2102 | * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to | |
2103 | DEFAULT_VECTOR. | |
2104 | (bfd_elf64_ia64_hpux_big_vec): Ditto. | |
2105 | (bfd_elf32_h8300_vec): Ditto. | |
2106 | ||
41bd81ab AM |
2107 | 2002-01-23 Alan Modra <amodra@bigpond.net.au> |
2108 | ||
2109 | * elf64-ppc.c: Remove stale part of ABI comment. | |
2110 | (NO_OPD_RELOCS): Define. | |
2111 | (ppc64_elf_check_relocs): Use it. | |
2112 | (ppc64_elf_relocate_section): Here too. | |
2113 | (build_one_stub): Don't point function syms at the stub. Instead, | |
2114 | hijack plt.offset. | |
2115 | (ppc64_elf_relocate_section): Check whether REL24 relocs should | |
2116 | really go to the stub. Make all dynamic relocs in opd against | |
2117 | locals. | |
2118 | (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of | |
2119 | plt.offset. | |
2120 | ||
f304919d RH |
2121 | 2002-01-22 Richard Henderson <rth@redhat.com> |
2122 | ||
2123 | * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp. | |
2124 | ||
c0ef99a7 AM |
2125 | 2002-01-22 Alan Modra <amodra@bigpond.net.au> |
2126 | ||
60ee0d4a AM |
2127 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of |
2128 | TOC_BASE_OFF adjustment. | |
2129 | ||
c0ef99a7 AM |
2130 | * Makefile.am: Run "make dep-am". |
2131 | * Makefile.in: Regenerate. | |
2132 | * po/SRC-POTFILES.in: Regenerate. | |
2133 | ||
64328b46 AM |
2134 | 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca> |
2135 | ||
2136 | * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new | |
2137 | host defines. | |
2138 | ||
59953665 | 2139 | 2002-01-21 Hans-Peter Nilsson <hp@axis.com> |
58255df3 HPN |
2140 | |
2141 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>: | |
2142 | Check for and emit error if sgot is NULL at this point. | |
2143 | ||
9596feea JT |
2144 | 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com> |
2145 | ||
2146 | * config.bfd (ia64*-*-netbsd*): New target. | |
2147 | ||
7b45c6e1 AM |
2148 | 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at> |
2149 | ||
2150 | * som.c (som_write_space_strings): Comment typo fix. | |
2151 | ||
e5094212 AM |
2152 | 2002-01-21 Alan Modra <amodra@bigpond.net.au> |
2153 | ||
e86ce104 AM |
2154 | * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and |
2155 | is_func_descriptor fields. | |
2156 | (link_hash_newfunc): Init them. | |
2157 | (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a | |
2158 | dot are candidates for plt entries. When processing .opd relocs, | |
2159 | set function descriptor strings to point inside function code | |
2160 | string, and set new ppc_link_hash_entry fields. | |
2161 | (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs. | |
2162 | (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with | |
2163 | function descriptors. It's now done in.. | |
2164 | (func_desc_adjust): New. | |
2165 | (ppc64_elf_func_desc_adjust): New. | |
2166 | (define elf_backend_always_size_sections): Define. | |
2167 | (ppc64_elf_hide_symbol): New. | |
2168 | (define elf_backend_hide_symbol): Define. | |
2169 | (allocate_dynrelocs): Remove code looking up function descriptors | |
2170 | as that has been done earlier. | |
2171 | (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash | |
2172 | table. | |
2173 | (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking | |
2174 | up function descriptor. | |
2175 | (build_one_stub): Look up the function code sym. Check for | |
2176 | invalid plt offsets. | |
2177 | (ppc64_elf_relocate_section): Tweak calls to undefined weak syms. | |
2178 | Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs. | |
2179 | ||
e5094212 AM |
2180 | * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add |
2181 | boolean param. | |
2182 | (_bfd_elf_link_hash_hide_symbol): Likewise. | |
2183 | * elflink.h (elf_link_add_object_symbols): Adjust call to | |
2184 | elf_backend_hide_symbol. | |
2185 | (elf_fix_symbol_flags): Likewise. | |
2186 | (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather | |
2187 | than bfd_alloc. | |
2188 | * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param. | |
2189 | Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref. | |
2190 | * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. | |
2191 | (clobber_millicode_symbols): Adjust to suit new hide_symbol. | |
2192 | * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param | |
2193 | and adjust to suit. | |
2194 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call | |
2195 | _bfd_elf_link_hash_hide_symbol rather than duplicating code. | |
2196 | * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise. | |
2197 | ||
40b8271b AM |
2198 | 2002-01-18 Alan Modra <amodra@bigpond.net.au> |
2199 | ||
2200 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a | |
2201 | dynamic function descriptor symbol, not the associated function | |
2202 | symbol. | |
2203 | ||
55baa95b EC |
2204 | 2002-01-17 Eric Christopher <echristo@redhat.com> |
2205 | ||
2206 | * elf32-mips.c (mips_elf_calculate_relocation): Fix typo. | |
2207 | ||
328577ad NC |
2208 | 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com> |
2209 | ||
2210 | * po/bfd.pot: Regenerate. | |
2211 | * po/fr.po: Regenerate. | |
2212 | ||
af746e92 AM |
2213 | 2002-01-17 Alan Modra <amodra@bigpond.net.au> |
2214 | ||
2215 | * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>): | |
2216 | Remove "Elf_Internal_Shdr *" param. | |
2217 | (_bfd_mips_elf_section_from_bfd_section): Ditto. | |
2218 | * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto. | |
2219 | * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto. | |
2220 | * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto. | |
2221 | * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto. | |
2222 | * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto. | |
2223 | * elf.c (_bfd_elf_section_from_bfd_section): Allow backend | |
2224 | function to override special sections. Remove hdr arg from | |
2225 | backend call, and don't loop. | |
2226 | ||
175e9962 EC |
2227 | 2002-01-16 Eric Christopher <echristo@redhat.com> |
2228 | ||
2229 | * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp | |
2230 | on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of | |
2231 | relocations requiring gp0 and gp. | |
2232 | ||
96a846ea RE |
2233 | 2002-01-16 Richard Earnshaw <rearnsha@arm.com> |
2234 | ||
175e9962 | 2235 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle |
96a846ea RE |
2236 | EF_ARM_VFP_FLOAT. |
2237 | (elf32_arm_print_private_bfd_data): Likewise. | |
2238 | ||
af3ae48d NC |
2239 | 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com> |
2240 | ||
2241 | * po/tr.po: Import new version. | |
2242 | ||
10ed1bba AM |
2243 | 2002-01-16 Alan Modra <amodra@bigpond.net.au> |
2244 | ||
2245 | * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs. | |
2246 | (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc. | |
2247 | (ORI_R0_R0_0): Correct. | |
2248 | ||
5d1634d7 AM |
2249 | 2002-01-16 Alan Modra <amodra@bigpond.net.au> |
2250 | ||
2251 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE | |
2252 | when plt_not_loaded. | |
2253 | * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to | |
2254 | clear .plt SEC_CODE here. Create .stub and correct .glink flags. | |
2255 | (PLT_INITIAL_ENTRY_SIZE): Set to 24. | |
2256 | (ppc64_elf_glink_code): Delete. | |
2257 | (PPC64_ELF_GLINK_SIZE): Delete. | |
2258 | (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11, | |
2259 | BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0, | |
2260 | ORI_R0_R0_0): Define. | |
2261 | (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define. | |
2262 | (struct ppc_link_hash_table): Add sstub and plt_overflow. | |
2263 | (ppc64_elf_link_hash_table_create): Init them. | |
2264 | (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry. | |
2265 | Don't copy to shared lib. | |
2266 | (ppc64_elf_check_relocs): Call bfd_set_error on errors. | |
2267 | (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount. | |
2268 | (allocate_dynrelocs <plt>): Don't change function sym here. Make | |
2269 | room for .stub and .glink code. | |
2270 | (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for | |
2271 | DT_PPC64_GLINK. | |
2272 | (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call | |
2273 | bfd_elf64_bfd_final_link. | |
2274 | (bfd_elf64_bfd_final_link): Don't define. | |
2275 | (ppc64_elf_size_stubs): New. | |
2276 | (build_plt_stub): New. | |
2277 | (build_one_stub): New. | |
2278 | (ppc64_elf_build_stubs): New. | |
2279 | (ppc64_elf_relocate_section <toc relocs>): Remove assert. | |
2280 | (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs. | |
2281 | (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set | |
2282 | DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in | |
2283 | case output sections not separate. Adjust DT_RELASZ to not | |
2284 | include plt relocs. Set reserved got entry. Set got and plt | |
2285 | entry size. | |
2286 | (elf_backend_got_header_size): Set to 8. | |
2287 | * elf64-ppc.h: New file. | |
2288 | ||
c601ffdb AM |
2289 | 2002-01-16 Alan Modra <amodra@bigpond.net.au> |
2290 | ||
2291 | * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing | |
2292 | sections, use bfd_section_list_remove. | |
2293 | * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. | |
2294 | * elflink.h (elf_link_add_object_symbols): When removing all | |
2295 | sections, use bfd_section_list_clear. | |
2296 | ||
8fb4cb7f NC |
2297 | 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com> |
2298 | ||
2299 | * po/sv.po: New file: Swedish translation. | |
2300 | * configure.in (ALL_LINGUAS): Add sv. | |
2301 | * configure: Regenerate. | |
2302 | ||
d3c456e9 JJ |
2303 | 2002-01-15 Jakub Jelinek <jakub@redhat.com> |
2304 | ||
2305 | * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change. | |
2306 | * elf.c (merge_sections_remove_hook): New function. | |
2307 | (_bfd_elf_merge_sections): Pass it as 3rd argument to | |
2308 | _bfd_merge_sections. | |
2309 | * libbfd-in.h (_bfd_merge_sections): Add 3rd argument. | |
2310 | * libbfd.h: Rebuilt. | |
2311 | * merge.c (_bfd_merge_sections): Add remove_hook argument. | |
2312 | Call remove_hook if a SEC_EXCLUDE section is encountered. | |
2313 | ||
1f7fd478 NC |
2314 | 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com> |
2315 | ||
2316 | * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'. | |
2317 | (xstormy16_reloc_map): Initialise new field with correct howto | |
2318 | table. | |
2319 | (xstormy16_reloc_type_lookup): Use 'table' field to locate correct | |
2320 | howto entry. | |
2321 | ||
b87011e9 MS |
2322 | 2002-01-10 Michael Snyder <msnyder@redhat.com> |
2323 | ||
2324 | * elf.c (elfcore_write_prstatus): Use long instead of pid_t; | |
2325 | (elfcore_write_pstatus): Use long instead of pid_t; | |
2326 | * elf-bfd.h: Change prototypes to use long instead of pid_t; | |
2327 | ||
175e9962 | 2328 | 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com> |
b4db1224 JT |
2329 | |
2330 | * elf.c: Update copyright years. | |
2331 | (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO | |
2332 | and NT_NETBSDCORE_FIRSTMACH. Improve a comment. | |
2333 | ||
7c76fa91 MS |
2334 | 2002-01-08 Michael Snyder <msnyder@redhat.com> |
2335 | ||
2336 | Add capability to write corefile note sections, for gdb. | |
2337 | * elf.c (elfcore_write_note): New function. | |
2338 | (elfcore_write_prpsinfo): New function. | |
2339 | (elfcore_write_prstatus): New function. | |
2340 | (elfcore_write_pstatus): New function. | |
2341 | (elfcore_write_prfpreg): New function. | |
2342 | (elfcore_write_prxfpreg): New function. | |
97996af6 | 2343 | * elf-bfd.h: Add prototypes for above functions. |
7c76fa91 | 2344 | |
e1fddb6b AO |
2345 | 2002-01-08 Alexandre Oliva <aoliva@redhat.com> |
2346 | ||
2347 | * elf.c (elf_fake_sections): Propagate errors from | |
2348 | elf_backend_fake_section. | |
2349 | ||
8d05742f JT |
2350 | 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com> |
2351 | ||
2352 | * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo. | |
2353 | (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c. | |
2354 | (elf32-sh-nbsd.lo): New rule. | |
2355 | * Makefile.in: Regenerate. | |
2356 | * config.bfd (sh*le-*-netbsdelf*): New target. | |
2357 | (sh*-*-netbsdelf*): New target. | |
2358 | * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*. | |
2359 | (bfd_elf32_shnbsd_vec): New vector. | |
2360 | (bfd_elf32_shlnbsd_vec): New vector. | |
2361 | * configure: Regenerate. | |
2362 | * elf32-sh-nbsd.c: New file. | |
2363 | * targets.c: Update copyright years. | |
175e9962 | 2364 | (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and |
8d05742f JT |
2365 | bfd_elf32_shnbsd_vec. |
2366 | ||
1dba4cb4 AH |
2367 | 2002-01-07 Aldy Hernandez <aldyh@redhat.com> |
2368 | ||
2369 | * coff-rs6000.c (READ20): Use bfd_scan_vma. | |
2370 | ||
47b22aef GK |
2371 | 2002-01-07 Geoffrey Keating <geoffk@redhat.com> |
2372 | ||
2373 | * elflink.h (elf_link_input_bfd): Don't ask for the merged offset | |
2374 | of a symbol in a section that will be deleted. | |
2375 | ||
be2d1673 NC |
2376 | 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com> |
2377 | ||
2378 | * po/es.po: New file: Spanish translation. | |
2379 | * configure.in (ALL_LINGUAS): Add es. | |
2380 | * configure: Regenerate. | |
2381 | ||
d9cf1b54 AM |
2382 | 2002-01-06 Steve Ellcey <sje@cup.hp.com> |
2383 | ||
2384 | * elfxx-ia64.c (is_unwind_section_name): Add target vector as | |
2385 | argument so we can handle HP-UX specially. | |
2386 | (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name. | |
2387 | (elfNN_hpux_backend_section_from_bfd_section): New for support | |
2388 | of SHN_IA_64_ANSI_COMMON. | |
2389 | (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON. | |
2390 | (is_unwind_section_name): Add special HP-UX support. | |
2391 | (elfNN_ia64_section_from_shdr): Add support for more sections. | |
2392 | (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and | |
2393 | add support for more sections. | |
2394 | (elfNN_ia64_additional_program_headers): Modify | |
2395 | is_unwind_section_name call. | |
2396 | (elfNN_ia64_modify_segment_map): Remove assumption that there is | |
2397 | only one unwind section in segment. | |
2398 | ||
3f3c5c34 AM |
2399 | 2002-01-06 Alan Modra <amodra@bigpond.net.au> |
2400 | ||
2401 | * syms.c (_bfd_generic_make_empty_symbol): New function. | |
2402 | * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as | |
2403 | _bfd_generic_make_empty_symbol. | |
2404 | * libbfd.h: Regenerate. | |
2405 | * bfd-in2.h: Regenerate. | |
2406 | * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function. | |
2407 | (hppabsd_core_get_symtab_upper_bound): Don't define. | |
2408 | (hppabsd_core_get_symtab): Likewise. | |
2409 | (hppabsd_core_print_symbol): Likewise. | |
2410 | (hppabsd_core_get_symbol_info): Likewise. | |
2411 | (hppabsd_core_bfd_is_local_label_name): Likewise. | |
2412 | (hppabsd_core_get_lineno): Likewise. | |
2413 | (hppabsd_core_find_nearest_line): Likewise. | |
2414 | (hppabsd_core_bfd_make_debug_symbol): Likewise. | |
2415 | (hppabsd_core_read_minisymbols): Likewise. | |
2416 | (hppabsd_core_minisymbol_to_symbol): Likewise. | |
2417 | (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). | |
2418 | Formatting fixes. | |
2419 | * hpux-core.c: Similarly. | |
2420 | * irix-core.c: Similarly. | |
2421 | * osf-core.c: Similarly. | |
2422 | * sco5-core.c: Similarly. | |
2423 | * binary.c (binary_make_empty_symbol): Remove function, define as | |
2424 | _bfd_generic_make_empty_symbol. | |
2425 | * ihex.c (ihex_make_empty_symbol): Likewise. | |
2426 | * mmo.c (mmo_make_empty_symbol): Likewise. | |
2427 | * ppcboot.c (ppcboot_make_empty_symbol): Likewise. | |
2428 | * srec.c (srec_make_empty_symbol): Likewise. | |
2429 | * versados.c (versados_make_empty_symbol): Likewise. | |
2430 | * vms.c (_bfd_vms_make_empty_symbol): Remove. | |
2431 | (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol. | |
2432 | * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol | |
2433 | rather than _bfd_vms_make_empty_symbol. | |
2434 | * vms-misc.c (new_symbol): Likewise. | |
2435 | ||
3f0a7f7f AM |
2436 | 2002-01-05 Alan Modra <amodra@bigpond.net.au> |
2437 | ||
9e7b37b3 AM |
2438 | * section.c (bfd_section_init): Remove unnecessary initialisations. |
2439 | (bfd_section_list_clear): New function. | |
2440 | (bfd_section_list_remove, bfd_section_list_insert): New macros. | |
2441 | (_bfd_strip_section_from_output): Use them. | |
2442 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
2443 | * elf32-mips.c (_bfd_mips_elf_final_link): Likewise. | |
2444 | * elf64-mips.c (mips_elf64_final_link): Likewise. | |
2445 | * elf64-mmix.c (mmix_elf_final_link): Likewise. | |
2446 | * sunos.c (sunos_add_dynamic_symbols): Likewise. | |
2447 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise. | |
2448 | * bfd-in2.h: Regenerate. | |
2449 | ||
2450 | * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway | |
2451 | rather than doing our own section handling. Clean up after errors | |
2452 | with bfd_release and bfd_section_list_clear. Handle unexpected | |
2453 | flags. | |
2454 | * aoutf1.h (sunos4_core_file_p): Likewise. | |
2455 | * aix386-core.c (aix386_core_file_p): Likewise. | |
2456 | * cisco-core.c (cisco_core_file_validate): Likewise. | |
2457 | * ptrace-core.c (ptrace_unix_core_file_p): Likewise. | |
2458 | * trad-core.c (trad_unix_core_file_p): Likewise. | |
2459 | ||
2460 | * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors | |
2461 | with bfd_release and bfd_section_list_clear. | |
2462 | * hpux-core.c (hpux_core_core_file_p): Likewise. | |
2463 | * irix-core.c (irix_core_core_file_p): Likewise. | |
2464 | * lynx-core.c (lynx_core_file_p): Likewise. | |
2465 | * osf-core.c (osf_core_core_file_p): Likewise. | |
2466 | * rs6000-core.c (rs6000coff_core_p): Likewise. | |
2467 | * sco5-core.c (sco5_core_file_p): Likewise. | |
2468 | ||
3f0a7f7f AM |
2469 | * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform |
2470 | sign extension adjustments without conditionals. | |
2471 | ||
a3aa38ee JJ |
2472 | 2002-01-04 Jakub Jelinek <jakub@redhat.com> |
2473 | ||
2474 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if | |
2475 | CIE at .eh_frame start is removed due to no FDEs referencing it. | |
2476 | ||
8a8b2d4b AJ |
2477 | 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com> |
2478 | ||
2479 | * config.bfd (x86_64-*-netbsd*): New target. | |
2480 | * configure.in (x86_64-*-netbsd*): Set COREFILE | |
2481 | to netbsd-core.lo. | |
2482 | * configure: Regenerated. | |
2483 | ||
04b5af89 TR |
2484 | 2002-01-03 Tom Rix <trix@redhat.com> |
2485 | ||
2486 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering | |
2487 | for recent bfd_make_section_anyway change. | |
2488 | ||
51c5503b NC |
2489 | 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com> |
2490 | ||
2491 | * elf32-arm.h (elf32_arm_final_link_relocate): Handle | |
2492 | R_ARM_THM_PC11 reloc. | |
2493 | ||
07f7c046 NC |
2494 | 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com> |
2495 | ||
2496 | * configure.in (LINGUAS): Add ja. | |
2497 | * configure: Regenerate. | |
2498 | * po/ja.po: Import from translation project's web site. | |
2499 | ||
5eefb65f NC |
2500 | 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com> |
2501 | ||
2502 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error | |
2503 | messages to ease translation into other languages. | |
2504 | ||
39e90f10 | 2505 | For older changes see ChangeLog-0001 |
56882138 AM |
2506 | \f |
2507 | Local Variables: | |
2508 | mode: change-log | |
2509 | left-margin: 8 | |
2510 | fill-column: 74 | |
2511 | version-control: never | |
2512 | End: |