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