]>
Commit | Line | Data |
---|---|---|
f8df10f4 JJ |
1 | 2001-11-23 Jakub Jelinek <[email protected]> |
2 | ||
3 | * elf.c (_bfd_elf_rela_local_sym): New. | |
4 | * elflink.h (elf_link_input_bfd): Don't consider empty | |
5 | merged sections as removed in relocation tests. | |
6 | * elf-bfd.h (_bfd_elf_rela_local_sym): Add prototype. | |
7 | * elf32-i386.c (elf_i386_relocate_section): Handle relocs | |
8 | against STT_SECTION symbol of SHF_MERGE section. | |
9 | * elf32-arm.h (elf32_arm_relocate_section): Likewise. | |
10 | * elf32-avr.c (elf32_avr_relocate_section): Call | |
11 | _bfd_elf_rela_local_sym. | |
12 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
13 | * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. | |
14 | * elf32-fr30.c (fr30_final_link_relocate): Likewise. | |
15 | * elf32-h8300.c (elf32_h8_relocate_section): Likewise. | |
16 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
17 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
18 | * elf32-i860.c (elf32_i860_relocate_section): Likewise. | |
19 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
20 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
21 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
22 | * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. | |
23 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
24 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
25 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
26 | * elf32-v850.c (v850_elf_relocate_section): Likewise. | |
27 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
28 | * elf64-mmix.c (mmix_elf_relocate_section): Likewise. | |
29 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
30 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
31 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
32 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
33 | * elf-hppa.h (elf_hppa_relocate_section): Likewise. | |
34 | * elf-m10200.c (mn10200_elf_relocate_section): Likewise. | |
35 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
36 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
37 | * elf32-sh.c (sh_elf_relocate_section): Likewise for | |
38 | !partial_inplace relocs. Handle relocs against STT_SECTION | |
39 | symbol of SHF_MERGE for partial_inplace relocs. | |
40 | ||
313e863f NC |
41 | 2001-11-21 Nick Clifton <[email protected]> |
42 | ||
43 | * po/Make-in (distclean): Move SRC-POTFILES.in and | |
44 | BLD-POTFILES.in to maintainer-clean target. | |
45 | ||
d7458677 AM |
46 | 2001-11-21 Alan Modra <[email protected]> |
47 | ||
48 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Test r_symndx rather | |
49 | than sym_sec->output_section to detect relocs against discarded | |
50 | sections. | |
51 | ||
45e9217a L |
52 | 2001-11-19 H.J. Lu <[email protected]> |
53 | ||
54 | * elflink.h (elf_link_input_bfd): Assert r_symndx != 0 when | |
55 | discarding relocations. | |
56 | ||
84c254c6 NC |
57 | 2001-11-19 Nick Clifton <[email protected]> |
58 | ||
59 | * section.c (bfd_is_const_section): New macro. Return true if the | |
60 | given seciton is one of the special, constant, sections. | |
61 | * bfd-in2.h: Regenerate. | |
62 | * coffgen.c (coff_count_linenumbers): Use bfd_is_const_section. | |
63 | (coff_write_native_symbol): Use bfd_is_const_section. | |
64 | ||
e5ee5df1 AM |
65 | 2001-11-19 Alan Modra <[email protected]> |
66 | ||
a0e94dc0 AM |
67 | * elf32-hppa.c (clobber_millicode_symbols): Dec dynstr refcount. |
68 | ||
2a5aaecb AM |
69 | * elf32-hppa.c (elf32_hppa_size_stubs): Don't consider undefined |
70 | millicode syms as candidates for import stubs. | |
71 | ||
e5ee5df1 AM |
72 | * elf32-hppa.c (PLABEL_PLT_ENTRY_SIZE): Delete. |
73 | (allocate_PIC_calls): Rename to allocate_plt_static. | |
74 | (allocate_dynrelocs): Move most of code handling .plt entries to.. | |
75 | (allocate_plt_static): ..here. Don't drop plabel entries. | |
76 | ||
6eeb40b2 HPN |
77 | 2001-11-19 Hans-Peter Nilsson <[email protected]> |
78 | ||
79 | * mmo.c: Adjust documentation tags to use texinfo 4 features. | |
80 | ||
84c254c6 NC |
81 | 2001-11-16 Nick Clifton <[email protected]> |
82 | ||
83 | * section.c (bfd_is_const_section): New macro. Return true if the | |
84 | section pointer refers to one of the special, constant sections. | |
85 | * bfd-in2.h: Regenerate. | |
86 | ||
87 | * coffgen.c (coff_count_linenumbers): Only update the line number | |
88 | count in non-special sections. | |
89 | (coff_write_native_symbol): Only update the line number file | |
90 | position in non-special sections. | |
91 | ||
44421011 DJ |
92 | 2001-11-15 Daniel Jacobowitz <[email protected]> |
93 | ||
94 | * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against | |
95 | local syms from discarded sections. Update comment. | |
96 | ||
f9f32305 AM |
97 | 2001-11-15 Alan Modra <[email protected]> |
98 | ||
beb1d4ec AM |
99 | * po/SRC-POTFILES.in: Regenerate. |
100 | ||
f9f32305 AM |
101 | * elflink.h (elf_link_input_bfd): Complain about all relocs |
102 | against local syms from discarded sections. K&R fixes. | |
103 | (elf_reloc_symbol_deleted_p): Don't try to swap in external syms. | |
104 | K&R fixes. | |
105 | ||
6361c4c9 AO |
106 | 2001-11-15 Alexandre Oliva <[email protected]> |
107 | ||
108 | * elf64-sparc.c (sparc64_elf_relocate_section): Disregard | |
109 | overflows in the .stab section. | |
110 | ||
73d074b4 DJ |
111 | 2001-11-14 Daniel Jacobowitz <[email protected]> |
112 | ||
113 | * bfd-in.h (bfd_elf32_discard_info): Add prototype. | |
114 | (bfd_elf64_discard_info): Likewise. | |
115 | * bfd-in2.h: Regenerate. | |
116 | * elf-bfd.h (struct elf_reloc_cookie): New. | |
117 | (struct elf_backend_data): Add elf_backend_discard_info, | |
118 | elf_backend_ignore_discarded_relocs, and elf_backend_write_section. | |
119 | (_bfd_elf32_reloc_symbol_deleted_p): Add prototype. | |
120 | (_bfd_elf64_reloc_symbol_deleted_p): Likewise. | |
121 | * elf32-mips.c (_bfd_elf32_mips_discard_info): New. | |
122 | (_bfd_elf32_mips_ignore_discarded_relocs): New. | |
123 | (_bfd_elf32_mips_write_section): New. | |
124 | (elf_backend_discard_info): Define. | |
125 | (elf_backend_ignore_discarded_relocs): Define. | |
126 | (elf_backend_write_section): Define. | |
127 | * elfcode.h (elf_bfd_discard_info): Define. | |
128 | (elf_reloc_symbol_deleted_p): Define. | |
129 | * elflink.h (elf_link_input_bfd): Check | |
130 | elf_section_ignore_discarded_relocs. Call | |
131 | bed->elf_backend_write_section if available. | |
132 | (elf_reloc_symbol_deleted_p): New. | |
133 | (elf_bfd_discard_info): New. | |
134 | (elf_section_ignore_discarded_relocs): New. | |
135 | * elfxx-target.h (elf_backend_discard_info): Define. | |
136 | (elf_backend_ignore_discarded_relocs): Define. | |
137 | (elf_backend_write_section): Define. | |
138 | (elfNN_bed): Add elf_backend_discard_info, | |
139 | elf_backend_ignore_discarded_relocs, and | |
140 | elf_backend_write_section. | |
141 | * libbfd-in.h (_bfd_discard_section_stabs): Add prototype. | |
142 | * libbfd.h: Regenerate. | |
143 | * stabs.c (_bfd_discard_section_stabs): New. | |
144 | ||
27018c3f MS |
145 | 2001-11-14 Martin Schwidefsky <[email protected]> |
146 | ||
147 | * elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc" | |
148 | scheme to get rid of an ugly complicated test. | |
149 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
150 | ||
58a35813 AJ |
151 | 2001-11-14 Andreas Jaeger <[email protected]> |
152 | ||
153 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use | |
154 | x86-64 for display. | |
155 | ||
d03ba2a1 JJ |
156 | 2001-11-14 Jakub Jelinek <[email protected]> |
157 | ||
158 | * dwarf2.c (struct line_head) [total_length]: Change type to | |
159 | bfd_vma. | |
160 | (struct dwarf2_debug): Add dwarf_str_buffer and dwarf_str_size. | |
161 | (struct comp_unit): Add stash and offset_size. | |
162 | (read_8_bytes): Return bfd_vma. | |
163 | (read_indirect_string): New. | |
164 | (read_attribute): Handle DW_FORM_strp. | |
165 | (decode_line_info): Support 64-bit DWARF format. | |
166 | (_bfd_dwarf2_find_nearest_line): Likewise. | |
167 | (parse_comp_unit): Set offset_size and stash. | |
168 | ||
cf716c56 RH |
169 | 2001-11-13 Keith Walker <[email protected]> |
170 | ||
171 | * dwarf2.c (read_attribute_value): New function to handle | |
172 | DW_FORM_indirect. | |
173 | (read_attribute): Use it. | |
174 | ||
1a509dcc GK |
175 | 2001-11-13 Geoffrey Keating <[email protected]> |
176 | ||
177 | * dwarf2.c (decode_line_info): Properly deal with unknown standard | |
178 | opcodes. | |
179 | ||
4e6bfe8a AM |
180 | 2001-11-13 John Marshall <[email protected]> |
181 | Alan Modra <[email protected]> | |
182 | ||
183 | * section.c (bfd_make_section_anyway): Don't increment section_id | |
184 | and the BFD's section_count if adding the section failed. | |
185 | * vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway | |
186 | change. | |
187 | ||
bc0d28ee HPN |
188 | 2001-11-12 Orjan Friberg <[email protected]> |
189 | ||
190 | * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new | |
191 | core dump format. | |
192 | ||
350836e3 L |
193 | 2001-11-11 H.J. Lu <[email protected]> |
194 | ||
195 | * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call | |
196 | _bfd_elf_strtab_size instead of _bfd_stringtab_size. | |
197 | ||
198 | * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change | |
199 | dynstr type to `struct elf_strtab_hash *'. | |
200 | ||
b959dc73 HPN |
201 | 2001-11-11 Hans-Peter Nilsson <[email protected]> |
202 | ||
203 | * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i | |
204 | size_t. Rename second i to j. | |
205 | ||
7e250b6c JL |
206 | Sat Nov 10 08:56:02 2001 Jeffrey A Law ([email protected]) |
207 | ||
208 | * binary.c: Include safe-ctype.h after bfd.h and sysdep.h. | |
209 | ||
ec338859 AM |
210 | 2001-11-10 Alan Modra <[email protected]> |
211 | ||
212 | * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF | |
213 | relocs into shared libs. | |
214 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
215 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
216 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
217 | * elf32-mips.c (mips_elf_calculate_relocation): Likewise. | |
218 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
219 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
220 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
221 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
222 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
223 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
224 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
225 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
226 | ||
227 | * elf.c (bfd_section_from_r_symndx): New function. | |
228 | * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define. | |
229 | (struct sym_sec_cache): New. | |
230 | (bfd_section_from_r_symndx): Declare. | |
231 | (struct bfd_elf_section_data): Change local_dynrel type to PTR. | |
232 | * elflink.h (elf_link_input_bfd): Don't test for removed linkonce | |
233 | relocs when relocatable. Don't zero entire reloc, just zero the | |
234 | addend and sym. | |
235 | * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec. | |
236 | (elf32_hppa_link_hash_table_create): Init it. | |
237 | (elf32_hppa_check_relocs): Track dynamic relocs needed for local | |
238 | syms on a per-section basis as we do for globals. | |
239 | (elf32_hppa_gc_sweep_hook): Update for local_dynrel change. | |
240 | (allocate_dynrelocs): Warning fix. | |
241 | (elf32_hppa_size_dynamic_sections): Don't allocate relocs when | |
242 | section has been discarded. | |
243 | (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs | |
244 | into shared libs. | |
245 | * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec. | |
246 | (elf_i386_link_hash_table_create): Init it. | |
247 | (elf_i386_check_relocs): Track dynamic relocs needed for local | |
248 | syms on a per-section basis as we do for globals. | |
249 | (elf_i386_gc_sweep_hook): Update for local_dynrel change. | |
250 | Remove dead code. | |
251 | (allocate_dynrelocs): Warning fix. | |
252 | (elf_i386_size_dynamic_sections): Don't allocate relocs when | |
253 | section has been discarded. | |
254 | (elf_i386_relocate_section): Don't copy STN_UNDEF relocs | |
255 | into shared libs. | |
256 | * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec. | |
257 | (elf_s390_link_hash_table_create): Init it. | |
258 | (elf_s390_check_relocs): Track dynamic relocs needed for local | |
259 | syms on a per-section basis as we do for globals. | |
260 | (elf_s390_gc_sweep_hook): Update for local_dynrel change. | |
261 | Remove dead code. | |
262 | (allocate_dynrelocs): Warning fix. | |
263 | (elf_s390_size_dynamic_sections): Don't allocate relocs when | |
264 | section has been discarded. | |
265 | (elf_s390_relocate_section): Don't copy STN_UNDEF relocs | |
266 | into shared libs. | |
267 | * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec. | |
268 | (ppc64_link_hash_table_create): Init it. | |
269 | (ppc64_elf_check_relocs): Track dynamic relocs needed for local | |
270 | syms on a per-section basis as we do for globals. | |
271 | (ppc64_elf_gc_sweep_hook): Update for local_dynrel change. | |
272 | (allocate_dynrelocs): Call the correct record_dynamic_dymbol | |
273 | function. Warning fix. | |
274 | (ppc64_elf_size_dynamic_sections): Don't allocate relocs when | |
275 | section has been discarded. | |
276 | (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs | |
277 | into shared libs. | |
278 | * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec. | |
279 | (elf_s390_link_hash_table_create): Init it. | |
280 | (elf_s390_check_relocs): Track dynamic relocs needed for local | |
281 | syms on a per-section basis as we do for globals. | |
282 | (elf_s390_gc_sweep_hook): Update for local_dynrel change. | |
283 | Remove dead code. | |
284 | (allocate_dynrelocs): Warning fix. | |
285 | (elf_s390_size_dynamic_sections): Don't allocate relocs when | |
286 | section has been discarded. | |
287 | (elf_s390_relocate_section): Don't copy STN_UNDEF relocs | |
288 | into shared libs. | |
289 | ||
0451c93c MS |
290 | 2001-11-08 Martin Schwidefsky <[email protected]> |
291 | ||
292 | * elf32-s390: Major rework that introduces all recent changes to | |
293 | the s390 backends. Get a closer match to elf32-i386. | |
294 | (elf_s390_relocate_section): Make use of dynamic section short-cuts. | |
295 | Localise vars, and delay setting. Better error reporting, replace | |
296 | BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a | |
297 | symbol is not defined in the regular object file and tread the weak | |
298 | definition as the normal one. Don't discard relocs for undefweak or | |
299 | undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in | |
300 | test for avoided copy relocs. Reinstate fudge for unresolved relocs | |
301 | in debugging sections. | |
302 | (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy | |
303 | reloc processing for weakdefs. Remove redundant casts and aborts. | |
304 | Delay setting of vars until needed. Move creation of dynamic symbols | |
305 | and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace | |
306 | BFD_ASSERT with abort. Discard .plt entries for everything with | |
307 | plt.refcount <= 0. | |
308 | (elf_s390_check_relocs): Don't allocate space for dynamic relocs, | |
309 | .got or .relgot here but do it in allocate_dynrelocs. Reference count | |
310 | possible .plt and .got entries. Don't test input section SEC_READONLY | |
311 | here to try to avoid copy relocs, and keep dyn_relocs regardless of | |
312 | ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of | |
313 | variables until needed. Remove separate switch stmt for creating .got | |
314 | section. Initialise local_got_refcounts to 0. Cache pointer to | |
315 | "sreloc" section in elf_section_data. Tweak condition under which .got | |
316 | created. Report files with bad relocation section names. | |
317 | (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that | |
318 | have been forced local. Use same test to decide if we can use a | |
319 | relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF | |
320 | comment. Move expressions out of function calls. Replace BFD_ASSERT | |
321 | with abort. | |
322 | (elf_s390_finish_dynamic_sections): Migrate common code out of switch | |
323 | statement. Replace BFD_ASSERT with abort. | |
324 | (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i" | |
325 | to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag | |
326 | instead of looking up section names for DT_TEXTREL. Replace | |
327 | BFD_ASSERT with abort. Zero out the dynamic allocated content space. | |
328 | Add a comment to remind us that one day this ought to be fixed. | |
329 | (struct elf_s390_link_hash_entry): Rename "root" to "elf". | |
330 | (struct elf_s390_link_hash_table): Likewise. | |
331 | (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get | |
332 | rid of unnecessary casts. | |
333 | (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields. | |
334 | Remove "section" field. | |
335 | (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
336 | Reference count possible .plt entries. Don't deallocate .got and | |
337 | .relgot space here. | |
338 | (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs. | |
339 | Update comment. | |
340 | (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to | |
341 | dyn_relocs. | |
342 | (elf_s390_discard_copies): Delete. | |
343 | (elf_s390_link_hash_traverse): Delete. | |
344 | (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link | |
345 | rather than gc variety). | |
346 | (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt, | |
347 | srelplt, sdynbss, srelbss fields. | |
348 | (elf_s390_link_hash_table_create): Init them. | |
349 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
350 | (allocate_dynrelocs): New function. | |
351 | (create_got_section): New function. | |
352 | (elf_backend_can_refcount): Define. | |
353 | (elf_backend_copy_indirect_symbol): Define. | |
354 | (elf_s390_copy_indirect_symbol): New function. | |
355 | (elf_s390_create_dynamic_sections): New function. | |
356 | (readonly_dynrelocs): New function. | |
ec338859 | 357 | * elf64-s390.c: Likewise. |
0451c93c | 358 | |
2b0f7ef9 JJ |
359 | 2001-11-07 Jakub Jelinek <[email protected]> |
360 | ||
361 | * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo. | |
362 | (BFD32_BACKENDS_CFILES): Add elf-strtab.c. | |
363 | (elf-strtab.lo): Add rule. | |
364 | * Makefile.in: Rebuilt. | |
365 | * configure.in (elf): Add elf-strtab.lo. | |
366 | * configure: Rebuilt. | |
367 | * elf-bfd.h (elf_strtab_hash): Forward declare. | |
368 | (struct elf_link_hash_table): Change dynstr type to | |
369 | struct elf_strtab_hash *. | |
370 | (struct elf_obj_tdata): Change strtab_ptr type to | |
371 | struct elf_strtab_hash *. | |
372 | (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add, | |
373 | _bfd_elf_strtab_addref, _bfd_elf_strtab_delref, | |
374 | _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size, | |
375 | _bfd_elf_strtab_offset, _bfd_elf_strtab_emit, | |
376 | _bfd_elf_strtab_finalize): New prototypes. | |
377 | * elf-strtab.c: New file. | |
378 | * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add | |
379 | and _bfd_elf_strtab_size instead of _bfd_stringtab calls. | |
380 | Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or | |
381 | when forcing dynamic symbol to local. | |
382 | (elf_link_create_dynamic_sections): Call | |
383 | _bfd_elf_strtab_init instead of elf_stringtab_init. | |
384 | (elf_link_record_local_dynamic_symbol): Likewise, change | |
385 | dynstr type. Use _bfd_elf_strtab functions instead of | |
386 | _bfd_stringtab calls. | |
387 | (size_dynamic_sections): Use _bfd_elf_strtab functions instead of | |
388 | _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields, | |
389 | call _bfd_elf_strtab_addref. Call elf_finalize_dynstr. | |
390 | (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions. | |
391 | (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing | |
392 | dynamic symbol to local. | |
393 | (elf_link_assign_sym_version): Likewise. | |
394 | (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of | |
395 | _bfd_stringtab_emit. | |
396 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr | |
397 | type. Call _bfd_elf_strtab functions instead of | |
398 | _bfd_stringtab functions. | |
399 | * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. | |
400 | * elf.c (_bfd_elf_init_reloc_shdr): Likewise. | |
401 | (elf_fake_sections): Likewise. | |
402 | (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs | |
403 | on shstrtab hash table, call _bfd_elf_strtab_addref on each section | |
404 | name in the output. Call _bfd_elf_strtab_finalize and | |
405 | use _bfd_elf_strtab_offset to finalize sh_name section header fields. | |
406 | (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size | |
407 | instead of _bfd_stringtab_size. | |
408 | (prep_headers): Change shstrtab type. | |
409 | Use _bfd_elf_strtab calls instead of _bfd_stringtab calls. | |
410 | ||
1d761fc5 AM |
411 | 2001-11-07 Alan Modra <[email protected]> |
412 | ||
413 | * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix | |
414 | bad symtab segfault. Formatting and warning fixes. Improve | |
415 | error message for internationalisation. | |
416 | ||
f8deed93 L |
417 | 2001-11-06 H.J. Lu ([email protected]) |
418 | ||
1d761fc5 | 419 | * elflink.h (elf_link_input_bfd): Complain about relocs against |
f8deed93 L |
420 | discarded sections. |
421 | ||
7fda6dbc AM |
422 | 2001-11-03 Alan Modra <[email protected]> |
423 | ||
424 | * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order. | |
425 | ||
d918dd35 L |
426 | 2001-11-02 H.J. Lu <[email protected]> |
427 | ||
428 | * elf32-mips.c (mips_elf_calculate_relocation): Don't create | |
429 | dynamic relocation for symbols defined in regular objects when | |
430 | creating executables. | |
431 | ||
b8819ab2 NC |
432 | 2001-11-02 Nick Clifton <[email protected]> |
433 | ||
3c62831e NC |
434 | * configure.in (ALL_LINGUAS): Add "fr". |
435 | * configure: Regenerate. | |
436 | * po/fr.po: New file. | |
437 | ||
b8819ab2 NC |
438 | * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch. |
439 | ||
21da9f89 NC |
440 | 2001-11-02 John David Anglin <[email protected]> |
441 | ||
442 | * som.c (setup_sections): Initialize subspace_sections. | |
443 | ||
95f7d9f7 L |
444 | 2001-11-02 H.J. Lu ([email protected]) |
445 | ||
446 | * coffgen.c (coff_object_p): Return 0 if the header is too big. | |
447 | ||
12e1f53e HPN |
448 | 2001-11-02 Hans-Peter Nilsson <[email protected]> |
449 | ||
450 | * elfcore.h (elf_core_file_p): Preserve and clear abfd section | |
451 | information. Save bfd arch and mach values. Restore on error. | |
452 | ||
a8d02d66 AM |
453 | 2001-11-02 Alan Modra <[email protected]> |
454 | ||
455 | * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls. | |
456 | (allocate_PIC_calls): New function. | |
457 | (allocate_dynrelocs): Don't allocate pic_call plt entries here. | |
458 | (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls. | |
459 | (elf32_hppa_finish_dynamic_symbol): Remove dead code. | |
460 | ||
72209a1f HPN |
461 | 2001-11-02 Hans-Peter Nilsson <[email protected]> |
462 | ||
463 | * elf32-cris.c (cris_elf_grok_prstatus): New function. | |
4a15251e | 464 | (cris_elf_grok_psinfo): New function. |
72209a1f HPN |
465 | (elf_backend_grok_prstatus): Define. |
466 | (elf_backend_grok_psinfo): Define. | |
467 | ||
86c76c7b AM |
468 | 2001-11-01 Alan Modra <[email protected]> |
469 | ||
470 | * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch | |
471 | prediction bits. | |
472 | ||
afdbd6d0 CD |
473 | 2001-10-31 Chris Demetriou <[email protected]> |
474 | ||
475 | * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative | |
476 | relocations properly. | |
477 | ||
2cd533b7 L |
478 | 2001-10-31 H.J. Lu <[email protected]> |
479 | ||
480 | * elflink.h (elf_link_output_extsym): Don't clear the visibility | |
481 | field for relocateable. | |
482 | ||
4578e0a7 AM |
483 | 2001-11-01 Alan Modra <[email protected]> |
484 | ||
4e12ff7f AM |
485 | * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count |
486 | .plt relocs in DT_RELASZ. | |
4578e0a7 | 487 | |
7649aa50 NC |
488 | 2001-10-29 NIIBE Yutaka <[email protected]> |
489 | ||
490 | * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu | |
491 | targets. | |
492 | ||
a53ecf01 NC |
493 | 2001-10-31 Nick Clifton <[email protected]> |
494 | ||
495 | * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec. | |
496 | ||
3c3bdf30 NC |
497 | 2001-10-30 Hans-Peter Nilsson <[email protected]> |
498 | ||
499 | * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo. | |
500 | (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo. | |
501 | (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c. | |
502 | Regenerate dependencies. | |
503 | * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors. | |
504 | * config.bfd: [BFD64] (mmix-*-*): New case. | |
505 | * cpu-mmix.c, mmo.c, elf64-mmix.c: New files. | |
506 | * archures.c (enum bfd_architecture): Add bfd_arch_mmix. | |
507 | (bfd_mmix_arch): Declare. | |
508 | (bfd_archures_list): Add bfd_mmix_arch. | |
509 | * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour. | |
510 | (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare. | |
511 | (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and | |
512 | bfd_mmo_mmix_vec. | |
513 | * reloc.c: Add MMIX relocations. | |
514 | * bfd.c (struct _bfd, tdata): Add mmo_data. | |
515 | * Makefile.in: Regenerate. | |
516 | * configure: Regenerate. | |
517 | * libbfd.h: Regenerate. | |
518 | * bfd-in2.h: Regenerate. | |
519 | * configure: Rebuild. | |
520 | ||
e0e8c97f NC |
521 | 2001-10-30 Richard Earnshaw ([email protected]) |
522 | ||
523 | * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the | |
524 | p_paddr of the segment that contains it. | |
f5ffc919 NC |
525 | (copy_private_bfd_data): If the LMA for a segment is known, use it |
526 | for matching sections to segments. | |
527 | (assign_file_positions_for_segments): Use the LMA when adjusting | |
528 | for inter-section alignment padding. | |
e0e8c97f | 529 | |
5b74f489 KH |
530 | 2001-10-29 Kazu Hirata <[email protected]> |
531 | ||
532 | * README: Fix a typo. | |
533 | ||
0b6488e2 RH |
534 | 2001-10-24 Richard Henderson <[email protected]> |
535 | ||
536 | * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy | |
537 | timestamp to time_t for ctime. | |
538 | ||
908d94bf HPN |
539 | 2001-10-24 Hans-Peter Nilsson <[email protected]> |
540 | ||
541 | * elf32-cris.c (cris_reloc_type_lookup): Change loop to use | |
542 | unsigned, increasing index. | |
543 | ||
1b58be7e L |
544 | 2001-10-23 H.J. Lu <[email protected]> |
545 | ||
546 | * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check | |
547 | m != NULL before accessing it. | |
548 | ||
ce757d15 AM |
549 | 2001-10-23 Alan Modra <[email protected]> |
550 | ||
551 | * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing | |
552 | bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup | |
553 | doesn't accept BFD_RELOC_* on some targets, eg. hppa. | |
554 | ||
555 | * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs. | |
556 | (hppa_link_hash_newfunc): Likewise. | |
557 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
558 | (allocate_dynrelocs): Always allocate .got relocs if shared. | |
559 | (elf32_hppa_relocate_section): Output them too. Similarly | |
560 | consolidate .plt reloc code, and no longer initialise .plt | |
561 | when a reloc is output. | |
562 | (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries | |
563 | when no reloc is output. | |
564 | ||
565 | From Herbert Xu <[email protected]> | |
566 | * elf32-hppa.c (final_link_relocate): Call bfd_set_error for | |
567 | unreachable branches. | |
568 | ||
ca51bfff L |
569 | 2001-10-22 H.J. Lu <[email protected]> |
570 | ||
571 | * configure.in (WIN32LIBADD): Use -L../libiberty for | |
572 | mips*-*-linux*. | |
573 | * configure: Rebuild. | |
574 | ||
78be1d6e L |
575 | 2001-10-21 H.J. Lu <[email protected]> |
576 | ||
577 | * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty | |
578 | if shared library is enabled only for Linux hosts. | |
579 | * configure: Rebuild. | |
580 | ||
1b90af26 L |
581 | 2001-10-21 H.J. Lu <[email protected]> |
582 | ||
583 | * configure.in (WIN32LIBADD): Check if PICFLAG is defined in | |
584 | ../libiberty/Makefile instead of $enable_shared. | |
585 | * configure: Rebuild. | |
586 | ||
ebe7507a L |
587 | 2001-10-21 H.J. Lu <[email protected]> |
588 | ||
908d94bf HPN |
589 | * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover |
590 | index 0. | |
ebe7507a | 591 | |
39691762 L |
592 | 2001-10-20 H.J. Lu <[email protected]> |
593 | ||
594 | * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty | |
595 | if shared library is enabled. | |
596 | * configure: Rebuild. | |
597 | ||
6a7805b5 L |
598 | 2001-10-20 H.J. Lu <[email protected]> |
599 | ||
600 | * elf32-cris.c (cris_reloc_type_lookup): Allow index 0. | |
601 | ||
e0740195 L |
602 | 2001-10-19 H.J. Lu <[email protected]> |
603 | ||
604 | * elfcode.h (elf_object_p): Don't clear D_PAGED if the section | |
605 | size is empty. | |
606 | ||
7595d193 L |
607 | 2001-10-18 H.J. Lu <[email protected]> |
608 | ||
609 | * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE. | |
610 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
611 | ||
25263aad JJ |
612 | 2001-10-18 Jakub Jelinek <[email protected]> |
613 | ||
614 | * section.c (_bfd_strip_section_from_output): Don't count | |
615 | SEC_EXCLUDE sections as references. Set SEC_EXCLUDE. | |
616 | ||
973ffd63 AM |
617 | 2001-10-17 Alan Modra <[email protected]> |
618 | ||
619 | * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to | |
620 | Elf_Internal_Shdr.contents now that it's no longer a PTR. | |
621 | * elf-m10300.c (mn10300_elf_relax_section): Likewise. | |
622 | * elf32-h8300.c (elf32_h8_relax_section): Likewise. | |
623 | * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise. | |
624 | * elf32-sh.c (sh_elf_relax_section): Likewise. | |
625 | * elf64-alpha.c (elf64_alpha_relax_section): Likewise. | |
626 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
627 | * elf.c (setup_group): Warning fixes. | |
628 | * elflink.h (elf_link_sort_relocs): Likewise. | |
629 | * pdp11.c (slurp_reloc_table): Likewise. | |
630 | ||
df22989b JH |
631 | 2001-10-16 Jeff Holcomb <[email protected]> |
632 | ||
633 | * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer | |
634 | casts. | |
635 | ||
1e09179f L |
636 | 2001-10-15 H.J. Lu <[email protected]> |
637 | ||
638 | * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE | |
639 | for relocations against discarded link-once section. | |
640 | ||
1e370bd2 AM |
641 | 2001-10-15 Alan Modra <[email protected]> |
642 | ||
cf5c0c5b AM |
643 | * elf32-i386.c (elf_i386_relocate_section): Report some detail on |
644 | bfd_reloc_outofrange and similar errors. | |
645 | ||
1e370bd2 AM |
646 | * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type |
647 | rather than ind->weakdef. | |
648 | * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. | |
649 | * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. | |
650 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
651 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. | |
652 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise. | |
653 | ||
bbd7ec4a AM |
654 | 2001-10-15 Alan Modra <[email protected]> |
655 | H.J. Lu <[email protected]> | |
656 | ||
657 | * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc | |
658 | counts for aliases instead of aborting. | |
659 | * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. | |
660 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. | |
661 | ||
662 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset | |
663 | to -1 for non-function symbols. | |
664 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. | |
665 | * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
666 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
667 | * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
668 | * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
669 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to | |
670 | plt.offset instead of plt.refcount when setting to -1. | |
671 | ||
6a360bf4 NC |
672 | 2001-10-12 Nick Clifton <[email protected]> |
673 | ||
674 | * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22 | |
675 | like R_ARM_PC24. Include reloc number in error message about | |
676 | unresolvable relocs. | |
677 | ||
290394d6 JJ |
678 | 2001-10-10 Jakub Jelinek <[email protected]> |
679 | ||
680 | * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT | |
681 | relocations against the same symbol in .rel{,a}.dyn section. | |
682 | ||
08da05b0 KH |
683 | 2001-10-10 Kazu Hirata <[email protected]> |
684 | ||
685 | * aout-encap.c: Fix comment typos. | |
686 | * aoutx.h: Likewise. | |
687 | * archive.c: Likewise. | |
688 | * bout.c: Likewise. | |
689 | * coff64-rs6000.c: Likewise. | |
690 | * coffcode.h: Likewise. | |
691 | * coffgen.c: Likewise. | |
692 | * cofflink.c: Likewise. | |
693 | * coff-mips.c: Likewise. | |
694 | * ecoff.c: Likewise. | |
695 | * elf32-m32r.c: Likewise. | |
696 | * libcoff-in.h: Likewise. | |
697 | * libecoff.h: Likewise. | |
698 | * libxcoff.h: Likewise. | |
699 | * nlm32-i386.c: Likewise. | |
700 | * pdp11.c: Likewise. | |
701 | * section.c: Likewise. | |
702 | * som.c: Likewise. | |
703 | * som.h: Likewise. | |
704 | * bfd-in2.h: Regenerate. | |
705 | * libcoff.h: Likewise. | |
706 | ||
079e9a2f AM |
707 | 2001-10-10 Alan Modra <[email protected]> |
708 | ||
709 | * elf.c (elf_map_symbols): Don't create new section symbols; Use | |
710 | existing section syms. Update comments. | |
711 | (copy_private_bfd_data): Formatting fixes. | |
712 | (elfcore_grok_win32pstatus): Likewise. | |
713 | (swap_out_syms): Likewise. Remove unnecessary level of braces. | |
714 | ||
945906ff AM |
715 | 2001-10-09 Alan Modra <[email protected]> |
716 | ||
717 | * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to | |
718 | "group_name". | |
719 | (elf_group_name): Define. | |
720 | (elf_next_in_group): Define. | |
721 | * elf.c: Make use of elf_group_name and elf_next_in_group throughout. | |
722 | (setup_group): Don't use sec->lineno for SHT_GROUP section to store | |
723 | first member section; Instead use elf_next_in_group. | |
724 | (bfd_section_from_shdr): Likewise. | |
725 | (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol. | |
726 | ||
dbb410c3 AM |
727 | 2001-10-09 Alan Modra <[email protected]> |
728 | ||
729 | * elf-bfd.h (struct bfd_elf_section_data): Add "group" and | |
730 | "next_in_group". Fix gp and gp_size comments. | |
731 | * elf.c (union elf_internal_group): New. | |
732 | (setup_group): New function. | |
733 | (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP. | |
734 | Call setup_group for SHF_GROUP sections. | |
735 | (bfd_section_from_shdr): Build a BFD section for SHT_GROUP. | |
736 | (elf_fake_sections): Set header type for SEC_GROUP, and header | |
737 | flags for sections in a group. | |
738 | (set_group_contents): New function. | |
739 | (_bfd_elf_compute_section_file_positions): Call it. | |
740 | (assign_section_numbers): Set sh_link for SHT_GROUP. | |
945906ff | 741 | |
dbb410c3 AM |
742 | * elflink.h (gc_mark_hook): Handle section groups. |
743 | * elfxx-target.h: Add SEC_GROUP to applicable_flags. | |
744 | * section.c (SEC_GROUP): Define. | |
745 | (struct sec): Comment fixes. | |
746 | * bfd-in2.h: Regenerate. | |
747 | ||
748 | * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression | |
749 | out of function args. | |
750 | (_bfd_elf_canonicalize_reloc): Similarly. | |
751 | (_bfd_elf_get_symtab): Here too. | |
752 | (_bfd_elf_canonicalize_dynamic_symtab): And here. | |
753 | * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for | |
754 | bfd_bread, and remove unnecessary cast. | |
755 | ||
24c603fa AH |
756 | 2001-10-08 Aldy Hernandez <[email protected]> |
757 | ||
bbd7ec4a | 758 | * bfd/config.bfd (targ_cpu): Add arm9e-*-elf. |
24c603fa | 759 | |
3f5864e1 SC |
760 | 2001-10-06 Stephane Carrez <[email protected]> |
761 | ||
762 | * dwarf2.c (comp_unit_find_nearest_line): Check for end of | |
763 | compilation unit. | |
764 | ||
fb9ceeac AM |
765 | 2001-10-06 Alan Modra <[email protected]> |
766 | ||
aec2f561 AM |
767 | * bfd.c (bfd_assert): Report bfd version. |
768 | (_bfd_abort): Likewise. | |
769 | ||
50b4d486 AM |
770 | * elflink.h (elf_link_input_bfd): Don't zero discarded link-once |
771 | section sym values. Instead replace any relocs against them with | |
772 | relocs against STN_UNDEF, which has a zero value. | |
773 | ||
fb9ceeac AM |
774 | * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all |
775 | relocs. | |
776 | ||
17617495 JL |
777 | 2001-10-05 Jeff Law <[email protected]> |
778 | ||
779 | * som.h (som_exec_data): New field "version_id". | |
780 | * som.c (som_object_setup): Record the version_id if it | |
781 | exists. | |
782 | (som_prep_headers): Do not initialize version_id here. | |
783 | (som_finish_writing): Initialize version_id here. | |
784 | ||
785 | 2000-10-05 Thiemo Seufer <[email protected]> | |
7e766c3b TS |
786 | |
787 | * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos | |
788 | according to the MIPS/SGI ELF64 ABI Draft. | |
789 | (mips_elf_sort_hash_table): Typo. | |
790 | ||
58e3d09d AM |
791 | 2001-10-04 Alan Modra <[email protected]> |
792 | ||
8ea52284 AM |
793 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo. |
794 | ||
58e3d09d AM |
795 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after |
796 | copying flags if this is a weakdef. | |
797 | ||
b13c7b49 AM |
798 | 2001-10-04 Alan Modra <[email protected]> |
799 | ||
a90b9fca AM |
800 | * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better |
801 | packing. | |
802 | ||
bbd7ec4a | 803 | * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset |
3a6b8597 AM |
804 | to 1 rather than 0 to avoid confusing copy_indirect_symbol. |
805 | (mips_elf_sort_hash_table_f): Compare got.offset against 1. | |
806 | ||
b13c7b49 AM |
807 | * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything |
808 | depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those | |
809 | backends we configure. Run "make dep-am". | |
810 | (install-data-local): Install symcat.h. | |
811 | * dep-in.sed: Remove symcat.h from dependencies. | |
812 | * Makefile.in: Regenerate. | |
813 | ||
8bd621d8 AM |
814 | 2001-10-03 Vassili Karpov <[email protected]> |
815 | ||
816 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc. | |
817 | ||
1e2be829 TS |
818 | 2001-10-03 Thiemo Seufer <[email protected]> |
819 | ||
820 | * elf64-mips.c (elf_backend_may_use_rela_p): New define. | |
821 | (elf_backend_default_use_rela_p): New define. | |
822 | ||
0a991dfe AM |
823 | 2001-10-03 Alan Modra <[email protected]> |
824 | ||
57c7194e AM |
825 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last |
826 | change. | |
827 | ||
87b632fc AM |
828 | * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h. |
829 | * configure: Regenerate. | |
830 | * Makefile.am (BFD_H_FILES): Add version.h. | |
831 | * Makefile.in: Regenerate. | |
832 | * po/SRC-POTFILES.in: Regenerate. | |
833 | ||
0a991dfe AM |
834 | * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using |
835 | elf_backend_copy_indirect_symbol so that backend has a chance to | |
836 | copy other necessary fields. | |
837 | * elf-bfd.h (struct elf_backend_data): Update description of | |
838 | elf_backend_copy_indirect_symbol. | |
839 | * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after | |
840 | copying flags if this is a weakdef. | |
841 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise. | |
842 | (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather | |
843 | than bfd_link_hash_lookup. | |
bbd7ec4a | 844 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy |
0a991dfe AM |
845 | reloc processing for weakdefs. |
846 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
847 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
848 | ||
a33d1f77 AM |
849 | 2001-10-02 Alan Modra <[email protected]> |
850 | ||
851 | * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast | |
852 | result of ELF64_R_TYPE to enum before using in a switch. | |
853 | (ppc64_elf_gc_mark_hook): Likewise. | |
854 | (ppc64_elf_gc_sweep_hook): Likewise. | |
855 | (ppc64_elf_reloc_type_class): Likewise. | |
856 | ||
e43d48cc AM |
857 | 2001-10-02 Alan Modra <[email protected]> |
858 | ||
859 | * version.h: New file. | |
860 | * bfd-in.h: (BFD_VERSION): Substitute bfd_version. | |
861 | (BFD_VERSION_DATE): Define. | |
862 | (BFD_VERSION_STRING): Define. | |
863 | * configure.in: AC_SUBST bfd_version, bfd_version_date and | |
864 | bfd_version_string. | |
865 | (AC_OUTPUT <bfd-in3.h>): Depend on version.h. | |
866 | * bfd-in2.h: Regenerate. | |
867 | * configure: Regenerate. | |
868 | * Makefile.am: Run "make dep-am". | |
869 | * Makefile.in: Regenerate. | |
870 | ||
871 | * bfd-in.h: Include "symcat.h". | |
872 | (CONCAT4): Redefine as for old CAT4. | |
873 | * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros. | |
874 | Add warning regarding whitespace. | |
875 | * aout-cris.c: Likewise. | |
876 | * aout-ns32k.c: Likewise. | |
877 | * aout-sparcle.c: Likewise. | |
878 | * aout-tic30.c: Likewise. | |
879 | * aout0.c: Likewise. | |
880 | * armnetbsd.c: Likewise. | |
881 | * demo64.c: Likewise. | |
882 | * elf-bfd.h: Likewise. | |
883 | * gen-aout.c: Likewise. | |
884 | * host-aout.c: Likewise. | |
885 | * hp300bsd.c: Likewise. | |
886 | * hp300hpux.c: Likewise. | |
887 | * i386aout.c: Likewise. | |
888 | * i386bsd.c: Likewise. | |
889 | * i386dynix.c: Likewise. | |
890 | * i386freebsd.c: Likewise. | |
891 | * i386linux.c: Likewise. | |
892 | * i386lynx.c: Likewise. | |
893 | * i386mach3.c: Likewise. | |
894 | * i386netbsd.c: Likewise. | |
895 | * libaout.h: Likewise. | |
896 | * m68k4knetbsd.c: Likewise. | |
897 | * m68klinux.c: Likewise. | |
898 | * m68klynx.c: Likewise. | |
899 | * m68knetbsd.c: Likewise. | |
900 | * m88kmach3.c: Likewise. | |
901 | * mipsbsd.c: Likewise. | |
902 | * newsos3.c: Likewise. | |
903 | * ns32knetbsd.c: Likewise. | |
904 | * pc532-mach.c: Likewise. | |
905 | * pdp11.c: Likewise. | |
906 | * riscix.c: Likewise. | |
907 | * sparclinux.c: Likewise. | |
908 | * sparclynx.c: Likewise. | |
909 | * sparcnetbsd.c: Likewise. | |
910 | * sunos.c: Likewise. | |
911 | * targets.c: Likewise. | |
912 | * vaxnetbsd.c: Likewise. | |
913 | * vms-hdr.c: Likewise. | |
914 | ||
4eef72c7 AM |
915 | 2001-10-01 Alan Modra <[email protected]> |
916 | ||
917 | * bfd-in.h: Remove comments regarding generated files. | |
918 | * libbfd-in.h: Likewise. | |
919 | * libcoff-in.h: Likewise. | |
920 | * bfd-in2.h: Regenerate. | |
921 | * libbfd.h: Likewise. | |
922 | * libcoff.h: Likewise. | |
923 | ||
146be91a | 924 | 2001-09-30 kaz Kojima <[email protected]> |
bbd7ec4a | 925 | Hans-Peter Nilsson <[email protected]> |
146be91a HPN |
926 | |
927 | * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make | |
928 | partial_inplace, matching assembler output. Set src_mask to | |
929 | all ones. | |
930 | (sh_elf_relocate_section): Delete misplaced comment. | |
931 | For relocatable linking against section symbol, call | |
932 | _bfd_relocate_contents for partial_inplace relocs and adjust | |
933 | rel->r_addend for others. | |
934 | <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with | |
935 | bfd_get_32, not at rel->r_addend. | |
936 | ||
3c3e9281 AM |
937 | 2001-09-30 Alan Modra <[email protected]> |
938 | ||
939 | * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to | |
940 | the old dir refcount, so we indirectly set them to init_refcount. | |
941 | Short-circuit asserts when we've just verified they are true. | |
942 | ||
862517b6 AM |
943 | 2001-09-29 Alan Modra <[email protected]> |
944 | ||
945 | * section.c (struct sec): Remove kept_section. | |
946 | (STD_SECTION): Remove kept_section initialisation. | |
947 | (bfd_make_section_anyway): Here too. | |
948 | * ecoff.c (bfd_debug_section): Remove kept_section initialisation. | |
949 | * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section. | |
950 | * elflink.h (elf_link_input_bfd): Set discarded link-once section | |
951 | symbols to zero, and remove all code involved with kept_section | |
952 | and tracking section symbol values. | |
953 | * bfd-in2.h: Regenerate. | |
954 | * configure.in: Bump version number. | |
955 | * configure: Regenerate. | |
956 | ||
65f38f15 AM |
957 | 2001-09-29 Alan Modra <[email protected]> |
958 | ||
959 | * elf64-ppc.c (struct ppc_dyn_relocs): New. | |
960 | (IS_ABSOLUTE_RELOC): Define. | |
961 | (struct ppc_link_hash_entry): New. | |
962 | (struct ppc_link_hash_table): New. | |
963 | (ppc_hash_table): Define. | |
964 | (link_hash_newfunc): New function. | |
965 | (ppc64_elf_link_hash_table_create): New function. | |
966 | (create_got_section): New function. | |
967 | (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash | |
968 | pointers to our dynamic sections in hash table. | |
969 | (ppc64_elf_copy_indirect_symbol): New function. | |
970 | (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to | |
971 | dynamic sections. Localise vars. Modify code for refcounts | |
972 | starting from zero. Don't allocate here, or force symbols dynamic. | |
973 | Don't copy all relocs if shared, select ones we need. Add code | |
974 | to track possible copy relocs for non-shared link. | |
975 | (ppc64_elf_gc_mark_hook): Update comment. | |
976 | (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too. | |
977 | (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt | |
978 | code for reference counting garbage collection. Don't create .plt | |
979 | entries for functions that don't comply with ABI naming convention, | |
980 | and don't allocate .plt space here. Use short-cuts to dynamic | |
981 | sections. If possible, keep dynamic relocations instead of using | |
982 | copy relocs. Remove confused comments. | |
983 | (ppc_adjust_dynindx): Delete. | |
984 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
985 | (allocate_dynrelocs): New function. | |
986 | (readonly_dynrelocs): New function. | |
987 | (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got | |
988 | space here, and call allocate_dynrelocs to allocate space for | |
989 | global .plt, .got and reloc sections. Use short-cuts to dynamic | |
990 | sections. Call readonly_dynrelocs to determine whether we need | |
991 | DT_TEXTREL. Don't generate section symbols here, the generic | |
992 | ELF linker code does it for us. | |
993 | (ppc64_elf_final_link): Call regular ELF backend linker rather than | |
994 | gc variety, since we do our own .got handling. | |
995 | (ppc64_elf_relocate_section): Remove DEBUG code. Make use of | |
996 | dynamic section short-cuts. Localise vars, and delay setting. | |
997 | Handle unknown relocs in main switch statement. Replace ugly | |
998 | complicated tests for unresolvable relocs with a simple direct | |
999 | scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY | |
1000 | before allowing an undefined sym in a shared lib. Do R_*_DS tests | |
1001 | after main switch, when we've set addend. Do non-addend insn | |
1002 | tweaks before main swithc. Ignore input_section->vma when | |
1003 | calculating reloc offsets as it's always zero. Rewrite dynamic | |
1004 | reloc handling. Consolidate R_*_HA handling. Handle more relocs. | |
1005 | (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use | |
1006 | of dynamic section short-cuts. Reorganise .plt handling code. | |
1007 | Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL. | |
1008 | Move expressions out of swap_reloca_out function calls. | |
1009 | (ppc64_elf_reloc_type_class): New function. | |
1010 | (ppc64_elf_info_to_howto): Move common expression to local var. | |
1011 | (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use | |
1012 | of dynamic section short-cuts. Don't fiddle with section syms | |
1013 | here as the ELF linker does it for us. | |
1014 | (elf_backend_can_refcount): Define. | |
1015 | (bfd_elf64_bfd_link_hash_table_create): Define. | |
1016 | (elf_backend_copy_indirect_symbol): Define. | |
1017 | (elf_backend_reloc_type_class): Define. | |
1018 | (elf_backend_*, bfd_elf64_bfd_* defines): Sort. | |
1019 | ||
21d17a58 AM |
1020 | 2001-09-29 Alan Modra <[email protected]> |
1021 | ||
51b64d56 AM |
1022 | * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount. |
1023 | (struct elf_backend_data): Add can_refcount. | |
1024 | * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set | |
1025 | got.refcount and plt.refcount from init_refcount. | |
1026 | (_bfd_elf_link_hash_table_init): Set up init_refcount. | |
1027 | (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount | |
1028 | rather than got/plt.offset, and test for <= 0 rather than -1. | |
1029 | * elflink.h (size_dynamic_sections): Set init_refcount to -1. | |
1030 | * elfxx-target.h (elf_backend_can_refcount): Define. | |
1031 | (elfNN_bed): Init can_refcount. | |
1032 | * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts. | |
1033 | (_bfd_generic_link_hash_newfunc): Likewise. | |
1034 | * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts | |
1035 | starting from zero. | |
1036 | (elf_backend_can_refcount): Define. | |
1037 | * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts | |
1038 | starting from zero. | |
1039 | (elf32_hppa_copy_indirect_symbol): Make static to agree with | |
1040 | prototype. | |
1041 | (elf_backend_can_refcount): Define. | |
1042 | * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts | |
1043 | starting from zero. | |
1044 | (allocate_dynrelocs): Set plt/got.offset rather than *.refcount. | |
1045 | (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment. | |
1046 | (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars. | |
1047 | (elf_backend_can_refcount): Define. | |
1048 | (elf_i386_copy_indirect_symbol): Make static to agree with | |
1049 | prototype. Formatting fix. | |
1050 | * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts | |
1051 | starting from zero. | |
1052 | (elf_backend_can_refcount): Define. | |
1053 | * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts | |
1054 | starting from zero. | |
1055 | (elf_backend_can_refcount): Define. | |
1056 | * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts | |
1057 | starting from zero. | |
1058 | (elf_backend_can_refcount): Define. | |
1059 | * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts | |
1060 | starting from zero. | |
1061 | (elf_backend_can_refcount): Define. | |
1062 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts | |
1063 | starting from zero. | |
1064 | (elf_backend_can_refcount): Define. | |
1065 | ||
21d17a58 AM |
1066 | * som.c (som_write_symbol_strings): Cast current_offset in |
1067 | bfd_seek call to match param type. | |
1068 | ||
78ae4cb9 JB |
1069 | 2001-09-28 J. Brobecker <[email protected]> |
1070 | ||
1071 | * som.c (som_write_symbol_strings): Fix incorrect type of | |
1072 | current_offset to match the function definition. Fixes a build | |
1073 | failure on HPUX-11.00. | |
1074 | ||
65db3b0d RH |
1075 | 2001-09-28 Richard Henderson <[email protected]> |
1076 | ||
e0aae569 RH |
1077 | * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA, |
1078 | SEC_MERGE, SEC_STRINGS. | |
1079 | ||
65db3b0d RH |
1080 | * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN. |
1081 | * bfd-in2.h: Rebuild. | |
1082 | ||
ced53ee5 AM |
1083 | 2001-09-28 Alan Modra <[email protected]> |
1084 | ||
ffaef159 AM |
1085 | * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd |
1086 | reloc code using x86_64_reloc_map. | |
1087 | ||
3ac8354b AM |
1088 | * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we |
1089 | no longer allocate here. Localise some vars to blocks where they | |
1090 | are used. | |
1091 | (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay | |
1092 | setting of vars until needed. | |
1093 | (allocate_dynrelocs): Don't create a .plt entry without a reloc | |
1094 | when symbol visibilty makes a function local. | |
1095 | (elf32_hppa_finish_dynamic_symbol): Move expressions out of | |
1096 | swap_reloca_out function calls. | |
1097 | (elf32_hppa_relocate_section): Likewies. Comment typo fix. | |
1098 | (elf32_hppa_finish_dynamic_sections): Migrate common code out of | |
1099 | switch statement. | |
1100 | ||
0ac8d2ca AM |
1101 | * elf32-i386.c (elf_i386_check_relocs): Update comment since we |
1102 | no longer allocate here. Localise some vars to blocks where they | |
1103 | are used. Remove separate switch stmt for creating .got sec. | |
1104 | (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove | |
1105 | redundant casts and aborts. Delay setting of vars until needed. | |
1106 | (allocate_dynrelocs): Remove redundant casts and aborts. | |
1107 | (elf_i386_size_dynamic_sections): Move comment. | |
1108 | (elf_i386_finish_dynamic_symbol): Move expressions out of function | |
1109 | calls. | |
1110 | (elf_i386_relocate_section): Likewise. Comment typo fix. | |
1111 | (elf_i386_finish_dynamic_sections): Migrate common code out of | |
1112 | switch statement. | |
1113 | (elf_backend_* defines): Sort. | |
1114 | ||
ced53ee5 AM |
1115 | * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry |
1116 | without a reloc when symbol visibilty makes a function local. | |
1117 | ||
63b0f745 NC |
1118 | 2001-09-27 Nick Clifton <[email protected]> |
1119 | ||
06317a27 NC |
1120 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of |
1121 | conflicting float flags. | |
63b0f745 | 1122 | |
ebe50bae AM |
1123 | 2001-09-26 Alan Modra <[email protected]> |
1124 | ||
1125 | * elf32-i386 (elf_i386_copy_indirect_symbol): New function. | |
1126 | (elf_backend_copy_indirect_symbol): Define. | |
1127 | (struct elf_i386_link_hash_entry): Rename "root" to "elf". | |
1128 | (struct elf_i386_link_hash_table): Likewise. | |
1129 | (link_hash_newfunc): Get rid of unnecessary casts. | |
1130 | (elf_i386_link_hash_table_create): Likewise. | |
1131 | (elf_i386_check_relocs): Initialise local_got_refcounts to 0. | |
1132 | Don't test input section SEC_READONLY here to try to avoid copy | |
1133 | relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF. | |
1134 | (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY | |
1135 | here to properly test whether we need copy relocs. Do so for weak | |
1136 | syms too. | |
1137 | ||
1138 | * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function. | |
1139 | (elf_backend_copy_indirect_symbol): Define. | |
1140 | (struct elf32_hppa_link_hash_table): Rename "root" to "elf". | |
1141 | (stub_hash_newfunc): Get rid of unnecessary casts. | |
1142 | (hppa_link_hash_newfunc): Likewise. | |
1143 | (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0. | |
1144 | Don't test input section SEC_READONLY here to try to avoid copy | |
1145 | relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF. | |
1146 | (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY | |
1147 | here to properly test whether we need copy relocs. Do so for weak | |
1148 | syms too. | |
1149 | ||
af6166c0 AM |
1150 | 2001-09-26 Alan Modra <[email protected]> |
1151 | ||
1152 | * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS, | |
1153 | VA_OPEN, VA_FIXEDARG, VA_CLOSE. | |
1154 | (bfd_archive_filename): Cast bfd_malloc arg to the correct size. | |
1155 | ||
e62de969 JJ |
1156 | 2001-09-25 Jakub Jelinek <[email protected]> |
1157 | ||
1158 | * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot | |
1159 | computation. | |
1160 | ||
09c1cc88 L |
1161 | 2001-09-25 H.J. Lu <[email protected]> |
1162 | ||
1163 | * bfd-in2.h: Regenerated. | |
1164 | ||
38701953 AM |
1165 | 2001-09-25 Alan Modra <[email protected]> |
1166 | ||
1167 | * elf32-i386.c: Add comment re linker function names and ordering. | |
1168 | (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc. | |
1169 | (elf_i386_grok_prstatus): Move before linker functions. | |
1170 | (elf_i386_grok_psinfo): Likewise. | |
1171 | (elf_i386_fake_sections): Move so that functions are ordered. | |
1172 | (elf_i386_reloc_type_class): Likewise. Comment function purpose. | |
1173 | ||
98ceb8ce AM |
1174 | 2001-09-25 Alan Modra <[email protected]> |
1175 | ||
0ac8d2ca | 1176 | * elf32-hppa.c: Rename occurrences of "hplink" to "htab" |
83c81bfe AM |
1177 | throughout file. |
1178 | ||
98ceb8ce AM |
1179 | * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all |
1180 | code handling this option. | |
1181 | (LONG_BRANCH_VIA_PLT): Likewise. | |
1182 | (RELATIVE_DYNRELOCS): Define as zero. | |
1183 | (struct elf32_hppa_dyn_reloc_entry): Add "sec", and | |
1184 | "pc_count" fields. Remove "section" field. | |
1185 | (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs. | |
1186 | (elf32_hppa_check_relocs): Don't allocate space for dynamic | |
1187 | relocs here. Instead, record all needed dynamic relocs via | |
1188 | dyn_relocs and local_dynrel. Cache pointer to "sreloc" section | |
1189 | in elf_section_data. | |
1190 | (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
1191 | (allocate_plt_and_got_and_discard_relocs): Rename to | |
1192 | allocate_dynrelocs. Allocate rather than discarding dyn relocs. | |
1193 | (readonly_dynrelocs): New function. | |
1194 | (elf32_hppa_size_dynamic_sections): Mark output_bfd unused. | |
1195 | Call readonly_dynrelocs to determine need for DT_TEXTREL. | |
1196 | Rename "i" to "ibfd". Allocate space for local dyn relocs. | |
1197 | (elf32_hppa_relocate_section): Make use of cached sreloc. | |
1198 | (elf32_hppa_reloc_type_class): New function. | |
1199 | (elf_backend_reloc_type_class): Define. | |
1200 | ||
0c715baa AM |
1201 | 2001-09-25 Alan Modra <[email protected]> |
1202 | ||
1203 | * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel" | |
1204 | and "sreloc" fields. | |
1205 | * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and | |
1206 | "pc_count" fields. Remove "section" field. | |
1207 | (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't | |
1208 | allocate space for dynamic relocs here. Instead, record all | |
1209 | needed dynamic relocs via dyn_relocs and local_dynrel. Cache | |
1210 | pointer to "sreloc" section in elf_section_data. | |
1211 | (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
1212 | (allocate_plt_and_got_and_discard_relocs): Rename to | |
1213 | allocate_dynrelocs. Allocate rather than discarding dyn relocs. | |
1214 | (readonly_dynrelocs): New function. | |
1215 | (elf_i386_size_dynamic_sections): Call readonly_dynrelocs. | |
1216 | Rename "i" to "ibfd". Allocate space for local dyn relocs. | |
1217 | (elf_i386_relocate_section): Make use of cached sreloc. | |
1218 | ||
f51e552e AM |
1219 | 2001-09-24 Alan Modra <[email protected]> |
1220 | ||
1221 | * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire | |
1222 | reloc rather than just the type. | |
1223 | (_bfd_elf_reloc_type_class): Likewise. | |
1224 | * elf.c (_bfd_elf_reloc_type_class): Likewise. | |
1225 | * elf32-arm.h (elf32_arm_reloc_type_class): Likewise. | |
1226 | * elf32-cris.c (elf_cris_reloc_type_class): Likewise. | |
1227 | * elf32-i386.c (elf_i386_reloc_type_class): Likewise. | |
1228 | * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise. | |
1229 | * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise. | |
1230 | * elf32-s390.c (elf_s390_reloc_type_class): Likewise. | |
1231 | * elf32-sh.c (sh_elf_reloc_type_class): Likewise. | |
1232 | * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise. | |
1233 | * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise. | |
1234 | * elf64-s390.c (elf_s390_reloc_type_class): Likewise. | |
1235 | * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise. | |
1236 | * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise. | |
1237 | * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise. | |
1238 | * elflink.h: Formatting fixes. | |
1239 | (elf_link_sort_relocs): Make "count" and "size" bfd_size_type. | |
1240 | Call bfd_zmalloc rather than calloc. Remove unnecessary cast of | |
1241 | o->contents to PTR. Update call to elf_backend_reloc_type_class. | |
1242 | ||
0c35f01a AM |
1243 | 2001-09-22 John Reiser <[email protected]> |
1244 | ||
1245 | * elfcode.h (elf_object_p): Allow for no section header at all in | |
1246 | non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff. | |
1247 | ||
1e738b87 NC |
1248 | 2001-09-21 Nick Clifton <[email protected]> |
1249 | ||
1250 | * elfxx-ia64.c: Fix compile time warning messages. | |
09c1cc88 L |
1251 | * coff-mcore.c: Fix compile time warning messages. |
1252 | * coff-ppc.c: Fix compile time warning messages. | |
1253 | * coffcode.h: Fix compile time warning messages. | |
1254 | * elf32-mips.c: Fix compile time warning messages. | |
1255 | * elf64-alpha.c: Fix compile time warning messages. | |
1256 | * libbfd.c: Fix compile time warning messages. | |
1257 | * bfd-in2.h: Regenerate. | |
1e738b87 | 1258 | |
923f08ff AM |
1259 | 2001-09-21 Alan Modra <[email protected]> |
1260 | ||
1261 | * Makefile.am: Run "make dep-am". | |
1262 | * Makefile.in: Regenerate. | |
1263 | ||
1264 | * aoutx.h: Formatting fixes. | |
1265 | * merge.c (_bfd_merged_section_offset): Break line at 80 chars. | |
1266 | ||
1267 | * linker.c: Replace bfd_get_filename with bfd_archive_filename | |
1268 | in error message. | |
1269 | ||
8f615d07 AM |
1270 | 2001-09-21 Alan Modra <[email protected]> |
1271 | ||
1272 | * bfd.c (bfd_archive_filename): New function. | |
1273 | * bfd-in2.h: Regenerate. | |
1274 | * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename | |
1275 | in error messages where the bfd is an input bfd. | |
1276 | * aout-cris.c: Likewise. | |
1277 | * coff-arm.c: Likewise. | |
1278 | * coff-mcore.c: Likewise. | |
1279 | * coff-ppc.c: Likewise. | |
1280 | * coff-rs6000.c: Likewise. | |
1281 | * coff-sh.c: Likewise. | |
1282 | * coff-tic54x.c: Likewise. | |
1283 | * coff-tic80.c: Likewise. | |
1284 | * coff64-rs6000.c: Likewise. | |
1285 | * coffcode.h: Likewise. | |
1286 | * coffgen.c: Likewise. | |
1287 | * cofflink.c: Likewise. | |
1288 | * ecofflink.c: Likewise. | |
1289 | * elf-hppa.h: Likewise. | |
1290 | * elf.c: Likewise. | |
1291 | * elf32-arm.h: Likewise. | |
1292 | * elf32-cris.c: Likewise. | |
1293 | * elf32-gen.c: Likewise. | |
1294 | * elf32-hppa.c: Likewise. | |
1295 | * elf32-i370.c: Likewise. | |
1296 | * elf32-i386.c: Likewise. | |
1297 | * elf32-m32r.c: Likewise. | |
1298 | * elf32-mcore.c: Likewise. | |
1299 | * elf32-mips.c: Likewise. | |
1300 | * elf32-ppc.c: Likewise. | |
1301 | * elf32-s390.c: Likewise. | |
1302 | * elf32-sh.c: Likewise. | |
1303 | * elf32-sparc.c: Likewise. | |
1304 | * elf32-v850.c: Likewise. | |
1305 | * elf64-alpha.c: Likewise. | |
1306 | * elf64-gen.c: Likewise. | |
1307 | * elf64-ppc.c: Likewise. | |
1308 | * elf64-s390.c: Likewise. | |
1309 | * elf64-sparc.c: Likewise. | |
1310 | * elf64-x86-64.c: Likewise. | |
1311 | * elflink.h: Likewise. | |
1312 | * elfxx-ia64.c: Likewise. | |
1313 | * ieee.c: Likewise. | |
1314 | * ihex.c: Likewise. | |
1315 | * libbfd.c: Likewise. | |
1316 | * pdp11.c: Likewise. | |
1317 | * pe-mips.c: Likewise. | |
1318 | * peicode.h: Likewise. | |
1319 | * srec.c: Likewise. | |
1320 | * xcofflink.c: Likewise. | |
1321 | ||
1322 | * elf32-arm.h: Make _bfd_error_handler calls K&R compatible. | |
1323 | ||
1324 | * elflink.c (_bfd_elf_create_linker_section): Better grammar for | |
1325 | error message. | |
1326 | ||
1327 | * coff-mcore.c (coff_mcore_relocate_section): Internalionalise | |
1328 | error message. | |
1329 | ||
1330 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types. | |
1331 | Consolidate error messages, and split long messages to two lines. | |
1332 | ||
671bae9c | 1333 | 2001-09-20 John Reiser <[email protected]> |
83c81bfe | 1334 | |
f51e552e AM |
1335 | * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic |
1336 | and info->allow_shlib_undefined. | |
1337 | * elf32-cris.c: Likewise. | |
1338 | * elf32-hppa.c: Likewise. | |
1339 | * elf32-m68k.c: Likewise. | |
1340 | * elf32-mips.c: Likewise. | |
1341 | * elf32-ppc.c: Likewise. | |
1342 | * elf32-s390.c: Likewise. | |
1343 | * elf32-sh.c: Likewise. | |
1344 | * elf32-sparc.c: Likewise. | |
1345 | * elf64-alpha.c: Likewise. | |
1346 | * elf64-hppa.c: Likewise. | |
1347 | * elf64-ppc.c: Likewise. | |
1348 | * elf64-s390.c: Likewise. | |
1349 | * elf64-sparc.c: Likewise. | |
1350 | * elf64-x86-64.c: Likewise. | |
1351 | * elfxx-ia64.c: Likewise. | |
671bae9c | 1352 | |
3882b010 L |
1353 | 2001-09-18 Bruno Haible <[email protected]> |
1354 | ||
1355 | * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>. | |
1356 | (aout_link_write_symbols): Use ISDIGIT instead of isdigit. | |
1357 | * archive.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1358 | (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit. | |
1359 | * archures.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1360 | (bfd_default_scan): Use ISDIGIT instead of isdigit. | |
1361 | * bfd.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1362 | (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of | |
1363 | isxdigit/isdigit/islower. | |
1364 | * binary.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1365 | (mangle_name): Use ISALNUM instead of isalnum. | |
1366 | * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1367 | (scan): Use ISDIGIT instead of isdigit. | |
1368 | * hosts/alphavms.h: Don't include <ctype.h>. | |
1369 | * ieee.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1370 | (ieee_object_p): Use TOUPPER instead of toupper. | |
1371 | * ihex.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1372 | (ihex_bad_byte): Use ISPRINT instead of isprint. | |
1373 | * merge.c: Don't include <ctype.h>. | |
1374 | * oasys.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1375 | (oasys_write_sections): Use ISDIGIT instead of isdigit. | |
1376 | * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1377 | (aout_link_write_symbols): Use ISDIGIT instead of isdigit. | |
1378 | * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1379 | (mangle_name): Use ISALNUM instead of isalnum. | |
1380 | * som.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1381 | (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of | |
1382 | isupper/islower/isdigit. | |
1383 | (som_decode_symclass): Use TOUPPER instead of toupper. | |
1384 | * srec.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1385 | (srec_bad_byte): Use ISPRINT instead of isprint. | |
1386 | (srec_scan): Use ISSPACE instead of isspace. | |
1387 | * stabs.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1388 | (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit. | |
1389 | * syms.c: Include "safe-ctype.h" | |
1390 | (islower, toupper): Remove macro definitions. | |
1391 | (bfd_decode_symclass): Use TOUPPER instead of toupper. | |
1392 | * vms-gsd.c: Don't include <ctype.h>. | |
1393 | * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1394 | (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of | |
1395 | islower/toupper. | |
1396 | * vms-tir.c: Don't include <ctype.h>. | |
1397 | ||
dc810e39 AM |
1398 | 2001-09-18 Alan Modra <[email protected]> |
1399 | ||
1400 | * libbfd.c (bfd_bread): New function replacing bfd_read without | |
1401 | redundant params. Allow reads up to (size_t) -2 in length. | |
1402 | (bfd_bwrite): Similarly for bfd_write. | |
1403 | (real_read): Return a size_t. | |
1404 | (bfd_read): Call bfd_bread. | |
1405 | (bfd_write): Call bfd_bwrite. | |
1406 | (warn_deprecated): New function to annoy everybody. | |
1407 | (bfd_get_file_window): Don't call bfd_set_error unnecessarily. | |
1408 | * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare. | |
1409 | (bfd_read, bfd_write): Define as macro. | |
1410 | * aix386-core.c: Replace calls to bfd_read with bfd_bread, and | |
1411 | likewise for bfd_write. Ensure function args are correct size by | |
1412 | using casts or local vars. In some cases, remove unnecessary | |
1413 | casts. Formatting fixes, in some cases removing a large expression | |
1414 | from function args by using a local var. Replace CONST with const. | |
1415 | Modify variable types to avoid warings. Use casts to avoid | |
1416 | warnings when using negative numbers in unsigned expressions. | |
1417 | * aout-adobe.c: Likewise. | |
1418 | * aout-arm.c: Likewise. | |
1419 | * aout-cris.c: Likewise. | |
1420 | * aout-encap.c: Likewise. | |
1421 | * aout-ns32k.c: Likewise. | |
1422 | * aout-target.h: Likewise. | |
1423 | * aout-tic30.c: Likewise. | |
1424 | * aoutf1.h: Likewise. | |
1425 | * aoutx.h: Likewise. | |
1426 | * archive.c: Likewise. | |
1427 | * archures.c: Likewise. | |
1428 | * bfd-in.h: Likewise. | |
1429 | * bfd.c: Likewise. | |
1430 | * binary.c: Likewise. | |
1431 | * bout.c: Likewise. | |
1432 | * cache.c: Likewise. | |
1433 | * cisco-core.c: Likewise. | |
1434 | * coff-a29k.c: Likewise. | |
1435 | * coff-alpha.c: Likewise. | |
1436 | * coff-arm.c: Likewise. | |
1437 | * coff-h8300.c: Likewise. | |
1438 | * coff-h8500.c: Likewise. | |
1439 | * coff-i386.c: Likewise. | |
1440 | * coff-i860.c: Likewise. | |
1441 | * coff-i960.c: Likewise. | |
1442 | * coff-ia64.c: Likewise. | |
1443 | * coff-m68k.c: Likewise. | |
1444 | * coff-m88k.c: Likewise. | |
1445 | * coff-mcore.c: Likewise. | |
1446 | * coff-mips.c: Likewise. | |
1447 | * coff-ppc.c: Likewise. | |
1448 | * coff-rs6000.c: Likewise. | |
1449 | * coff-sh.c: Likewise. | |
1450 | * coff-sparc.c: Likewise. | |
1451 | * coff-stgo32.c: Likewise. | |
1452 | * coff-tic30.c: Likewise. | |
1453 | * coff-tic54x.c: Likewise. | |
1454 | * coff-tic80.c: Likewise. | |
1455 | * coff-w65.c: Likewise. | |
1456 | * coff-z8k.c: Likewise. | |
1457 | * coff64-rs6000.c: Likewise. | |
1458 | * coffcode.h: Likewise. | |
1459 | * coffgen.c: Likewise. | |
1460 | * cofflink.c: Likewise. | |
1461 | * coffswap.h: Likewise. | |
1462 | * corefile.c: Likewise. | |
1463 | * cpu-arc.c: Likewise. | |
1464 | * cpu-h8300.c: Likewise. | |
1465 | * cpu-h8500.c: Likewise. | |
1466 | * cpu-i960.c: Likewise. | |
1467 | * cpu-ia64-opc.c: Likewise. | |
1468 | * cpu-ns32k.c: Likewise. | |
1469 | * cpu-pdp11.c: Likewise. | |
1470 | * cpu-pj.c: Likewise. | |
1471 | * cpu-sh.c: Likewise. | |
1472 | * cpu-w65.c: Likewise. | |
1473 | * cpu-z8k.c: Likewise. | |
1474 | * dwarf1.c: Likewise. | |
1475 | * dwarf2.c: Likewise. | |
1476 | * ecoff.c: Likewise. | |
1477 | * ecofflink.c: Likewise. | |
1478 | * ecoffswap.h: Likewise. | |
1479 | * elf-bfd.h: Likewise. | |
1480 | * elf-hppa.h: Likewise. | |
1481 | * elf-m10200.c: Likewise. | |
1482 | * elf-m10300.c: Likewise. | |
1483 | * elf.c: Likewise. | |
1484 | * elf32-arc.c: Likewise. | |
1485 | * elf32-arm.h: Likewise. | |
1486 | * elf32-avr.c: Likewise. | |
1487 | * elf32-cris.c: Likewise. | |
1488 | * elf32-fr30.c: Likewise. | |
1489 | * elf32-gen.c: Likewise. | |
1490 | * elf32-h8300.c: Likewise. | |
1491 | * elf32-hppa.c: Likewise. | |
1492 | * elf32-i370.c: Likewise. | |
1493 | * elf32-i386.c: Likewise. | |
1494 | * elf32-i860.c: Likewise. | |
1495 | * elf32-m32r.c: Likewise. | |
1496 | * elf32-m68k.c: Likewise. | |
1497 | * elf32-mcore.c: Likewise. | |
1498 | * elf32-mips.c: Likewise. | |
1499 | * elf32-openrisc.c: Likewise. | |
1500 | * elf32-pj.c: Likewise. | |
1501 | * elf32-ppc.c: Likewise. | |
1502 | * elf32-s390.c: Likewise. | |
1503 | * elf32-sh-lin.c: Likewise. | |
1504 | * elf32-sh.c: Likewise. | |
1505 | * elf32-sparc.c: Likewise. | |
1506 | * elf32-v850.c: Likewise. | |
1507 | * elf64-alpha.c: Likewise. | |
1508 | * elf64-hppa.c: Likewise. | |
1509 | * elf64-mips.c: Likewise. | |
1510 | * elf64-ppc.c: Likewise. | |
1511 | * elf64-s390.c: Likewise. | |
1512 | * elf64-sparc.c: Likewise. | |
1513 | * elf64-x86-64.c: Likewise. | |
1514 | * elfarm-nabi.c: Likewise. | |
1515 | * elfcode.h: Likewise. | |
1516 | * elfcore.h: Likewise. | |
1517 | * elflink.c: Likewise. | |
1518 | * elflink.h: Likewise. | |
1519 | * elfxx-ia64.c: Likewise. | |
1520 | * elfxx-target.h: Likewise. | |
1521 | * format.c: Likewise. | |
1522 | * hash.c: Likewise. | |
1523 | * hp300hpux.c: Likewise. | |
1524 | * hppabsd-core.c: Likewise. | |
1525 | * hpux-core.c: Likewise. | |
1526 | * i386aout.c: Likewise. | |
1527 | * i386dynix.c: Likewise. | |
1528 | * i386linux.c: Likewise. | |
1529 | * i386lynx.c: Likewise. | |
1530 | * i386mach3.c: Likewise. | |
1531 | * i386msdos.c: Likewise. | |
1532 | * i386os9k.c: Likewise. | |
1533 | * ieee.c: Likewise. | |
1534 | * ihex.c: Likewise. | |
1535 | * irix-core.c: Likewise. | |
1536 | * libaout.h: Likewise. | |
1537 | * libbfd-in.h: Likewise. | |
1538 | * libbfd.c: Likewise. | |
1539 | * libcoff-in.h: Likewise. | |
1540 | * libecoff.h: Likewise. | |
1541 | * libieee.h: Likewise. | |
1542 | * libnlm.h: Likewise. | |
1543 | * libpei.h: Likewise. | |
1544 | * libxcoff.h: Likewise. | |
1545 | * linker.c: Likewise. | |
1546 | * lynx-core.c: Likewise. | |
1547 | * m68klinux.c: Likewise. | |
1548 | * merge.c: Likewise. | |
1549 | * mipsbsd.c: Likewise. | |
1550 | * netbsd-core.c: Likewise. | |
1551 | * nlm.c: Likewise. | |
1552 | * nlm32-alpha.c: Likewise. | |
1553 | * nlm32-i386.c: Likewise. | |
1554 | * nlm32-ppc.c: Likewise. | |
1555 | * nlm32-sparc.c: Likewise. | |
1556 | * nlmcode.h: Likewise. | |
1557 | * nlmswap.h: Likewise. | |
1558 | * ns32k.h: Likewise. | |
1559 | * oasys.c: Likewise. | |
1560 | * opncls.c: Likewise. | |
1561 | * osf-core.c: Likewise. | |
1562 | * pc532-mach.c: Likewise. | |
1563 | * pdp11.c: Likewise. | |
1564 | * pe-mips.c: Likewise. | |
1565 | * peXXigen.c: Likewise. | |
1566 | * peicode.h: Likewise. | |
1567 | * ppcboot.c: Likewise. | |
1568 | * ptrace-core.c: Likewise. | |
1569 | * reloc.c: Likewise. | |
1570 | * reloc16.c: Likewise. | |
1571 | * riscix.c: Likewise. | |
1572 | * rs6000-core.c: Likewise. | |
1573 | * sco5-core.c: Likewise. | |
1574 | * section.c: Likewise. | |
1575 | * som.c: Likewise. | |
1576 | * sparclinux.c: Likewise. | |
1577 | * sparclynx.c: Likewise. | |
1578 | * srec.c: Likewise. | |
1579 | * stabs.c: Likewise. | |
1580 | * sunos.c: Likewise. | |
1581 | * syms.c: Likewise. | |
1582 | * targets.c: Likewise. | |
1583 | * tekhex.c: Likewise. | |
1584 | * trad-core.c: Likewise. | |
1585 | * versados.c: Likewise. | |
1586 | * vms-gsd.c: Likewise. | |
1587 | * vms-hdr.c: Likewise. | |
1588 | * vms-misc.c: Likewise. | |
1589 | * vms-tir.c: Likewise. | |
1590 | * vms.c: Likewise. | |
1591 | * vms.h: Likewise. | |
1592 | * xcofflink.c: Likewise. | |
1593 | * bfd-in2.h: Regenerate. | |
1594 | * libbfd.h: Regenerate. | |
1595 | * libcoff.h: Regenerate. | |
1596 | ||
1597 | * bfd.c (struct _bfd): Make "where" and "origin" unsigned. | |
1598 | * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma. | |
1599 | (ufile_ptr): Define. | |
1600 | (bfd_tell): Return a ufile_ptr. | |
1601 | * libbfd.c (bfd_tell): Likewise. | |
1602 | (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error | |
1603 | unnecessarily. | |
1604 | * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0. | |
1605 | * aoutf1.h: Likewise. | |
1606 | * som.c: Likewise. | |
1607 | * cache.c (bfd_cache_lookup_worker): Guard against abfd->where | |
1608 | larger than unsigned long can represent. | |
1609 | ||
1610 | * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if | |
1611 | size overflows size_t. | |
1612 | (bfd_realloc): Likewise. | |
1613 | (bfd_zmalloc): Likewise. | |
1614 | * opncls.c (bfd_alloc): Likewise. | |
1615 | (bfd_zalloc): Likewise. | |
1616 | * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update. | |
1617 | (bfd_alloc, bfd_zalloc): Update. | |
1618 | ||
1619 | * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than | |
1620 | 8 bits. | |
1621 | (bfd_get_signed_8): Likewise. | |
1622 | (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8, | |
1623 | H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8, | |
1624 | H_GET_64, H_GET_32, H_GET_16, H_GET_8, | |
1625 | H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use. | |
1626 | * libaout.h: Likewise define and use here. | |
1627 | * aout-adobe.c: Use H_GET_* and H_PUT_* macros. | |
1628 | * aout-arm.c: Likewise. | |
1629 | * aout-encap.c: Likewise. | |
1630 | * aout-ns32k.c: Likewise. | |
1631 | * aout-tic30.c: Likewise. | |
1632 | * aoutf1.h: Likewise. | |
1633 | * aoutx.h: Likewise. | |
1634 | * bout.c: Likewise. | |
1635 | * coff-alpha.c: Likewise. | |
1636 | * coff-h8300.c: Likewise. | |
1637 | * coff-h8500.c: Likewise. | |
1638 | * coff-i960.c: Likewise. | |
1639 | * coff-ia64.c: Likewise. | |
1640 | * coff-m88k.c: Likewise. | |
1641 | * coff-mips.c: Likewise. | |
1642 | * coff-ppc.c: Likewise. | |
1643 | * coff-rs6000.c: Likewise. | |
1644 | * coff-sh.c: Likewise. | |
1645 | * coff-sparc.c: Likewise. | |
1646 | * coff-stgo32.c: Likewise. | |
1647 | * coff-tic30.c: Likewise. | |
1648 | * coff-tic80.c: Likewise. | |
1649 | * coff-w65.c: Likewise. | |
1650 | * coff-z8k.c: Likewise. | |
1651 | * coff64-rs6000.c: Likewise. | |
1652 | * coffgen.c: Likewise. | |
1653 | * cofflink.c: Likewise. | |
1654 | * coffswap.h: Likewise. | |
1655 | * ecoff.c: Likewise. | |
1656 | * ecoffswap.h: Likewise. | |
1657 | * elf.c: Likewise. | |
1658 | * elf32-mips.c: Likewise. | |
1659 | * elf64-mips.c: Likewise. | |
1660 | * hp300hpux.c: Likewise. | |
1661 | * i386dynix.c: Likewise. | |
1662 | * i386lynx.c: Likewise. | |
1663 | * i386msdos.c: Likewise. | |
1664 | * i386os9k.c: Likewise. | |
1665 | * libpei.h: Likewise. | |
1666 | * nlm32-alpha.c: Likewise. | |
1667 | * nlm32-i386.c: Likewise. | |
1668 | * nlm32-ppc.c: Likewise. | |
1669 | * nlmcode.h: Likewise. | |
1670 | * nlmswap.h: Likewise. | |
1671 | * oasys.c: Likewise. | |
1672 | * pdp11.c: Likewise. | |
1673 | * pe-mips.c: Likewise. | |
1674 | * peXXigen.c: Likewise. | |
1675 | * peicode.h: Likewise. | |
1676 | * riscix.c: Likewise. | |
1677 | * sunos.c: Likewise. | |
1678 | * xcofflink.c: Likewise. | |
1679 | * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word): | |
1680 | Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD. | |
1681 | * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use | |
1682 | equivalent H_PUT_* macro instead. | |
1683 | (GETWORD, GETHALF, GETBYTE): Similarly. | |
1684 | * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise. | |
1685 | (GETWORD, GETHALF, GETBYTE): Likewise. | |
1686 | * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise. | |
1687 | ||
1688 | * bfd-in.h (struct orl): Change "pos" to a union. | |
1689 | * archive.c (_bfd_compute_and_write_armap): Use it instead of casts. | |
1690 | (bsd_write_armap): Here too. | |
1691 | (coff_write_armap): And here. | |
1692 | * coff-rs6000.c (xcoff_write_armap_old): And here. | |
1693 | (xcoff_write_one_armap_big): And here. | |
1694 | (xcoff_write_armap_big): And here. | |
1695 | * ecoff.c (_bfd_ecoff_write_armap): And here. | |
1696 | * elf64-mips.c (mips_elf64_write_armap): And here. | |
1697 | ||
1698 | * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum. | |
1699 | * elf-m10300.c (elf_mn10300_mach): Return an unsigned long. | |
1700 | * elf32-h8300.c (elf32_h8_mach): Likewise. | |
1701 | * elf32-mips.c (elf_mips_mach): Likewise. | |
1702 | * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise. | |
1703 | ||
1704 | * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release | |
1705 | calls. | |
1706 | (aix386_core_vec): Typo fix. | |
1707 | ||
1708 | * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR | |
1709 | etc. to avoid redefined macro warning. | |
1710 | (MY(put_reloc)): Use bfd_vma for "value" rather than long. | |
1711 | (MY(fix_pcrel_26)): Likewise. | |
1712 | * aout-ns32k.c (MY(put_reloc)): Likewise. | |
1713 | * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend. | |
1714 | * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise. | |
1715 | * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset. | |
1716 | ||
1717 | * aout-encap.c: Include "file", not <file> for binutils headers. | |
1718 | (encap_object_p): Half baked attempt to fix compile errors in | |
1719 | code dealing with "magic". | |
1720 | ||
1721 | * aout-ns32k.c: Include "file", not <file> for binutils headers. | |
1722 | (_bfd_ns32k_relocate_contents): get_data and put_data manipulate | |
1723 | bfd_vma's rather than longs. | |
1724 | * cpu-ns32k.c (ns32k_sign_extend): Delete. | |
1725 | (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset. | |
1726 | (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values, | |
1727 | remove case 3. | |
1728 | (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset. | |
1729 | Use unsigned comparisons. | |
1730 | (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values. | |
1731 | (do_ns32k_reloc): get_data and put_data operate on bfd_vma's. | |
1732 | (_bfd_do_ns32k_reloc_contents): Likewise. | |
1733 | * ns32k.h (_bfd_ns32k_get_displacement): Update prototype. | |
1734 | (_bfd_ns32k_get_immediate): Likewise. | |
1735 | (_bfd_ns32k_put_displacement): Likewise. | |
1736 | (_bfd_ns32k_put_immediate): Likewise. | |
1737 | (bfd_reloc_status_type): Likewise. | |
1738 | ||
1739 | * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon' | |
1740 | to avoid shadowing. | |
1741 | * pdp11.c (NAME(aout,find_nearest_line)): Likewise. | |
1742 | * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value". | |
1743 | * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to | |
1744 | avoid shadowing. | |
1745 | (record_toc): Use a bfd_signed_vma for our_toc_offset. | |
1746 | * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing. | |
1747 | * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid | |
1748 | shadow warning. | |
1749 | (_bfd_elfcore_strndup): Likewise for "dup". | |
1750 | * elf32-cris.c (cris_elf_relocate_section): "symname" instead of | |
1751 | "name" to avoid shadowing. | |
1752 | * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate | |
1753 | definition of "off". | |
1754 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
1755 | * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate | |
1756 | definition of "s". | |
1757 | (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate | |
1758 | "secpp". | |
1759 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx" | |
1760 | to avoid shadowing. | |
1761 | * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink" | |
1762 | to avoid shadowing. | |
1763 | (elf_link_input_bfd): Likewise. | |
1764 | (elf_bfd_final_link): Remove duplicate innermost "off" var. | |
1765 | * oasys.c (oasys_write_data): Rename innermost "p" to "sym". | |
1766 | * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to | |
1767 | "input_section". | |
1768 | * som.c (som_prep_for_fixups): Rename inner "i" to "j". | |
1769 | * sunos.c (sunos_add_dynamic_symbols): Localise "s" var. | |
1770 | (sunos_write_dynamic_symbol): Remove unused vars. | |
1771 | * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate | |
1772 | innermost "directory_name" and "file_name" vars. | |
1773 | * tekhex.c (first_phase): Rename local var "type" to "stype". | |
1774 | (tekhex_write_object_contents): Rename innermost "s" to "sym". | |
1775 | * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize", | |
1776 | doing comparison at caller. | |
1777 | (vms_esecflag_by_name): Likewise. | |
1778 | * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1". | |
1779 | * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o". | |
1780 | (xcoff_write_global_symbol): Rename "p" param to "inf". | |
1781 | ||
1782 | * cisco-core.c: Add missing prototypes. | |
1783 | (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED. | |
1784 | (cisco_core_file_failing_signal): Likewise. | |
1785 | (cisco_core_file_matches_executable_p): Likewise. | |
1786 | * hpux-core.c (hpux_core_core_file_failing_signal): Likewise. | |
1787 | * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise. | |
1788 | * osf-core.c (osf_core_core_file_matches_executable_p): Likewise. | |
1789 | * sco5-core.c (sco5_core_file_matches_executable_p): Likewise. | |
1790 | ||
1791 | * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for | |
1792 | thumb_glue_size and arm_glue_size. | |
1793 | * elf32-arm.h (elf32_arm_link_hash_table): Likewise here. | |
1794 | ||
1795 | * coff64-rs6000.c: Group prototypes together. | |
1796 | ||
1797 | * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED. | |
1798 | (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type. | |
1799 | ||
1800 | * cpu-arc.c: Add missing prototypes. | |
1801 | * cpu-h8500.c: Likewise. | |
1802 | * cpu-i960.c: Likewise. | |
1803 | * cpu-pj.c: Likewise. | |
1804 | * cpu-sh.c: Likewise. | |
1805 | * cpu-w65.c: Likewise. | |
1806 | * cpu-z8k.c: Likewise. | |
1807 | * elf32-fr30.c: Likewise. | |
1808 | * elf32-h8300.c: Likewise. | |
1809 | * elf32-i370.c: Likewise. | |
1810 | * hpux-core.c: Likewise. | |
1811 | * versados.c: Likewise. | |
1812 | ||
1813 | * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare. | |
1814 | * cpu-h8500.c: Likewise. | |
1815 | * cpu-i960.c: Likewise. | |
1816 | * cpu-z8k.c: Likewise. | |
1817 | ||
1818 | * cpu-ia64-opc.c: Correct comment. | |
1819 | ||
1820 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var. | |
1821 | ||
1822 | * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs | |
1823 | to unsigned. | |
1824 | (bfd_elf32_write_out_phdrs): Likewise. | |
1825 | (bfd_elf64_write_out_phdrs): Likewise. | |
1826 | (elf_linker_section_pointers): Change addend to bfd_vma. | |
1827 | (_bfd_elf_find_pointer_linker_section): Likewise. | |
1828 | (_bfd_elfcore_make_pseudosection): Change size param to size_t and | |
1829 | filepos to unsigned file_ptr. | |
1830 | (_bfd_elfcore_strndup): Change max param to size_t. | |
1831 | * elf.c (_bfd_elfcore_make_pseudosection): As above. | |
1832 | (_bfd_elfcore_strndup): Likewise. | |
1833 | (_bfd_elf_find_pointer_linker_section): Likewise. | |
1834 | ||
1835 | * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change | |
1836 | insn and sym_value to ints. | |
1837 | ||
1838 | * elf.c (elf_read): Make "offset" param a file_ptr, "size" a | |
1839 | bfd_size_type. | |
1840 | (elfcore_read_notes): Likewise. | |
1841 | ||
1842 | * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags | |
1843 | param from unsigned char to int. | |
1844 | (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately | |
1845 | for info_to_howto call. | |
1846 | (add_dynamic_entry): Define macro. | |
1847 | (elf32_arm_size_dynamic_sections): Use add_dynamic_entry. | |
1848 | ||
1849 | * elf32-cris.c (add_dynamic_entry): Define macro. | |
1850 | (elf_cris_size_dynamic_sections): Use add_dynamic_entry. | |
1851 | ||
1852 | * elf32-h8300.c (elf32_h8_final_write_processing): Make static. | |
1853 | (elf32_h8_object_p): Likewise. | |
1854 | (elf32_h8_merge_private_bfd_data): Likewise. | |
1855 | (elf32_h8_relax_section): Cast gap to int so signed comparisons work. | |
1856 | ||
1857 | * elf32-hppa.c (add_dynamic_entry): Define macro. | |
1858 | (elf32_hppa_size_dynamic_sections): Use it. | |
1859 | * elf32-i370.c (add_dynamic_entry): Define macro. | |
1860 | (i370_elf_size_dynamic_sections): Use it. | |
1861 | (i370_noop): Make static. | |
1862 | * elf32-i386.c (add_dynamic_entry): Define macro. | |
1863 | (elf_i386_size_dynamic_sections): Use it. | |
1864 | * elf32-m68k.c (add_dynamic_entry): Define macro. | |
1865 | (elf_m68k_size_dynamic_sections): Use it. | |
1866 | * elf32-ppc.c (add_dynamic_entry): Define macro. | |
1867 | (ppc_elf_size_dynamic_sections): Use it. | |
1868 | * elf32-s390.c (add_dynamic_entry): Define macro. | |
1869 | (elf_s390_size_dynamic_sections): Use it. | |
1870 | * elf64-alpha.c (add_dynamic_entry): Define macro. | |
1871 | (elf64_alpha_size_dynamic_sections): Use it. | |
1872 | * elf64-hppa.c (add_dynamic_entry): Define macro. | |
1873 | (elf64_hppa_size_dynamic_sections): Use it. | |
1874 | * elf64-ppc.c (add_dynamic_entry): Define macro. | |
1875 | (ppc64_elf_size_dynamic_sections): Use it. | |
1876 | * elf64-s390.c (add_dynamic_entry): Define macro. | |
1877 | (elf_s390_size_dynamic_sections): Use it. | |
1878 | * elf64-sparc.c (add_dynamic_entry): Define macro. | |
1879 | (sparc64_elf_size_dynamic_sections): Use it. | |
1880 | * elf64-x86-64.c (add_dynamic_entry): Define macro. | |
1881 | (elf64_x86_64_size_dynamic_sections): Use it. | |
1882 | * elfxx-ia64.c (add_dynamic_entry): Define macro. | |
1883 | (elfNN_ia64_size_dynamic_sections): Use it. | |
1884 | ||
1885 | * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning. | |
1886 | (v850_elf_perform_relocation): Make "r_type" param unsigned. | |
1887 | ||
1888 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return | |
1889 | false if the first malloc fails rather than going via error_return. | |
1890 | ||
1891 | * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for | |
1892 | "index" param. | |
1893 | (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too. | |
1894 | ||
1895 | * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message. | |
1896 | ||
1897 | * elfxx-ia64.c (global_sym_index): Return a long. | |
1898 | ||
1899 | * ieee.c (get_symbol): Use int rather than char param. | |
1900 | (ieee_slurp_sections): Move "section" var to inner blocks. | |
1901 | (copy_expression): Don't init "value" to zero or worry about | |
1902 | clearing to zero after using. | |
1903 | (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid | |
1904 | shadowing. | |
1905 | ||
1906 | * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an | |
1907 | unsigned int. | |
1908 | ||
1909 | * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning. | |
1910 | (bfd_write_bigendian_4byte_int): Pass an unsigned int value param. | |
1911 | ||
1912 | * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param. | |
1913 | ||
1914 | * pc532-mach.c (MYNSX): Delete. | |
1915 | (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX. | |
1916 | (write_object_contents): Correct prototype. | |
1917 | ||
1918 | * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather | |
1919 | than unsigned short. | |
1920 | ||
1921 | * section.c (bfd_set_section_contents): Remove redundant | |
1922 | "offset < 0" test. Check that "count" doesn't overflow size_t. | |
1923 | (bfd_get_section_contents): Likewise. | |
1924 | ||
1925 | * som.c (som_fixup_formats): Add missing braces. | |
1926 | (som_reloc_addend): Pass a bfd_vma for "addend". | |
1927 | ||
1928 | * srec.c (srec_write_record): Pass "type" as an unsigned int. | |
1929 | (srec_write_symbols): Remove an unnecessary var. | |
1930 | ||
1931 | * targets.c (_bfd_target_vector): Sort entries. Sort externs | |
1932 | to match. | |
1933 | * configure.in: Sort to match. Bump version number. | |
1934 | * configure: Regenerate. | |
1935 | ||
1936 | * tekhex.c (move_section_contents): Assert offset == 0. | |
1937 | ||
1938 | * versados.c (new_symbol_string): Constify arg. | |
1939 | (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section. | |
1940 | (versados_get_symbol_info): Make static. | |
1941 | (versados_print_symbol): Likewise. | |
1942 | (versados_get_reloc_upper_bound): Likewise. | |
1943 | (versados_canonicalize_reloc): Likewise. | |
1944 | ||
417412a2 NC |
1945 | 2001-09-18 Nick Clifton <[email protected]> |
1946 | ||
1947 | * elflink.h (elf_link_input_bfd): Fix typo in error message. | |
1948 | ||
bb731fb6 L |
1949 | 2001-09-17 H.J. Lu <[email protected]> |
1950 | ||
1951 | * dwarf1.c (parse_die): Take a new arg for the end of the | |
1952 | section. Return false if die is beyond the section. | |
1953 | (parse_functions_in_unit): Pass the end of the section to | |
1954 | parse_die (). | |
1955 | (_bfd_dwarf1_find_nearest_line): Likewise. | |
1956 | ||
841989d6 NC |
1957 | 2001-09-14 Michael Rauch <[email protected]> |
1958 | ||
1959 | * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32 | |
1960 | just like R_SPARC_32. | |
1961 | ||
056a1d49 NC |
1962 | 2001-09-14 Kevin Lo <[email protected]> |
1963 | ||
1964 | * configure.bfd: Add arm-openbsd target. | |
1965 | ||
4008bd9b TS |
1966 | 2001-09-14 Thiemo Seufer <[email protected]> |
1967 | ||
1968 | * config.bfd: Change machine triplets from mips*el*-* to mips*el-*. | |
1969 | Add support for mips64. | |
1970 | ||
c11cc227 AO |
1971 | 2001-09-13 Alexandre Oliva <[email protected]> |
1972 | ||
1973 | * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD. | |
1974 | ||
aa4f99bb AO |
1975 | 2001-09-12 Alexandre Oliva <[email protected]> |
1976 | ||
1977 | * elf.c (prep_headers): Get the machine code from the elf | |
1978 | backend data. | |
1979 | * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200. | |
1980 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200. | |
1981 | * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300. | |
1982 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300. | |
1983 | * elf-arc.c (arc_elf_final_write_processing): Don't override | |
1984 | e_machine, it's now properly set in prep_headers. | |
1985 | * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and | |
1986 | EM_AVR_OLD. | |
1987 | (ELF_MACHINE_ALT1): Define to EM_AVR_OLD. | |
1988 | * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V. | |
1989 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V. | |
1990 | * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V. | |
1991 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V. | |
1992 | * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30. | |
1993 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30. | |
1994 | * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R. | |
1995 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R. | |
1996 | * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD. | |
1997 | * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850. | |
1998 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850. | |
1999 | ||
204692d7 RH |
2000 | 2001-09-11 Richard Henderson <[email protected]> |
2001 | ||
2002 | * elf64-alpha.c (elf64_alpha_section_flags): New. | |
2003 | (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL. | |
2004 | ||
f94952df RH |
2005 | 2001-09-11 Richard Henderson <[email protected]> |
2006 | ||
2007 | * elf64-alpha.c (elf64_alpha_relocate_section): Do not | |
2008 | apply HINT relocations against dynamic symbols. | |
2009 | ||
146f1a87 L |
2010 | 2001-09-11 H.J. Lu <[email protected]> |
2011 | ||
f94952df | 2012 | * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM. |
146f1a87 | 2013 | |
1cd6895c RH |
2014 | 2001-09-09 Richard Henderson <[email protected]> |
2015 | ||
96e2734b RH |
2016 | * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code. |
2017 | ||
1cd6895c RH |
2018 | * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp |
2019 | following a call to a near function. | |
2020 | ||
f16fbd61 RH |
2021 | 2001-09-08 Richard Henderson <[email protected]> |
2022 | ||
2023 | * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail | |
2024 | relocation errors. Fail gp-relative relocations against | |
2025 | dynamic symbols. | |
2026 | ||
56882138 AM |
2027 | 2001-09-08 Alan Modra <[email protected]> |
2028 | ||
2029 | * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR | |
2030 | as well as DEF_DYNAMIC in test for avoided copy relocs. | |
2031 | (allocate_plt_and_got_and_discard_relocs): Likewise. | |
2032 | * elf32-hppa.c (elf_i386_relocate_section): Likewise. | |
2033 | (allocate_plt_and_got_and_discard_relocs): Likewise. | |
2034 | ||
cb56d3d3 TS |
2035 | 2001-09-07 Thiemo Seufer <[email protected]> |
2036 | ||
2037 | * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling | |
2038 | of R_MIPS_PC16. | |
56882138 AM |
2039 | |
2040 | 2001-09-06 Thiemo Seufer <[email protected]> | |
2041 | ||
2042 | * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO | |
2043 | definitions. | |
2044 | (mips_elf64_howto_table_rel): Likewise. | |
2045 | ||
2046 | 2001-09-05 Tom Rix <[email protected]> | |
2047 | ||
2048 | * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO | |
2049 | and syscall symbols. | |
2050 | (write_global_symbol) : Same. | |
2051 | (bfd_xcoff_export_symbol): Remove unused syscall param. | |
2052 | * libxcoff.h: Change prototype of bfd_xcoff_export symbol and | |
2053 | bfd_xcoff_import_symbol. | |
2054 | * bfd-in.h: Same. | |
2055 | * bfd-in2.h : Regenerate. | |
2056 | ||
2057 | 2001-09-04 Richard Henderson <[email protected]> | |
2058 | ||
2059 | * elf64-alpha.c (SKIP_HOWTO): New. | |
2060 | (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs. | |
2061 | Fix sizes of 16-bit mem format relocs. | |
2062 | (elf64_alpha_reloc_map): Update to match. | |
2063 | (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate. | |
2064 | (elf64_alpha_relax_without_lituse): Likewise. | |
2065 | (elf64_alpha_check_relocs): Handle GPREL16. | |
2066 | (elf64_alpha_relocate_section): Likewise. | |
2067 | * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove. | |
2068 | (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New. | |
2069 | * bfd-in2.h, libbfd.h: Rebuild. | |
2070 | ||
2071 | 2001-09-04 Jeff Law <[email protected]> | |
2072 | ||
2073 | * elf32-h8300.c (elf32_h8_relax_section): New function. | |
2074 | (elf32_h8_relax_delete_bytes): Likewise. | |
2075 | (elf32_h8_symbol_address_p): Likewise. | |
2076 | (elf32_h8_get_relocated_section_contents): Likewise. | |
2077 | (bfd_elf32_bfd_relax_section): Define. | |
2078 | (bfd_elf32_bfd_get_relocated_section_contents): Likewise. | |
2079 | ||
2080 | * elf32-h8300.c (special): New function. | |
2081 | (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in | |
2082 | all relocations. | |
2083 | (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit | |
2084 | relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8. | |
2085 | Fix minor problems with 8bit and 16bit PC relative relocations. | |
2086 | ||
2087 | 2001-09-01 Andreas Jaeger <[email protected]> | |
2088 | ||
2089 | * vms-tir.c: Add missing prototypes. | |
2090 | * vms-hdr.c: Likewise. | |
2091 | * vms-gsd.c: Likewise. | |
2092 | * vms-misc.c: Likewise. | |
2093 | ||
2094 | 2001-08-31 H.J. Lu <[email protected]> | |
2095 | ||
2096 | * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename | |
2097 | with bad relocation. | |
2098 | ||
2099 | 2001-08-31 Eric Christopher <[email protected]> | |
2100 | Jason Eckhardt <[email protected]> | |
2101 | ||
2102 | * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32, | |
2103 | mips32_4k and mips64. | |
2104 | * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k, | |
2105 | bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64. | |
2106 | * bfd/cpu-mips.c: Ditto. | |
2107 | * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto. | |
2108 | * bfd/bfd-in2.h: Regenerate. | |
2109 | ||
2110 | 2001-08-31 Jakub Jelinek <[email protected]> | |
2111 | ||
2112 | * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory | |
2113 | value into R_ALPHA_RELATIVE's addend. | |
2114 | (elf64_alpha_finish_dynamic_symbol): Likewise. | |
2115 | ||
2116 | 2001-08-31 Nick Clifton <[email protected]> | |
2117 | ||
2118 | * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift | |
2119 | recomputed addend during relocatable link if not USE_REL. | |
2120 | ||
2121 | * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one | |
2122 | error. | |
2123 | ||
2124 | 2001-08-30 H.J. Lu <[email protected]> | |
2125 | ||
2126 | * elf32-mips.c (mips_elf_calculate_relocation): Revert the last | |
2127 | 2 changes. | |
2128 | (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic | |
2129 | relocations for weak definitions. | |
2130 | ||
2131 | 2001-08-30 H.J. Lu <[email protected]> | |
2132 | ||
2133 | * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo. | |
2134 | (BFD32_BACKENDS_CFILES): Add elf32-h8300.c. | |
2135 | * Makefile.in: Rebuild. | |
2136 | ||
2137 | 2001-08-30 H.J. Lu <[email protected]> | |
2138 | ||
2139 | * elf32-mips.c (mips_elf_calculate_relocation): Don't create | |
2140 | dynamic relocation for undefined weak symbols when creating | |
2141 | executables. Check h->root.root.type, instead of h->root.type. | |
2142 | ||
2143 | 2001-08-29 Joel Sherrill <[email protected]> | |
2144 | ||
2145 | * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change | |
2146 | default from coff to elf. | |
2147 | ||
2148 | 2001-08-29 Jeff Law <[email protected]> | |
2149 | ||
2150 | * elf32-h8300.c (h8_elf_howto_table): Add new PC relative | |
2151 | relocations. | |
2152 | (h8_reloc_map): Similarly. | |
2153 | (elf32_h8_final_link_relocate): Remove incorrect overflow tests. | |
2154 | Add support for PC relative relocations. | |
2155 | ||
2156 | * elf32-h8300.c: Put all prototypes together. | |
2157 | (elf32_h8_info_to_howto): Parameter elf_reloc is used. | |
2158 | (elf32_h8_final_link_relocate): New function for linker. | |
2159 | (elf32_h8_relocate_section): Similarly. | |
2160 | (elf_backend_relocate_section): Define. | |
2161 | ||
2162 | * cpu-h8300.c (h8300_scan, compatible): Prototype. | |
2163 | (h8300_scan): Handle architecture:machine encodings typically | |
2164 | found in linker scripts. | |
2165 | * elf.c (prep_headers): Do not try to do H8 machine recognition | |
2166 | here. | |
2167 | * elf32-h8300.c: Add some missing prototypes. | |
2168 | (elf32_h8_mach, elf32_h8_final_write_processing): New functions. | |
2169 | (elf32_h8_object_p): Similarly. | |
2170 | ||
2171 | 2001-08-29 Tom Rix <[email protected]> | |
2172 | ||
2173 | * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that | |
2174 | does not follow a XTY_SD. | |
2175 | ||
2176 | 2001-08-29 Alan Modra <[email protected]> | |
2177 | ||
2178 | * targmatch.sed: Delete case statements. | |
2179 | * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for | |
2180 | aix4.3 and above. | |
2181 | ||
2182 | Wed Aug 29 02:27:36 2001 J"orn Rennecke <[email protected]> | |
2183 | ||
2184 | * Makefile.am (elf32-h8300.lo): New target. | |
2185 | * config.bfd (h8300*-*-elf): New case. | |
2186 | * configure.in (bfd_elf32_h8300_vec): New case. | |
2187 | * elf.c (prep_headers): Add case for bfd_arch_h8300. | |
2188 | * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation. | |
2189 | (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise. | |
2190 | (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise. | |
2191 | * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration. | |
2192 | * elf32-h8300.c: New file. | |
2193 | * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated. | |
2194 | ||
2195 | 2001-08-28 Nick Clifton <[email protected]> | |
2196 | ||
2197 | * sparclynx.c: Add missing prototypes. | |
2198 | * coff-mcore.c: Add missing prototypes. | |
2199 | * elf32-pj.c: Add missing prototypes. | |
2200 | * nlm32-sparc.c: Add missing prototypes. | |
2201 | * oasys.c: Add missing prototypes. | |
2202 | * pdp11.c: Add missing prototypes. | |
2203 | * pe-mips.c: Add missing prototypes. | |
2204 | * riscix.c: Add missing prototypes. | |
2205 | ||
2206 | 2001-08-27 Daniel Jacobowitz <[email protected]> | |
2207 | ||
2208 | * elf32-i386.c: Add missing prototypes. | |
2209 | * elf32-ppc.c: Likewise. | |
2210 | * elf32-sh-lin.c: Likewise. | |
2211 | * elfarm-nabi.c: Likewise. | |
2212 | ||
2213 | 2001-08-27 Daniel Jacobowitz <[email protected]> | |
2214 | ||
2215 | * elf32-i386.c (elf_i386_grok_prstatus): New function. | |
2216 | (elf_i386_grok_psinfo): New function. | |
2217 | (elf_backend_grok_prstatus): Define. | |
2218 | (elf_backend_grok_psinfo): Likewise. | |
2219 | * elf32-ppc.c (ppc_elf_grok_prstatus): New function. | |
2220 | (ppc_elf_grok_psinfo): New function. | |
2221 | (elf_backend_grok_prstatus): Define. | |
2222 | (elf_backend_grok_psinfo): Likewise. | |
2223 | * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function. | |
2224 | (elf32_shlin_grok_psinfo): New function. | |
2225 | (elf_backend_grok_prstatus): Define. | |
2226 | (elf_backend_grok_psinfo): Likewise. | |
2227 | * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function. | |
2228 | (elf32_arm_nabi_grok_psinfo): New function. | |
2229 | (elf_backend_grok_prstatus): Define. | |
2230 | (elf_backend_grok_psinfo): Likewise. | |
2231 | ||
2232 | 2001-08-27 H.J. Lu <[email protected]> | |
2233 | ||
2234 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more | |
2235 | sanity check. | |
2236 | (mips_elf_calculate_relocation): Create dynamic relocation for | |
2237 | symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR | |
2238 | bit is not set. | |
2239 | ||
2240 | 2001-08-27 H.J. Lu <[email protected]> | |
2241 | ||
2242 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype. | |
2243 | (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
2244 | (_bfd_elf32_mips_grok_prstatus): Likewise. | |
2245 | (_bfd_elf32_mips_grok_psinfo): Likewise. | |
2246 | (_bfd_mips_elf_hide_symbol): Make it static and cast to | |
2247 | `struct mips_elf_link_hash_entry *'. | |
2248 | (_bfd_mips_elf_copy_indirect_symbol): Make it static. | |
2249 | ||
2250 | 2001-08-27 Nick Clifton <[email protected]> | |
2251 | ||
2252 | * mipsbsd.c: Add missing prototypes. | |
2253 | * hp300hpux.c: Add missing prototypes. | |
2254 | * i386aout.c: Add missing prototypes. | |
2255 | * i386lynx.c: Add missing prototypes. | |
2256 | * i386mach3.c: Add missing prototypes. | |
2257 | * i386msdos.c: Add missing prototypes. | |
2258 | * i386os9k.c: Add missing prototypes. | |
2259 | ||
2260 | 2001-08-27 Linus Nordberg <[email protected]> | |
2261 | Torbjorn Granlund <[email protected]> | |
2262 | Staffan Ulfberg <[email protected]> | |
2263 | Alan Modra <[email protected]> | |
2264 | ||
2265 | * config.bfd: Add powerpc64 target. Add powerpc64 vectors to | |
2266 | targ64_selvecs for 32 bit powerpc targets. | |
2267 | * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo. | |
2268 | (BFD64_BACKENDS_CFILES): Add elf64-ppc.c. | |
2269 | Run "make dep-am". | |
2270 | * Makefile.in: Regenerate. | |
2271 | * configure.in: Add elf64_powerpc vecs. | |
2272 | * configure: Regenerate. | |
2273 | * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit. | |
2274 | * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target. | |
2275 | * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec. | |
2276 | * elf64-ppc.c: New file. | |
2277 | * reloc.c: Add powerpc64 relocs. | |
2278 | * libbfd.h: Regenerate. | |
2279 | * bfd-in2.h: Regenerate. | |
2280 | ||
2281 | 2001-08-27 Andreas Schwab <[email protected]> | |
2282 | ||
2283 | * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the | |
2284 | reloc is against read-only section. | |
2285 | (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2286 | looking up section names for DT_TEXTREL. | |
2287 | (elf32_m68k_reloc_type_class): New function. | |
2288 | (elf_backend_reloc_type_class): Define. | |
2289 | ||
2290 | 2001-08-27 Andreas Jaeger <[email protected]> | |
2291 | ||
2292 | * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the | |
2293 | reloc is against read-only section. | |
2294 | (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2295 | looking up section names for DT_TEXTREL. | |
2296 | (elf_s390_reloc_type_class): New. | |
2297 | (elf_backend_reloc_type_class): Define. | |
2298 | ||
2299 | * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the | |
2300 | reloc is against read-only section. | |
2301 | (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2302 | looking up section names for DT_TEXTREL. | |
2303 | (elf_s390_reloc_type_class): New. | |
2304 | (elf_backend_reloc_type_class): Define. | |
2305 | ||
2306 | * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc | |
2307 | is against read-only section. | |
2308 | (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2309 | looking up section names for DT_TEXTREL. | |
2310 | (ppc_elf_reloc_type_class): New. | |
2311 | (elf_backend_reloc_type_class): Define. | |
2312 | ||
2313 | 2001-08-26 Andreas Jaeger <[email protected]> | |
2314 | ||
2315 | * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the | |
2316 | reloc is against read-only section. | |
2317 | (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2318 | looking up section names for DT_TEXTREL. | |
2319 | (elf_cris_reloc_type_class): New. | |
2320 | (elf_backend_reloc_type_class): Define. | |
2321 | ||
2322 | * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is | |
2323 | against read-only section. | |
2324 | (elf_backend_reloc_type_class): Define. | |
2325 | (sh_elf_reloc_type_class): New. | |
2326 | (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2327 | looking up section names for DT_TEXTREL. | |
2328 | ||
2329 | * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the | |
2330 | reloc is against read-only section. | |
2331 | (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2332 | looking up section names for DT_TEXTREL. | |
2333 | (elf32_arm_reloc_type_class): New. | |
2334 | (elf_backend_reloc_type_class): Define. | |
2335 | ||
2336 | 2001-08-25 Andreas Jaeger <[email protected]> | |
2337 | ||
2338 | * oasys.c: Add missing prototypes. | |
2339 | ||
2340 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused | |
2341 | attribute for parameter. | |
2342 | * elf.c (_bfd_elf_reloc_type_class): Likewise. | |
2343 | ||
2344 | * versados.c (get_4): Make static. | |
2345 | (get_10): Make static. | |
2346 | Add missing prototypes. | |
2347 | (process_esd): Fix call to versados_new_symbol. | |
2348 | ||
2349 | 2001-08-25 Nick Clifton <[email protected]> | |
2350 | ||
2351 | * coff-a29k.c: Add missing prototypes. | |
2352 | * coff-apollo.c: Add missing prototypes. | |
2353 | * coff-arm.c: Add missing prototypes. | |
2354 | * coff-i860.c: Add missing prototypes. | |
2355 | * coff-rs6000.c: Add missing prototypes. | |
2356 | * coff-tic80.c: Add missing prototypes. | |
2357 | * elf-m10200.c: Add missing prototypes. | |
2358 | * elf-m10300.c: Add missing prototypes. | |
2359 | * elf32-arm.h: Add missing prototypes. | |
2360 | * elf32-d10v.c: Add missing prototypes. | |
2361 | * elf32-m32r.c: Add missing prototypes. | |
2362 | * elf32-mcore.c: Add missing prototypes. | |
2363 | * elf32-openrisc.c: Add missing prototypes. | |
2364 | * elf32-sh.c: Add missing prototypes. | |
2365 | * elf32-sparc.c: Add missing prototypes. | |
2366 | * elf32-v850.c: Add missing prototypes. | |
2367 | * elfarm-nabi.c: Add missing prototypes. | |
2368 | * elfarm-oabi.c: Add missing prototypes. | |
2369 | ||
2370 | 2001-08-25 Thiemo Seufer <[email protected]> | |
2371 | ||
2372 | * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for | |
2373 | E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64 | |
2374 | ||
2375 | 2001-08-24 H.J. Lu <[email protected]> | |
2376 | ||
2377 | * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF | |
2378 | hash structure. | |
2379 | ||
2380 | 2001-08-24 Nick Clifton <[email protected]> | |
2381 | ||
2382 | * elf-bfd.h (elf_hash_table): Revert definition. | |
2383 | (is_elf_hash_table): New macro. | |
2384 | * elflink.h (elf_link_add_object_symbols): Test | |
2385 | is_elf_hash_table before accessing ELF only fields in hash | |
2386 | structure. | |
2387 | (elf_link_create_dynamic_sections): Fail if not using an ELF | |
2388 | hash structure. | |
2389 | (elf_add_dynamic_entry): Fail if not using an ELF hash | |
2390 | structure. | |
2391 | (elf_link_record_local_dynamic_symbol): Fail if not using an | |
2392 | ELF hash structure. | |
2393 | (size_dynamic_sections): Fail if not using an ELF hash | |
2394 | structure. | |
2395 | (elf_adjust_dynamic_symbol): Fail if not using an ELF | |
2396 | hash structure. | |
2397 | (elf_bfd_final_link): Fail if not using an ELF hash | |
2398 | structure. | |
2399 | ||
2400 | 2001-08-24 H.J. Lu <[email protected]> | |
2401 | ||
2402 | * elf-bfd.h (elf_hash_table): Return NULL if the linker hash | |
2403 | table is not an ELF linker hash table. | |
2404 | ||
2405 | * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash | |
2406 | table type to bfd_link_elf_hash_table. | |
2407 | ||
2408 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert | |
2409 | the last change. | |
2410 | ||
2411 | * linker.c (_bfd_link_hash_table_init): Set the linker hash | |
2412 | table type to bfd_link_generic_hash_table. | |
2413 | ||
2414 | 2001-08-24 Alexandre Oliva <[email protected]> | |
2415 | ||
2416 | * bfd.c (bfd_alt_mach_code): New function. | |
2417 | * bfd-in2.h: Rebuilt. | |
2418 | ||
2419 | 2001-08-24 Alexandre Oliva <[email protected]> | |
2420 | ||
2421 | * elf-m10300.c (mn10300_elf_relocate_section): Test the right | |
2422 | `type' field in the hash entry when deciding whether to follow a | |
2423 | link. | |
2424 | ||
2425 | 2001-08-24 Jakub Jelinek <[email protected]> | |
2426 | ||
2427 | * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not | |
2428 | last. | |
2429 | (elf_link_sort_relocs): Adjust accordingly. | |
2430 | ||
2431 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag. | |
2432 | (elf64_alpha_check_relocs): Set it if section this reloc is against | |
2433 | is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against | |
2434 | read-only section. | |
2435 | (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation | |
2436 | is is against read-only section. | |
2437 | (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't | |
2438 | check section names. | |
2439 | (elf64_alpha_reloc_type_class): New. | |
2440 | (elf_backend_reloc_type_class): Define. | |
2441 | ||
2442 | 2001-08-24 Thiemo Seufer <[email protected]> | |
2443 | ||
2444 | * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca() | |
2445 | by bfd_malloc(). | |
2446 | ||
2447 | 2001-08-23 Andreas Jaeger <[email protected]> | |
2448 | ||
2449 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if | |
2450 | the reloc is against read-only section. | |
2451 | (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead | |
2452 | of looking up section names for DT_TEXTREL. | |
2453 | (elf64_x86_64_reloc_type_class): New. | |
2454 | (elf_backend_reloc_type_class): Define. | |
2455 | ||
2456 | 2001-08-23 H.J. Lu <[email protected]> | |
2457 | ||
2458 | * syms.c (bfd_print_symbol_vandf): Add abfd to arg. | |
2459 | * bfd-in2.h (bfd_print_symbol_vandf): Regenerated. | |
2460 | ||
2461 | * aoutx.h (NAME(aout,print_symbol)): Pass abfd to | |
2462 | bfd_print_symbol_vandf. | |
2463 | * coffgen.c (coff_print_symbol): Likewise. | |
2464 | * elf.c (bfd_elf_print_symbol): Likewise. | |
2465 | * ieee.c (ieee_print_symbol): Likewise. | |
2466 | * nlmcode.h (nlm_print_symbol): Likewise. | |
2467 | * oasys.c (oasys_print_symbol): Likewise. | |
2468 | * pdp11.c (NAME(aout,print_symbol)): Likewise. | |
2469 | * som.c (som_print_symbol): Likewise. | |
2470 | * srec.c (srec_print_symbol): Likewise. | |
2471 | * tekhex.c (tekhex_print_symbol): Likewise. | |
2472 | * versados.c (versados_print_symbol): Likewise. | |
2473 | * vms.c (vms_print_symbol): Likewise. | |
2474 | ||
2475 | * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma | |
2476 | with bfd_fprintf_vma. | |
2477 | (bfd_elf_print_symbol): Likewise. | |
2478 | * syms.c (bfd_print_symbol_vandf): Likewise. | |
2479 | ||
2480 | 2001-08-23 Nick Clifton <[email protected]> | |
2481 | ||
2482 | * aoutf1.h (sunos_write_object_contents): Silence compile time | |
2483 | warning. | |
2484 | * libaout.h (N_SET_DYNAMIC): Silence compile time warning. | |
2485 | ||
2486 | * bout.c: Add missing function prototypes. Fix formatting. | |
2487 | * coff-z8k.c: Add missing function prototypes. Fix formatting. | |
2488 | * coff-w65.c: Add missing function prototypes. Fix formatting. | |
2489 | * coff-h8500.c: Add missing function prototypes. Fix formatting. | |
2490 | * coff-h8300.c: Add missing function prototypes. Fix formatting. | |
2491 | * coff-tic54x.c: Add missing function prototypes. Fix formatting. | |
2492 | * coff-tic30.c: Add missing function prototypes. Fix formatting. | |
2493 | * coff-m68k.c: Add missing function prototypes. Fix formatting. | |
2494 | * coff-rs6000.c: Add missing function prototypes. Fix formatting. | |
2495 | * coff-sh.c: Add missing function prototypes. Fix formatting. | |
2496 | ||
2497 | 2001-08-23 Jakub Jelinek <[email protected]> | |
2498 | ||
2499 | * elf-bfd.h (enum elf_reloc_type_class): New. | |
2500 | (struct elf_backend_data): Add elf_backend_reloc_type_class. | |
2501 | (_bfd_elf_reloc_type_class): New. | |
2502 | * elfxx-target.h (elf_backend_reloc_type_class): Define. | |
2503 | (elfNN_bed): Add elf_backend_reloc_type_class. | |
2504 | * elf.c (_bfd_elf_reloc_type_class): New. | |
2505 | * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc | |
2506 | is against read-only section. | |
2507 | (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2508 | looking up section names for DT_TEXTREL. | |
2509 | (elf_i386_reloc_type_class): New. | |
2510 | (elf_backend_reloc_type_class): Define. | |
2511 | * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the | |
2512 | reloc is against read-only section. | |
2513 | (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2514 | looking up section names for DT_TEXTREL. | |
2515 | (elf32_sparc_reloc_type_class): New. | |
2516 | (elf_backend_reloc_type_class): Define. | |
2517 | * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the | |
2518 | reloc is against read-only section. | |
2519 | (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2520 | looking up section names for DT_TEXTREL. | |
2521 | (sparc64_elf_reloc_type_class): New. | |
2522 | (elf_backend_reloc_type_class): Define. | |
2523 | * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field. | |
2524 | (elfNN_ia64_hash_table_create): Clear ia64_info. | |
2525 | (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only | |
2526 | section. | |
2527 | (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag | |
2528 | instead of looking up section names for DT_TEXTREL. | |
2529 | (elfNN_ia64_reloc_type_class): New. | |
2530 | (elf_backend_reloc_type_class): Define. | |
2531 | * elflink.h (size_dynamic_sections): Add spare DT_NULL tags. | |
2532 | (struct elf_link_sort_rela): New. | |
2533 | (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New. | |
2534 | (elf_bfd_final_link): Call elf_link_sort_relocs. | |
2535 | Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if | |
2536 | necessary. | |
2537 | ||
2538 | 2001-08-23 Nick Clifton <[email protected]> | |
2539 | ||
2540 | * configure.in (x86-bsdi): No corefile support. | |
2541 | * configure: Regenerate. | |
2542 | ||
2543 | 2001-08-22 Nick Clifton <[email protected]> | |
2544 | ||
2545 | * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing | |
2546 | comma. | |
2547 | ||
2548 | 2001-08-21 Mark Elbrecht <[email protected]> | |
2549 | ||
2550 | * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set | |
2551 | the alignment of dwarf2 linkonce sections to 0. | |
2552 | * coff-sto32.c: Likewise. | |
2553 | ||
2554 | 2001-08-20 Andreas Jaeger <[email protected]> | |
2555 | ||
2556 | * coff-sparc.c: Add missing prototypes. | |
2557 | * elf32-s390.c: Likewise. | |
2558 | * elf32-i960.c: Likewise. | |
2559 | * aout-target.h: Likewise. | |
2560 | ||
2561 | 2001-08-20 H.J. Lu <[email protected]> | |
2562 | ||
2563 | * elf-bfd.h (elf_obj_tdata): Add num_section_syms. | |
2564 | (elf_num_section_syms): New for num_section_syms. | |
2565 | ||
2566 | * elf.c (elf_map_symbols): Set num_section_syms. | |
2567 | (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for | |
2568 | the section symbol index. | |
2569 | ||
2570 | 2001-08-20 Nick Clifton <[email protected]> | |
2571 | ||
2572 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never | |
2573 | select the generic has table creator. All elf backends need elf | |
2574 | specific fields in the hash table. | |
2575 | ||
2576 | 2001-08-20 Alan Modra <[email protected]> | |
2577 | ||
2578 | * archive.c (offsetof): Remove define. | |
2579 | * elf.c: Likewise. | |
2580 | * oasys.c: Likewise | |
2581 | * sysdep.h (offsetof): Define. | |
2582 | ||
2583 | 2001-08-17 Alan Modra <[email protected]> | |
2584 | ||
2585 | * bfd.c (bfd_get_gp_size): Return an unsigned int. | |
2586 | (bfd_set_gp_size): Make param unsigned. | |
2587 | * bfd-in2.h: Regenerate. | |
2588 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather | |
2589 | than calling bfd_get_gp_size. | |
2590 | * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. | |
2591 | * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise. | |
2592 | ||
2593 | 2001-08-17 Alan Modra <[email protected]> | |
2594 | ||
2595 | * linker.c (default_fill_link_order): Handle four byte fill value. | |
2596 | ||
2597 | 2001-08-17 Alan Modra <[email protected]> | |
2598 | ||
2599 | * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing | |
2600 | prototype. | |
2601 | * nlm32-alpha.c (nlm_alpha_write_external): Fix warning. | |
2602 | ||
2603 | * elf64-mips.c (UNUSED_RELOC): Define. | |
2604 | (mips_elf64_howto_table_rel): Use it. | |
2605 | (mips_elf64_howto_table_rela): Here too. | |
2606 | (mips_elf64_write_relocs): Fix signed/unsigned warning. | |
2607 | ||
2608 | * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to | |
2609 | silence warning. | |
2610 | * coffgen.c (coff_print_symbol): Fix warnings. | |
2611 | (coff_find_nearest_line): Likewise. | |
2612 | * cofflink.c (_bfd_coff_link_input_bfd): Likewise. | |
2613 | * coff-alpha.c (alpha_convert_external_reloc): Likewise. | |
2614 | * format.c (bfd_check_format_matches): Likewise. | |
2615 | (bfd_set_format): Likewise. | |
2616 | * coff-ia64.c: Add missing prototypes. | |
2617 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend | |
2618 | signed to silence warnings. | |
2619 | (elf64_alpha_relocate_section): Likewise. | |
2620 | (elf64_alpha_find_reloc_at_ofs): Fix warnings. | |
2621 | (elf64_alpha_add_symbol_hook): Likewise. | |
2622 | (elf64_alpha_final_link): Likewise. | |
2623 | (elf64_alpha_relax_section): Remove redundant assign to info.gotent. | |
2624 | (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args. | |
2625 | (elf64_alpha_size_got_sections): Likewise. | |
2626 | * elfxx-ia64.c: Add missing prototypes. | |
2627 | (elfNN_ia64_relocate_section): Fix warning. | |
2628 | (elfNN_ia64_unwind_entry_compare): Make params const. | |
2629 | ||
2630 | 2001-08-17 Alan Modra <[email protected]> | |
2631 | ||
2632 | * config.bfd (targ64_selvecs): New. | |
2633 | <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef. | |
2634 | ||
2635 | * bfd-in.h (BFD_VERSION): Remove wrong comment. | |
2636 | (BFD_DEFAULT_TARGET_SIZE): New. | |
2637 | (BFD_ARCH_SIZE): Comment. | |
2638 | * configure.in (target_size): New. Set instead of target64 in | |
2639 | selvecs case statement. Set target64 from it. | |
2640 | (bfd_default_target_size): New. Set from taget_size. AC_SUBST. | |
2641 | * bfd-in2.h: Regenerate. | |
2642 | * configure: Regenerate. | |
2643 | ||
2644 | 2001-08-17 Alan Modra <[email protected]> | |
2645 | ||
2646 | * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format. | |
2647 | (bfd_errmsgs): Add corresponding message. | |
2648 | * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when | |
2649 | finding an archive that contains different format object files. | |
2650 | Return bfd_error_wrong_object_format for this case. | |
2651 | * format.c: Formatting fixes. s/CONST/const/. | |
2652 | (bfd_check_format_matches): Accept archives that give | |
2653 | bfd_error_wrong_object_format if no full match is found. Tidy | |
2654 | code handling matching_vector. Don't return a pointer to freed | |
2655 | memory in `matching'. Handle ambiguous matches as for partial | |
2656 | archive matches. | |
2657 | * bfd-in2.h: Regenerate. | |
2658 | ||
2659 | 2001-08-15 Alan Modra <[email protected]> | |
2660 | ||
2661 | * libieee.h (common_header_type): Add last_byte field. | |
2662 | ||
2663 | * ieee.c: Add missing prototypes. Some format fixes. | |
2664 | (struct output_buffer_struct): Move for availability to prototypes. | |
2665 | (ieee_part_after): New function. | |
2666 | (ieee_slurp_debug): Use it here. | |
2667 | (ieee_seek): Pass in ieee_data_struct rather than bfd. Use | |
2668 | ieee_part_after to set last_byte to one past end of current part. | |
2669 | Update callers. | |
2670 | (ieee_pos): Pass in ieee_data_struct rather than bfd. | |
2671 | Update callers. | |
2672 | (parse_expression): Don't go beyond the end of the current part. | |
2673 | (ieee_slurp_external_symbols): Correct type passed to read_2bytes. | |
2674 | (ieee_get_symtab_upper_bound, ieee_get_symtab, | |
2675 | ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook, | |
2676 | ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block, | |
2677 | ieee_set_section_contents, ieee_write_object_contents, | |
2678 | ieee_make_empty_symbol): Make static. | |
2679 | (ieee_archive_p): Correct comments regarding bfd_read. | |
2680 | (ieee_object_p): Similarly. | |
2681 | (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr, | |
2682 | output_ptr_end, input_ptr_start, input_ptr, input_ptr_end, | |
2683 | input_bfd, output_bfd, output_buffer. | |
2684 | (do_as_repeat): Write out ieee_set_current_pc_enum value as for | |
2685 | do_with_relocs, ie. as a symbol for relocatable files. | |
2686 | (ieee_vec): Add comments showing functions referenced by macros. | |
2687 | ||
2688 | 2001-08-14 Nick Clifton <[email protected]> | |
2689 | ||
2690 | * aout-tic30.c: Add missing prototypes. Fix formatting. | |
2691 | * aout-ns32k.c: Add missing prototypes. Fix formatting. | |
2692 | * peXXigen.c: Add missining prototypes. Fix formatting. | |
2693 | * aout-adobe.c: Add missining prototypes. Fix formatting. | |
2694 | ||
2695 | 2001-08-13 Nick Clifton <[email protected]> | |
2696 | ||
2697 | * elf32-v850.c: Add missing function prototypes. | |
2698 | Fix some formatting. | |
2699 | ||
2700 | * cpu-v850.c: Add missing function prototype. | |
2701 | Fix some formatting. | |
2702 | ||
2703 | 2001-08-11 Nick Clifton <[email protected]> | |
2704 | ||
2705 | * elf-bfd.h (struct elf_backend_data): Add new fields | |
2706 | 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'. | |
2707 | (bfd_elf_sprintf_vma): Rename function prototype to | |
2708 | '_bfd_elf_sprintf_vma'. | |
2709 | (bfd_elf_fprintf_vma): Rename function prototype to | |
2710 | '_bfd_elf_fprintf_vma'. | |
2711 | * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma | |
2712 | directly, instead indirect via the elf_backend_data structure. | |
2713 | (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly, | |
2714 | instead indirect via the elf_backend_data structure. | |
2715 | * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma. | |
2716 | (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma. | |
2717 | * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not | |
2718 | already defined. | |
2719 | (elf_backend_fprintf_vma): Initialise if not already defined. | |
2720 | (struct elf_backend_data): Initialise the | |
2721 | elf_backend_sprintf_vma and elf_backend_fprintf_vma fields. | |
2722 | ||
2723 | 2001-08-10 Andreas Jaeger <[email protected]> | |
2724 | ||
2725 | * elf64-sparc.c: Add missing prototypes. | |
2726 | * elf32-cris.c: Likewise. | |
2727 | * elf32-i370.c: Likewise. | |
2728 | * elf64-hppa.c: Likewise. | |
2729 | * elf64-s390.c: Likewise. | |
2730 | ||
2731 | 2001-08-10 Andreas Jaeger <[email protected]> | |
2732 | ||
2733 | * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static. | |
2734 | Add prototypes where needed. | |
2735 | ||
2736 | 2001-08-10 H.J. Lu <[email protected]> | |
2737 | ||
2738 | * bfd.c (bfd_sprintf_vma): Fix a typo in the last change. | |
2739 | (bfd_fprintf_vma): Likewise. | |
2740 | ||
2741 | 2001-08-10 H.J. Lu <[email protected]> | |
2742 | ||
2743 | * bfd.c (bfd_sprintf_vma): Don't return void. | |
2744 | (bfd_fprintf_vma): Likewise. | |
2745 | ||
2746 | 2001-08-10 Andreas Jaeger <[email protected]> | |
2747 | ||
2748 | * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes | |
2749 | to build warnings. | |
2750 | * configure: Regenerate. | |
2751 | ||
2752 | 2001-08-10 Alan Modra <[email protected]> | |
2753 | ||
2754 | * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet | |
2755 | warning if not BFD64. Add braces so emacs auto format works. | |
2756 | (bfd_elf_fprintf_vma): Likewise. | |
2757 | ||
2758 | * libxcoff.h (struct xcoff_backend_data_rec): Constify src param | |
2759 | of _xcoff_swap_ld*. | |
2760 | * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external | |
2761 | param to agree with libxcoff.h. | |
2762 | (xcoff_swap_ldhdr_out): Likewise. | |
2763 | (xcoff_swap_ldsym_in): Likewise. | |
2764 | (xcoff_swap_ldsym_out): Likewise. | |
2765 | (xcoff_swap_ldrel_in): Likewise. | |
2766 | (xcoff_swap_ldrel_out): Likewise. | |
2767 | (xcoff_create_csect_from_smclas): Likewise. | |
2768 | * coff64-rs6000.c: Add missing prototypes. | |
2769 | (xcoff64_swap_ldhdr_in): Modify type of external param to agree | |
2770 | with libxcoff.h. | |
2771 | (xcoff64_swap_ldhdr_out): Likewise. | |
2772 | (xcoff64_swap_ldsym_in): Likewise. | |
2773 | (xcoff64_swap_ldsym_out): Likewise. | |
2774 | (xcoff64_swap_ldrel_in): Likewise. | |
2775 | (xcoff64_swap_ldrel_out): Likewise. | |
2776 | (xcoff64_ppc_relocate_section): Make static. | |
2777 | (xcoff64_slurp_armap): Likewise. | |
2778 | (xcoff64_archive_p): Likewise. | |
2779 | (xcoff64_openr_next_archived_file): Likewise. | |
2780 | (xcoff64_sizeof_headers): Likewise. | |
2781 | (xcoff64_is_lineno_count_overflow): Likewise. | |
2782 | (xcoff64_is_reloc_count_overflow): Likewise. | |
2783 | (xcoff64_loader_symbol_offset): Likewise. | |
2784 | (xcoff64_loader_reloc_offset): Likewise. | |
2785 | * elf64-gen.c: Add missing prototypes. | |
2786 | ||
2787 | 2001-08-09 H.J. Lu <[email protected]> | |
2788 | ||
2789 | * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64. | |
2790 | (bfd_elf_fprintf_vma): Likewise. | |
2791 | ||
2792 | 2001-08-09 H.J. Lu <[email protected]> | |
2793 | ||
2794 | * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved | |
2795 | to ... | |
2796 | * elf-bfd.h: Here. | |
2797 | * bfd-in2.h: Regenerated. | |
2798 | ||
2799 | 2001-08-09 H.J. Lu <[email protected]> | |
2800 | ||
2801 | * bfd-in.h (bfd_sprintf_vma): New prototype. | |
2802 | (bfd_fprintf_vma): Likewise. | |
2803 | (bfd_elf_sprintf_vma): Likewise. | |
2804 | (bfd_elf_fprintf_vma): Likewise. | |
2805 | (bfd_printf_vma): New. Defined with bfd_fprintf_vma. | |
2806 | * bfd-in2.h: Regenerated. | |
2807 | ||
2808 | * bfd.c (bfd_sprintf_vma): New. Defined. | |
2809 | (bfd_fprintf_vma): Likewise. | |
2810 | ||
2811 | * elf.c (bfd_elf_sprintf_vma): New. Defined. | |
2812 | (bfd_elf_fprintf_vma): Likewise. | |
2813 | ||
2814 | 2001-08-09 Alan Modra <[email protected]> | |
2815 | ||
2816 | * coff-rs6000.c: Add missing prototypes. | |
2817 | (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow, | |
2818 | xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset, | |
2819 | xcoff_loader_reloc_offset): Make static. | |
2820 | * dwarf1.c: Add missing prototypes. | |
2821 | * dwarf2.c: Add missing prototypes. | |
2822 | (struct abbrev_info): Move definition. | |
2823 | (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise. | |
2824 | * elf.c: Add missing prototypes. | |
2825 | * elf32-gen.c: Likewise. | |
2826 | * elf32-i386.c: Likewise. | |
2827 | * elf32-ppc.c: Likewise. | |
2828 | (ppc_elf_sort_rela): Use PTR instead of "void *". | |
2829 | * elflink.h: Add missing prototypes. Formatting fixes. | |
2830 | * merge.c: Add missing prototypes. | |
2831 | (last4_eq): Use PTR instead of "void *". | |
2832 | (last_eq): Likewise. | |
2833 | * syms.c: Add missing prototypes. | |
2834 | ||
2835 | 2001-08-09 Nick Clifton <[email protected]> | |
2836 | ||
2837 | * bfd.c: Fix formatting. | |
2838 | * bfd-in2.h: Regenerate. | |
2839 | ||
2840 | 2001-08-09 Nick Clifton <[email protected]> | |
2841 | ||
2842 | * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to | |
2843 | true (this target uses REL relocations) and 'pcrel_offset' to | |
2844 | false (the PC is implied, not stored in the offset). | |
2845 | ||
2846 | 2001-08-08 Alan Modra <[email protected]> | |
2847 | ||
2848 | 1999-10-19 Linus Nordberg <[email protected]> | |
2849 | * elf-bfd.h (struct elf_backend_data): Add want_got_sym. | |
2850 | * elfxx-target.h (elf_backend_want_got_sym): Define. | |
2851 | (elfNN_bed): Add elf_backend_want_got_sym. | |
2852 | * elflink.c (_bfd_elf_create_got_section): Define | |
2853 | _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym. | |
2854 | ||
2855 | 2001-08-08 Alexandre Oliva <[email protected]> | |
2856 | ||
2857 | * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms. | |
2858 | (find_rela_addend): New function. | |
2859 | (parse_comp_unit): Call it to find the abbrev offset addend. | |
2860 | (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new | |
2861 | members of dwarf2_debug as debugging information is read. | |
2862 | ||
2863 | 2001-08-07 Nick Clifton <[email protected]> | |
2864 | ||
2865 | * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff | |
2866 | targets as well as sh-pe. | |
2867 | ||
2868 | 2001-08-03 Ben Harris <[email protected]> | |
2869 | ||
2870 | * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of | |
2871 | reloc from start of section when computing value for R_ARM_REL32 | |
2872 | reloc. | |
2873 | ||
2874 | 2001-08-03 Alan Modra <[email protected]> | |
2875 | ||
2876 | From H.J. Lu <[email protected]> | |
2877 | * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't | |
2878 | keep relocs for undefined syms if there are no dynamic sections in | |
2879 | executable. | |
2880 | * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise. | |
2881 | ||
2882 | 2001-08-02 Paul Sokolovsky <[email protected]> | |
2883 | ||
2884 | * cofflink.c (coff_link_check_ar_symbols): also search for | |
2885 | __imp__symbol as well as _symbol. | |
2886 | * linker.c (_bfd_generic_link_add_archive_symbols): also | |
2887 | search for __imp__symbol as well as _symbol. | |
2888 | ||
2889 | 2001-08-01 Adam Nemet <[email protected]> | |
2890 | ||
2891 | * elf.c (elf_sort_sections): Return zero only as the last step. | |
2892 | ||
2893 | 2001-08-01 Nick Clifton <[email protected]> | |
2894 | ||
2895 | * config.bfd (arm-vxworks): Change name of define from VXWORKS to | |
2896 | ARM_COFF_BUGFIX. | |
2897 | (arm-epoc-pe): Define ARM_COFF_BUGFIX. | |
2898 | coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with | |
2899 | ARM_COFF_BUGFIX. | |
2900 | ||
2901 | 2001-07-30 Rainer Orth <[email protected]> | |
2902 | ||
2903 | * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type | |
2904 | to match corresponding bfd_coff_backend data member. | |
2905 | ||
2906 | 2001-07-24 Alan Modra <[email protected]> | |
2907 | ||
2908 | * Makefile.am: Update dependencies with "make dep-am". | |
2909 | * Makefile.in: Regenerate | |
2910 | ||
2911 | 2001-07-15 H.J. Lu <[email protected]> | |
2912 | ||
2913 | * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp. | |
2914 | (po/BLD-POTFILES.in): Use tmp.bld instead of tmp. | |
2915 | * Makefile.in: Regenerate. | |
2916 | ||
2917 | 2001-07-11 H.J. Lu <[email protected]> | |
2918 | ||
2919 | * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD | |
2920 | flags when creating the reloc section if the ALLOC flag in the | |
2921 | source section is set. | |
2922 | ||
2923 | 2001-07-11 Steve Ellcey <[email protected]> | |
2924 | ||
2925 | * reloc.c (bfd_reloc_code_type): Add IA64 relocs | |
2926 | BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB | |
2927 | * bfd-in2.h: Regenerate. | |
2928 | * libbfd.h: Regenerate. | |
2929 | * elfxx-ia64.c (ia64_howto_table): Define how to handle | |
2930 | new relocations. | |
2931 | (elfNN_ia64_reloc_type_lookup): Handle new relocations. | |
2932 | (elfNN_ia64_check_relocs): Likewise. | |
2933 | (elfNN_ia64_install_value): Likewise. | |
2934 | (elfNN_ia64_relocate_section): Likewise. | |
2935 | ||
2936 | 2001-07-11 Jakub Jelinek <[email protected]> | |
2937 | ||
2938 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for | |
2939 | R_SPARC_UA64. | |
2940 | (elf32_sparc_check_relocs): Likewise. | |
2941 | Only create .rela section for alloced sections in shared libraries. | |
2942 | (elf32_sparc_relocate_section): Likewise. | |
2943 | Remove redundant check. | |
2944 | Optimize unaligned reloc usage. | |
2945 | * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant | |
2946 | check. | |
2947 | ||
2948 | 2001-07-11 H.J. Lu <[email protected]> | |
2949 | ||
2950 | * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same | |
2951 | ALLOC|LOAD flags as the source section for debugging sections | |
2952 | when creating the reloc section. | |
2953 | ||
2954 | 2001-07-05 Jim Wilson <[email protected]> | |
2955 | ||
2956 | * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use | |
2957 | the section of the bigger symbol. | |
2958 | ||
2959 | * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM. | |
2960 | ||
2961 | 2001-07-05 Nick Clifton <[email protected]> | |
2962 | ||
2963 | * peicode.h (coff_swap_scnhdr_in): For sections containing | |
2964 | uninitialised data, only set their size to s_paddr if this does | |
2965 | not reset their size to zero. MS's latest compilers will set | |
2966 | s_paddr to zero. | |
2967 | ||
2968 | 2001-07-04 H.J. Lu <[email protected]> | |
2969 | ||
2970 | * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): | |
2971 | Handle bfd_mach_mips4400, bfd_mach_mips4600 and | |
2972 | bfd_mach_mips5000. | |
2973 | ||
2974 | 2001-07-03 Mark Elbrecht <[email protected]> | |
2975 | ||
2976 | * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets. | |
2977 | ||
2978 | * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from | |
2979 | sections being discarded. | |
2980 | ||
2981 | 2001-06-30 Alan Modra <[email protected]> | |
2982 | ||
2983 | * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly | |
2984 | instead of _bfd_elfcore_section_from_phdr. | |
2985 | * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove. | |
2986 | * elf.c (_bfd_elfcore_section_from_phdr): Remove. | |
2987 | (_bfd_elfcore_make_pseudosection): Expedite tail-call. | |
2988 | (elfcore_grok_prstatus): Likewise. | |
2989 | (elfcore_grok_lwpstatus): Likewise. | |
2990 | (bfd_get_elf_phdr_upper_bound): Likewise. | |
2991 | (elfcore_make_note_pseudosection): Formatting. | |
2992 | (_bfd_elfcore_strndup): Formatting. | |
2993 | * elf32-mips.c (mips_elf_sym_is_global): Formatting. | |
2994 | (_bfd_elf32_mips_grok_prstatus): Expedite tail-call. | |
2995 | ||
2996 | 2001-06-29 Daniel Jacobowitz <[email protected]> | |
2997 | ||
2998 | * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection | |
2999 | and _bfd_elfcore_strndup. | |
3000 | (struct elf_backend_data): Add elf_backend_grok_prstatus | |
3001 | and elf_backend_grok_psinfo. | |
3002 | * elf.c (_bfd_elfcore_make_pseudosection): New function. | |
3003 | (elfcore_grok_prstatus): Use it. | |
3004 | (elfcore_make_note_pseudosection): Likewise. | |
3005 | (elfcore_strndup): Rename to... | |
3006 | (_bfd_elfcore_strndup): Here, and make global. | |
3007 | (elfcore_grok_psinfo): Use _bfd_elfcore_strndup. | |
3008 | (elfcore_grok_note): Call elf_backend_grok_prstatus | |
3009 | and elf_backend_grok_psinfo if available. | |
3010 | * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function. | |
3011 | (_bfd_elf32_mips_grok_psinfo): New function. | |
3012 | (elf_backend_grok_prstatus): Define. | |
3013 | (elf_backend_grok_psinfo): Define. | |
3014 | * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL. | |
3015 | (elf_backend_grok_psinfo): Likewise. | |
3016 | (elfNN_bed): Include elf_backend_grok_prstatus and | |
3017 | elf_backend_grok_psinfo. | |
3018 | ||
3019 | 2001-06-29 H.J. Lu <[email protected]> | |
3020 | ||
3021 | * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if | |
3022 | hplink->sgot is NULL before filling GOT. Check if hplink->splt | |
3023 | is NULL before filling PLT. | |
3024 | ||
3025 | 2001-06-29 Alan Modra <[email protected]> | |
3026 | ||
3027 | * elflink.h (elf_link_output_extsym): Revert 1999-04-10. | |
3028 | ||
3029 | 2001-06-27 Alan Modra <[email protected]> | |
3030 | ||
3031 | * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic | |
3032 | here.. | |
3033 | (elf32_hppa_adjust_dynamic_symbol): ..nor here.. | |
3034 | (allocate_plt_and_got_and_discard_relocs): .. instead do so here | |
3035 | after gc has run. | |
3036 | ||
3037 | * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete. | |
3038 | (IS_ABSOLUTE_RELOC): Define. | |
3039 | (elf32_hppa_link_hash_entry): Always include reloc_entries field. | |
3040 | (hppa_link_hash_newfunc): Always init it. | |
3041 | (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to | |
3042 | create COPY relocs only when the reloc is in a read-only section. | |
3043 | Instead, allocate space for a dynamic reloc to reference the | |
3044 | library symbol directly. Keep track of space we allocate using | |
3045 | relocs_entries. | |
3046 | (hppa_discard_copies): Delete, and move code to.. | |
3047 | (allocate_plt_and_got): ..here. Rename to | |
3048 | allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic | |
3049 | relocs for non-shared link. | |
3050 | (elf32_hppa_size_dynamic_sections): Update calls to above. | |
3051 | (elf32_hppa_relocate_section): Write out the dynamic relocs used | |
3052 | in lieu of COPY relocs. | |
3053 | ||
3054 | * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic | |
3055 | here.. | |
3056 | (elf_i386_adjust_dynamic_symbol): ..nor here.. | |
3057 | (allocate_plt_and_got_and_discard_relocs): .. instead do so here | |
3058 | after gc has run. | |
3059 | (elf_i386_size_dynamic_sections): Fix a comment. | |
3060 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code | |
3061 | involved in writing reloc out. | |
3062 | ||
3063 | 2001-06-25 Alan Modra <[email protected]> | |
3064 | ||
3065 | * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>): | |
3066 | Ensure syms are dynamic if we might be emitting a reloc. | |
3067 | (allocate_plt_and_got_and_discard_relocs): Don't discard relocs | |
3068 | for undefweak or undefined syms.. | |
3069 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit. | |
3070 | ||
3071 | * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard | |
3072 | relocs without ELF_LINK_HASH_DEF_DYNAMIC set. | |
3073 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove | |
3074 | redundant bfd_link_hash_defined, bfd_link_hash_defweak test. | |
3075 | ||
3076 | 2001-06-24 H.J. Lu <[email protected]> | |
3077 | ||
3078 | * cpu-i960.c (scan_960_mach): Don't modify const char *. Use | |
3079 | strncasecmp/strcasecmp instead of strncmp/strcmp. | |
3080 | ||
3081 | 2001-06-23 H.J. Lu <[email protected]> | |
3082 | ||
3083 | * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>): | |
3084 | Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined | |
3085 | in the regular object file and treat the weak definition as | |
3086 | the normal one. | |
3087 | ||
3088 | 2001-06-23 Alan Modra <[email protected]> | |
3089 | ||
3090 | * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten | |
3091 | unresolved_reloc test to exclude cases where we use "relocation" | |
3092 | before setting it to point into the .got. Reinstate fudge for | |
3093 | unresolved relocs in debugging sections. | |
3094 | ||
3095 | * elf32-i386.c (elf_i386_relocate_section): Replace ugly | |
3096 | complicated tests for unresolvable relocs with a simple direct | |
3097 | scheme using "unresolved_reloc" var. | |
3098 | ||
3099 | * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to | |
3100 | elf_i386_dyn_relocs. Update comment. | |
3101 | (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to | |
3102 | dyn_relocs. | |
3103 | (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change | |
3104 | others to aborts. | |
3105 | (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with | |
3106 | abort. | |
3107 | (elf_i386_size_dynamic_sections): Likewise. | |
3108 | (elf_i386_finish_dynamic_symbol): Likewise. | |
3109 | (elf_i386_finish_dynamic_sections): Likewise. | |
3110 | (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error | |
3111 | handling code. | |
3112 | ||
3113 | Avoid creating COPY relocs if possible. | |
3114 | * elf32-i386.c (elf_i386_check_relocs): Tweak condition under | |
3115 | which .got created. Mark symbols used by R_386_32 and R_386_PC32 | |
3116 | relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the | |
3117 | reloc is in a read-only section. Instead, allocate space for a | |
3118 | dynamic reloc to reference the library symbol directly. Keep | |
3119 | track of space we allocate using pcrel_relocs_copied. | |
3120 | (discard_copies): Delete, and move code to .. | |
3121 | (allocate_plt_and_got): ..here. Rename to | |
3122 | allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic | |
3123 | relocs for non-shared link. | |
3124 | (elf_i386_size_dynamic_sections): Update calls to above functions. | |
3125 | (elf_i386_relocate_section): Write out the dynamic relocs. Add | |
3126 | more ugly logic to avoid "unresolvable relocation" error. Use | |
3127 | htab shortcut in place of elf_hash_table macro. | |
3128 | (elf_i386_finish_dynamic_sections): Allow that dynamic .got may | |
3129 | not always be created now. | |
3130 | ||
3131 | 2001-06-20 Bo Thorsen <[email protected]> | |
3132 | ||
3133 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of | |
3134 | shared libraries. | |
3135 | ||
3136 | 2001-06-18 Thiemo Seufer <[email protected]> | |
3137 | ||
3138 | * configure.host (mips64-*-linux): Reformat. | |
3139 | ||
3140 | 2001-06-21 Alan Modra <[email protected]> | |
3141 | ||
3142 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always | |
3143 | allocate local .got space. Use shortcuts from hash table for .got | |
3144 | and .plt rather than comparing section names. | |
3145 | (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than | |
3146 | adjusting index into local_got_refcounts to document what we are | |
3147 | really doing. | |
3148 | (elf32_hppa_relocate_section): Similarly for local_plt_offsets. | |
3149 | Tidy .got and .plt error checking. | |
3150 | ||
3151 | 2001-06-20 Catherine Moore <[email protected]> | |
3152 | ||
3153 | * elf-bfd.h (struct elf_backend_data): | |
3154 | elf_backend_emit_relocs: New field: Function for emitting | |
3155 | relocs. | |
3156 | elf_backend_count_relocs: New field: Function for determining | |
3157 | the number of relocs to be emitted. | |
3158 | * elfxx-target.h: Provide default (NULL) values for | |
3159 | elf_backend_emit_relocs and elf_backend_count_relocs. | |
3160 | * elflink.h (elf_link_size_reloc_section): Make the hash table | |
3161 | big enough to hold the relocs counted by either reloc_count or | |
3162 | o->reloc_count. | |
3163 | (elf_bfd_final_link) emit_relocs: New boolean, set if relocs | |
3164 | should be emitted, either because of a command line option | |
3165 | stored in the info structure or because the target provides a | |
3166 | special reloc emitting function. | |
3167 | If the target provides a reloc counting function use it, | |
3168 | unless performing a relocatable link or emitting all relocs. | |
3169 | Also set the SEC_RELOC flag on any output section which will | |
3170 | contain relocs. | |
3171 | (elf_link_input_bfd): emit_relocs: New boolean, set if relocs | |
3172 | should be emitted, either because of a command line option | |
3173 | stored in the info structure or because the target provides a | |
3174 | special reloc emitting function. | |
3175 | If the target provides a reloc emitting function, use it, | |
3176 | unless performing a relocatable link or emitting all relocs. | |
3177 | ||
3178 | 2001-06-20 H.J. Lu <[email protected]> | |
3179 | ||
3180 | * elf32-i386.c (elf_i386_size_dynamic_sections): Always | |
3181 | allocate local .got space. | |
3182 | ||
3183 | 2001-06-19 Andreas Jaeger <[email protected]> | |
3184 | ||
3185 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of | |
3186 | dynamic symbols. | |
3187 | ||
3188 | 2001-06-18 Hans-Peter Nilsson <[email protected]> | |
3189 | ||
3190 | * elflink.h (struct elf_assign_sym_version_info): Remove member | |
3191 | export_dynamic. All users changed to use info member. | |
3192 | NAME(bfd_elf,size_dynamic_sections)): Remove parameter | |
3193 | export_dynamic, instead use member in parameter info. | |
3194 | * bfd-in.h (bfd_elf32_size_dynamic_sections, | |
3195 | bfd_elf64_size_dynamic_sections): Update prototype. | |
3196 | * bfd-in2.h: Regenerate. | |
3197 | ||
3198 | 2001-06-18 H.J. Lu <[email protected]> | |
3199 | ||
3200 | * elflink.h (elf_info_failed): Add a new field, verdefs. | |
3201 | (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to | |
3202 | elf_export_symbol. | |
3203 | (elf_export_symbol): Check eif->verdefs to decide if a symbol | |
3204 | should be exported. | |
3205 | ||
3206 | 2001-06-17 H.J. Lu <[email protected]> | |
3207 | ||
3208 | * elf32-mips.c (mips_elf_link_hash_entry): Add a new field, | |
3209 | readonly_reloc, to record if a relocation in the .rel.dyn | |
3210 | section is against a read-only section. | |
3211 | (mips_elf_link_hash_newfunc): Initialize the readonly_reloc | |
3212 | field to false. | |
3213 | (_bfd_mips_elf_check_relocs): Record if there is a relocation | |
3214 | in the .rel.dyn section against a read-only section by setting | |
3215 | DF_TEXTREL or readonly_reloc. | |
3216 | (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if | |
3217 | it is true. | |
3218 | (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if | |
3219 | there is a relocation in the .rel.dyn section against a | |
3220 | read-only section. | |
3221 | (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if | |
3222 | DF_TEXTREL is set. | |
3223 | ||
3224 | 2001-06-12 Nick Clifton <[email protected]> | |
3225 | ||
3226 | * coffcode.h (styp_flags_to_sec_flags): Change to a boolean | |
3227 | function. Move flagword result into parameter list. Remove | |
3228 | comment about setting bfd_error_handler to intercept failure | |
3229 | results. | |
3230 | * coffgen.c (make_a_section_from_file): Examine result of | |
3231 | calling bfd_coff_styp_to_sec_flags and pass a failure back to | |
3232 | caller. | |
3233 | * ecoff.h (styp_flags_to_sec_flags): Change to a boolean | |
3234 | function. Move flagword result into parameter list. | |
3235 | * libcoff.h: Regenerate. | |
3236 | * libecoff.h: Regenerate. | |
3237 | ||
3238 | 2001-06-13 Nick Clifton <[email protected]> | |
3239 | ||
3240 | * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data | |
3241 | section is going to follow it. | |
3242 | ||
3243 | 2001-06-12 Catherine Moore <[email protected]> | |
3244 | ||
3245 | * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN | |
3246 | with the file_align entry from elf_backend_data. | |
3247 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
3248 | (elf_gc_record_vtentry): Likewise. | |
3249 | ||
3250 | 2001-06-10 Alan Modra <[email protected]> | |
3251 | ||
3252 | * elflink.h: Whitespace changes. | |
3253 | (elf_link_read_relocs_from_section): Use "unsigned int" iterator | |
3254 | rather than "unsigned char". | |
3255 | (elf_link_output_relocs): Likewise. | |
3256 | (elf_link_input_bfd): Likewise. | |
3257 | (elf_reloc_link_order): LIkewise. | |
3258 | * elf.c: s/CONST/const/. Whitespace changes. | |
3259 | * elf32-mips.c: Formatting fix. | |
3260 | ||
3261 | * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h. | |
3262 | * Makefile.in: Regenerate. | |
3263 | * po/Make-in: Remove trailing tab. | |
3264 | ||
3265 | 2001-06-09 Philip Blundell <[email protected]> | |
3266 | ||
3267 | * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last | |
3268 | change. | |
3269 | (elf32_arm_plt_entry): Likewise. | |
3270 | ||
3271 | 2001-06-08 H.J. Lu <[email protected]> | |
3272 | ||
3273 | * elf.c (swap_out_syms): Keep names for global section symbols. | |
3274 | ||
3275 | 2001-06-07 H.J. Lu <[email protected]> | |
3276 | ||
3277 | * config.bfd: Put back ecoff for Linux/mips. Firmwares on some | |
3278 | MIPS-based machines need it. | |
3279 | ||
3280 | 2001-06-07 H.J. Lu <[email protected]> | |
3281 | ||
3282 | * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab | |
3283 | for SGI only. | |
3284 | ||
3285 | * config.bfd: Remove ecoff from Linux/mips. | |
3286 | ||
3287 | 2001-06-07 Andreas Jaeger <[email protected]> | |
3288 | ||
3289 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an | |
3290 | assertion. | |
3291 | (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an | |
3292 | alignment of 8 for .rela sections; handle further relocations. | |
3293 | ||
3294 | 2001-06-06 Christian Groessler <[email protected]> | |
3295 | ||
3296 | * coff-z8k.c: Fix formatting. | |
3297 | Fix howtos: howto->size was always 1. | |
3298 | ||
3299 | 2001-06-05 Thiemo Seufer <[email protected]> | |
3300 | ||
3301 | * configure.host (mips64*-*-linux*): Define. | |
3302 | ||
3303 | 2001-06-05 Alan Modra <[email protected]> | |
3304 | ||
3305 | * elf32-i386.c (elf_i386_discard_copies): Rename to | |
3306 | discard_copies, and use elf_link_hash_entry arg rather than | |
3307 | elf_i386_link_hash_entry. | |
3308 | (elf_i386_link_hash_traverse): Delete. | |
3309 | (elf_i386_size_dynamic_sections): Adjust call to discard_copies. | |
3310 | Tidy sizing of dynamic sections. | |
3311 | (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count | |
3312 | possible .plt entries. | |
3313 | (elf_i386_gc_sweep_hook): Likewise. | |
3314 | (elf_i386_adjust_dynamic_symbol): Discard .plt entries for | |
3315 | everything with plt.refcount <= 0. | |
3316 | ||
3317 | * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and | |
3318 | .relgot space here. | |
3319 | (elf_i386_gc_sweep_hook): ..and no need to deallocate here.. | |
3320 | (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and | |
3321 | .rel.plt here.. | |
3322 | (allocate_plt_and_got): ..instead do it all here. New function. | |
3323 | (elf_i386_size_dynamic_sections): Allocate local .got space and | |
3324 | call allocate_plt_and_got. No need to zap .relgot if not dynamic. | |
3325 | (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link | |
3326 | rather than gc variety). | |
3327 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
3328 | (elf_i386_relocate_section): Use it here and correct handling of | |
3329 | R_386_GOT32. Provide section and offset for "unresolvable | |
3330 | relocation" error message. | |
3331 | (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32. | |
3332 | ||
3333 | * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot, | |
3334 | sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields. | |
3335 | (elf_i386_link_hash_table_create): Init them. | |
3336 | (create_got_section): New function. | |
3337 | (elf_i386_create_dynamic_sections): New function. | |
3338 | (elf_backend_create_dynamic_sections): Set to above. | |
3339 | (elf_i386_check_relocs): Use shortcuts from hash table rather than | |
3340 | calling bfd_get_section_by_name. | |
3341 | (elf_i386_gc_sweep_hook): Likewise. | |
3342 | (elf_i386_adjust_dynamic_symbol): Likewise. | |
3343 | (elf_i386_size_dynamic_sections): Likewise. | |
3344 | (elf_i386_relocate_section): Likewise. | |
3345 | (elf_i386_finish_dynamic_sections): Likewise. | |
3346 | ||
3347 | * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms. | |
3348 | ||
3349 | 2001-06-02 H.J. Lu <[email protected]> | |
3350 | ||
3351 | * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX | |
3352 | and ELFOSABI_HPUX. | |
3353 | * elf64-hppa.c (elf64_hppa_object_p): Likewise. | |
3354 | ||
3355 | 2001-06-02 H.J. Lu <[email protected]> | |
3356 | ||
3357 | * aout-cris.c (MACHTYPE_OK): New. Defined. | |
3358 | ||
3359 | 2001-06-02 Hans-Peter Nilsson <[email protected]> | |
3360 | ||
3361 | * section.c (_bfd_strip_section_from_output): Handle NULL | |
3362 | output_section. | |
3363 | ||
3364 | 2001-06-02 H.J. Lu <[email protected]> | |
3365 | ||
3366 | * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add | |
3367 | rs6000coff64_vec only if BFD64 is defined. | |
3368 | (powerpc64-*-aix*): Enable only if BFD64 is defined. | |
3369 | ||
3370 | 2001-06-02 H.J. Lu <[email protected]> | |
3371 | ||
3372 | * coff-ia64.c (ia64coff_object_p): Rewrite with | |
3373 | external_PEI_DOS_hdr and external_PEI_IMAGE_hdr. | |
3374 | ||
3375 | 2001-06-01 Andreas Jaeger <[email protected]> | |
3376 | ||
3377 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8 | |
3378 | relocation, small reformatting. | |
3379 | ||
3380 | 2001-05-29 Andreas Jaeger <[email protected]> | |
3381 | ||
3382 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64. | |
3383 | (elf64_x86_64_relocate_section): Likewise. | |
3384 | ||
3385 | 2001-05-30 Alan Modra <[email protected]> | |
3386 | ||
3387 | * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for | |
3388 | millicode. Don't allocate .got and .rela.got space here.. | |
3389 | (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here.. | |
3390 | (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and | |
3391 | .rela.plt here.. | |
3392 | (hppa_handle_PIC_calls): ..nor here.. | |
3393 | (allocate_plt_and_got): ..instead do it all here. New function. | |
3394 | (elf32_hppa_size_dynamic_sections): Allocate local .got space and | |
3395 | call allocate_plt_and_got. No need to zap .got if not dynamic. | |
3396 | (elf32_hppa_final_link): Call regular bfd_final_link instead of | |
3397 | gc_common_final_link. | |
3398 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
3399 | (elf32_hppa_relocate_section): Use it here. | |
3400 | (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of | |
3401 | dynamic_sections_created. | |
3402 | (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym. | |
3403 | ||
3404 | 2001-05-28 Andreas Jaeger <[email protected]> | |
3405 | ||
3406 | * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the | |
3407 | generic version since we want a hashsize of 4. | |
3408 | (elf_backend_size_info): Likewise. | |
3409 | ||
3410 | 2001-05-28 Thiemo Seufer <[email protected]> | |
3411 | ||
3412 | * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of | |
3413 | a zeroing loop. | |
3414 | (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly. | |
3415 | (elf_link_input_bfd): Likewise. | |
3416 | (elf_reloc_link_order): Likewise. | |
3417 | (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64 | |
3418 | relocations correctly. | |
3419 | ||
3420 | 2001-05-28 Nicolas Pitre <[email protected]> | |
3421 | ||
3422 | * elf32-arm.h: fix PLT generation for big endian ARM | |
3423 | ||
3424 | 2001-05-28 Alan Modra <[email protected]> | |
3425 | ||
3426 | * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries | |
3427 | for symbols forced local that need plabels. | |
3428 | (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in | |
3429 | .plt.rela for local syms if non-shared. | |
3430 | (hppa_build_one_stub): Mask lsb of plt.offset. | |
3431 | (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set. | |
3432 | (clobber_millicode_symbols): Correct comment. | |
3433 | (elf32_hppa_relocate_section): Likewise. | |
3434 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
3435 | ||
3436 | 2001-05-28 Jeff Sturm <[email protected]> | |
3437 | ||
3438 | * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64. | |
3439 | * bfd-in2.h: Regenerate. | |
3440 | * libbfd.h: Regenerate. | |
3441 | * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32 | |
3442 | and BFD_RELOC_SPARC_UA64 mapping | |
3443 | * elf64-sparc.c: Likewise. | |
3444 | ||
3445 | 2001-05-25 H.J. Lu <[email protected]> | |
3446 | ||
3447 | * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo. | |
3448 | (BFD32_BACKENDS_CFILES): Remove coff-pmac.c. | |
3449 | (coff-rs6000.lo): Remove the old dependency. | |
3450 | * Makefile.in: Rebuild. | |
3451 | ||
3452 | * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with | |
3453 | coff-rs6000.lo. | |
3454 | ||
3455 | 2001-05-25 H.J. Lu <[email protected]> | |
3456 | ||
3457 | * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p, | |
3458 | rs6000coff_core_file_matches_executable_p, | |
3459 | rs6000coff_core_file_failing_command and | |
3460 | rs6000coff_core_file_failing_signal only if AIX_CORE is | |
3461 | defined. | |
3462 | (pmac_xcoff_vec): Likewise. | |
3463 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
3464 | ||
3465 | 2001-05-25 Timothy Wall <[email protected]> | |
3466 | ||
3467 | * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry | |
3468 | for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs. | |
3469 | ||
3470 | 2001-05-25 H.J. Lu <[email protected]> | |
3471 | ||
3472 | * bfd-in2.h: Regenerated. | |
3473 | * libcoff.h: Likewise. | |
3474 | ||
3475 | 2001-05-25 Alan Modra <[email protected]> | |
3476 | ||
3477 | * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow | |
3478 | undefined millicode syms in shared libs. | |
3479 | (hppa_build_one_stub): Turn BFD_ASSERTs into aborts. | |
3480 | (elf32_hppa_check_relocs): Likewise. | |
3481 | (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
3482 | (elf32_hppa_size_dynamic_sections): Likewise. | |
3483 | (elf32_hppa_relocate_section): Likewise. | |
3484 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
3485 | (elf32_hppa_finish_dynamic_sections): Likewise. | |
3486 | ||
3487 | 2001-05-24 Tom Rix <[email protected]> | |
3488 | ||
3489 | * Makefile.am coff-pmac bfd now defined in coff-rs6000.c | |
3490 | xcoff-target.h not used to define rs6000 or ppc bfd. | |
3491 | * Makefile.in same | |
3492 | ||
3493 | * bfd-in.h : (struct lineno_cache_entry) promote element "offset" | |
3494 | to 64 bit. | |
3495 | ||
3496 | * coff-rs6000.c : Many changes for 64 bit support. Move common | |
3497 | 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec | |
3498 | and pmac_xcoff_vec | |
3499 | ||
3500 | * coff64-rs6000.c : Many changes for 64 bit support. 64 bit | |
3501 | linker now supported. Explictly define the rs6000coff64_vec. | |
3502 | ||
3503 | * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support | |
3504 | (coff_print_aux) same | |
3505 | (coff_write_object_contents) same | |
3506 | (coff_slurp_line_table) same | |
3507 | ||
3508 | * coffgen.c : (coff_fix_symbol_name) formatting | |
3509 | (coff_mangle_symbols) xcoff 64 bit support | |
3510 | (coff_write_symbol) same | |
3511 | (coff_write_alien_symbol) same | |
3512 | (coff_write_native_symbol) same | |
3513 | (coff_write_symbols) same | |
3514 | (coff_get_symbol_info) same | |
3515 | (bfd_coff_get_syment) same | |
3516 | (coff_print_symbol) same | |
3517 | ||
3518 | * config.bfd : add powerpc64-*-aix* target | |
3519 | ||
3520 | * libcoff-in.h : formatting | |
3521 | ||
3522 | * libcoff.h : move xcoff extern declarations to libxcoff.h | |
3523 | ||
3524 | * libxcoff.h : New file | |
3525 | ||
3526 | * xcofflink.c : Many changes for xcoff64 support. Move common | |
3527 | structures to include/coff/xcoff.h. Move specific structure to | |
3528 | backends coff-rs6000.c and coff64-rs6000.c. Use new backend | |
3529 | functions, defined in libxcoff.h, to isolate 32/64 dependencies. | |
3530 | ||
3531 | (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for | |
3532 | aix4.2+ -binitfini. | |
3533 | ||
3534 | (xcoff_build_ldsyms) : handle special __rtinit symbol. | |
3535 | ||
3536 | 2001-05-23 Alexandre Oliva <[email protected]> | |
3537 | ||
3538 | * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo | |
3539 | s/ENTIRES/ENTRIES/. | |
3540 | ||
3541 | 2001-05-23 Thiemo Seufer <[email protected]> | |
3542 | ||
3543 | * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations. | |
3544 | * libbfd.h: Regenerate. | |
3545 | * bfd-in2.h: Regenerate. | |
3546 | ||
3547 | * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support. | |
3548 | * archures.c (bfd_mach_mips12000): Define. | |
3549 | * cpu-mips.c (arch_info_struct): Add MIPS r12k support. | |
3550 | * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k | |
3551 | support. | |
3552 | (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef. | |
3553 | * bfd-in2.h: Regenerate. | |
3554 | * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol. | |
3555 | ||
3556 | 2001-05-23 kaz Kojima <[email protected]> | |
3557 | ||
3558 | * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry, | |
3559 | elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be, | |
3560 | elf_sh_pic_plt_entry): New PLT code, that does not use r2, since | |
3561 | that is used by GCC. | |
3562 | ||
3563 | 2001-05-23 Nick Clifton <[email protected]> | |
3564 | ||
3565 | * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number | |
3566 | of entries in a structured section. | |
3567 | * elf.c: Use new macro. | |
3568 | * elf32-i386.c: Use new macro. | |
3569 | * elf32-mips.c: Use new macro. | |
3570 | * elf64-alpha.c: Use new macro. | |
3571 | * elf64-sparc.c: Use new macro. | |
3572 | * elfcode.h: Use new macro. | |
3573 | * elflink.h: Use new macro. | |
3574 | ||
3575 | 2001-05-23 Nick Clifton <[email protected]> | |
3576 | ||
3577 | * bfdint.texi: Replace -oformat with --oformat. | |
3578 | ||
3579 | 2001-05-21 Andreas Jaeger <[email protected]> | |
3580 | ||
3581 | * dwarf2.c (decode_line_info): Fix error message. | |
3582 | (read_abbrevs): Fix test for offset as suggested by Alan Modra and | |
3583 | adjust error message. | |
3584 | ||
3585 | 2001-05-18 H.J. Lu <[email protected]> | |
3586 | ||
3587 | * elflink.h (elf_link_add_object_symbols): Revert the last | |
3588 | change. | |
3589 | ||
3590 | 2001-05-17 Alan Modra <[email protected]> | |
3591 | ||
3592 | * elf32-hppa.c (clobber_millicode_symbols): Temporarily set | |
3593 | ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change. | |
3594 | (hppa_build_one_stub): Add an assert to check plt.offset. | |
3595 | ||
3596 | 2001-05-17 H.J. Lu <[email protected]> | |
3597 | ||
3598 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the | |
3599 | version definition to basename of the output filename. | |
3600 | ||
3601 | 2001-05-17 H.J. Lu <[email protected]> | |
3602 | ||
3603 | * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to | |
3604 | basename of the bfd filename. | |
3605 | ||
3606 | 2001-05-16 Alan Modra <[email protected]> | |
3607 | ||
3608 | * section.c (asection): Add linker_has_input field. | |
3609 | (STD_SECTION): Adjust initialization to suit. | |
3610 | * ecoff.c (bfd_debug_section): Likewise. | |
3611 | * bfd-in2.h: Regenerate. | |
3612 | ||
3613 | 2001-05-15 Alexandre Oliva <[email protected]> | |
3614 | ||
3615 | * elf-m10300.c (mn10300_elf_relax_section): Don't relax | |
3616 | negative 32-bit operands to 16 operands when the operand is | |
3617 | going to be zero-extended by the modified opcode. | |
3618 | ||
3619 | 2001-05-12 Peter Targett <[email protected]> | |
3620 | ||
3621 | * cpu-arc.c (arch_info_struct): Add entry 'base' representing old | |
3622 | name for 'arc5' core versions. | |
3623 | (bfd_arc_arch): Make bfd_mach_arc_6 default. | |
3624 | ||
3625 | * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default | |
3626 | architecture. | |
3627 | (arc_elf_final_write_processing): Make bfd_mach_arc_6 default. | |
3628 | ||
3629 | 2001-05-11 Jakub Jelinek <[email protected]> | |
3630 | ||
3631 | * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind | |
3632 | sections as well. | |
3633 | (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO | |
3634 | to .gnu.linkonce.t.FOO text section. | |
3635 | ||
3636 | 2001-05-11 Jakub Jelinek <[email protected]> | |
3637 | ||
3638 | * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix | |
3639 | fields, change sec into secinfo. | |
3640 | (struct sec_merge_info): Add chain, remove last fields. | |
3641 | (struct sec_merge_sec_info): Add next, sec, psecinfo fields. | |
3642 | (sec_merge_hash_lookup): If lookup could not use a string only | |
3643 | because it has bad alignment, mark the old string for deletion. | |
3644 | (sec_merge_add): Add secinfo argument. Don't compute entry's | |
3645 | position, instead record the section. | |
3646 | (sec_merge_emit): Update for the sec into secinfo change in | |
3647 | struct sec_merge_hash_entry. | |
3648 | (_bfd_merge_section): Only record the section for merging, defer | |
3649 | putting strings into the hash table. | |
3650 | (cmplengthentry, last4_eq, last_eq, record_section, merge_strings, | |
3651 | _bfd_merge_sections): New functions. | |
3652 | (_bfd_merged_section_offset): Update for the sec_merge_hash_entry | |
3653 | changes. | |
3654 | * libbfd-in.h (_bfd_merge_sections): Add prototype. | |
3655 | (_bfd_nolink_bfd_merge_sections): Define. | |
3656 | * libbfd.h: Likewise. | |
3657 | (bfd_generic_merge_sections): Add prototype. | |
3658 | * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections. | |
3659 | (struct bfd_target): Likewise. | |
3660 | * bfd.c (bfd_merge_sections): Define. | |
3661 | * bfd-in2.h: Rebuilt. | |
3662 | * elf.c (_bfd_elf_merge_sections): New function. | |
3663 | * elf-bfd.h (_bfd_elf_merge_sections): Add prototype. | |
3664 | * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define. | |
3665 | * reloc.c (bfd_generic_merge_sections): New function. | |
3666 | * vms.c (vms_bfd_merge_sections): New function. | |
3667 | * aout-adobe.c (aout_32_bfd_merge_sections): Define. | |
3668 | * aout-target.h (MY_bfd_merge_sections): Define. | |
3669 | * aout-tic30.c (MY_bfd_merge_sections): Define. | |
3670 | * binary.c (binary_bfd_merge_sections): Define. | |
3671 | * bout.c (b_out_bfd_merge_sections): Define. | |
3672 | * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define. | |
3673 | * coffcode.c (coff_bfd_merge_sections): Define. | |
3674 | * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define. | |
3675 | * i386msdos.c (msdos_bfd_merge_sections): Define. | |
3676 | * i386os9k.c (os9k_bfd_merge_sections): Define. | |
3677 | * ieee.c (ieee_bfd_merge_sections): Define. | |
3678 | * ihex.c (ihex_bfd_merge_sections): Define. | |
3679 | * nlm-target.h (nlm_bfd_merge_sections): Define. | |
3680 | * oasys.c (oasys_bfd_merge_sections): Define. | |
3681 | * ppcboot.c (ppcboot_bfd_merge_sections): Define. | |
3682 | * som.c (som_bfd_merge_sections): Define. | |
3683 | * srec.c (srec_bfd_merge_sections): Define. | |
3684 | * tekhex.c (tekhex_bfd_merge_sections): Define. | |
3685 | * versados.c (versados_bfd_merge_sections): Define. | |
3686 | * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define. | |
3687 | ||
3688 | 2001-05-11 Nick Clifton <[email protected]> | |
3689 | ||
3690 | * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr' | |
3691 | to be unsigned long, in order to match its use. | |
3692 | ||
3693 | 2001-05-10 H.J. Lu <[email protected]> | |
3694 | ||
3695 | * linker.c (_bfd_generic_link_add_one_symbol): Check loop on | |
3696 | indirect symbols. | |
3697 | ||
3698 | 2001-05-09 H.J. Lu <[email protected]> | |
3699 | ||
3700 | * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate | |
3701 | versymhdr->sh_size bytes for extversym instead of hdr->sh_size. | |
3702 | Remove the unused veriable `dynver'. | |
3703 | ||
3704 | 2001-05-08 Ian Lance Taylor <[email protected]> | |
3705 | ||
3706 | * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is | |
3707 | NULL or is not COFF. | |
3708 | (coff_i386_rtype_to_howto): Don't dump core if output section | |
3709 | owner is not COFF. | |
3710 | ||
3711 | 2001-05-07 Thiemo Seufer <[email protected]> | |
3712 | ||
3713 | * ecoff.c (bfd_debug_section): Fix initialization. | |
3714 | * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it | |
3715 | is always a positive integer. Cast away sign mismatch. | |
3716 | * elf32-mips.c: Fix misleading comment and typo. | |
3717 | (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use | |
3718 | correct data type. | |
3719 | * elflink.c: Fix typo. | |
3720 | (_bfd_elf_create_dynamic_sections): Remove superfluous initialization. | |
3721 | * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch. | |
3722 | ||
3723 | 2001-05-04 Richard Henderson <[email protected]> | |
3724 | ||
3725 | * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true. | |
3726 | ||
3727 | 2001-05-04 Nick Clifton <[email protected]> | |
3728 | ||
3729 | * elf32-arm.h (elf32_arm_final_link_relocate): Set | |
3730 | EF_ARM_HASENTRY if the start address is set. | |
3731 | ||
3732 | 2001-05-03 Nick Clifton <[email protected]> | |
3733 | ||
3734 | * targets.c (_bfd_target_vector_entries): Compute value based on | |
3735 | the size of the _bfd_target_vector and not bfd_target_vector. | |
3736 | ||
3737 | 2001-05-03 H.J. Lu <[email protected]> | |
3738 | ||
3739 | * elfcode.h: Include "libiberty.h". | |
3740 | ||
3741 | * elflink.h (elf_link_add_object_symbols): Set | |
3742 | elf_dt_name (abfd) to basename of the bfd filename. | |
3743 | (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename | |
3744 | of the bfd filename. | |
3745 | ||
3746 | 2001-05-03 Andreas Jaeger <[email protected]> | |
3747 | ||
3748 | * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute. | |
3749 | (elf_generic_info_to_howto_rel): Likewise. | |
3750 | * coff-alpha.c (reloc_nil): Likewise. | |
3751 | (alpha_ecoff_bad_format_hook): Likewise. | |
3752 | (alpha_adjust_reloc_out): Likewise. | |
3753 | (alpha_bfd_reloc_type_lookup): Likewise. | |
3754 | (alpha_convert_external_reloc): Likewise. | |
3755 | * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise. | |
3756 | (elf64_alpha_reloc_bad): Likewise. | |
3757 | (elf64_alpha_reloc_gpdisp): Likewise. | |
3758 | (elf64_alpha_bfd_reloc_type_lookup): Likewise. | |
3759 | (elf64_alpha_info_to_howto): Likewise. | |
3760 | (elf64_alpha_add_symbol_hook): Likewise. | |
3761 | (elf64_alpha_create_got_section): Likewise. | |
3762 | (elf64_alpha_is_local_label_name): Likewise. | |
3763 | (elf64_alpha_merge_ind_symbols): Likewise. | |
3764 | * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise. | |
3765 | (mips_elf64_get_reloc_upper_bound): Likewise. | |
3766 | * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise. | |
3767 | (nlm_alpha_get_public_offset): Likewise. | |
3768 | ||
3769 | 2001-05-02 Johan Rydberg <[email protected]> | |
3770 | ||
3771 | * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain | |
3772 | about overflow in R_OPENRISC_LO_16_IN_INSN and | |
3773 | R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c | |
3774 | ||
3775 | 2001-04-30 H.J. Lu <[email protected]> | |
3776 | ||
3777 | * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1 | |
3778 | only for ELF_LINK_FORCED_LOCAL. | |
3779 | * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. | |
3780 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise. | |
3781 | * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise. | |
3782 | ||
3783 | * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL | |
3784 | if the symbol has hidden or internal visibility. | |
3785 | ||
3786 | 2001-04-30 Alan Modra <[email protected]> | |
3787 | ||
3788 | * elf32-hppa.c (final_link_relocate): Branch to .+8 for | |
3789 | calls to undefined weak symbols. | |
3790 | ||
3791 | 2001-04-30 Andreas Jaeger <[email protected]>, Andreas Schwab <[email protected]> | |
3792 | ||
3793 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for | |
3794 | R_X86_64_GOTPCREL, don't use assignments instead of comparisons. | |
3795 | ||
3796 | 2001-04-27 Andreas Jaeger <[email protected]> | |
3797 | ||
3798 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap | |
3799 | out handled entries. | |
3800 | (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries. | |
3801 | (elf64_x86_64_relocate_section): Fix GOTPCREL calculation. | |
3802 | (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and | |
3803 | GOT32. | |
3804 | ||
3805 | 2001-04-27 Sean McNeil <[email protected]> | |
3806 | ||
3807 | * config.bfd: Add arm-vxworks target. | |
3808 | * coff-arm (coff_arm_relocate_section): Add in symbol value to | |
3809 | addend (fro VXworks targets). | |
3810 | ||
3811 | 2001-04-26 H.J. Lu <[email protected]> | |
3812 | ||
3813 | * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is | |
3814 | valid. | |
3815 | ||
3816 | 2001-04-25 Frank Ch. Eigler <[email protected]> | |
3817 | ||
3818 | * bfd-in.h (bfd_cache_close): Declare newly exported function. | |
3819 | * bfd-in2.h: Regenerated. | |
3820 | ||
3821 | 2001-04-24 Jakub Jelinek <[email protected]> | |
3822 | ||
3823 | * merge.c (struct sec_merge_hash_entry): Add alignment field. | |
3824 | (struct sec_merge_hash): Remove alignment_power. | |
3825 | (sec_merge_hash_newfunc): Clear alignment. | |
3826 | (sec_merge_hash_lookup): Pass alignment as argument. | |
3827 | Use hashp->root.next, not hashp->next to walk the hash chain. | |
3828 | If a string already in the hashtable does not have required | |
3829 | alignment, create a new hashtable entry. | |
3830 | (sec_merge_init): Remove alignment_power argument. | |
3831 | (sec_merge_add): Add alignment argument. | |
3832 | (sec_merge_emit): Alignment is now a per-entity thing, not per | |
3833 | section. | |
3834 | (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections | |
3835 | for proper alignment. | |
3836 | Pass alignment information to sec_merge_add. | |
3837 | ||
3838 | 2001-04-24 Christian Groessler <[email protected]> | |
3839 | ||
3840 | * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR | |
3841 | and R_REL16 reloc types; accept odd values for R_REL16 type | |
3842 | ||
3843 | 2001-04-24 Johan Rydberg <[email protected]> | |
3844 | ||
3845 | * cpu-openrisc.c: New file. | |
3846 | * elf32-openrisc.c: Likewise. | |
3847 | ||
3848 | * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo. | |
3849 | (ALL_MACHINES_CFILES): Add cpu-openrisc.c. | |
3850 | (BFD32_BACKENDS): Add elf32-openrisc.lo. | |
3851 | (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c. | |
3852 | (cpu-openrisc.lo, elf32-openrisc.lo): New rules. | |
3853 | * Makefile.in: Regenerated. | |
3854 | * config.bfd: (openrisc-*-elf): New target. | |
3855 | * configure.in (bfd_elf32_openrisc_vec): New vector. | |
3856 | * configure: Regenerated. | |
3857 | * libbfd.h: Regenerated. | |
3858 | * bfd-in2.h: Regenerated. | |
3859 | * reloc.c: Add OpenRISC relocations. | |
3860 | * targets.c (bfd_elf32_openrisc_vec): Declare. | |
3861 | (bfd_target_vect): Add bfd_elf32_openrisc_vec. | |
3862 | * archures.c (enum bfd_architecture): Add bfd_arch_openrisc. | |
3863 | (bfd_openrisc_arch): Declare. | |
3864 | (bfd_archures_list): Add bfd_openrisc_arch. | |
3865 | * elf.c (prep_headers): Add bfd_arch_openrisc. | |
3866 | ||
3867 | 2001-04-23 Bo Thorsen <[email protected]> | |
3868 | ||
3869 | * elf64-x86-64.c: Add c++ vtable hack. | |
3870 | Small whitespace and comment changes. | |
3871 | ||
3872 | 2001-04-19 Andreas Jaeger <[email protected]> | |
3873 | ||
3874 | * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions. | |
3875 | (elf64_x86_64_plt_entry): Likewise. | |
3876 | (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation. | |
3877 | (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation. | |
3878 | ||
3879 | 2001-04-17 Hans-Peter Nilsson <[email protected]> | |
3880 | ||
3881 | * elf32-cris.c: Tweak comments related to dynamic linking. | |
3882 | (cris_elf_relocate_section): When not creating shared object, fill | |
3883 | in the .got table for any symbol not in the dynamic symbol table. | |
3884 | (elf_cris_finish_dynamic_symbol): When not creating shared object, | |
3885 | only emit a .got.rela reloc if the symbol is in the dynamic symbol | |
3886 | table. | |
3887 | (cris_elf_check_relocs): Use variable r_type in all places rather | |
3888 | than the original expression. Add default case in switch for | |
3889 | reloc types. | |
3890 | (elf_cris_size_dynamic_sections): Iterate over | |
3891 | elf_cris_discard_excess_program_dynamics when not creating shared | |
3892 | library. | |
3893 | (elf_cris_discard_excess_dso_dynamics): Renamed from | |
3894 | elf_cris_discard_copies. Correct typo, s/Rel/Rela/. | |
3895 | (elf_cris_discard_excess_program_dynamics): New. | |
3896 | ||
3897 | 2001-04-14 Mark Elbrecht <[email protected]> | |
3898 | ||
3899 | * coffcode.h (coff_write_object_contents): Use | |
3900 | bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out. | |
3901 | ||
3902 | 2001-04-14 H.J. Lu <[email protected]> | |
3903 | ||
3904 | * bfd-in2.h: Regenerate. | |
3905 | ||
3906 | 2001-04-14 Jakub Jelinek <[email protected]> | |
3907 | ||
3908 | * section.c (STD_SECTION): Add entsize. | |
3909 | ||
3910 | 2001-04-13 H.J. Lu <[email protected]> | |
3911 | ||
3912 | * section.c (SEC_MERGE): Define new flag for merging. | |
3913 | (SEC_STRINGS): Likewise. | |
3914 | (entsize): New field. | |
3915 | ||
3916 | 2001-04-13 Roger Sayle <[email protected]> | |
3917 | ||
3918 | * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section | |
3919 | flag on pe-i386 targets. | |
3920 | ||
3921 | 2001-04-13 Jakub Jelinek <[email protected]> | |
3922 | ||
3923 | * libbfd-in.h (_bfd_merge_section): New. | |
3924 | (_bfd_write_merged_section): New. | |
3925 | (_bfd_merged_section_offset): New. | |
3926 | * libbfd.h: Rebuilt. | |
3927 | * linker.c (_bfd_generic_link_output_symbols): Handle | |
3928 | discard_sec_merge. | |
3929 | * aoutx.h (aout_link_write_symbols): Likewise. | |
3930 | * pdp11.c (aout_link_write_symbols): Likewise. | |
3931 | * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section. | |
3932 | (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE | |
3933 | sections. | |
3934 | (elf_link_sec_merge_syms): New. | |
3935 | (elf_link_input_bfd): Call _bfd_merged_section_offset | |
3936 | and _bfd_write_merged_section. | |
3937 | Handle discard_sec_merge. | |
3938 | * elf-bfd.h (struct elf_link_hash_table): Add merge_info | |
3939 | field. | |
3940 | (struct bfd_elf_section_data): Likewise. | |
3941 | * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and | |
3942 | SEC_STRINGS section flags and entsize from their ELF counterparts. | |
3943 | (_bfd_elf_link_hash_table_init): Initialize merge_info. | |
3944 | (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize | |
3945 | from their BFD counterparts. | |
3946 | * merge.c: New file. | |
3947 | * Makefile.am: Add strtab.lo. | |
3948 | * Makefile.in: Rebuilt. | |
3949 | ||
3950 | 2001-04-09 Hans-Peter Nilsson <[email protected]> | |
3951 | ||
3952 | * elflink.h (elf_fix_symbol_flags): For non-default visibilities, | |
3953 | only hide symbols marked STV_INTERNAL or STV_HIDDEN. | |
3954 | ||
3955 | 2001-04-05 Steven J. Hill <[email protected]> | |
3956 | ||
3957 | * config.bfd (mips*el*-*-linux-gnu*): Use traditional little | |
3958 | endian MIPS ELF target. | |
3959 | * config.bfd (mips*-*-linux-gnu*): Use traditional big endian | |
3960 | MIPS ELF target. | |
3961 | ||
3962 | * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional | |
3963 | 64bit big endian MIPS ELF target. | |
3964 | (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little | |
3965 | endian MIPS ELF target. | |
3966 | * configure: Regenerated. | |
3967 | ||
3968 | * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and | |
3969 | little endian targets. | |
3970 | (mips_elf_sym_is_global): Handle traditional targets. | |
3971 | ||
3972 | * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional | |
3973 | 64bit big endian MIPS ELF target. | |
3974 | (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little | |
3975 | endian MIPS ELF target. | |
3976 | ||
3977 | * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec | |
3978 | and bfd_elf64_tradlittlemips_vec. | |
3979 | ||
3980 | 2001-04-05 David Mosberger <[email protected]> | |
3981 | ||
3982 | * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an | |
3983 | ordinary "progbits" section. | |
3984 | ||
3985 | 2001-04-04 Alan Modra <[email protected]> | |
3986 | ||
3987 | * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol | |
3988 | when -Bsymbolic causes a symbol to no longer need a .plt entry. | |
3989 | ||
3990 | 2001-04-03 David Mosberger <[email protected]> | |
3991 | ||
3992 | * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted. | |
3993 | ||
3994 | 2001-03-30 H.J. Lu <[email protected]> | |
3995 | ||
3996 | * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ... | |
3997 | (PEI_DEFAULT_TARGET_SUBSYSTEM): This. | |
3998 | ||
3999 | 2001-03-26 H.J. Lu <[email protected]> | |
4000 | ||
4001 | * elf32-gen.c (elf32_generic_link_add_symbols): New. Check | |
4002 | if there are any relocations for generic ELF. | |
4003 | (bfd_elf32_bfd_link_add_symbols): Defined to | |
4004 | elf32_generic_link_add_symbols. | |
4005 | * elf64-gen.c (elf64_generic_link_add_symbols): New. Check | |
4006 | if there are any relocations for generic ELF. | |
4007 | (bfd_elf64_bfd_link_add_symbols): Defined to | |
4008 | elf64_generic_link_add_symbols. | |
4009 | ||
4010 | 2001-03-23 Nick Clifton <[email protected]> | |
4011 | ||
4012 | * Makefile.am (BUILD_CFILES): New variable: List of C source | |
4013 | files created in build directory. | |
4014 | (BUILD_HFILES): New variable: List of header files created in | |
4015 | build directory. | |
4016 | (POTFILES): Delete. | |
4017 | (po/POTFILES.in): Replace rule with empty entry. | |
4018 | (po/SRC-POTFILES.in): New rule: Create a list of source files | |
4019 | in the source directory. | |
4020 | (po/BLD-POTFILES.in): New rule: Create a list of source files | |
4021 | in the build directory. | |
4022 | (MOSTLYCLEAN): Do not delete source files created in build | |
4023 | directory. | |
4024 | * Makefile.in: Regenerate. | |
4025 | * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in | |
4026 | into po/Makefile. | |
4027 | * configure: Regenerate. | |
4028 | ||
4029 | * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES | |
4030 | and BLD_POTFILES. | |
4031 | Add .. to the search path when building bfd.pot. | |
4032 | Delete POTFILES when performing distclean. | |
4033 | Add comment describing why distclean is broken in maintainer mode. | |
4034 | * po/POTFILES.in: Delete. | |
4035 | * po/SRC-POTFILES.in: New file. | |
4036 | * po/BLD-POTFILES.in: New file. | |
4037 | * po/bfd.pot: Regenerate. | |
4038 | ||
4039 | 2001-03-22 Hans-Peter Nilsson <[email protected]> | |
4040 | ||
4041 | * elf32-cris.c: Shlib and PIC support. PCREL tweaks. | |
4042 | (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got, | |
4043 | elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc, | |
4044 | elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol, | |
4045 | elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol, | |
4046 | elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New | |
4047 | functions. | |
4048 | (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL, | |
4049 | R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false. | |
4050 | <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE, | |
4051 | R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT, | |
4052 | R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>: | |
4053 | New HOWTO members for new relocs. | |
4054 | (cris_reloc_map): Map new relocs. | |
4055 | (ELF_DYNAMIC_INTERPRETER): Define. | |
4056 | (PLT_ENTRY_SIZE): Define. | |
4057 | (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry, | |
4058 | elf_cris_pic_plt_entry): New, PLT templates. | |
4059 | (struct elf_cris_pcrel_relocs_copied, struct | |
4060 | elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New. | |
4061 | (elf_cris_link_hash_traverse, elf_cris_hash_table): Define. | |
4062 | (cris_final_link_relocate): Check that 16-bit GOT relocs have | |
4063 | positive values. Adjust PCREL relocs to be relative to location | |
4064 | after relocation. | |
4065 | (cris_elf_relocate_section): Handle relocations to dynamic | |
4066 | objects. Handle new relocations. Call error handler when seeing | |
4067 | non-PIC relocation for read-only sections while generating shared | |
4068 | object. | |
4069 | (cris_elf_check_relocs): Set reference counts for GOT and PLT | |
4070 | entries. | |
4071 | (bfd_elf32_bfd_link_hash_table_create, | |
4072 | elf_backend_adjust_dynamic_symbol, | |
4073 | elf_backend_size_dynamic_sections, | |
4074 | elf_backend_finish_dynamic_symbol, | |
4075 | elf_backend_finish_dynamic_sections, | |
4076 | elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link, | |
4077 | elf_backend_hide_symbol, elf_backend_want_got_plt, | |
4078 | elf_backend_plt_readonly, elf_backend_want_plt_sym, | |
4079 | elf_backend_got_header_size, elf_backend_plt_header_size): | |
4080 | Define. | |
4081 | ||
4082 | * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT, | |
4083 | BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE, | |
4084 | BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT, | |
4085 | BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT, | |
4086 | BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL, | |
4087 | BFD_RELOC_CRIS_32_PLT_PCREL): New relocs. | |
4088 | * bfd-in2.h, libbfd.h: Regenerate. | |
4089 | ||
4090 | 2001-03-21 Diego Novillo <[email protected]> | |
4091 | ||
4092 | (_bfd_mips_elf_relocate_section): Give a better error message when | |
4093 | a relocation is not recognized. | |
4094 | ||
4095 | 2001-03-21 Alan Modra <[email protected]> | |
4096 | ||
4097 | * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section | |
4098 | non-NULL before attempting to dereference. | |
4099 | ||
4100 | 2001-03-20 H.J. Lu <[email protected]> | |
4101 | ||
4102 | * configure.in: Remove the redundent AC_ARG_PROGRAM. | |
4103 | * configure: Rebuild. | |
4104 | ||
4105 | 2001-03-20 Andreas Schwab <[email protected]> | |
4106 | ||
4107 | * elf32-m68k.c (elf_m68k_relocate_section): Don't need the | |
4108 | relocation value when resolving a reference from a debugging | |
4109 | section. | |
4110 | ||
4111 | 2001-03-16 Scott Thomason <[email protected]> | |
4112 | ||
4113 | * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors. | |
4114 | (xcoff64_swap_sym_out): Fix syntax errors. | |
4115 | ||
4116 | 2001-03-16 Richard Sandiford <[email protected]> | |
4117 | ||
4118 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning. | |
4119 | ||
4120 | 2001-03-15 Alan Modra <[email protected]> | |
4121 | ||
4122 | * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call. | |
4123 | (hppa_link_hash_newfunc): Init it. | |
4124 | (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller | |
4125 | section appears to be non-PIC. | |
4126 | (final_link_relocate): Likewise. | |
4127 | (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any | |
4128 | possible candidate function, and set pic_call for those that will | |
4129 | only have a .plt entry for the PIC call stub. | |
4130 | (hppa_handle_PIC_calls): Set maybe_pic_call. | |
4131 | ||
4132 | 2001-03-12 DJ Delorie <[email protected]> | |
4133 | ||
4134 | * elf32-sh.c (sh_elf_relocate_section): Only relocation | |
4135 | R_SH_DIR8WP* relocs if they're against external symbols, else | |
4136 | they're just for relaxing. Validate the reloc values. | |
4137 | ||
4138 | 2001-03-12 Stefan Geuken <[email protected]> | |
4139 | ||
4140 | * binary.c (bfd_external_binary_architecture): Declare. | |
4141 | (binary_object_p): If bfd_external_binary_architecture is defined, | |
4142 | set the architecture to this string. | |
4143 | ||
4144 | 2001-03-11 Philip Blundell <[email protected]> | |
4145 | ||
4146 | * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT | |
4147 | entries that could serve as a definition for a weak symbol. | |
4148 | ||
4149 | 2001-03-08 Nick Clifton <[email protected]> | |
4150 | ||
4151 | * Most files: Update copyright notices using Perl script created | |
4152 | by Kevin Buettner <[email protected]>. | |
4153 | ||
4154 | 2001-03-07 Nick Clifton <[email protected]> | |
4155 | ||
4156 | * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise | |
4157 | prior patch on ! defined OLD_ARM_ABI. | |
4158 | ||
4159 | 2001-03-07 Andreas Jaeger <[email protected]> | |
4160 | ||
4161 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of | |
4162 | some relocation values. | |
4163 | ||
4164 | 2001-03-06 Nick Clifton <[email protected]> | |
4165 | ||
4166 | * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero | |
4167 | of offset in BLX(1) instruction. | |
4168 | * coff-arm.c (coff_arm_relocate_section): Clear bit zero of | |
4169 | offset in BLX(1) instruction. | |
4170 | Fix formatting. | |
4171 | ||
4172 | 2001-03-06 Nick Clifton <[email protected]> | |
4173 | ||
4174 | * coff-arm.c (coff_arm_reloc_type_lookup): Add | |
4175 | BFD_RELOC_THUMB_PCREL_BLX. | |
4176 | ||
4177 | 2001-03-06 Igor Shevlyakov <[email protected]> | |
4178 | ||
4179 | * archures.c (bfd_default_scan): Add Coldfire CPUs. | |
4180 | * bfd-in2.h: Regenerate. | |
4181 | * cpu-m68k.c: Add Coldfire CPUs for arch table. | |
4182 | * ieee.c (ieee_write_processor): Set proper id for | |
4183 | Coldfire CPUs. | |
4184 | ||
4185 | 2001-03-01 D.J. Barrow <[email protected],[email protected]> | |
4186 | ||
4187 | * configure.in: Add s390 target. | |
4188 | * configure: Regenerate. | |
4189 | ||
4190 | 2001-02-28 Andreas Jaeger <[email protected]> | |
4191 | ||
4192 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation | |
4193 | to addend. | |
4194 | ||
4195 | 2001-02-28 Philip Blundell <[email protected]> | |
4196 | ||
4197 | * elf32-arm.h: Update mentions of renamed EF_xx constants. | |
4198 | (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2. | |
4199 | ||
4200 | 2001-02-27 H.J. Lu <[email protected]> | |
4201 | ||
4202 | * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if | |
4203 | abfd->tdata.aout_data == NULL. | |
4204 | ||
4205 | 2001-02-27 Alan Modra <[email protected]> | |
4206 | ||
4207 | * elf32-hppa.c: Correct field selector in stub comments. | |
4208 | (clobber_millicode_symbols): Formatting fix. | |
4209 | ||
4210 | * configure.in: Bump version to 2.11.90. | |
4211 | * configure: Regenerate. | |
4212 | * Makefile.am (CFILES): Rename to SOURCE_CFILES. | |
4213 | (CFILES): $SOURCE_CFILES + generated C files. | |
4214 | (POTFILES): Include $HFILES not $SOURCE_HFILES. | |
4215 | Run "make dep-am" | |
4216 | * Makefile.in: Regenerate. | |
4217 | * doc/Makefile.in: This too. | |
4218 | ||
4219 | 2001-02-26 Timothy Wall <[email protected]> | |
4220 | ||
4221 | * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete | |
4222 | comments. | |
4223 | ||
4224 | 2001-02-26 Nick Clifton <[email protected]> | |
4225 | ||
4226 | * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy | |
4227 | up, replacing multiple if statements with a switch. | |
4228 | (handle_COMDAT): New function. | |
4229 | ||
4230 | 2001-02-26 H.J. Lu <[email protected]> | |
4231 | ||
4232 | * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue | |
4233 | a warning for section flags we do not handle instead of | |
4234 | aborting. | |
4235 | ||
4236 | 2001-02-26 Andreas Jaeger <[email protected]> | |
4237 | ||
4238 | * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries. | |
4239 | ||
4240 | 2001-02-22 Timothy Wall <[email protected]> | |
4241 | ||
4242 | * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey). | |
4243 | * configure.in: Add objects for elf64_ia64_aix vectors. | |
4244 | * configure: Regenerated. | |
4245 | * configure.host: Recognize ia64-*-aix*. | |
4246 | * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors | |
4247 | for AIX. AIX5 requires most relocations to be dynamic (*all* | |
4248 | binaries are somewhat similar to shared libraries). | |
4249 | * targets.c: Add elf64_ia64_aix vectors. | |
4250 | ||
4251 | 2001-02-21 David Mosberger <[email protected]> | |
4252 | ||
4253 | * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for | |
4254 | C8 said "1" instead of "8". Clarify error string for IMM22: | |
4255 | "signed integer" instead of just "integer". | |
4256 | ||
4257 | 2001-02-20 Andreas Jaeger <[email protected]> | |
4258 | ||
4259 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make | |
4260 | PLT entries that could serve as a definition for a weak symbol. | |
4261 | ||
4262 | 2001-02-19 Jakub Jelinek <[email protected]> | |
4263 | ||
4264 | * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT | |
4265 | entries that could serve as a definition for a weak symbol. | |
4266 | * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise. | |
4267 | ||
4268 | 2001-02-18 David O'Brien <obrien@FreeBSD> | |
4269 | ||
4270 | * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat | |
4271 | FreeBSD/i386-CURRENT differently until I can figure out the needed | |
4272 | corefile changes. | |
4273 | * configure: Regenerate. | |
4274 | * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm, | |
4275 | FreeBSD/PowerPC, and FreeBSD/sparc64. | |
4276 | ||
4277 | 2001-02-18 lars brinkhoff <[email protected]> | |
4278 | ||
4279 | * Makefile.am: Add PDP-11 a.out target. | |
4280 | * config.bfd: Likewise. | |
4281 | * configure.in: Likewise. | |
4282 | * targets.c: Likewise. | |
4283 | * archures.c: Likewise. | |
4284 | * bfd-in2.h: Likewise. Add PDP-11 relocations. | |
4285 | * libbfd.h: Add PDP-11 relocations. | |
4286 | * reloc.c: Likewise. | |
4287 | * cpu-pdp11.c: New file. | |
4288 | * pdp11.c: New file. | |
4289 | ||
4290 | * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define. | |
4291 | (GET_SWORD) [ARCH_SIZE==16]: Likewise. | |
4292 | (GET_SWORD) [ARCH_SIZE==16]: Likewise. | |
4293 | (PUT_WORD) [ARCH_SIZE==16]: Likewise. | |
4294 | (GET_MAGIC): New macro. | |
4295 | (PUT_MAGIC): Likewise. | |
4296 | * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word. | |
4297 | ||
4298 | 2001-02-18 Jim Kingdon <[email protected]> | |
4299 | ||
4300 | * irix-core.c (irix_core_core_file_p): Set the architecture (GDB | |
4301 | multiarch needs it). | |
4302 | ||
4303 | 2001-02-18 H.J. Lu <[email protected]> | |
4304 | ||
4305 | * elflink.h (elf_link_input_bfd): Ignore invalid section symbol | |
4306 | index. | |
4307 | ||
4308 | 2001-02-18 Kazu Hirata <[email protected]> | |
4309 | ||
4310 | * vms-misc.c: Fix formatting. | |
4311 | ||
4312 | 2001-02-16 Kazu Hirata <[email protected]> | |
4313 | ||
4314 | * vms.c: Fix formatting. | |
4315 | ||
4316 | 2001-02-14 H.J. Lu <[email protected]> | |
4317 | ||
4318 | * elf.c (elf_find_function): New function. | |
4319 | (_bfd_elf_find_nearest_line): Call elf_find_function () to find | |
4320 | the file name and function name. | |
4321 | ||
4322 | 2001-02-14 Nick Clifton <[email protected]> | |
4323 | ||
4324 | * ecoff.c (bfd_debug_section): Update to initialise new fields in | |
4325 | asection structure. | |
4326 | ||
4327 | * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c | |
4328 | (BFD64_BACKENDS): Add pepigen.c | |
4329 | Add rules to create peigen.c and pepigen.c from peXXigen.c. | |
4330 | ||
4331 | * Makefile.in: Regenerate. | |
4332 | * configure: Regenerate. | |
4333 | * po/POTFILES.in: Regenerate. | |
4334 | * po/bfd.pot: Regenerate. | |
4335 | ||
4336 | 2001-02-14 H.J. Lu <[email protected]> | |
4337 | ||
4338 | * libcoff-in.h (pe_tdata): Add members target_subsystem and | |
4339 | force_minimum_alignment. | |
4340 | ||
4341 | 2001-02-14 Bo Thorsen <[email protected]> | |
4342 | ||
4343 | * elf64-x86-64.c: Small formatting fixes and rearrangements of code. | |
4344 | (elf64_86_64_size_info): Struct added to fix a problem | |
4345 | with the hashtable string entries. | |
4346 | (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt. | |
4347 | (elf64_x86_64_size_dynamic_sections): A FIXME removed. | |
4348 | (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and | |
4349 | remove the FIXME for this. | |
4350 | (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt | |
4351 | section. Also removed the FIXME for it. | |
4352 | (x86_64_elf_howto_table): Use bfd_elf_generic_reloc. | |
4353 | (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker. | |
4354 | (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing. | |
4355 | ||
4356 | 2001-02-13 Richard Henderson <[email protected]> | |
4357 | ||
4358 | * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required | |
4359 | and not user provided. | |
4360 | ||
4361 | 2001-02-13 Kazu Hirata <[email protected]> | |
4362 | ||
4363 | * vms.c (vms_print_symbol): Remove unreachable code. | |
4364 | ||
4365 | * rs6000-core.c: Fix formatting. | |
4366 | ||
4367 | 2001-02-13 David Mosberger <[email protected]> | |
4368 | ||
4369 | * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define | |
4370 | as _bfd_XXi_only_swap_filehdr_out. | |
4371 | (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set | |
4372 | pe->force_minimum_alignment to TRUE. | |
4373 | (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to | |
4374 | PEI_TARGET_SUBSYSTEM. | |
4375 | (pe_print_private_bfd_data): Call | |
4376 | _bfd_XX_print_private_bfd_data_common() instead of | |
4377 | _bfd_pe_print_private_bfd_data_common(). | |
4378 | (pe_bfd_copy_private_bfd_data): Call | |
4379 | _bfd_XX_bfd_copy_private_bfd_data_common() instead of | |
4380 | _bfd_pe_bfd_copy_private_bfd_data_common(). | |
4381 | (coff_bfd_copy_private_section_data): Define as | |
4382 | _bfd_XX_bfd_copy_private_section_data instead of | |
4383 | _bfd_pe_bfd_copy_private_section_data. | |
4384 | (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead | |
4385 | of a _bfd_pe_get_symbol_info. | |
4386 | ||
4387 | * peigen.c: Delete. | |
4388 | ||
4389 | * peXXigen.c: Renamed from peigen.c. | |
4390 | (COFF_WITH_XX): Define this macro (will get expanded into | |
4391 | COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being | |
4392 | compiled as peigen.c or pepigen.c. | |
4393 | [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to | |
4394 | define the canonical PEP structures and definitions. | |
4395 | (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in | |
4396 | effect, enforce minimum file and section alignments. If | |
4397 | extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to | |
4398 | pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN, | |
4399 | so, by default, this is a no-op). | |
4400 | ||
4401 | * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep. | |
4402 | (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map | |
4403 | _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to | |
4404 | _bfd_pefoo if it's not defined. Use these macros to define | |
4405 | coff swap macros. | |
4406 | ||
4407 | * libcoff.h (pe_tdata): Add members target_subsystem and | |
4408 | force_minimum_alignment. | |
4409 | ||
4410 | * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to | |
4411 | COFF_WITH_pep. | |
4412 | (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM. | |
4413 | ||
4414 | * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of | |
4415 | peigen.lo. | |
4416 | ||
4417 | * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep. | |
4418 | (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and | |
4419 | PEPAOUTHDR. | |
4420 | ||
4421 | * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo. | |
4422 | (BFD64_BACKENDS_CFILES): Mention pepigen.c | |
4423 | (peigen.c): Add rule to generate from peXXigen.c. | |
4424 | (pepigen.c): Ditto. | |
4425 | (pepigen.lo): List dependencies for pepigen.lo. | |
4426 | ||
4427 | 2001-02-13 Alan Modra <[email protected]> | |
4428 | ||
4429 | * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If | |
4430 | $global$ referenced but not defined, set its value here. | |
4431 | ||
4432 | 2001-02-09 Bo Thorsen <[email protected]> | |
4433 | ||
4434 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section | |
4435 | alignment to 3. | |
4436 | (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry | |
4437 | and relocation. | |
4438 | (elf64_x86_64_relocate_section): Fix formatting. | |
4439 | (elf64_x86_64_relocate_section): Fix addend for relocation of | |
4440 | R_X86_64_(8|16|32|PC8|PC16|PC32). | |
4441 | ||
4442 | 2001-02-12 Jan Hubicka <[email protected]> | |
4443 | ||
4444 | * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL. | |
4445 | ||
4446 | 2001-02-11 H.J. Lu <[email protected]> | |
4447 | ||
4448 | * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB | |
4449 | alignment. | |
4450 | ||
4451 | 2001-02-11 Maciej W. Rozycki <[email protected]> | |
4452 | ||
4453 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch | |
4454 | from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32 | |
4455 | relocations against dynsym symbols. | |
4456 | ||
4457 | * elf32-mips.c (elf_mips_howto_table): Fix the comment on | |
4458 | the R_MIPS_26 relocation. | |
4459 | (mips_elf_calculate_relocation): Use (p + 4) instead of p for | |
4460 | the R_MIPS_26 relocation. | |
4461 | (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26 | |
4462 | relocation. | |
4463 | * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on | |
4464 | the R_MIPS_26 relocation. | |
4465 | (mips_elf64_howto_table_rela): Likewise. | |
4466 | ||
4467 | * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub | |
4468 | member to mark symbols that have non-CALL relocations against | |
4469 | them. | |
4470 | (mips_elf_link_hash_newfunc): Initialize no_fn_stub. | |
4471 | (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like | |
4472 | R_MIPS_GOT16. | |
4473 | (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a | |
4474 | non-CALL relocation against it is encountered. | |
4475 | (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well. | |
4476 | (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if | |
4477 | no_fn_stub is not set. | |
4478 | ||
4479 | * elf32-mips.c (mips_elf_output_extsym): Get the output section | |
4480 | information from the real symbol for indirect ones. | |
4481 | Check no_fn_stub to find out if a symbol has a function stub | |
4482 | indeed. | |
4483 | ||
4484 | 2001-02-11 Michael Sokolov <[email protected]> | |
4485 | ||
4486 | * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory. | |
4487 | * Makefile.in: Regenerate. | |
4488 | ||
4489 | 2001-02-09 David Mosberger <[email protected]> | |
4490 | ||
4491 | * elfxx-ia64.c (is_unwind_section_name): New function. Returns | |
4492 | true if section name is an unwind table section name. | |
4493 | (elfNN_ia64_additional_program_headers): Count each unwind section | |
4494 | separately. | |
4495 | (elfNN_ia64_modify_segment_map): Install one unwind program header | |
4496 | for each unwind separate section. Note: normally the linker | |
4497 | script merges the unwind sections that go into a single segment, | |
4498 | so this still generates at most one unwind program header per | |
4499 | segment. | |
4500 | ||
4501 | * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section | |
4502 | name for SHT_IA_64_UNWIND, not just .IA_64.unwind. | |
4503 | (elfNN_ia64_fake_sections): Mark sections with names that start | |
4504 | with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64 | |
4505 | unwind section. | |
4506 | ||
4507 | * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function. | |
4508 | Use it to make sh_info in unwind section point to the text section | |
4509 | it applies to. | |
4510 | ||
4511 | 2001-02-09 Martin Schwidefsky <[email protected]> | |
4512 | ||
4513 | * Makefile.am: Add linux target for S/390. | |
4514 | * archures.c: Likewise. | |
4515 | * bfd-in2.h: Likewise. | |
4516 | * config.bfd: Likewise. | |
4517 | * configure.in: Likewise. | |
4518 | * elf.c: Likewise. | |
4519 | * libbfd.h: Likewise. | |
4520 | * targets.c: Likewise. | |
4521 | * cpu-s390.c: New file. | |
4522 | * elf32-s390.c: New file. | |
4523 | * elf64-s390.c: New file. | |
4524 | ||
4525 | 2001-02-09 Nick Clifton <[email protected]> | |
4526 | ||
4527 | * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of | |
4528 | ImageBase. This has already been done by coff_swap_hdr_in. | |
4529 | ||
4530 | 2001-02-09 Jakub Jelinek <[email protected]> | |
4531 | ||
4532 | * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function. | |
4533 | ||
4534 | 2001-02-09 Jakub Jelinek <[email protected]> | |
4535 | ||
4536 | * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count. | |
4537 | (sparc64_elf_relocate_section): Likewise. | |
4538 | ||
4539 | 2001-02-09 Mark Kettenis <[email protected]> | |
4540 | ||
4541 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32 | |
4542 | similar to R_SPARC_32. | |
4543 | * elf64-sparc.c (sparc64_elf_howto_table): Likewise. | |
4544 | ||
4545 | 2001-02-08 H.J. Lu <[email protected]> | |
4546 | ||
4547 | * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32 | |
4548 | relocation entries for weak definitions when building DSO with | |
4549 | -Bsymbolic. | |
4550 | ||
4551 | 2001-02-08 Richard Henderson <[email protected]> | |
4552 | ||
4553 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness | |
4554 | before visibility. Locally defined protected symbols are not | |
4555 | dynamic. | |
4556 | ||
4557 | 2001-02-08 Geoffrey Keating <[email protected]> | |
4558 | ||
4559 | * config.bfd: Enable coff64 for rs6000-*. Patch from | |
4560 | <[email protected]>. | |
4561 | ||
4562 | 2001-02-07 Mark Elbrecht <[email protected]> | |
4563 | ||
4564 | * coffgen.c (coff_find_nearest_line): If stabs info is successfully | |
4565 | found, do not attempt to find dwarf2 info before returning. | |
4566 | ||
4567 | 2001-02-07 Jakub Jelinek <[email protected]> | |
4568 | ||
4569 | * elflink.h (is_global_symbol_definition): Rename to | |
4570 | is_global_data_symbol_definition and have it reject function | |
4571 | symbols. | |
4572 | (elf_link_is_defined_archive_symbol): Use renamed function. | |
4573 | ||
4574 | 2001-02-07 Todd Vierling <[email protected]> | |
4575 | ||
4576 | * libbfd-in.h (bfd_target_vector): Change extern array to pointer. | |
4577 | * libbfd.h (bfd_target_vector): Likewise. | |
4578 | * targets.c (bfd_target_vector): Rename to _bfd_target_vector and | |
4579 | make static; create pointer reference named bfd_target_vector. | |
4580 | (_bfd_target_vector_entries): Calculate this based on the array | |
4581 | typed _bfd_target_vector. | |
4582 | ||
4583 | 2001-02-06 H.J. Lu <[email protected]> | |
4584 | ||
4585 | * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and | |
4586 | internal symbols are not dynamic. | |
4587 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise. | |
4588 | ||
4589 | 2001-02-06 Nick Clifton <[email protected]> | |
4590 | ||
4591 | * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so | |
4592 | that it will not be pulled into the list of files that make up | |
4593 | po/POTFILES.in. | |
4594 | * Makefile.in: Regenerate. | |
4595 | * po/bfd.pot: Regenerate. | |
4596 | ||
4597 | 2001-02-06 H.J. Lu <[email protected]> | |
4598 | ||
4599 | * peicode.h (coff_swap_filehdr_in): Remove the e_magic | |
4600 | checking. | |
4601 | (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and | |
4602 | external_PEI_IMAGE_hdr. | |
4603 | ||
4604 | 2001-02-06 Kazu Hirata <[email protected]> | |
4605 | ||
4606 | * elf-m10200.c: Fix formatting. | |
4607 | ||
4608 | 2001-02-04 Nick Clifton <[email protected]> | |
4609 | ||
4610 | * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC | |
4611 | rel, it will be handled later on. | |
4612 | ||
4613 | 2001-02-02 Fred Fish <[email protected]> | |
4614 | ||
4615 | * Makefile.in: Fix typo. | |
4616 | ||
4617 | 2001-02-01 Kazu Hirata <[email protected]> | |
4618 | ||
4619 | * elf-m10300.c: Fix formatting. | |
4620 | ||
4621 | 2001-01-30 Alan Modra <[email protected]> | |
4622 | ||
4623 | * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function. | |
4624 | (elf_backend_get_symbol_type): Define. | |
4625 | (elf64_hppa_object_p): Set architecture and machine from elf | |
4626 | header flags. | |
4627 | ||
4628 | 2001-01-30 Curtis L. Janssen <[email protected]> | |
4629 | ||
4630 | * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2 | |
4631 | before mdebug. | |
4632 | ||
4633 | 2001-01-26 Richard Henderson <[email protected]> | |
4634 | ||
4635 | * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false | |
4636 | for non-default visibility. | |
4637 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but | |
4638 | delete ugly macro and replace with pretty function. | |
4639 | ||
4640 | 2001-01-25 Mark Elbrecht <[email protected]> | |
4641 | ||
4642 | * coff-go32.c: Update copyright. | |
4643 | * coff-stgo32.c: Likewise. | |
4644 | * coff-go32.c (COFF_LONG_FILENAMES): Define. | |
4645 | * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise. | |
4646 | * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry. | |
4647 | * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. | |
4648 | ||
4649 | 2001-01-25 Kazu Hirata <[email protected]> | |
4650 | ||
4651 | * bfd-in2.h: Rebuild. | |
4652 | * libbfd.h: Likewise. | |
4653 | ||
4654 | 2001-01-23 H.J. Lu <[email protected]> | |
4655 | ||
4656 | * bfd-in2.h: Rebuild. | |
4657 | ||
4658 | 2001-01-23 H.J. Lu <[email protected]> | |
4659 | ||
4660 | * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf) | |
4661 | is NULL or PRIV(vms_rec) is outside of the buffer. | |
4662 | ||
4663 | 2001-01-23 Kazu Hirata <[email protected]> | |
4664 | ||
4665 | * coff64-rs6000.c: Fix formatting. | |
4666 | * coff-arm.c: Likewise. | |
4667 | * coffgen.c: Likewise. | |
4668 | * cofflink.c: Likewise. | |
4669 | * coff-mcore.c: Likewise. | |
4670 | * coff-mips.c: Likewise. | |
4671 | * coff-pmac.c: Likewise. | |
4672 | * coff-ppc.c: Likewise. | |
4673 | * coff-rs6000.c: Likewise. | |
4674 | * elf32.c: Likewise. | |
4675 | * elf32-fr30.c: Likewise. | |
4676 | * elf32-i370.c: Likewise. | |
4677 | * elf32-i860.c: Likewise. | |
4678 | * elf32-m32r.c: Likewise. | |
4679 | * elf32-m68k.c: Likewise. | |
4680 | * elf32-mcore.c: Likewise. | |
4681 | * elf32-ppc.c: Likewise. | |
4682 | * elf32-sh.c: Likewise. | |
4683 | * elf32-v850.c: Likewise. | |
4684 | * elf64-alpha.c: Likewise. | |
4685 | * elf64-sparc.c: Likewise. | |
4686 | * elflink.c: Likewise. | |
4687 | * elflink.h: Likewise. | |
4688 | * elf-m10200.c: Likewise. | |
4689 | * elf-m10300.c: Likewise. | |
4690 | * elfxx-ia64.c: Likewise. | |
4691 | ||
4692 | * aoutx.h: Fix formatting. | |
4693 | * bfd.c: Likewise. | |
4694 | * bfd-in2.h: Likewise. | |
4695 | * bfd-in.h: Likewise. | |
4696 | * cpu-i386.c: Likewise. | |
4697 | * cpu-m68hc11.c: Likewise. | |
4698 | * dwarf2.c: Likewise. | |
4699 | * elf64-x86-64.c: Likewise. | |
4700 | * format.c: Likewise. | |
4701 | * freebsd.h: Likewise. | |
4702 | * hash.c: Likewise. | |
4703 | * hp300hpux.c: Likewise. | |
4704 | * hppabsd-core.c: Likewise. | |
4705 | * hpux-core.c: Likewise. | |
4706 | ||
4707 | 2001-01-22 Bo Thorsen <[email protected]> | |
4708 | ||
4709 | * elf64-x86-64.c: Added PIC support for X86-64. | |
4710 | (elf64_x86_64_link_hash_newfunc): Function added. | |
4711 | (elf64_x86_64_link_hash_table_create): Likewise. | |
4712 | (elf64_x86_64_check_relocs): Likewise. | |
4713 | (elf64_x86_64_gc_mark_hook): Likewise. | |
4714 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
4715 | (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
4716 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
4717 | (elf64_x86_64_discard_copies): Likewise. | |
4718 | (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
4719 | (elf64_x86_64_finish_dynamic_sections): Likewise. | |
4720 | (elf64_x86_64_relocate_section): Add relocation of PIC sections. | |
4721 | ||
4722 | 2001-01-21 Maciej W. Rozycki <[email protected]> | |
4723 | ||
4724 | * Makefile.am (install-data-local): Make use of $(DESTDIR). | |
4725 | * Makefile.in: Regenerate. | |
4726 | ||
4727 | 2001-01-21 Kazu Hirata <[email protected]> | |
4728 | ||
4729 | * coff-a29k.c: Fix formatting. | |
4730 | ||
4731 | 2001-01-19 H.J. Lu <[email protected]> | |
4732 | ||
4733 | * elf32-i386.c (elf_i386_check_relocs): Report files with bad | |
4734 | relocation section names. | |
4735 | (elf_i386_relocate_section): Report files with bad relocation | |
4736 | section names and return false. | |
4737 | ||
4738 | 2001-01-17 Bo Thorsen <[email protected]> | |
4739 | ||
4740 | * targets.c: Alphabetize list of xvecs. | |
4741 | ||
4742 | 2001-01-14 Alan Modra <[email protected]> | |
4743 | ||
4744 | * config.bfd: Add linux target variant for elfxx-hppa. | |
4745 | * configure.in: Recognize bfd_elf32_hppa_linux_vec and | |
4746 | bfd_elf64_hppa_linux_vec. | |
4747 | * configure: Regenerate. | |
4748 | * elf64-hppa.c: Include elf64-target.h again to support linux | |
4749 | target variant. | |
4750 | (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux. | |
4751 | * elf32-hppa.c: Include elf32-target.h again to support linux | |
4752 | target variant. | |
4753 | (elf32_hppa_post_process_headers): New function. | |
4754 | (elf_backend_post_process_headers): Define. | |
4755 | * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and | |
4756 | bfd_elf32_hppa_linux_vec. | |
4757 | ||
4758 | * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base, | |
4759 | and data_segment_base fields. | |
4760 | (elf32_hppa_link_hash_table_create ): Init them. | |
4761 | (elf32_hppa_check_relocs): Update comments. | |
4762 | (hppa_record_segment_addr): New function. | |
4763 | (elf32_hppa_relocate_section): Call it. | |
4764 | (final_link_relocate): Handle R_PARISC_SEGREL32. | |
4765 | (elf32_hppa_final_link): New function. | |
4766 | (bfd_elf32_bfd_final_link): Define to call it. | |
4767 | (hppa_unwind_entry_compare): New function. | |
4768 | * cache.c (bfd_open_file): Create files in write+read mode. | |
4769 | ||
4770 | * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for | |
4771 | SEGREL32 and numerous other relocs. Change duplicate | |
4772 | R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED. | |
4773 | ||
4774 | * opncls.c (bfd_fdopenr): Add parens like the comment says around | |
4775 | O_ACCMODE. | |
4776 | ||
4777 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create | |
4778 | .plt entries for DT_INIT and DT_FINI. | |
4779 | (elf32_hppa_finish_dynamic_sections): Remove special handling of | |
4780 | DT_INIT and DT_FINI. | |
4781 | ||
4782 | * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit | |
4783 | offsets for stub .plt access if wide mode. Check offset in range. | |
4784 | ||
4785 | 2001-01-13 Nick Clifton <[email protected]> | |
4786 | ||
4787 | * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank | |
4788 | line. | |
4789 | ||
4790 | * coffcode.h (coff_canonicalize_reloc): Remove spurious blank | |
4791 | line. | |
4792 | ||
4793 | 2001-01-12 Alan Modra <[email protected]> | |
4794 | ||
4795 | * configure.in ([bfd_elf64_x86_64_vec]): Set target64. | |
4796 | * configure: Regenerate. | |
4797 | ||
4798 | 2001-01-11 Peter Targett <[email protected]> | |
4799 | ||
4800 | * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5, | |
4801 | bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants. | |
4802 | * cpu-arc.c (arch_info_struct): Add entries for variants. | |
4803 | (bfd_arc_arch) Set default to bfd_mach_arc_5. | |
4804 | (arc_get_mach) Don't assume machine names prefixed arc- before | |
4805 | testing. | |
4806 | * elf32-arc.c (arc_elf_object_p): Set machine number based on new | |
4807 | selections. | |
4808 | (arc_elf_final_write_processing) Likewise. | |
4809 | (ELF_MACHINE_CODE) Use EM_ARC. | |
4810 | ||
4811 | 2001-01-10 Nick Clifton <[email protected]> | |
4812 | ||
4813 | * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "". | |
4814 | ||
4815 | 2001-01-07 Philip Blundell <[email protected]> | |
4816 | ||
4817 | * README: Replace `[email protected]' with | |
4818 | `[email protected]'. | |
4819 | ||
4820 | 2001-01-04 Kazu Hirata <[email protected]> | |
4821 | ||
4822 | * som.c: Fix formatting. | |
4823 | ||
4824 | 2001-01-03 Kazu Hirata <[email protected]> | |
4825 | ||
4826 | * ecoffswap.h: Fix formatting. | |
4827 | * elf-bfd.h: Likewise. | |
4828 | * elfarm-nabi.c: Likewise. | |
4829 | * elfarm-oabi.c: Likewise. | |
4830 | * elfcode.h: Likewise. | |
4831 | * elfcore.h: Likewise. | |
4832 | * elflink.c: Likewise. | |
4833 | * elflink.h: Likewise. | |
4834 | * elfxx-ia64.c: Likewise. | |
4835 | * elfxx-target.h: Likewise. | |
4836 | * libbfd.c: Likewise | |
4837 | * linker.c: Likewise. | |
4838 | * lynx-core.c: Likewise. | |
4839 | ||
4840 | 2001-01-02 Kazu Hirata <[email protected]> | |
4841 | ||
4842 | * pc532-mach.c: Fix formatting. | |
4843 | * pe-arm.c: Likewise. | |
4844 | * pe-i386.c: Likewise. | |
4845 | * pe-mips.c: Likewise. | |
4846 | * pe-ppc.c: Likewise. | |
4847 | * pe-sh.c: Likewise. | |
4848 | * pei-mips.c: Likewise. | |
4849 | * pei-sh.c: Likewise. | |
4850 | * peicode.h: Likewise. | |
4851 | * ppcboot.c: Likewise. | |
4852 | * ptrace-core.c: Likewise. | |
4853 | ||
4854 | 2001-01-01 Kazu Hirata <[email protected]> | |
4855 | ||
4856 | * reloc.c: Fix formatting. | |
4857 | * riscix.c: Likewise. | |
4858 | * rs6000-core.c: Likewise. | |
4859 | * xcoff-target.h: Likewise. | |
4860 | ||
4861 | 2000-12-29 Hans-Peter Nilsson <[email protected]> | |
4862 | ||
4863 | * elfcode.h (elf_object_p): Also restore the bfd mach field on | |
4864 | error, by calling bfd_default_set_arch_mach with incoming | |
4865 | values. | |
4866 | ||
4867 | 2000-12-26 Kazu Hirata <[email protected]> | |
4868 | ||
4869 | * vaxnetbsd.c: Fix formatting. | |
4870 | * versados.c: Likewise. | |
4871 | * vms-gsd.c: Likewise. | |
4872 | * vms-hdr.c: Likewise. | |
4873 | * vms-misc.c: Likewise. | |
4874 | ||
4875 | 2000-12-25 Alexandre Oliva <[email protected]> | |
4876 | ||
4877 | * archive.c (coff_write_armap): Don't write more than symbol_count | |
4878 | `archive_member_file_ptr's. | |
4879 | ||
4880 | 2000-12-25 Kazu Hirata <[email protected]> | |
4881 | ||
4882 | * vms-tir.c: Fix formatting. | |
4883 | ||
4884 | 2000-12-23 Kazu Hirata <[email protected]> | |
4885 | ||
4886 | * vms.c: Fix formatting. | |
4887 | * vms.h: Likewise. | |
4888 | ||
4889 | 2000-12-21 Santeri Paavolainen <[email protected]> | |
4890 | ||
4891 | * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined. | |
4892 | ||
4893 | * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM. | |
4894 | ||
4895 | * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *) | |
4896 | arithmetic. | |
4897 | ||
4898 | * elf32-fr30.c: Add casts to avoid (void *) arithmetic. | |
4899 | ||
4900 | * coffcode.h (styp_to_sec_flags): Add empty statement after label. | |
4901 | ||
4902 | 2000-12-21 Richard Sandiford <[email protected]> | |
4903 | ||
4904 | * libbfd.c (bfd_get_bits): Added | |
4905 | (bfd_put_bits): Likewise | |
4906 | * bfd-in.h: Declared the above. | |
4907 | * bfd-in2.h: Regenerated. | |
4908 | ||
4909 | 2000-12-20 Kazu Hirata <[email protected]> | |
4910 | ||
4911 | * targets.c: Fix formatting. | |
4912 | * tekhex.c: Likewise. | |
4913 | * trad-core.c: Likewise. | |
4914 | ||
4915 | 2000-12-19 Kazu Hirata <[email protected]> | |
4916 | ||
4917 | * sco5-core.c: Fix formatting. | |
4918 | * section.c: Likewise. | |
4919 | * sparclinux.c: Likewise. | |
4920 | * sparclynx.c: Likewise. | |
4921 | * sparcnetbsd.c: Likewise. | |
4922 | * srec.c: Likewise. | |
4923 | * stabs.c: Likewise. | |
4924 | * stab-syms.c: Likewise. | |
4925 | * sunos.c: Likewise. | |
4926 | * syms.c: Likewise. | |
4927 | * sysdep.h: Likewise. | |
4928 | ||
4929 | 2000-12-18 Nick Clifton <[email protected]> | |
4930 | ||
4931 | * coff-arm.c (EXTRA_S_FLAGS): Only define if not already | |
4932 | defined. | |
4933 | * epoc-pe-arm.c (EXTRA_S_FLAGS): Define. | |
4934 | * epoc-pei-arm.c (EXTRA_S_FLAGS): Define. | |
4935 | ||
4936 | 2000-12-18 Nick Clifton <[email protected]> | |
4937 | ||
4938 | * vms-misc.c (_bfd_vms_get_record): Add default case to | |
4939 | file_format switch. | |
4940 | ||
4941 | 2000-12-15 Miloslav Trmac <[email protected]> | |
4942 | ||
4943 | * elfcore.h (elf_core_file_p): Move to the start of the program | |
4944 | headers before attempting to read them. | |
4945 | ||
4946 | 2000-12-14 Kazu Hirata <[email protected]> | |
4947 | ||
4948 | * peigen.c: Fix formatting. | |
4949 | * som.c: Likewise. | |
4950 | * som.h: Likewise. | |
4951 | ||
4952 | 2000-12-13 Kazu Hirata <[email protected]> | |
4953 | ||
4954 | * peigen.c: Fix formatting. | |
4955 | ||
4956 | 2000-12-12 Jim Wilson <[email protected]> | |
4957 | ||
4958 | * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *. | |
4959 | ||
4960 | 2000-12-08 Mark Salter <[email protected]> | |
4961 | ||
4962 | * binary.c (binary_set_section_contents): Ignore sections | |
4963 | with zero size. | |
4964 | ||
4965 | 2000-12-12 Kazu Hirata <[email protected]> | |
4966 | ||
4967 | * m68klinux.c: Fix formatting. | |
4968 | * m68knetbsd.c: Likewise. | |
4969 | * mipsbsd.c: Likewise. | |
4970 | * netbsd-core.c: Likewise. | |
4971 | * netbsd.h: Likewise. | |
4972 | * newsos3.c: Likewise. | |
4973 | * nlm32-alpha.c: Likewise. | |
4974 | * nlm32-i386.c: Likewise. | |
4975 | * nlm32-ppc.c: Likewise. | |
4976 | * nlm32-sparc.c: Likewise. | |
4977 | * nlmcode.h: Likewise. | |
4978 | * nlmswap.h: Likewise. | |
4979 | * nlm-target.h: Likewise. | |
4980 | * ns32knetbsd.c: Likewise. | |
4981 | ||
4982 | 2000-12-10 Fred Fish <[email protected]> | |
4983 | ||
4984 | * elflink.h (elf_link_output_extsym): Don't complain about undefined | |
4985 | symbols in shared objects if allow_shlib_undefined is true. | |
4986 | ||
4987 | 2000-12-12 Nick Clifton <[email protected]> | |
4988 | ||
4989 | * cpu-sh.c: Fix formattng. | |
4990 | * elf.c: Fix formattng. | |
4991 | * elf32-mips.c: Fix formattng. | |
4992 | * elf32-sh.c: Fix formattng. | |
4993 | * elf64-alpha.c: Fix formattng. | |
4994 | ||
4995 | 2000-12-09 Nick Clifton <[email protected]> | |
4996 | ||
4997 | * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass | |
4998 | dwarf2_find_line_info as last parameter to invocation of | |
4999 | _bfd_dwarf2_find_nearest_line. | |
5000 | * elf32-arm.h (elf32_arm_find_nearest_line): Pass | |
5001 | dwarf2_find_line_info as last parameter to invocation of | |
5002 | _bfd_dwarf2_find_nearest_line. | |
5003 | ||
5004 | 2000-12-08 Mark Elbrecht <[email protected]> | |
5005 | ||
5006 | * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here... | |
5007 | (BFD_LIBS): ...to here. | |
5008 | (BFD32_BACKENDS_CFILES): Move dwarf2.c from here... | |
5009 | (BFD_LIBS_CFILES): ...to here. | |
5010 | * Makefile.in: Regenerate. | |
5011 | * configure.in: Remove dwarf.lo from the elf shell variable. | |
5012 | * configure: Regenerate. | |
5013 | * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info. | |
5014 | * libcoff.h: Regenerate. | |
5015 | * coffgen.c (coff_find_nearest_line): Call | |
5016 | _bfd_dwarf2_find_nearest_line. | |
5017 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update | |
5018 | accordingly. | |
5019 | (read_abbrevs): Likewise | |
5020 | (decode_line_info): Likewise. | |
5021 | (parse_comp_unit): Likewise. | |
5022 | (comp_unit_find_nearest_line): Likewise. | |
5023 | * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype. | |
5024 | * libbfd.h: Regenerate. | |
5025 | * elf.c (_bfd_elf_find_nearest_line): Update call. | |
5026 | * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR. | |
5027 | * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH. | |
5028 | * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros. | |
5029 | (sec_to_styp_flags): Use them. Handle DWARF2 sections. | |
5030 | (styp_to_sec_flags): Handle DWARF2 sections. | |
5031 | * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call | |
5032 | to _bfd_find_nearest_line. | |
5033 | * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to | |
5034 | call to _bfd_find_nearest_line. | |
5035 | ||
5036 | 2000-12-08 Kazu Hirata <[email protected]> | |
5037 | ||
5038 | * coffgen.c: Fix formatting. | |
5039 | * elf-m10300.c: Likewise. | |
5040 | * elf32-i386.c: Likewise. | |
5041 | * elf32-i960.c: Likewise. | |
5042 | * elf32-m68k.c: Likewise. | |
5043 | * elf32-mcore.c: Likewise. | |
5044 | * elf32-ppc.c: Likewise. | |
5045 | * elf32-sh.c: Likewise. | |
5046 | * elf32-sparc.c: Likewise. | |
5047 | * elf32-v850.c: Likewise. | |
5048 | * elf64-alpha.c: Likewise. | |
5049 | * elf64-hppa.c: Likewise. | |
5050 | * elf64-mips.c: Likewise. | |
5051 | * elf64-sparc.c: Likewise. | |
5052 | ||
5053 | 2000-12-07 Kazu Hirata <[email protected]> | |
5054 | ||
5055 | * elf32-ppc.c: Fix formatting. | |
5056 | * elf64-x86-64.c: Likewise. | |
5057 | ||
5058 | 2000-12-06 Ulf Carlsson <[email protected]> | |
5059 | ||
5060 | From Ralf Baechle <[email protected]> | |
5061 | ||
5062 | * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit | |
5063 | BFDs containing no sections or empty .text, .data or .bss sections | |
5064 | to be merged, regardless of their flags. | |
5065 | ||
5066 | 2000-12-06 Kazu Hirata <[email protected]> | |
5067 | ||
5068 | * elf32-m32r.c: Fix formatting. | |
5069 | * elf32-m68hc11.c: Likewise. | |
5070 | * elf32-m68hc12.c: Likewise. | |
5071 | * elf32-m68k.c: Likewise. | |
5072 | * elf32-mcore.c: Likewise. | |
5073 | * elf32-pj.c: Likewise. | |
5074 | * elf32-ppc.c: Likewise. | |
5075 | ||
5076 | 2000-12-05 Kazu Hirata <[email protected]> | |
5077 | ||
5078 | * elf32-fr30.c: Fix formatting. | |
5079 | * elf32-hppa.c: Likewise. | |
5080 | * elf32-i370.c: Likewise. | |
5081 | * elf32-i386.c: Likewise. | |
5082 | * elf32-i860.c: Likewise. | |
5083 | * elf32-i960.c: Likewise. | |
5084 | ||
5085 | 2000-12-03 Kazu Hirata <[email protected]> | |
5086 | ||
5087 | * elf32-arm.h: Fix formatting. | |
5088 | * elf32-avr.c: Likewise. | |
5089 | * elf32-cris.c: Likewise. | |
5090 | * elf32-d10v.c: Likewise. | |
5091 | * elf32-d30v.c: Likewise. | |
5092 | * elf-hppa.h: Likewise. | |
5093 | * elf-m10200.c: Likewise. | |
5094 | * elf-m10300.c: Likewise. | |
5095 | ||
5096 | 2000-12-01 Chris Demetriou <[email protected]> | |
5097 | ||
5098 | * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and | |
5099 | bfd_mach_mips32_4k. Update FIXME comment. | |
5100 | * archures.c (bfd_mach_mips32): New constant. | |
5101 | (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to | |
5102 | the latter, renumber it. | |
5103 | * bfd-in2.h (bfd_mach_mips32): New constant. | |
5104 | (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to | |
5105 | the latter, renumber it. | |
5106 | * cpu-mips.c (I_mips32): New constant. | |
5107 | (I_mips4K, I_mips32_4k): Rename the former to the latter. | |
5108 | (arch_info_struct): Add bfd_mach_mips32 entry, replace | |
5109 | bfd_mach_mips4K entry with bfd_mach_mips32_4k entry. | |
5110 | * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case. | |
5111 | (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32 | |
5112 | with E_MIPS_MACH_MIPS32_4K. | |
5113 | (_bfd_mips_elf_final_write_processing): Replace | |
5114 | bfd_mach_mips4K with bfd_mach_mips32_4k case, add | |
5115 | bfd_mach_mips32 case. | |
5116 | (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing | |
5117 | comparison with support for MIPS32. | |
5118 | (_bfd_mips_elf_print_private_bfd_data): Print ISA name for | |
5119 | MIPS32. | |
5120 | ||
5121 | * aoutx.h (NAME(aout,machine_type)): Add cases for | |
5122 | bfd_mach_mips5 and bfd_mach_mips64. | |
5123 | * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants. | |
5124 | * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise. | |
5125 | * cpu_mips.c (I_mips5, I_mips64): New definitions. | |
5126 | (arch_info_struct): Add entries for bfd_mach_mips5 and | |
5127 | bfd_mach_mips64. | |
5128 | * elf32-mips.c (elf_mips_isa, elf_mips_mach, | |
5129 | _bfd_mips_elf_print_private_bfd_data): Add cases for | |
5130 | E_MIPS_ARCH_5 and E_MIPS_ARCH_64. | |
5131 | (_bfd_mips_elf_final_write_processing): Add cases for | |
5132 | bfd_mach_mips5 and bfd_mach_mips64. | |
5133 | ||
5134 | * aoutx.h (NAME(aout,machine_type)): Add a | |
5135 | bfd_mach_mips_sb1 case. | |
5136 | * archures.c (bfd_mach_mips_sb1): New constant. | |
5137 | * bfd-in2.h (bfd_mach_mips_sb1): New constant. | |
5138 | * cpu-mips.c (I_sb1): New constant. | |
5139 | (arch_info_struct): Add entry for bfd_mach_mips_sb1. | |
5140 | * elf32-mips.c (elf_mips_mach): Add case for | |
5141 | E_MIPS_MACH_SB1. | |
5142 | (_bfd_mips_elf_final_write_processing): Add case for | |
5143 | bfd_mach_mips_sb1. | |
5144 | ||
5145 | 2000-12-01 Joel Sherrill <[email protected]> | |
5146 | ||
5147 | * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets. | |
5148 | (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets. | |
5149 | (sparc*-*-rtems*): Switched from a.out to ELF. | |
5150 | ||
5151 | 2000-11-30 Jan Hubicka <[email protected]> | |
5152 | ||
5153 | * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo | |
5154 | BFD64_BACKENDS_CFILES): Add elf64-x86-64.c | |
5155 | (elf64-x86-64.lo): Add dependencies. | |
5156 | * archures.c (DESCRIPTION): Add bfd_mach_x86_64, | |
5157 | bfd_mach_x86_64_intel_syntax. | |
5158 | * elf.c (prep_headers): Use EM_x86_64 for 64bit output. | |
5159 | * config.bfd (x86_64): Add. | |
5160 | * configure.in: Add support for bfd_elf64_x86_64_vec. | |
5161 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add. | |
5162 | (bfd_i386_arch, i8086_ar): Link in. | |
5163 | * elf64-x86-64.c: New file. | |
5164 | * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*. | |
5165 | * targets.c (bfd_elf64_x86_64_vec): Add. | |
5166 | (bfd_target_vect): Add bfd_elf64_x86_64_vec. | |
5167 | ||
5168 | 2000-11-30 Kazu Hirata <[email protected]> | |
5169 | ||
5170 | * xcofflink.c: Fix formatting. | |
5171 | ||
5172 | 2000-11-28 Kazu Hirata <[email protected]> | |
5173 | ||
5174 | * aoutx.h: Fix formatting. | |
5175 | * bfd-in.h: Likewise. | |
5176 | * bfd-in2.h: Likewise. | |
5177 | * cache.c: Likewise. | |
5178 | * cisco-core.c: Likewise. | |
5179 | * coff64-rs6000.c: Likewise. | |
5180 | * coffcode.h: Likewise. | |
5181 | * coffswap.h: Likewise. | |
5182 | * corefile.c: Likewise. | |
5183 | * elf32-mips.c: Likewise. | |
5184 | ||
5185 | 2000-11-27 Kazu Hirata <[email protected]> | |
5186 | ||
5187 | * aout-adobe.c: Fix formatting. | |
5188 | * coff64-rs6000.c: Likewise. | |
5189 | * coffgen.c: Likewise. | |
5190 | * cofflink.c: Likewise. | |
5191 | ||
5192 | 2000-11-27 Philip Blundell <[email protected]> | |
5193 | ||
5194 | * libcoff-in.h (coff_tdata): Add `strings_written' flag. | |
5195 | (obj_coff_strings_written): New accessor macro for above. | |
5196 | * libcoff.h: Regenerate. | |
5197 | * cofflink.c (_bfd_coff_final_link): Say that we wrote the | |
5198 | strings. | |
5199 | * coffcode.h (coff_write_object_contents): No need to write out | |
5200 | the string table if it's already been done. | |
5201 | ||
5202 | 2000-11-22 Philip Blundell <[email protected]> | |
5203 | ||
5204 | * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to | |
5205 | weak undefined symbols. | |
5206 | ||
5207 | 2000-11-24 Nick Clifton <[email protected]> | |
5208 | ||
5209 | * archures.c (bfd_mach_arm_5TE): Define. | |
5210 | (bfd_mach_arm+XScale): Define. | |
5211 | * bfd-in2.h: Regenerate. | |
5212 | ||
5213 | * coff-arm.c (coff_arm_reloc_type_lookup): Accept | |
5214 | BFD_RELOC_ARM_PCREL_BLX. | |
5215 | ||
5216 | * coffcode.h (coff_set_flags): Set flags for 5t, 5te and | |
5217 | XScale machine numbers. | |
5218 | ||
5219 | * config.bfd (xscale-elf): Add target. | |
5220 | (xscale-coff): Add target. | |
5221 | ||
5222 | * cpu-arm.c: Add xscale machine name. | |
5223 | Add v5t, v5te and XScale machine numbers. | |
5224 | ||
5225 | 2000-11-23 Kazu Hirata <[email protected]> | |
5226 | ||
5227 | * aix386-core.c: Fix formatting. | |
5228 | ||
5229 | 2000-11-22 Jim Wilson <[email protected]> | |
5230 | ||
5231 | * coff-ia64.c (howto_table): Use EMPTY_HOWTO. | |
5232 | (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters. | |
5233 | * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise. | |
5234 | (ins_imms_scaled): Initialize sign_bit at function entry. | |
5235 | (elf64_ia64_operands): Add missing initializers. | |
5236 | * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup, | |
5237 | elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections, | |
5238 | elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name, | |
5239 | elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff, | |
5240 | elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused | |
5241 | parameters. | |
5242 | (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents, | |
5243 | and free_extsyms at function entry. | |
5244 | (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result. | |
5245 | (elfNN_ia64_create_dynamic_sections): Delete unused local h. | |
5246 | (get_got): Delete unused local srel. | |
5247 | (elfNN_ia64_check_relocs): Initialize dynrel_type when declared. | |
5248 | (elfNN_ia64_relocate_section): Delete unused local dynindx. | |
5249 | ||
5250 | 2000-11-21 Kazu Hirata <[email protected]> | |
5251 | ||
5252 | * coff-a29k.c: Fix formatting. | |
5253 | * coff-h8500.c: Likewise. | |
5254 | * coff-i960.c: Likewise. | |
5255 | * coff-ppc.c: Likewise. | |
5256 | * coff-rs6000.c: Likewise. | |
5257 | * coff-stgo32.c: Likewise. | |
5258 | * coff-tic54x.c: Likewise. | |
5259 | * coff-w65.c: Likewise. | |
5260 | * cpu-h8500.c: Likewise. | |
5261 | * cpu-hppa.c: Likewise. | |
5262 | * cpu-ns32k.c: Likewise. | |
5263 | * ecoff.c: Likewise. | |
5264 | * ecofflink.c: Likewise. | |
5265 | ||
5266 | 2000-11-21 Nick Clifton <[email protected]> | |
5267 | ||
5268 | * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and | |
5269 | remove possibility of infinite loop. | |
5270 | ||
5271 | 2000-11-20 Kazu Hirata <[email protected]> | |
5272 | ||
5273 | * aix386-core.c: Fix formatting. | |
5274 | * aout-adobe.c: Likewise. | |
5275 | * aout-arm.c: Likewise. | |
5276 | * aout-encap.c: Likewise. | |
5277 | * aout-ns32k.c: Likewise. | |
5278 | * aout-target.h: Likewise. | |
5279 | * aout-tic30.c: Likewise. | |
5280 | * aoutf1.h: Likewise. | |
5281 | * aoutx.h: Likewise. | |
5282 | * archive.c: Likewise. | |
5283 | * bfd-in.h: Likewise. | |
5284 | * bfd-in2.h: Likewise. | |
5285 | * bfd.c: Likewise. | |
5286 | * bout.c: Likewise. | |
5287 | ||
5288 | 2000-11-17 H.J. Lu <[email protected]> | |
5289 | ||
5290 | * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create | |
5291 | pltoff entries for DT_INIT and DT_FINI. | |
5292 | (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries. | |
5293 | (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI | |
5294 | entries. | |
5295 | ||
5296 | 2000-11-16 Richard Henderson <[email protected]> | |
5297 | ||
5298 | * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs. | |
5299 | (allocate_dynrel_entries): Likewise. | |
5300 | (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly. | |
5301 | (set_pltoff_entry): Likewise. | |
5302 | (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB | |
5303 | (elfNN_ia64_reloc_type_lookup): Likewise. | |
5304 | (elfNN_ia64_install_value): Likewise. | |
5305 | (elfNN_ia64_relocate_section): Likewise. | |
5306 | * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove. | |
5307 | (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove. | |
5308 | ||
5309 | 2000-11-16 Kazu Hirata <[email protected]> | |
5310 | ||
5311 | * cpu-a29k.c: Fix formatting. | |
5312 | * cpu-alpha.c: Likewise. | |
5313 | * cpu-arm.c: Likewise. | |
5314 | * cpu-avr.c: Likewise. | |
5315 | * cpu-d10v.c: Likewise. | |
5316 | * cpu-h8500.c: Likewise. | |
5317 | * cpu-hppa.c: Likewise. | |
5318 | * cpu-i370.c: Likewise. | |
5319 | * cpu-i386.c: Likewise. | |
5320 | * cpu-i960.c: Likewise. | |
5321 | * cpu-ia64-opc.c: Likewise. | |
5322 | * cpu-ia64.c: Likewise. | |
5323 | * cpu-m32r.c: Likewise. | |
5324 | * cpu-m68hc11.c: Likewise. | |
5325 | * cpu-m68hc12.c: Likewise. | |
5326 | * cpu-m68k.c: Likewise. | |
5327 | * cpu-m88k.c: Likewise. | |
5328 | * cpu-mips.c: Likewise. | |
5329 | * cpu-ns32k.c: Likewise. | |
5330 | * cpu-pj.c: Likewise. | |
5331 | * cpu-powerpc.c: Likewise. | |
5332 | * cpu-sh.c: Likewise. | |
5333 | * cpu-sparc.c: Likewise. | |
5334 | * cpu-tic54x.c: Likewise. | |
5335 | * cpu-v850.c: Likewise. | |
5336 | * cpu-vax.c: Likewise. | |
5337 | * cpu-w65.c: Likewise. | |
5338 | * cpu-we32k.c: Likewise. | |
5339 | * cpu-z8k.c: Likewise. | |
5340 | * dwarf1.c: Likewise. | |
5341 | * dwarf2.c: Likewise. | |
5342 | ||
5343 | 2000-11-15 Kazu Hirata <[email protected]> | |
5344 | ||
5345 | * coff-arm.c: Fix formatting. | |
5346 | * coff-ppc.c: Likewise. | |
5347 | * coff-rs6000.c: Likewise. | |
5348 | * coff-sh.c: Likewise. | |
5349 | * coff-sparc.c: Likewise. | |
5350 | * coff-tic30.c: Likewise. | |
5351 | * coff-tic54x.c: Likewise. | |
5352 | * coff-tic80.c: Likewise. | |
5353 | * coff-w65.c: Likewise. | |
5354 | * coff-we32k.c: Likewise. | |
5355 | * coff-z8k.c: Likewise. | |
5356 | ||
5357 | 2000-11-15 Richard Henderson <[email protected]> | |
5358 | ||
5359 | * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc | |
5360 | section with the same ALLOC|LOAD flags as the source section. | |
5361 | ||
5362 | 2000-11-14 Jakub Jelinek <[email protected]> | |
5363 | ||
5364 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used | |
5365 | by STO_ALPHA constants. | |
5366 | ||
5367 | 2000-11-14 Kazu Hirata <[email protected]> | |
5368 | ||
5369 | * coff-pmac.c: Fix formatting. | |
5370 | * coff-ppc.c: Likewise. | |
5371 | ||
5372 | 2000-11-13 H.J. Lu <[email protected]> | |
5373 | ||
5374 | * elflink.h (elf_link_add_object_symbols): Also add indirect | |
5375 | symbols for common symbols with the default version. | |
5376 | ||
5377 | 2000-11-09 Philip Blundell <[email protected]> | |
5378 | ||
5379 | * section.c (STD_SECTION): Set gc_mark flag. | |
5380 | ||
5381 | 2000-11-11 Kazu Hirata <[email protected]> | |
5382 | ||
5383 | * coff-i960.c: Likewise. | |
5384 | * coff-m68k.c: Likewise. | |
5385 | * coff-m88k.c: Likewise. | |
5386 | * coff-mcore.c: Likewise. | |
5387 | * coff-mips.c: Likewise. | |
5388 | ||
5389 | 2000-11-11 Bernd Schmidt <[email protected]> | |
5390 | ||
5391 | * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs. | |
5392 | ||
5393 | 2000-11-10 Kazu Hirata <[email protected]> | |
5394 | ||
5395 | * coff-h8300.c: Fix formatting. | |
5396 | * coff-h8500.c: Likewise. | |
5397 | * coff-i386.c: Likewise. | |
5398 | * coff-i860.c: Likewise. | |
5399 | * coff-i960.c: Likewise. | |
5400 | * coff-ia64.c: Likewise. | |
5401 | ||
5402 | 2000-11-09 Kazu Hirata <[email protected]> | |
5403 | ||
5404 | * archive.c: Fix formatting. | |
5405 | * archures.c: Likewise. | |
5406 | ||
5407 | 2000-11-07 Richard Henderson <[email protected]> | |
5408 | ||
5409 | * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec. | |
5410 | Set it before bfd_elf64_bfd_final_link call. Use it after the call. | |
5411 | * section.c (bfd_set_section_contents): Call memcpy if | |
5412 | section->contents set and location not equal to contents plus offset. | |
5413 | ||
5414 | 2000-11-08 Kazu Hirata <[email protected]> | |
5415 | ||
5416 | * bfd-in.h: Fix formatting. | |
5417 | * bfd-in2.h: Likewise. | |
5418 | * bfd.c: Likewise. | |
5419 | * binary.c: Likewise. | |
5420 | * bout.c: Likewise. | |
5421 | * coff-a29k.c: Likewise. | |
5422 | * coff-alpha.c: Likewise. | |
5423 | * coff-apollo.c: Likewise. | |
5424 | * coff-aux.c: Likewise. | |
5425 | ||
5426 | 2000-11-07 Kazu Hirata <[email protected]> | |
5427 | ||
5428 | * aix386-core.c: Fix formatting. | |
5429 | * aoutf1.h: Likewise. | |
5430 | * aoutx.h: Likewise. | |
5431 | * archures.c: Likewise. | |
5432 | * armnetbsd.c: Likewise. | |
5433 | ||
5434 | 2000-11-07 Alan Modra <[email protected]> | |
5435 | ||
5436 | * coff-h8300.c (special): Adjust reloc address. | |
5437 | ||
5438 | 2000-11-06 Steve Ellcey <[email protected]> | |
5439 | ||
5440 | * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines | |
5441 | to differentiate elf32 and elf64 on ia64. | |
5442 | * bfd-in2.h: Regenerate. | |
5443 | * config.bfd: Add target for "ia64*-*-hpux*". | |
5444 | * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch. | |
5445 | * configure: Regenerate. | |
5446 | * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure. | |
5447 | * targets.c: Add bfd_target bfd_elf32_ia64_big_vec. | |
5448 | ||
5449 | * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects | |
5450 | from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo. | |
5451 | * Makefile.in: Regnerate. | |
5452 | * elf64-ia64.c: Deleted. | |
5453 | * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c. | |
5454 | ||
5455 | 2000-11-06 Kazu Hirata <[email protected]> | |
5456 | ||
5457 | * aout-adobe.c: Fix formatting. | |
5458 | * aout-arm.c: Likewise. | |
5459 | * aout-cris.c: Likewise. | |
5460 | * aout-encap.c: Likewise. | |
5461 | * aout-ns32k.c: Likewise. | |
5462 | * aout-target.h: Likewise. | |
5463 | * aout-tic30.c: Likewise. | |
5464 | ||
5465 | 2000-11-05 Philip Blundell <[email protected]> | |
5466 | ||
5467 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit | |
5468 | BFDs containing no sections to be merged, regardless of their flags. | |
5469 | ||
5470 | 2000-11-04 Philip Blundell <[email protected]> | |
5471 | ||
5472 | * elf32-arm.h (elf32_arm_relocate_section): Suppress error message | |
5473 | if a relocation for an undefined symbol also results in an | |
5474 | overflow. | |
5475 | ||
5476 | 2000-11-06 Christopher Faylor <[email protected]> | |
5477 | ||
5478 | * config.bfd: Add support for Sun Chorus. | |
5479 | ||
5480 | 2000-11-05 David O'Brien <[email protected]> | |
5481 | ||
5482 | * configure.in: Recognize alpha-*-freebsd*. | |
5483 | * configure: Regenerate. | |
5484 | ||
5485 | 2000-11-02 Luciano Gemme <[email protected]> | |
5486 | ||
5487 | * srec.c (CHUNK): Rename to DEFAULT_CHUNK. | |
5488 | (Chunk): New global variable set by a parameter in objcopy.c. | |
5489 | (S3Forced): New global variable set by a parameter in | |
5490 | objcopy.c. | |
5491 | (srec_set_section_contents): If S3Forced is true, always generate | |
5492 | S3 records. | |
5493 | (srec_write_section): Use 'Chunk' to limit maximum length of S | |
5494 | records. | |
5495 | ||
5496 | 2000-11-02 Per Lundberg <[email protected]> | |
5497 | ||
5498 | * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos. | |
5499 | * Makefile.in: Regenerate. | |
5500 | * bfd-in2.h: Regenerate. | |
5501 | * po/bfd.pot: Regenerate. | |
5502 | ||
5503 | 2000-10-31 Philip Blundell <[email protected]> | |
5504 | ||
5505 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle | |
5506 | EF_SOFT_FLOAT if it is defined. | |
5507 | ||
5508 | 2000-10-27 Philip Blundell <[email protected]> | |
5509 | ||
5510 | * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse | |
5511 | attempts to mix PIC code with non-PIC, just mark the output as | |
5512 | being position dependent. | |
5513 | (elf32_arm_merge_private_bfd_data): Likewise. Print an error | |
5514 | message for EF_SOFT_FLOAT mismatches. Display diagnostics for | |
5515 | all mismatches, not just the first one. | |
5516 | ||
5517 | 2000-10-25 Chris Demetriou <[email protected]> | |
5518 | ||
5519 | * ieee.c (ieee_archive_p): Plug one of many possible | |
5520 | memory leaks in error handling. | |
5521 | ||
5522 | 2000-10-20 Jakub Jelinek <[email protected]> | |
5523 | ||
5524 | * elf32-sparc.c (elf32_sparc_merge_private_bfd_data, | |
5525 | elf32_sparc_object_p, elf32_sparc_final_write_processing): | |
5526 | Support v8plusb. | |
5527 | * elf64-sparc.c (sparc64_elf_merge_private_bfd_data, | |
5528 | sparc64_elf_object_p): Support v9b. | |
5529 | * archures.c: Declare v8plusb and v9b machines. | |
5530 | * bfd-in2.h: Ditto. | |
5531 | * cpu-sparc.c: Ditto. | |
5532 | ||
5533 | 2000-10-16 Geoffrey Keating <[email protected]> | |
5534 | ||
5535 | * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location | |
5536 | of a GOT reloc. | |
5537 | ||
5538 | * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro. | |
5539 | (SYMBOL_CALLS_LOCAL): New macro. | |
5540 | (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL. | |
5541 | (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL. | |
5542 | (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL. | |
5543 | (ppc_elf_relocate_section): Use flag variable to determine | |
5544 | whether the relocation refers to a local symbol. | |
5545 | Test whether a PLTREL24 reloc will produce a reloc by looking | |
5546 | to see whether a PLT entry was made. | |
5547 | ||
5548 | 2000-10-14 Geoffrey Keating <[email protected]> | |
5549 | ||
5550 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT | |
5551 | entries that could serve as a definition for a weak symbol. | |
5552 | ||
5553 | 2000-10-13 Ulf Carlsson <[email protected]> | |
5554 | ||
5555 | From Ralf Baechle <[email protected]> | |
5556 | ||
5557 | * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument | |
5558 | local_p. Add symbol value only for non-R_MIPS_REL32 relocations | |
5559 | against local symbols. | |
5560 | (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01. | |
5561 | ||
5562 | 2000-10-12 Alan Modra <[email protected]> | |
5563 | ||
5564 | * section.c (struct sec): Add kept_section. | |
5565 | (struct bfd_comdat_info): Remove sec, we can use above. | |
5566 | (STD_SECTION): Add initializer. | |
5567 | (bfd_make_section_anyway): Init here too. | |
5568 | ||
5569 | * bfd-in2.h: Regenerate. | |
5570 | ||
5571 | * elflink.h (elf_link_add_object_symbols): Remove unnecessary | |
5572 | zeroing of `flags'. | |
5573 | (elf_link_input_bfd): Set all asection->symbol->value's here, and | |
5574 | fudge values for discarded link-once section symbols. | |
5575 | ||
5576 | * elf64-hppa.c: Include alloca-conf.h | |
5577 | ||
5578 | 2000-10-11 Alan Modra <[email protected]> | |
5579 | ||
5580 | * elf.c (swap_out_syms): Revert 2000-10-07 changes. | |
5581 | ||
5582 | * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg. | |
5583 | ||
5584 | 2000-10-10 Alan Modra <[email protected]> | |
5585 | ||
5586 | * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc. | |
5587 | ||
5588 | 2000-10-10 Tom Rix <[email protected]> | |
5589 | ||
5590 | * section.c (bfd_make_section_anyway): Release newsect ptr when | |
5591 | newsect->symbol fails to alloc. Use bfd_release instead of free. | |
5592 | ||
5593 | 2000-10-09 Richard Henderson <[email protected] | |
5594 | ||
5595 | * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New. | |
5596 | (elf64_ia64_unwind_entry_compare): New. | |
5597 | (elf64_ia64_final_link): Sort the .IA_64.unwind section. | |
5598 | ||
5599 | 2000-10-07 Alan Modra <[email protected]> | |
5600 | ||
5601 | * elflink.h (size_dynamic_sections): Don't create various tags if | |
5602 | .dynstr is excluded from the link. Don't set first dynsym entry | |
5603 | if dynsymcount is zero. | |
5604 | (elf_bfd_final_link): Don't try to swap out dynamic syms if | |
5605 | .dynsym excluded from the link. Don't try to write any dynamic | |
5606 | sections excluded from the link. | |
5607 | ||
5608 | * elf.c (swap_out_syms): Handle global section symbols. | |
5609 | ||
5610 | 2000-10-05 DJ Delorie <[email protected]> | |
5611 | ||
5612 | * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs | |
5613 | * coffcode.h (coff_set_alignment_hook): read extended reloc count | |
5614 | (coff_write_relocs): write extended reloc count | |
5615 | (coff_write_object_contents): account for extended relocs | |
5616 | ||
5617 | 2000-10-05 Jim Wilson <[email protected]> | |
5618 | ||
5619 | * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags | |
5620 | field. | |
5621 | * elf.c (_bfd_elf_make_section_from_shdr): Call the | |
5622 | elf_backend_section_flags function. | |
5623 | * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion | |
5624 | code. | |
5625 | (elf64_ia64_section_flags): New function containing flag conversion | |
5626 | code. | |
5627 | (elf_backend_section_flags): Define to elf64_ia64_section_flags. | |
5628 | * elfxx-target.h (elf_backend_section_flags): Define. | |
5629 | (elfNN_bed): Initialize elf_backend_section_flags field. | |
5630 | ||
5631 | 2000-10-02 Alan Modra <[email protected]> | |
5632 | ||
5633 | * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to | |
5634 | _bfd_elf32_gc_record_vtable. Correct a comment. | |
5635 | ||
5636 | 2000-10-01 Ulf Carlsson <[email protected]> | |
5637 | ||
5638 | From Ralf Baechle <[email protected]> | |
5639 | ||
5640 | * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld | |
5641 | produces binaries with got[1] = 0x80000001 to differenciate them | |
5642 | for the dynamic linker from the broken binaries produced by old | |
5643 | versions. | |
5644 | ||
5645 | 2000-09-30 Petr Sorfa <[email protected]> | |
5646 | ||
5647 | * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t. | |
5648 | (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t. | |
5649 | * configure.in: Add check for pxstatus_t and lwpxstatus_t. | |
5650 | * configure: Regenerate. | |
5651 | ||
5652 | 2000-09-27 Hans-Peter Nilsson <[email protected]> | |
5653 | ||
5654 | Define two bfd_targets for absence and presence of leading | |
5655 | underscore on symbols. Make sure to only link same kind. | |
5656 | * elf32-cris.c (cris_elf_object_p, | |
5657 | cris_elf_final_write_processing, cris_elf_print_private_bfd_data, | |
5658 | cris_elf_merge_private_bfd_data): New. | |
5659 | (elf_backend_object_p, elf_backend_final_write_processing, | |
5660 | bfd_elf32_bfd_print_private_bfd_data, | |
5661 | bfd_elf32_bfd_merge_private_bfd_data): Define. | |
5662 | <Target vector definition>: Include elf32-target.h twice with | |
5663 | different macro settings: | |
5664 | (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as | |
5665 | bfd_elf32_us_cris_vec. | |
5666 | (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris". | |
5667 | (elf_symbol_leading_char): First as 0, then '_'. | |
5668 | (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h. | |
5669 | * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs. | |
5670 | * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector. | |
5671 | * configure: Regenerate. | |
5672 | * targets.c: Declare bfd_elf32_us_cris_vec. | |
5673 | * po/bfd.pot: Regenerate. | |
5674 | ||
5675 | 2000-09-29 Momchil Velikov <[email protected]> | |
5676 | ||
5677 | * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for | |
5678 | R_ARM_THM_PC22 relocations. | |
5679 | ||
5680 | 2000-09-29 NIIBE Yutaka <[email protected]> | |
5681 | ||
5682 | * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath. | |
5683 | ||
5684 | 2000-09-29 Momchil Velikov <[email protected]> | |
5685 | ||
5686 | * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if | |
5687 | is has the SEC_HAS_CONTENTS flag set. | |
5688 | ||
5689 |