Commit | Line | Data |
---|---|---|
38701953 AM |
1 | 2001-09-25 Alan Modra <amodra@bigpond.net.au> |
2 | ||
3 | * elf32-i386.c: Add comment re linker function names and ordering. | |
4 | (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc. | |
5 | (elf_i386_grok_prstatus): Move before linker functions. | |
6 | (elf_i386_grok_psinfo): Likewise. | |
7 | (elf_i386_fake_sections): Move so that functions are ordered. | |
8 | (elf_i386_reloc_type_class): Likewise. Comment function purpose. | |
9 | ||
98ceb8ce AM |
10 | 2001-09-25 Alan Modra <amodra@bigpond.net.au> |
11 | ||
83c81bfe AM |
12 | * elf32-hppa.c: Rename all occurrences of "hplink" to "htab" |
13 | throughout file. | |
14 | ||
98ceb8ce AM |
15 | * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all |
16 | code handling this option. | |
17 | (LONG_BRANCH_VIA_PLT): Likewise. | |
18 | (RELATIVE_DYNRELOCS): Define as zero. | |
19 | (struct elf32_hppa_dyn_reloc_entry): Add "sec", and | |
20 | "pc_count" fields. Remove "section" field. | |
21 | (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs. | |
22 | (elf32_hppa_check_relocs): Don't allocate space for dynamic | |
23 | relocs here. Instead, record all needed dynamic relocs via | |
24 | dyn_relocs and local_dynrel. Cache pointer to "sreloc" section | |
25 | in elf_section_data. | |
26 | (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
27 | (allocate_plt_and_got_and_discard_relocs): Rename to | |
28 | allocate_dynrelocs. Allocate rather than discarding dyn relocs. | |
29 | (readonly_dynrelocs): New function. | |
30 | (elf32_hppa_size_dynamic_sections): Mark output_bfd unused. | |
31 | Call readonly_dynrelocs to determine need for DT_TEXTREL. | |
32 | Rename "i" to "ibfd". Allocate space for local dyn relocs. | |
33 | (elf32_hppa_relocate_section): Make use of cached sreloc. | |
34 | (elf32_hppa_reloc_type_class): New function. | |
35 | (elf_backend_reloc_type_class): Define. | |
36 | ||
0c715baa AM |
37 | 2001-09-25 Alan Modra <amodra@bigpond.net.au> |
38 | ||
39 | * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel" | |
40 | and "sreloc" fields. | |
41 | * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and | |
42 | "pc_count" fields. Remove "section" field. | |
43 | (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't | |
44 | allocate space for dynamic relocs here. Instead, record all | |
45 | needed dynamic relocs via dyn_relocs and local_dynrel. Cache | |
46 | pointer to "sreloc" section in elf_section_data. | |
47 | (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
48 | (allocate_plt_and_got_and_discard_relocs): Rename to | |
49 | allocate_dynrelocs. Allocate rather than discarding dyn relocs. | |
50 | (readonly_dynrelocs): New function. | |
51 | (elf_i386_size_dynamic_sections): Call readonly_dynrelocs. | |
52 | Rename "i" to "ibfd". Allocate space for local dyn relocs. | |
53 | (elf_i386_relocate_section): Make use of cached sreloc. | |
54 | ||
f51e552e AM |
55 | 2001-09-24 Alan Modra <amodra@bigpond.net.au> |
56 | ||
57 | * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire | |
58 | reloc rather than just the type. | |
59 | (_bfd_elf_reloc_type_class): Likewise. | |
60 | * elf.c (_bfd_elf_reloc_type_class): Likewise. | |
61 | * elf32-arm.h (elf32_arm_reloc_type_class): Likewise. | |
62 | * elf32-cris.c (elf_cris_reloc_type_class): Likewise. | |
63 | * elf32-i386.c (elf_i386_reloc_type_class): Likewise. | |
64 | * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise. | |
65 | * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise. | |
66 | * elf32-s390.c (elf_s390_reloc_type_class): Likewise. | |
67 | * elf32-sh.c (sh_elf_reloc_type_class): Likewise. | |
68 | * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise. | |
69 | * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise. | |
70 | * elf64-s390.c (elf_s390_reloc_type_class): Likewise. | |
71 | * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise. | |
72 | * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise. | |
73 | * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise. | |
74 | * elflink.h: Formatting fixes. | |
75 | (elf_link_sort_relocs): Make "count" and "size" bfd_size_type. | |
76 | Call bfd_zmalloc rather than calloc. Remove unnecessary cast of | |
77 | o->contents to PTR. Update call to elf_backend_reloc_type_class. | |
78 | ||
0c35f01a AM |
79 | 2001-09-22 John Reiser <jreiser@BitWagon.com> |
80 | ||
81 | * elfcode.h (elf_object_p): Allow for no section header at all in | |
82 | non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff. | |
83 | ||
1e738b87 NC |
84 | 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com> |
85 | ||
86 | * elfxx-ia64.c: Fix compile time warning messages. | |
87 | * bfd/coff-mcore.c: Fix compile time warning messages. | |
88 | * bfd/coff-ppc.c: Fix compile time warning messages. | |
89 | * bfd/coffcode.h: Fix compile time warning messages. | |
90 | * bfd/elf32-mips.c: Fix compile time warning messages. | |
91 | * bfd/elf64-alpha.c: Fix compile time warning messages. | |
92 | * bfd/libbfd.c: Fix compile time warning messages. | |
93 | * bfd/bfd-in2.h: Regenerate. | |
94 | ||
923f08ff AM |
95 | 2001-09-21 Alan Modra <amodra@bigpond.net.au> |
96 | ||
97 | * Makefile.am: Run "make dep-am". | |
98 | * Makefile.in: Regenerate. | |
99 | ||
100 | * aoutx.h: Formatting fixes. | |
101 | * merge.c (_bfd_merged_section_offset): Break line at 80 chars. | |
102 | ||
103 | * linker.c: Replace bfd_get_filename with bfd_archive_filename | |
104 | in error message. | |
105 | ||
8f615d07 AM |
106 | 2001-09-21 Alan Modra <amodra@bigpond.net.au> |
107 | ||
108 | * bfd.c (bfd_archive_filename): New function. | |
109 | * bfd-in2.h: Regenerate. | |
110 | * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename | |
111 | in error messages where the bfd is an input bfd. | |
112 | * aout-cris.c: Likewise. | |
113 | * coff-arm.c: Likewise. | |
114 | * coff-mcore.c: Likewise. | |
115 | * coff-ppc.c: Likewise. | |
116 | * coff-rs6000.c: Likewise. | |
117 | * coff-sh.c: Likewise. | |
118 | * coff-tic54x.c: Likewise. | |
119 | * coff-tic80.c: Likewise. | |
120 | * coff64-rs6000.c: Likewise. | |
121 | * coffcode.h: Likewise. | |
122 | * coffgen.c: Likewise. | |
123 | * cofflink.c: Likewise. | |
124 | * ecofflink.c: Likewise. | |
125 | * elf-hppa.h: Likewise. | |
126 | * elf.c: Likewise. | |
127 | * elf32-arm.h: Likewise. | |
128 | * elf32-cris.c: Likewise. | |
129 | * elf32-gen.c: Likewise. | |
130 | * elf32-hppa.c: Likewise. | |
131 | * elf32-i370.c: Likewise. | |
132 | * elf32-i386.c: Likewise. | |
133 | * elf32-m32r.c: Likewise. | |
134 | * elf32-mcore.c: Likewise. | |
135 | * elf32-mips.c: Likewise. | |
136 | * elf32-ppc.c: Likewise. | |
137 | * elf32-s390.c: Likewise. | |
138 | * elf32-sh.c: Likewise. | |
139 | * elf32-sparc.c: Likewise. | |
140 | * elf32-v850.c: Likewise. | |
141 | * elf64-alpha.c: Likewise. | |
142 | * elf64-gen.c: Likewise. | |
143 | * elf64-ppc.c: Likewise. | |
144 | * elf64-s390.c: Likewise. | |
145 | * elf64-sparc.c: Likewise. | |
146 | * elf64-x86-64.c: Likewise. | |
147 | * elflink.h: Likewise. | |
148 | * elfxx-ia64.c: Likewise. | |
149 | * ieee.c: Likewise. | |
150 | * ihex.c: Likewise. | |
151 | * libbfd.c: Likewise. | |
152 | * pdp11.c: Likewise. | |
153 | * pe-mips.c: Likewise. | |
154 | * peicode.h: Likewise. | |
155 | * srec.c: Likewise. | |
156 | * xcofflink.c: Likewise. | |
157 | ||
158 | * elf32-arm.h: Make _bfd_error_handler calls K&R compatible. | |
159 | ||
160 | * elflink.c (_bfd_elf_create_linker_section): Better grammar for | |
161 | error message. | |
162 | ||
163 | * coff-mcore.c (coff_mcore_relocate_section): Internalionalise | |
164 | error message. | |
165 | ||
166 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types. | |
167 | Consolidate error messages, and split long messages to two lines. | |
168 | ||
671bae9c | 169 | 2001-09-20 John Reiser <jreiser@BitWagon.com> |
83c81bfe | 170 | |
f51e552e AM |
171 | * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic |
172 | and info->allow_shlib_undefined. | |
173 | * elf32-cris.c: Likewise. | |
174 | * elf32-hppa.c: Likewise. | |
175 | * elf32-m68k.c: Likewise. | |
176 | * elf32-mips.c: Likewise. | |
177 | * elf32-ppc.c: Likewise. | |
178 | * elf32-s390.c: Likewise. | |
179 | * elf32-sh.c: Likewise. | |
180 | * elf32-sparc.c: Likewise. | |
181 | * elf64-alpha.c: Likewise. | |
182 | * elf64-hppa.c: Likewise. | |
183 | * elf64-ppc.c: Likewise. | |
184 | * elf64-s390.c: Likewise. | |
185 | * elf64-sparc.c: Likewise. | |
186 | * elf64-x86-64.c: Likewise. | |
187 | * elfxx-ia64.c: Likewise. | |
671bae9c | 188 | |
3882b010 L |
189 | 2001-09-18 Bruno Haible <haible@clisp.cons.org> |
190 | ||
191 | * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>. | |
192 | (aout_link_write_symbols): Use ISDIGIT instead of isdigit. | |
193 | * archive.c: Include "safe-ctype.h" instead of <ctype.h>. | |
194 | (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit. | |
195 | * archures.c: Include "safe-ctype.h" instead of <ctype.h>. | |
196 | (bfd_default_scan): Use ISDIGIT instead of isdigit. | |
197 | * bfd.c: Include "safe-ctype.h" instead of <ctype.h>. | |
198 | (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of | |
199 | isxdigit/isdigit/islower. | |
200 | * binary.c: Include "safe-ctype.h" instead of <ctype.h>. | |
201 | (mangle_name): Use ISALNUM instead of isalnum. | |
202 | * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>. | |
203 | (scan): Use ISDIGIT instead of isdigit. | |
204 | * hosts/alphavms.h: Don't include <ctype.h>. | |
205 | * ieee.c: Include "safe-ctype.h" instead of <ctype.h>. | |
206 | (ieee_object_p): Use TOUPPER instead of toupper. | |
207 | * ihex.c: Include "safe-ctype.h" instead of <ctype.h>. | |
208 | (ihex_bad_byte): Use ISPRINT instead of isprint. | |
209 | * merge.c: Don't include <ctype.h>. | |
210 | * oasys.c: Include "safe-ctype.h" instead of <ctype.h>. | |
211 | (oasys_write_sections): Use ISDIGIT instead of isdigit. | |
212 | * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>. | |
213 | (aout_link_write_symbols): Use ISDIGIT instead of isdigit. | |
214 | * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>. | |
215 | (mangle_name): Use ISALNUM instead of isalnum. | |
216 | * som.c: Include "safe-ctype.h" instead of <ctype.h>. | |
217 | (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of | |
218 | isupper/islower/isdigit. | |
219 | (som_decode_symclass): Use TOUPPER instead of toupper. | |
220 | * srec.c: Include "safe-ctype.h" instead of <ctype.h>. | |
221 | (srec_bad_byte): Use ISPRINT instead of isprint. | |
222 | (srec_scan): Use ISSPACE instead of isspace. | |
223 | * stabs.c: Include "safe-ctype.h" instead of <ctype.h>. | |
224 | (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit. | |
225 | * syms.c: Include "safe-ctype.h" | |
226 | (islower, toupper): Remove macro definitions. | |
227 | (bfd_decode_symclass): Use TOUPPER instead of toupper. | |
228 | * vms-gsd.c: Don't include <ctype.h>. | |
229 | * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>. | |
230 | (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of | |
231 | islower/toupper. | |
232 | * vms-tir.c: Don't include <ctype.h>. | |
233 | ||
dc810e39 AM |
234 | 2001-09-18 Alan Modra <amodra@bigpond.net.au> |
235 | ||
236 | * libbfd.c (bfd_bread): New function replacing bfd_read without | |
237 | redundant params. Allow reads up to (size_t) -2 in length. | |
238 | (bfd_bwrite): Similarly for bfd_write. | |
239 | (real_read): Return a size_t. | |
240 | (bfd_read): Call bfd_bread. | |
241 | (bfd_write): Call bfd_bwrite. | |
242 | (warn_deprecated): New function to annoy everybody. | |
243 | (bfd_get_file_window): Don't call bfd_set_error unnecessarily. | |
244 | * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare. | |
245 | (bfd_read, bfd_write): Define as macro. | |
246 | * aix386-core.c: Replace calls to bfd_read with bfd_bread, and | |
247 | likewise for bfd_write. Ensure function args are correct size by | |
248 | using casts or local vars. In some cases, remove unnecessary | |
249 | casts. Formatting fixes, in some cases removing a large expression | |
250 | from function args by using a local var. Replace CONST with const. | |
251 | Modify variable types to avoid warings. Use casts to avoid | |
252 | warnings when using negative numbers in unsigned expressions. | |
253 | * aout-adobe.c: Likewise. | |
254 | * aout-arm.c: Likewise. | |
255 | * aout-cris.c: Likewise. | |
256 | * aout-encap.c: Likewise. | |
257 | * aout-ns32k.c: Likewise. | |
258 | * aout-target.h: Likewise. | |
259 | * aout-tic30.c: Likewise. | |
260 | * aoutf1.h: Likewise. | |
261 | * aoutx.h: Likewise. | |
262 | * archive.c: Likewise. | |
263 | * archures.c: Likewise. | |
264 | * bfd-in.h: Likewise. | |
265 | * bfd.c: Likewise. | |
266 | * binary.c: Likewise. | |
267 | * bout.c: Likewise. | |
268 | * cache.c: Likewise. | |
269 | * cisco-core.c: Likewise. | |
270 | * coff-a29k.c: Likewise. | |
271 | * coff-alpha.c: Likewise. | |
272 | * coff-arm.c: Likewise. | |
273 | * coff-h8300.c: Likewise. | |
274 | * coff-h8500.c: Likewise. | |
275 | * coff-i386.c: Likewise. | |
276 | * coff-i860.c: Likewise. | |
277 | * coff-i960.c: Likewise. | |
278 | * coff-ia64.c: Likewise. | |
279 | * coff-m68k.c: Likewise. | |
280 | * coff-m88k.c: Likewise. | |
281 | * coff-mcore.c: Likewise. | |
282 | * coff-mips.c: Likewise. | |
283 | * coff-ppc.c: Likewise. | |
284 | * coff-rs6000.c: Likewise. | |
285 | * coff-sh.c: Likewise. | |
286 | * coff-sparc.c: Likewise. | |
287 | * coff-stgo32.c: Likewise. | |
288 | * coff-tic30.c: Likewise. | |
289 | * coff-tic54x.c: Likewise. | |
290 | * coff-tic80.c: Likewise. | |
291 | * coff-w65.c: Likewise. | |
292 | * coff-z8k.c: Likewise. | |
293 | * coff64-rs6000.c: Likewise. | |
294 | * coffcode.h: Likewise. | |
295 | * coffgen.c: Likewise. | |
296 | * cofflink.c: Likewise. | |
297 | * coffswap.h: Likewise. | |
298 | * corefile.c: Likewise. | |
299 | * cpu-arc.c: Likewise. | |
300 | * cpu-h8300.c: Likewise. | |
301 | * cpu-h8500.c: Likewise. | |
302 | * cpu-i960.c: Likewise. | |
303 | * cpu-ia64-opc.c: Likewise. | |
304 | * cpu-ns32k.c: Likewise. | |
305 | * cpu-pdp11.c: Likewise. | |
306 | * cpu-pj.c: Likewise. | |
307 | * cpu-sh.c: Likewise. | |
308 | * cpu-w65.c: Likewise. | |
309 | * cpu-z8k.c: Likewise. | |
310 | * dwarf1.c: Likewise. | |
311 | * dwarf2.c: Likewise. | |
312 | * ecoff.c: Likewise. | |
313 | * ecofflink.c: Likewise. | |
314 | * ecoffswap.h: Likewise. | |
315 | * elf-bfd.h: Likewise. | |
316 | * elf-hppa.h: Likewise. | |
317 | * elf-m10200.c: Likewise. | |
318 | * elf-m10300.c: Likewise. | |
319 | * elf.c: Likewise. | |
320 | * elf32-arc.c: Likewise. | |
321 | * elf32-arm.h: Likewise. | |
322 | * elf32-avr.c: Likewise. | |
323 | * elf32-cris.c: Likewise. | |
324 | * elf32-fr30.c: Likewise. | |
325 | * elf32-gen.c: Likewise. | |
326 | * elf32-h8300.c: Likewise. | |
327 | * elf32-hppa.c: Likewise. | |
328 | * elf32-i370.c: Likewise. | |
329 | * elf32-i386.c: Likewise. | |
330 | * elf32-i860.c: Likewise. | |
331 | * elf32-m32r.c: Likewise. | |
332 | * elf32-m68k.c: Likewise. | |
333 | * elf32-mcore.c: Likewise. | |
334 | * elf32-mips.c: Likewise. | |
335 | * elf32-openrisc.c: Likewise. | |
336 | * elf32-pj.c: Likewise. | |
337 | * elf32-ppc.c: Likewise. | |
338 | * elf32-s390.c: Likewise. | |
339 | * elf32-sh-lin.c: Likewise. | |
340 | * elf32-sh.c: Likewise. | |
341 | * elf32-sparc.c: Likewise. | |
342 | * elf32-v850.c: Likewise. | |
343 | * elf64-alpha.c: Likewise. | |
344 | * elf64-hppa.c: Likewise. | |
345 | * elf64-mips.c: Likewise. | |
346 | * elf64-ppc.c: Likewise. | |
347 | * elf64-s390.c: Likewise. | |
348 | * elf64-sparc.c: Likewise. | |
349 | * elf64-x86-64.c: Likewise. | |
350 | * elfarm-nabi.c: Likewise. | |
351 | * elfcode.h: Likewise. | |
352 | * elfcore.h: Likewise. | |
353 | * elflink.c: Likewise. | |
354 | * elflink.h: Likewise. | |
355 | * elfxx-ia64.c: Likewise. | |
356 | * elfxx-target.h: Likewise. | |
357 | * format.c: Likewise. | |
358 | * hash.c: Likewise. | |
359 | * hp300hpux.c: Likewise. | |
360 | * hppabsd-core.c: Likewise. | |
361 | * hpux-core.c: Likewise. | |
362 | * i386aout.c: Likewise. | |
363 | * i386dynix.c: Likewise. | |
364 | * i386linux.c: Likewise. | |
365 | * i386lynx.c: Likewise. | |
366 | * i386mach3.c: Likewise. | |
367 | * i386msdos.c: Likewise. | |
368 | * i386os9k.c: Likewise. | |
369 | * ieee.c: Likewise. | |
370 | * ihex.c: Likewise. | |
371 | * irix-core.c: Likewise. | |
372 | * libaout.h: Likewise. | |
373 | * libbfd-in.h: Likewise. | |
374 | * libbfd.c: Likewise. | |
375 | * libcoff-in.h: Likewise. | |
376 | * libecoff.h: Likewise. | |
377 | * libieee.h: Likewise. | |
378 | * libnlm.h: Likewise. | |
379 | * libpei.h: Likewise. | |
380 | * libxcoff.h: Likewise. | |
381 | * linker.c: Likewise. | |
382 | * lynx-core.c: Likewise. | |
383 | * m68klinux.c: Likewise. | |
384 | * merge.c: Likewise. | |
385 | * mipsbsd.c: Likewise. | |
386 | * netbsd-core.c: Likewise. | |
387 | * nlm.c: Likewise. | |
388 | * nlm32-alpha.c: Likewise. | |
389 | * nlm32-i386.c: Likewise. | |
390 | * nlm32-ppc.c: Likewise. | |
391 | * nlm32-sparc.c: Likewise. | |
392 | * nlmcode.h: Likewise. | |
393 | * nlmswap.h: Likewise. | |
394 | * ns32k.h: Likewise. | |
395 | * oasys.c: Likewise. | |
396 | * opncls.c: Likewise. | |
397 | * osf-core.c: Likewise. | |
398 | * pc532-mach.c: Likewise. | |
399 | * pdp11.c: Likewise. | |
400 | * pe-mips.c: Likewise. | |
401 | * peXXigen.c: Likewise. | |
402 | * peicode.h: Likewise. | |
403 | * ppcboot.c: Likewise. | |
404 | * ptrace-core.c: Likewise. | |
405 | * reloc.c: Likewise. | |
406 | * reloc16.c: Likewise. | |
407 | * riscix.c: Likewise. | |
408 | * rs6000-core.c: Likewise. | |
409 | * sco5-core.c: Likewise. | |
410 | * section.c: Likewise. | |
411 | * som.c: Likewise. | |
412 | * sparclinux.c: Likewise. | |
413 | * sparclynx.c: Likewise. | |
414 | * srec.c: Likewise. | |
415 | * stabs.c: Likewise. | |
416 | * sunos.c: Likewise. | |
417 | * syms.c: Likewise. | |
418 | * targets.c: Likewise. | |
419 | * tekhex.c: Likewise. | |
420 | * trad-core.c: Likewise. | |
421 | * versados.c: Likewise. | |
422 | * vms-gsd.c: Likewise. | |
423 | * vms-hdr.c: Likewise. | |
424 | * vms-misc.c: Likewise. | |
425 | * vms-tir.c: Likewise. | |
426 | * vms.c: Likewise. | |
427 | * vms.h: Likewise. | |
428 | * xcofflink.c: Likewise. | |
429 | * bfd-in2.h: Regenerate. | |
430 | * libbfd.h: Regenerate. | |
431 | * libcoff.h: Regenerate. | |
432 | ||
433 | * bfd.c (struct _bfd): Make "where" and "origin" unsigned. | |
434 | * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma. | |
435 | (ufile_ptr): Define. | |
436 | (bfd_tell): Return a ufile_ptr. | |
437 | * libbfd.c (bfd_tell): Likewise. | |
438 | (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error | |
439 | unnecessarily. | |
440 | * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0. | |
441 | * aoutf1.h: Likewise. | |
442 | * som.c: Likewise. | |
443 | * cache.c (bfd_cache_lookup_worker): Guard against abfd->where | |
444 | larger than unsigned long can represent. | |
445 | ||
446 | * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if | |
447 | size overflows size_t. | |
448 | (bfd_realloc): Likewise. | |
449 | (bfd_zmalloc): Likewise. | |
450 | * opncls.c (bfd_alloc): Likewise. | |
451 | (bfd_zalloc): Likewise. | |
452 | * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update. | |
453 | (bfd_alloc, bfd_zalloc): Update. | |
454 | ||
455 | * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than | |
456 | 8 bits. | |
457 | (bfd_get_signed_8): Likewise. | |
458 | (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8, | |
459 | H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8, | |
460 | H_GET_64, H_GET_32, H_GET_16, H_GET_8, | |
461 | H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use. | |
462 | * libaout.h: Likewise define and use here. | |
463 | * aout-adobe.c: Use H_GET_* and H_PUT_* macros. | |
464 | * aout-arm.c: Likewise. | |
465 | * aout-encap.c: Likewise. | |
466 | * aout-ns32k.c: Likewise. | |
467 | * aout-tic30.c: Likewise. | |
468 | * aoutf1.h: Likewise. | |
469 | * aoutx.h: Likewise. | |
470 | * bout.c: Likewise. | |
471 | * coff-alpha.c: Likewise. | |
472 | * coff-h8300.c: Likewise. | |
473 | * coff-h8500.c: Likewise. | |
474 | * coff-i960.c: Likewise. | |
475 | * coff-ia64.c: Likewise. | |
476 | * coff-m88k.c: Likewise. | |
477 | * coff-mips.c: Likewise. | |
478 | * coff-ppc.c: Likewise. | |
479 | * coff-rs6000.c: Likewise. | |
480 | * coff-sh.c: Likewise. | |
481 | * coff-sparc.c: Likewise. | |
482 | * coff-stgo32.c: Likewise. | |
483 | * coff-tic30.c: Likewise. | |
484 | * coff-tic80.c: Likewise. | |
485 | * coff-w65.c: Likewise. | |
486 | * coff-z8k.c: Likewise. | |
487 | * coff64-rs6000.c: Likewise. | |
488 | * coffgen.c: Likewise. | |
489 | * cofflink.c: Likewise. | |
490 | * coffswap.h: Likewise. | |
491 | * ecoff.c: Likewise. | |
492 | * ecoffswap.h: Likewise. | |
493 | * elf.c: Likewise. | |
494 | * elf32-mips.c: Likewise. | |
495 | * elf64-mips.c: Likewise. | |
496 | * hp300hpux.c: Likewise. | |
497 | * i386dynix.c: Likewise. | |
498 | * i386lynx.c: Likewise. | |
499 | * i386msdos.c: Likewise. | |
500 | * i386os9k.c: Likewise. | |
501 | * libpei.h: Likewise. | |
502 | * nlm32-alpha.c: Likewise. | |
503 | * nlm32-i386.c: Likewise. | |
504 | * nlm32-ppc.c: Likewise. | |
505 | * nlmcode.h: Likewise. | |
506 | * nlmswap.h: Likewise. | |
507 | * oasys.c: Likewise. | |
508 | * pdp11.c: Likewise. | |
509 | * pe-mips.c: Likewise. | |
510 | * peXXigen.c: Likewise. | |
511 | * peicode.h: Likewise. | |
512 | * riscix.c: Likewise. | |
513 | * sunos.c: Likewise. | |
514 | * xcofflink.c: Likewise. | |
515 | * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word): | |
516 | Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD. | |
517 | * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use | |
518 | equivalent H_PUT_* macro instead. | |
519 | (GETWORD, GETHALF, GETBYTE): Similarly. | |
520 | * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise. | |
521 | (GETWORD, GETHALF, GETBYTE): Likewise. | |
522 | * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise. | |
523 | ||
524 | * bfd-in.h (struct orl): Change "pos" to a union. | |
525 | * archive.c (_bfd_compute_and_write_armap): Use it instead of casts. | |
526 | (bsd_write_armap): Here too. | |
527 | (coff_write_armap): And here. | |
528 | * coff-rs6000.c (xcoff_write_armap_old): And here. | |
529 | (xcoff_write_one_armap_big): And here. | |
530 | (xcoff_write_armap_big): And here. | |
531 | * ecoff.c (_bfd_ecoff_write_armap): And here. | |
532 | * elf64-mips.c (mips_elf64_write_armap): And here. | |
533 | ||
534 | * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum. | |
535 | * elf-m10300.c (elf_mn10300_mach): Return an unsigned long. | |
536 | * elf32-h8300.c (elf32_h8_mach): Likewise. | |
537 | * elf32-mips.c (elf_mips_mach): Likewise. | |
538 | * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise. | |
539 | ||
540 | * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release | |
541 | calls. | |
542 | (aix386_core_vec): Typo fix. | |
543 | ||
544 | * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR | |
545 | etc. to avoid redefined macro warning. | |
546 | (MY(put_reloc)): Use bfd_vma for "value" rather than long. | |
547 | (MY(fix_pcrel_26)): Likewise. | |
548 | * aout-ns32k.c (MY(put_reloc)): Likewise. | |
549 | * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend. | |
550 | * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise. | |
551 | * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset. | |
552 | ||
553 | * aout-encap.c: Include "file", not <file> for binutils headers. | |
554 | (encap_object_p): Half baked attempt to fix compile errors in | |
555 | code dealing with "magic". | |
556 | ||
557 | * aout-ns32k.c: Include "file", not <file> for binutils headers. | |
558 | (_bfd_ns32k_relocate_contents): get_data and put_data manipulate | |
559 | bfd_vma's rather than longs. | |
560 | * cpu-ns32k.c (ns32k_sign_extend): Delete. | |
561 | (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset. | |
562 | (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values, | |
563 | remove case 3. | |
564 | (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset. | |
565 | Use unsigned comparisons. | |
566 | (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values. | |
567 | (do_ns32k_reloc): get_data and put_data operate on bfd_vma's. | |
568 | (_bfd_do_ns32k_reloc_contents): Likewise. | |
569 | * ns32k.h (_bfd_ns32k_get_displacement): Update prototype. | |
570 | (_bfd_ns32k_get_immediate): Likewise. | |
571 | (_bfd_ns32k_put_displacement): Likewise. | |
572 | (_bfd_ns32k_put_immediate): Likewise. | |
573 | (bfd_reloc_status_type): Likewise. | |
574 | ||
575 | * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon' | |
576 | to avoid shadowing. | |
577 | * pdp11.c (NAME(aout,find_nearest_line)): Likewise. | |
578 | * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value". | |
579 | * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to | |
580 | avoid shadowing. | |
581 | (record_toc): Use a bfd_signed_vma for our_toc_offset. | |
582 | * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing. | |
583 | * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid | |
584 | shadow warning. | |
585 | (_bfd_elfcore_strndup): Likewise for "dup". | |
586 | * elf32-cris.c (cris_elf_relocate_section): "symname" instead of | |
587 | "name" to avoid shadowing. | |
588 | * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate | |
589 | definition of "off". | |
590 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
591 | * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate | |
592 | definition of "s". | |
593 | (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate | |
594 | "secpp". | |
595 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx" | |
596 | to avoid shadowing. | |
597 | * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink" | |
598 | to avoid shadowing. | |
599 | (elf_link_input_bfd): Likewise. | |
600 | (elf_bfd_final_link): Remove duplicate innermost "off" var. | |
601 | * oasys.c (oasys_write_data): Rename innermost "p" to "sym". | |
602 | * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to | |
603 | "input_section". | |
604 | * som.c (som_prep_for_fixups): Rename inner "i" to "j". | |
605 | * sunos.c (sunos_add_dynamic_symbols): Localise "s" var. | |
606 | (sunos_write_dynamic_symbol): Remove unused vars. | |
607 | * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate | |
608 | innermost "directory_name" and "file_name" vars. | |
609 | * tekhex.c (first_phase): Rename local var "type" to "stype". | |
610 | (tekhex_write_object_contents): Rename innermost "s" to "sym". | |
611 | * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize", | |
612 | doing comparison at caller. | |
613 | (vms_esecflag_by_name): Likewise. | |
614 | * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1". | |
615 | * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o". | |
616 | (xcoff_write_global_symbol): Rename "p" param to "inf". | |
617 | ||
618 | * cisco-core.c: Add missing prototypes. | |
619 | (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED. | |
620 | (cisco_core_file_failing_signal): Likewise. | |
621 | (cisco_core_file_matches_executable_p): Likewise. | |
622 | * hpux-core.c (hpux_core_core_file_failing_signal): Likewise. | |
623 | * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise. | |
624 | * osf-core.c (osf_core_core_file_matches_executable_p): Likewise. | |
625 | * sco5-core.c (sco5_core_file_matches_executable_p): Likewise. | |
626 | ||
627 | * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for | |
628 | thumb_glue_size and arm_glue_size. | |
629 | * elf32-arm.h (elf32_arm_link_hash_table): Likewise here. | |
630 | ||
631 | * coff64-rs6000.c: Group prototypes together. | |
632 | ||
633 | * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED. | |
634 | (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type. | |
635 | ||
636 | * cpu-arc.c: Add missing prototypes. | |
637 | * cpu-h8500.c: Likewise. | |
638 | * cpu-i960.c: Likewise. | |
639 | * cpu-pj.c: Likewise. | |
640 | * cpu-sh.c: Likewise. | |
641 | * cpu-w65.c: Likewise. | |
642 | * cpu-z8k.c: Likewise. | |
643 | * elf32-fr30.c: Likewise. | |
644 | * elf32-h8300.c: Likewise. | |
645 | * elf32-i370.c: Likewise. | |
646 | * hpux-core.c: Likewise. | |
647 | * versados.c: Likewise. | |
648 | ||
649 | * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare. | |
650 | * cpu-h8500.c: Likewise. | |
651 | * cpu-i960.c: Likewise. | |
652 | * cpu-z8k.c: Likewise. | |
653 | ||
654 | * cpu-ia64-opc.c: Correct comment. | |
655 | ||
656 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var. | |
657 | ||
658 | * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs | |
659 | to unsigned. | |
660 | (bfd_elf32_write_out_phdrs): Likewise. | |
661 | (bfd_elf64_write_out_phdrs): Likewise. | |
662 | (elf_linker_section_pointers): Change addend to bfd_vma. | |
663 | (_bfd_elf_find_pointer_linker_section): Likewise. | |
664 | (_bfd_elfcore_make_pseudosection): Change size param to size_t and | |
665 | filepos to unsigned file_ptr. | |
666 | (_bfd_elfcore_strndup): Change max param to size_t. | |
667 | * elf.c (_bfd_elfcore_make_pseudosection): As above. | |
668 | (_bfd_elfcore_strndup): Likewise. | |
669 | (_bfd_elf_find_pointer_linker_section): Likewise. | |
670 | ||
671 | * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change | |
672 | insn and sym_value to ints. | |
673 | ||
674 | * elf.c (elf_read): Make "offset" param a file_ptr, "size" a | |
675 | bfd_size_type. | |
676 | (elfcore_read_notes): Likewise. | |
677 | ||
678 | * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags | |
679 | param from unsigned char to int. | |
680 | (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately | |
681 | for info_to_howto call. | |
682 | (add_dynamic_entry): Define macro. | |
683 | (elf32_arm_size_dynamic_sections): Use add_dynamic_entry. | |
684 | ||
685 | * elf32-cris.c (add_dynamic_entry): Define macro. | |
686 | (elf_cris_size_dynamic_sections): Use add_dynamic_entry. | |
687 | ||
688 | * elf32-h8300.c (elf32_h8_final_write_processing): Make static. | |
689 | (elf32_h8_object_p): Likewise. | |
690 | (elf32_h8_merge_private_bfd_data): Likewise. | |
691 | (elf32_h8_relax_section): Cast gap to int so signed comparisons work. | |
692 | ||
693 | * elf32-hppa.c (add_dynamic_entry): Define macro. | |
694 | (elf32_hppa_size_dynamic_sections): Use it. | |
695 | * elf32-i370.c (add_dynamic_entry): Define macro. | |
696 | (i370_elf_size_dynamic_sections): Use it. | |
697 | (i370_noop): Make static. | |
698 | * elf32-i386.c (add_dynamic_entry): Define macro. | |
699 | (elf_i386_size_dynamic_sections): Use it. | |
700 | * elf32-m68k.c (add_dynamic_entry): Define macro. | |
701 | (elf_m68k_size_dynamic_sections): Use it. | |
702 | * elf32-ppc.c (add_dynamic_entry): Define macro. | |
703 | (ppc_elf_size_dynamic_sections): Use it. | |
704 | * elf32-s390.c (add_dynamic_entry): Define macro. | |
705 | (elf_s390_size_dynamic_sections): Use it. | |
706 | * elf64-alpha.c (add_dynamic_entry): Define macro. | |
707 | (elf64_alpha_size_dynamic_sections): Use it. | |
708 | * elf64-hppa.c (add_dynamic_entry): Define macro. | |
709 | (elf64_hppa_size_dynamic_sections): Use it. | |
710 | * elf64-ppc.c (add_dynamic_entry): Define macro. | |
711 | (ppc64_elf_size_dynamic_sections): Use it. | |
712 | * elf64-s390.c (add_dynamic_entry): Define macro. | |
713 | (elf_s390_size_dynamic_sections): Use it. | |
714 | * elf64-sparc.c (add_dynamic_entry): Define macro. | |
715 | (sparc64_elf_size_dynamic_sections): Use it. | |
716 | * elf64-x86-64.c (add_dynamic_entry): Define macro. | |
717 | (elf64_x86_64_size_dynamic_sections): Use it. | |
718 | * elfxx-ia64.c (add_dynamic_entry): Define macro. | |
719 | (elfNN_ia64_size_dynamic_sections): Use it. | |
720 | ||
721 | * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning. | |
722 | (v850_elf_perform_relocation): Make "r_type" param unsigned. | |
723 | ||
724 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return | |
725 | false if the first malloc fails rather than going via error_return. | |
726 | ||
727 | * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for | |
728 | "index" param. | |
729 | (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too. | |
730 | ||
731 | * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message. | |
732 | ||
733 | * elfxx-ia64.c (global_sym_index): Return a long. | |
734 | ||
735 | * ieee.c (get_symbol): Use int rather than char param. | |
736 | (ieee_slurp_sections): Move "section" var to inner blocks. | |
737 | (copy_expression): Don't init "value" to zero or worry about | |
738 | clearing to zero after using. | |
739 | (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid | |
740 | shadowing. | |
741 | ||
742 | * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an | |
743 | unsigned int. | |
744 | ||
745 | * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning. | |
746 | (bfd_write_bigendian_4byte_int): Pass an unsigned int value param. | |
747 | ||
748 | * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param. | |
749 | ||
750 | * pc532-mach.c (MYNSX): Delete. | |
751 | (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX. | |
752 | (write_object_contents): Correct prototype. | |
753 | ||
754 | * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather | |
755 | than unsigned short. | |
756 | ||
757 | * section.c (bfd_set_section_contents): Remove redundant | |
758 | "offset < 0" test. Check that "count" doesn't overflow size_t. | |
759 | (bfd_get_section_contents): Likewise. | |
760 | ||
761 | * som.c (som_fixup_formats): Add missing braces. | |
762 | (som_reloc_addend): Pass a bfd_vma for "addend". | |
763 | ||
764 | * srec.c (srec_write_record): Pass "type" as an unsigned int. | |
765 | (srec_write_symbols): Remove an unnecessary var. | |
766 | ||
767 | * targets.c (_bfd_target_vector): Sort entries. Sort externs | |
768 | to match. | |
769 | * configure.in: Sort to match. Bump version number. | |
770 | * configure: Regenerate. | |
771 | ||
772 | * tekhex.c (move_section_contents): Assert offset == 0. | |
773 | ||
774 | * versados.c (new_symbol_string): Constify arg. | |
775 | (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section. | |
776 | (versados_get_symbol_info): Make static. | |
777 | (versados_print_symbol): Likewise. | |
778 | (versados_get_reloc_upper_bound): Likewise. | |
779 | (versados_canonicalize_reloc): Likewise. | |
780 | ||
417412a2 NC |
781 | 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com> |
782 | ||
783 | * elflink.h (elf_link_input_bfd): Fix typo in error message. | |
784 | ||
bb731fb6 L |
785 | 2001-09-17 H.J. Lu <hjl@gnu.org> |
786 | ||
787 | * dwarf1.c (parse_die): Take a new arg for the end of the | |
788 | section. Return false if die is beyond the section. | |
789 | (parse_functions_in_unit): Pass the end of the section to | |
790 | parse_die (). | |
791 | (_bfd_dwarf1_find_nearest_line): Likewise. | |
792 | ||
841989d6 NC |
793 | 2001-09-14 Michael Rauch <mrauch@netbsd.org> |
794 | ||
795 | * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32 | |
796 | just like R_SPARC_32. | |
797 | ||
056a1d49 NC |
798 | 2001-09-14 Kevin Lo <kevlo@openbsd.org> |
799 | ||
800 | * configure.bfd: Add arm-openbsd target. | |
801 | ||
4008bd9b TS |
802 | 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
803 | ||
804 | * config.bfd: Change machine triplets from mips*el*-* to mips*el-*. | |
805 | Add support for mips64. | |
806 | ||
c11cc227 AO |
807 | 2001-09-13 Alexandre Oliva <aoliva@redhat.com> |
808 | ||
809 | * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD. | |
810 | ||
aa4f99bb AO |
811 | 2001-09-12 Alexandre Oliva <aoliva@redhat.com> |
812 | ||
813 | * elf.c (prep_headers): Get the machine code from the elf | |
814 | backend data. | |
815 | * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200. | |
816 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200. | |
817 | * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300. | |
818 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300. | |
819 | * elf-arc.c (arc_elf_final_write_processing): Don't override | |
820 | e_machine, it's now properly set in prep_headers. | |
821 | * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and | |
822 | EM_AVR_OLD. | |
823 | (ELF_MACHINE_ALT1): Define to EM_AVR_OLD. | |
824 | * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V. | |
825 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V. | |
826 | * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V. | |
827 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V. | |
828 | * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30. | |
829 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30. | |
830 | * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R. | |
831 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R. | |
832 | * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD. | |
833 | * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850. | |
834 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850. | |
835 | ||
204692d7 RH |
836 | 2001-09-11 Richard Henderson <rth@redhat.com> |
837 | ||
838 | * elf64-alpha.c (elf64_alpha_section_flags): New. | |
839 | (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL. | |
840 | ||
f94952df RH |
841 | 2001-09-11 Richard Henderson <rth@redhat.com> |
842 | ||
843 | * elf64-alpha.c (elf64_alpha_relocate_section): Do not | |
844 | apply HINT relocations against dynamic symbols. | |
845 | ||
146f1a87 L |
846 | 2001-09-11 H.J. Lu <hjl@gnu.org> |
847 | ||
f94952df | 848 | * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM. |
146f1a87 | 849 | |
1cd6895c RH |
850 | 2001-09-09 Richard Henderson <rth@redhat.com> |
851 | ||
96e2734b RH |
852 | * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code. |
853 | ||
1cd6895c RH |
854 | * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp |
855 | following a call to a near function. | |
856 | ||
f16fbd61 RH |
857 | 2001-09-08 Richard Henderson <rth@redhat.com> |
858 | ||
859 | * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail | |
860 | relocation errors. Fail gp-relative relocations against | |
861 | dynamic symbols. | |
862 | ||
56882138 AM |
863 | 2001-09-08 Alan Modra <amodra@bigpond.net.au> |
864 | ||
865 | * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR | |
866 | as well as DEF_DYNAMIC in test for avoided copy relocs. | |
867 | (allocate_plt_and_got_and_discard_relocs): Likewise. | |
868 | * elf32-hppa.c (elf_i386_relocate_section): Likewise. | |
869 | (allocate_plt_and_got_and_discard_relocs): Likewise. | |
870 | ||
cb56d3d3 TS |
871 | 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
872 | ||
873 | * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling | |
874 | of R_MIPS_PC16. | |
56882138 AM |
875 | |
876 | 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
877 | ||
878 | * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO | |
879 | definitions. | |
880 | (mips_elf64_howto_table_rel): Likewise. | |
881 | ||
882 | 2001-09-05 Tom Rix <trix@redhat.com> | |
883 | ||
884 | * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO | |
885 | and syscall symbols. | |
886 | (write_global_symbol) : Same. | |
887 | (bfd_xcoff_export_symbol): Remove unused syscall param. | |
888 | * libxcoff.h: Change prototype of bfd_xcoff_export symbol and | |
889 | bfd_xcoff_import_symbol. | |
890 | * bfd-in.h: Same. | |
891 | * bfd-in2.h : Regenerate. | |
892 | ||
893 | 2001-09-04 Richard Henderson <rth@redhat.com> | |
894 | ||
895 | * elf64-alpha.c (SKIP_HOWTO): New. | |
896 | (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs. | |
897 | Fix sizes of 16-bit mem format relocs. | |
898 | (elf64_alpha_reloc_map): Update to match. | |
899 | (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate. | |
900 | (elf64_alpha_relax_without_lituse): Likewise. | |
901 | (elf64_alpha_check_relocs): Handle GPREL16. | |
902 | (elf64_alpha_relocate_section): Likewise. | |
903 | * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove. | |
904 | (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New. | |
905 | * bfd-in2.h, libbfd.h: Rebuild. | |
906 | ||
907 | 2001-09-04 Jeff Law <law@redhat.com> | |
908 | ||
909 | * elf32-h8300.c (elf32_h8_relax_section): New function. | |
910 | (elf32_h8_relax_delete_bytes): Likewise. | |
911 | (elf32_h8_symbol_address_p): Likewise. | |
912 | (elf32_h8_get_relocated_section_contents): Likewise. | |
913 | (bfd_elf32_bfd_relax_section): Define. | |
914 | (bfd_elf32_bfd_get_relocated_section_contents): Likewise. | |
915 | ||
916 | * elf32-h8300.c (special): New function. | |
917 | (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in | |
918 | all relocations. | |
919 | (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit | |
920 | relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8. | |
921 | Fix minor problems with 8bit and 16bit PC relative relocations. | |
922 | ||
923 | 2001-09-01 Andreas Jaeger <aj@suse.de> | |
924 | ||
925 | * vms-tir.c: Add missing prototypes. | |
926 | * vms-hdr.c: Likewise. | |
927 | * vms-gsd.c: Likewise. | |
928 | * vms-misc.c: Likewise. | |
929 | ||
930 | 2001-08-31 H.J. Lu <hjl@gnu.org> | |
931 | ||
932 | * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename | |
933 | with bad relocation. | |
934 | ||
935 | 2001-08-31 Eric Christopher <echristo@redhat.com> | |
936 | Jason Eckhardt <jle@redhat.com> | |
937 | ||
938 | * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32, | |
939 | mips32_4k and mips64. | |
940 | * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k, | |
941 | bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64. | |
942 | * bfd/cpu-mips.c: Ditto. | |
943 | * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto. | |
944 | * bfd/bfd-in2.h: Regenerate. | |
945 | ||
946 | 2001-08-31 Jakub Jelinek <jakub@redhat.com> | |
947 | ||
948 | * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory | |
949 | value into R_ALPHA_RELATIVE's addend. | |
950 | (elf64_alpha_finish_dynamic_symbol): Likewise. | |
951 | ||
952 | 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com> | |
953 | ||
954 | * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift | |
955 | recomputed addend during relocatable link if not USE_REL. | |
956 | ||
957 | * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one | |
958 | error. | |
959 | ||
960 | 2001-08-30 H.J. Lu <hjl@gnu.org> | |
961 | ||
962 | * elf32-mips.c (mips_elf_calculate_relocation): Revert the last | |
963 | 2 changes. | |
964 | (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic | |
965 | relocations for weak definitions. | |
966 | ||
967 | 2001-08-30 H.J. Lu <hjl@gnu.org> | |
968 | ||
969 | * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo. | |
970 | (BFD32_BACKENDS_CFILES): Add elf32-h8300.c. | |
971 | * Makefile.in: Rebuild. | |
972 | ||
973 | 2001-08-30 H.J. Lu <hjl@gnu.org> | |
974 | ||
975 | * elf32-mips.c (mips_elf_calculate_relocation): Don't create | |
976 | dynamic relocation for undefined weak symbols when creating | |
977 | executables. Check h->root.root.type, instead of h->root.type. | |
978 | ||
979 | 2001-08-29 Joel Sherrill <joel@OARcorp.com> | |
980 | ||
981 | * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change | |
982 | default from coff to elf. | |
983 | ||
984 | 2001-08-29 Jeff Law <law@redhat.com> | |
985 | ||
986 | * elf32-h8300.c (h8_elf_howto_table): Add new PC relative | |
987 | relocations. | |
988 | (h8_reloc_map): Similarly. | |
989 | (elf32_h8_final_link_relocate): Remove incorrect overflow tests. | |
990 | Add support for PC relative relocations. | |
991 | ||
992 | * elf32-h8300.c: Put all prototypes together. | |
993 | (elf32_h8_info_to_howto): Parameter elf_reloc is used. | |
994 | (elf32_h8_final_link_relocate): New function for linker. | |
995 | (elf32_h8_relocate_section): Similarly. | |
996 | (elf_backend_relocate_section): Define. | |
997 | ||
998 | * cpu-h8300.c (h8300_scan, compatible): Prototype. | |
999 | (h8300_scan): Handle architecture:machine encodings typically | |
1000 | found in linker scripts. | |
1001 | * elf.c (prep_headers): Do not try to do H8 machine recognition | |
1002 | here. | |
1003 | * elf32-h8300.c: Add some missing prototypes. | |
1004 | (elf32_h8_mach, elf32_h8_final_write_processing): New functions. | |
1005 | (elf32_h8_object_p): Similarly. | |
1006 | ||
1007 | 2001-08-29 Tom Rix <trix@redhat.com> | |
1008 | ||
1009 | * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that | |
1010 | does not follow a XTY_SD. | |
1011 | ||
1012 | 2001-08-29 Alan Modra <amodra@bigpond.net.au> | |
1013 | ||
1014 | * targmatch.sed: Delete case statements. | |
1015 | * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for | |
1016 | aix4.3 and above. | |
1017 | ||
1018 | Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com> | |
1019 | ||
1020 | * Makefile.am (elf32-h8300.lo): New target. | |
1021 | * config.bfd (h8300*-*-elf): New case. | |
1022 | * configure.in (bfd_elf32_h8300_vec): New case. | |
1023 | * elf.c (prep_headers): Add case for bfd_arch_h8300. | |
1024 | * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation. | |
1025 | (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise. | |
1026 | (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise. | |
1027 | * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration. | |
1028 | * elf32-h8300.c: New file. | |
1029 | * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated. | |
1030 | ||
1031 | 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com> | |
1032 | ||
1033 | * sparclynx.c: Add missing prototypes. | |
1034 | * coff-mcore.c: Add missing prototypes. | |
1035 | * elf32-pj.c: Add missing prototypes. | |
1036 | * nlm32-sparc.c: Add missing prototypes. | |
1037 | * oasys.c: Add missing prototypes. | |
1038 | * pdp11.c: Add missing prototypes. | |
1039 | * pe-mips.c: Add missing prototypes. | |
1040 | * riscix.c: Add missing prototypes. | |
1041 | ||
1042 | 2001-08-27 Daniel Jacobowitz <drow@mvista.com> | |
1043 | ||
1044 | * elf32-i386.c: Add missing prototypes. | |
1045 | * elf32-ppc.c: Likewise. | |
1046 | * elf32-sh-lin.c: Likewise. | |
1047 | * elfarm-nabi.c: Likewise. | |
1048 | ||
1049 | 2001-08-27 Daniel Jacobowitz <drow@mvista.com> | |
1050 | ||
1051 | * elf32-i386.c (elf_i386_grok_prstatus): New function. | |
1052 | (elf_i386_grok_psinfo): New function. | |
1053 | (elf_backend_grok_prstatus): Define. | |
1054 | (elf_backend_grok_psinfo): Likewise. | |
1055 | * elf32-ppc.c (ppc_elf_grok_prstatus): New function. | |
1056 | (ppc_elf_grok_psinfo): New function. | |
1057 | (elf_backend_grok_prstatus): Define. | |
1058 | (elf_backend_grok_psinfo): Likewise. | |
1059 | * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function. | |
1060 | (elf32_shlin_grok_psinfo): New function. | |
1061 | (elf_backend_grok_prstatus): Define. | |
1062 | (elf_backend_grok_psinfo): Likewise. | |
1063 | * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function. | |
1064 | (elf32_arm_nabi_grok_psinfo): New function. | |
1065 | (elf_backend_grok_prstatus): Define. | |
1066 | (elf_backend_grok_psinfo): Likewise. | |
1067 | ||
1068 | 2001-08-27 H.J. Lu <hjl@gnu.org> | |
1069 | ||
1070 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more | |
1071 | sanity check. | |
1072 | (mips_elf_calculate_relocation): Create dynamic relocation for | |
1073 | symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR | |
1074 | bit is not set. | |
1075 | ||
1076 | 2001-08-27 H.J. Lu <hjl@gnu.org> | |
1077 | ||
1078 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype. | |
1079 | (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
1080 | (_bfd_elf32_mips_grok_prstatus): Likewise. | |
1081 | (_bfd_elf32_mips_grok_psinfo): Likewise. | |
1082 | (_bfd_mips_elf_hide_symbol): Make it static and cast to | |
1083 | `struct mips_elf_link_hash_entry *'. | |
1084 | (_bfd_mips_elf_copy_indirect_symbol): Make it static. | |
1085 | ||
1086 | 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com> | |
1087 | ||
1088 | * mipsbsd.c: Add missing prototypes. | |
1089 | * hp300hpux.c: Add missing prototypes. | |
1090 | * i386aout.c: Add missing prototypes. | |
1091 | * i386lynx.c: Add missing prototypes. | |
1092 | * i386mach3.c: Add missing prototypes. | |
1093 | * i386msdos.c: Add missing prototypes. | |
1094 | * i386os9k.c: Add missing prototypes. | |
1095 | ||
1096 | 2001-08-27 Linus Nordberg <linus@swox.se> | |
1097 | Torbjorn Granlund <tege@swox.com> | |
1098 | Staffan Ulfberg <staffanu@swox.se> | |
1099 | Alan Modra <amodra@bigpond.net.au> | |
1100 | ||
1101 | * config.bfd: Add powerpc64 target. Add powerpc64 vectors to | |
1102 | targ64_selvecs for 32 bit powerpc targets. | |
1103 | * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo. | |
1104 | (BFD64_BACKENDS_CFILES): Add elf64-ppc.c. | |
1105 | Run "make dep-am". | |
1106 | * Makefile.in: Regenerate. | |
1107 | * configure.in: Add elf64_powerpc vecs. | |
1108 | * configure: Regenerate. | |
1109 | * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit. | |
1110 | * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target. | |
1111 | * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec. | |
1112 | * elf64-ppc.c: New file. | |
1113 | * reloc.c: Add powerpc64 relocs. | |
1114 | * libbfd.h: Regenerate. | |
1115 | * bfd-in2.h: Regenerate. | |
1116 | ||
1117 | 2001-08-27 Andreas Schwab <schwab@suse.de> | |
1118 | ||
1119 | * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the | |
1120 | reloc is against read-only section. | |
1121 | (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1122 | looking up section names for DT_TEXTREL. | |
1123 | (elf32_m68k_reloc_type_class): New function. | |
1124 | (elf_backend_reloc_type_class): Define. | |
1125 | ||
1126 | 2001-08-27 Andreas Jaeger <aj@suse.de> | |
1127 | ||
1128 | * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the | |
1129 | reloc is against read-only section. | |
1130 | (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1131 | looking up section names for DT_TEXTREL. | |
1132 | (elf_s390_reloc_type_class): New. | |
1133 | (elf_backend_reloc_type_class): Define. | |
1134 | ||
1135 | * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the | |
1136 | reloc is against read-only section. | |
1137 | (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1138 | looking up section names for DT_TEXTREL. | |
1139 | (elf_s390_reloc_type_class): New. | |
1140 | (elf_backend_reloc_type_class): Define. | |
1141 | ||
1142 | * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc | |
1143 | is against read-only section. | |
1144 | (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1145 | looking up section names for DT_TEXTREL. | |
1146 | (ppc_elf_reloc_type_class): New. | |
1147 | (elf_backend_reloc_type_class): Define. | |
1148 | ||
1149 | 2001-08-26 Andreas Jaeger <aj@suse.de> | |
1150 | ||
1151 | * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the | |
1152 | reloc is against read-only section. | |
1153 | (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1154 | looking up section names for DT_TEXTREL. | |
1155 | (elf_cris_reloc_type_class): New. | |
1156 | (elf_backend_reloc_type_class): Define. | |
1157 | ||
1158 | * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is | |
1159 | against read-only section. | |
1160 | (elf_backend_reloc_type_class): Define. | |
1161 | (sh_elf_reloc_type_class): New. | |
1162 | (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1163 | looking up section names for DT_TEXTREL. | |
1164 | ||
1165 | * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the | |
1166 | reloc is against read-only section. | |
1167 | (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1168 | looking up section names for DT_TEXTREL. | |
1169 | (elf32_arm_reloc_type_class): New. | |
1170 | (elf_backend_reloc_type_class): Define. | |
1171 | ||
1172 | 2001-08-25 Andreas Jaeger <aj@suse.de> | |
1173 | ||
1174 | * oasys.c: Add missing prototypes. | |
1175 | ||
1176 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused | |
1177 | attribute for parameter. | |
1178 | * elf.c (_bfd_elf_reloc_type_class): Likewise. | |
1179 | ||
1180 | * versados.c (get_4): Make static. | |
1181 | (get_10): Make static. | |
1182 | Add missing prototypes. | |
1183 | (process_esd): Fix call to versados_new_symbol. | |
1184 | ||
1185 | 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com> | |
1186 | ||
1187 | * coff-a29k.c: Add missing prototypes. | |
1188 | * coff-apollo.c: Add missing prototypes. | |
1189 | * coff-arm.c: Add missing prototypes. | |
1190 | * coff-i860.c: Add missing prototypes. | |
1191 | * coff-rs6000.c: Add missing prototypes. | |
1192 | * coff-tic80.c: Add missing prototypes. | |
1193 | * elf-m10200.c: Add missing prototypes. | |
1194 | * elf-m10300.c: Add missing prototypes. | |
1195 | * elf32-arm.h: Add missing prototypes. | |
1196 | * elf32-d10v.c: Add missing prototypes. | |
1197 | * elf32-m32r.c: Add missing prototypes. | |
1198 | * elf32-mcore.c: Add missing prototypes. | |
1199 | * elf32-openrisc.c: Add missing prototypes. | |
1200 | * elf32-sh.c: Add missing prototypes. | |
1201 | * elf32-sparc.c: Add missing prototypes. | |
1202 | * elf32-v850.c: Add missing prototypes. | |
1203 | * elfarm-nabi.c: Add missing prototypes. | |
1204 | * elfarm-oabi.c: Add missing prototypes. | |
1205 | ||
1206 | 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
1207 | ||
1208 | * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for | |
1209 | E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64 | |
1210 | ||
1211 | 2001-08-24 H.J. Lu <hjl@gnu.org> | |
1212 | ||
1213 | * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF | |
1214 | hash structure. | |
1215 | ||
1216 | 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com> | |
1217 | ||
1218 | * elf-bfd.h (elf_hash_table): Revert definition. | |
1219 | (is_elf_hash_table): New macro. | |
1220 | * elflink.h (elf_link_add_object_symbols): Test | |
1221 | is_elf_hash_table before accessing ELF only fields in hash | |
1222 | structure. | |
1223 | (elf_link_create_dynamic_sections): Fail if not using an ELF | |
1224 | hash structure. | |
1225 | (elf_add_dynamic_entry): Fail if not using an ELF hash | |
1226 | structure. | |
1227 | (elf_link_record_local_dynamic_symbol): Fail if not using an | |
1228 | ELF hash structure. | |
1229 | (size_dynamic_sections): Fail if not using an ELF hash | |
1230 | structure. | |
1231 | (elf_adjust_dynamic_symbol): Fail if not using an ELF | |
1232 | hash structure. | |
1233 | (elf_bfd_final_link): Fail if not using an ELF hash | |
1234 | structure. | |
1235 | ||
1236 | 2001-08-24 H.J. Lu <hjl@gnu.org> | |
1237 | ||
1238 | * elf-bfd.h (elf_hash_table): Return NULL if the linker hash | |
1239 | table is not an ELF linker hash table. | |
1240 | ||
1241 | * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash | |
1242 | table type to bfd_link_elf_hash_table. | |
1243 | ||
1244 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert | |
1245 | the last change. | |
1246 | ||
1247 | * linker.c (_bfd_link_hash_table_init): Set the linker hash | |
1248 | table type to bfd_link_generic_hash_table. | |
1249 | ||
1250 | 2001-08-24 Alexandre Oliva <aoliva@redhat.com> | |
1251 | ||
1252 | * bfd.c (bfd_alt_mach_code): New function. | |
1253 | * bfd-in2.h: Rebuilt. | |
1254 | ||
1255 | 2001-08-24 Alexandre Oliva <aoliva@redhat.com> | |
1256 | ||
1257 | * elf-m10300.c (mn10300_elf_relocate_section): Test the right | |
1258 | `type' field in the hash entry when deciding whether to follow a | |
1259 | link. | |
1260 | ||
1261 | 2001-08-24 Jakub Jelinek <jakub@redhat.com> | |
1262 | ||
1263 | * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not | |
1264 | last. | |
1265 | (elf_link_sort_relocs): Adjust accordingly. | |
1266 | ||
1267 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag. | |
1268 | (elf64_alpha_check_relocs): Set it if section this reloc is against | |
1269 | is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against | |
1270 | read-only section. | |
1271 | (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation | |
1272 | is is against read-only section. | |
1273 | (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't | |
1274 | check section names. | |
1275 | (elf64_alpha_reloc_type_class): New. | |
1276 | (elf_backend_reloc_type_class): Define. | |
1277 | ||
1278 | 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
1279 | ||
1280 | * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca() | |
1281 | by bfd_malloc(). | |
1282 | ||
1283 | 2001-08-23 Andreas Jaeger <aj@suse.de> | |
1284 | ||
1285 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if | |
1286 | the reloc is against read-only section. | |
1287 | (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead | |
1288 | of looking up section names for DT_TEXTREL. | |
1289 | (elf64_x86_64_reloc_type_class): New. | |
1290 | (elf_backend_reloc_type_class): Define. | |
1291 | ||
1292 | 2001-08-23 H.J. Lu <hjl@gnu.org> | |
1293 | ||
1294 | * syms.c (bfd_print_symbol_vandf): Add abfd to arg. | |
1295 | * bfd-in2.h (bfd_print_symbol_vandf): Regenerated. | |
1296 | ||
1297 | * aoutx.h (NAME(aout,print_symbol)): Pass abfd to | |
1298 | bfd_print_symbol_vandf. | |
1299 | * coffgen.c (coff_print_symbol): Likewise. | |
1300 | * elf.c (bfd_elf_print_symbol): Likewise. | |
1301 | * ieee.c (ieee_print_symbol): Likewise. | |
1302 | * nlmcode.h (nlm_print_symbol): Likewise. | |
1303 | * oasys.c (oasys_print_symbol): Likewise. | |
1304 | * pdp11.c (NAME(aout,print_symbol)): Likewise. | |
1305 | * som.c (som_print_symbol): Likewise. | |
1306 | * srec.c (srec_print_symbol): Likewise. | |
1307 | * tekhex.c (tekhex_print_symbol): Likewise. | |
1308 | * versados.c (versados_print_symbol): Likewise. | |
1309 | * vms.c (vms_print_symbol): Likewise. | |
1310 | ||
1311 | * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma | |
1312 | with bfd_fprintf_vma. | |
1313 | (bfd_elf_print_symbol): Likewise. | |
1314 | * syms.c (bfd_print_symbol_vandf): Likewise. | |
1315 | ||
1316 | 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com> | |
1317 | ||
1318 | * aoutf1.h (sunos_write_object_contents): Silence compile time | |
1319 | warning. | |
1320 | * libaout.h (N_SET_DYNAMIC): Silence compile time warning. | |
1321 | ||
1322 | * bout.c: Add missing function prototypes. Fix formatting. | |
1323 | * coff-z8k.c: Add missing function prototypes. Fix formatting. | |
1324 | * coff-w65.c: Add missing function prototypes. Fix formatting. | |
1325 | * coff-h8500.c: Add missing function prototypes. Fix formatting. | |
1326 | * coff-h8300.c: Add missing function prototypes. Fix formatting. | |
1327 | * coff-tic54x.c: Add missing function prototypes. Fix formatting. | |
1328 | * coff-tic30.c: Add missing function prototypes. Fix formatting. | |
1329 | * coff-m68k.c: Add missing function prototypes. Fix formatting. | |
1330 | * coff-rs6000.c: Add missing function prototypes. Fix formatting. | |
1331 | * coff-sh.c: Add missing function prototypes. Fix formatting. | |
1332 | ||
1333 | 2001-08-23 Jakub Jelinek <jakub@redhat.com> | |
1334 | ||
1335 | * elf-bfd.h (enum elf_reloc_type_class): New. | |
1336 | (struct elf_backend_data): Add elf_backend_reloc_type_class. | |
1337 | (_bfd_elf_reloc_type_class): New. | |
1338 | * elfxx-target.h (elf_backend_reloc_type_class): Define. | |
1339 | (elfNN_bed): Add elf_backend_reloc_type_class. | |
1340 | * elf.c (_bfd_elf_reloc_type_class): New. | |
1341 | * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc | |
1342 | is against read-only section. | |
1343 | (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1344 | looking up section names for DT_TEXTREL. | |
1345 | (elf_i386_reloc_type_class): New. | |
1346 | (elf_backend_reloc_type_class): Define. | |
1347 | * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the | |
1348 | reloc is against read-only section. | |
1349 | (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1350 | looking up section names for DT_TEXTREL. | |
1351 | (elf32_sparc_reloc_type_class): New. | |
1352 | (elf_backend_reloc_type_class): Define. | |
1353 | * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the | |
1354 | reloc is against read-only section. | |
1355 | (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1356 | looking up section names for DT_TEXTREL. | |
1357 | (sparc64_elf_reloc_type_class): New. | |
1358 | (elf_backend_reloc_type_class): Define. | |
1359 | * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field. | |
1360 | (elfNN_ia64_hash_table_create): Clear ia64_info. | |
1361 | (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only | |
1362 | section. | |
1363 | (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag | |
1364 | instead of looking up section names for DT_TEXTREL. | |
1365 | (elfNN_ia64_reloc_type_class): New. | |
1366 | (elf_backend_reloc_type_class): Define. | |
1367 | * elflink.h (size_dynamic_sections): Add spare DT_NULL tags. | |
1368 | (struct elf_link_sort_rela): New. | |
1369 | (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New. | |
1370 | (elf_bfd_final_link): Call elf_link_sort_relocs. | |
1371 | Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if | |
1372 | necessary. | |
1373 | ||
1374 | 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com> | |
1375 | ||
1376 | * configure.in (x86-bsdi): No corefile support. | |
1377 | * configure: Regenerate. | |
1378 | ||
1379 | 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com> | |
1380 | ||
1381 | * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing | |
1382 | comma. | |
1383 | ||
1384 | 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com> | |
1385 | ||
1386 | * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set | |
1387 | the alignment of dwarf2 linkonce sections to 0. | |
1388 | * coff-sto32.c: Likewise. | |
1389 | ||
1390 | 2001-08-20 Andreas Jaeger <aj@suse.de> | |
1391 | ||
1392 | * coff-sparc.c: Add missing prototypes. | |
1393 | * elf32-s390.c: Likewise. | |
1394 | * elf32-i960.c: Likewise. | |
1395 | * aout-target.h: Likewise. | |
1396 | ||
1397 | 2001-08-20 H.J. Lu <hjl@gnu.org> | |
1398 | ||
1399 | * elf-bfd.h (elf_obj_tdata): Add num_section_syms. | |
1400 | (elf_num_section_syms): New for num_section_syms. | |
1401 | ||
1402 | * elf.c (elf_map_symbols): Set num_section_syms. | |
1403 | (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for | |
1404 | the section symbol index. | |
1405 | ||
1406 | 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com> | |
1407 | ||
1408 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never | |
1409 | select the generic has table creator. All elf backends need elf | |
1410 | specific fields in the hash table. | |
1411 | ||
1412 | 2001-08-20 Alan Modra <amodra@bigpond.net.au> | |
1413 | ||
1414 | * archive.c (offsetof): Remove define. | |
1415 | * elf.c: Likewise. | |
1416 | * oasys.c: Likewise | |
1417 | * sysdep.h (offsetof): Define. | |
1418 | ||
1419 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
1420 | ||
1421 | * bfd.c (bfd_get_gp_size): Return an unsigned int. | |
1422 | (bfd_set_gp_size): Make param unsigned. | |
1423 | * bfd-in2.h: Regenerate. | |
1424 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather | |
1425 | than calling bfd_get_gp_size. | |
1426 | * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. | |
1427 | * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise. | |
1428 | ||
1429 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
1430 | ||
1431 | * linker.c (default_fill_link_order): Handle four byte fill value. | |
1432 | ||
1433 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
1434 | ||
1435 | * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing | |
1436 | prototype. | |
1437 | * nlm32-alpha.c (nlm_alpha_write_external): Fix warning. | |
1438 | ||
1439 | * elf64-mips.c (UNUSED_RELOC): Define. | |
1440 | (mips_elf64_howto_table_rel): Use it. | |
1441 | (mips_elf64_howto_table_rela): Here too. | |
1442 | (mips_elf64_write_relocs): Fix signed/unsigned warning. | |
1443 | ||
1444 | * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to | |
1445 | silence warning. | |
1446 | * coffgen.c (coff_print_symbol): Fix warnings. | |
1447 | (coff_find_nearest_line): Likewise. | |
1448 | * cofflink.c (_bfd_coff_link_input_bfd): Likewise. | |
1449 | * coff-alpha.c (alpha_convert_external_reloc): Likewise. | |
1450 | * format.c (bfd_check_format_matches): Likewise. | |
1451 | (bfd_set_format): Likewise. | |
1452 | * coff-ia64.c: Add missing prototypes. | |
1453 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend | |
1454 | signed to silence warnings. | |
1455 | (elf64_alpha_relocate_section): Likewise. | |
1456 | (elf64_alpha_find_reloc_at_ofs): Fix warnings. | |
1457 | (elf64_alpha_add_symbol_hook): Likewise. | |
1458 | (elf64_alpha_final_link): Likewise. | |
1459 | (elf64_alpha_relax_section): Remove redundant assign to info.gotent. | |
1460 | (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args. | |
1461 | (elf64_alpha_size_got_sections): Likewise. | |
1462 | * elfxx-ia64.c: Add missing prototypes. | |
1463 | (elfNN_ia64_relocate_section): Fix warning. | |
1464 | (elfNN_ia64_unwind_entry_compare): Make params const. | |
1465 | ||
1466 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
1467 | ||
1468 | * config.bfd (targ64_selvecs): New. | |
1469 | <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef. | |
1470 | ||
1471 | * bfd-in.h (BFD_VERSION): Remove wrong comment. | |
1472 | (BFD_DEFAULT_TARGET_SIZE): New. | |
1473 | (BFD_ARCH_SIZE): Comment. | |
1474 | * configure.in (target_size): New. Set instead of target64 in | |
1475 | selvecs case statement. Set target64 from it. | |
1476 | (bfd_default_target_size): New. Set from taget_size. AC_SUBST. | |
1477 | * bfd-in2.h: Regenerate. | |
1478 | * configure: Regenerate. | |
1479 | ||
1480 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
1481 | ||
1482 | * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format. | |
1483 | (bfd_errmsgs): Add corresponding message. | |
1484 | * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when | |
1485 | finding an archive that contains different format object files. | |
1486 | Return bfd_error_wrong_object_format for this case. | |
1487 | * format.c: Formatting fixes. s/CONST/const/. | |
1488 | (bfd_check_format_matches): Accept archives that give | |
1489 | bfd_error_wrong_object_format if no full match is found. Tidy | |
1490 | code handling matching_vector. Don't return a pointer to freed | |
1491 | memory in `matching'. Handle ambiguous matches as for partial | |
1492 | archive matches. | |
1493 | * bfd-in2.h: Regenerate. | |
1494 | ||
1495 | 2001-08-15 Alan Modra <amodra@bigpond.net.au> | |
1496 | ||
1497 | * libieee.h (common_header_type): Add last_byte field. | |
1498 | ||
1499 | * ieee.c: Add missing prototypes. Some format fixes. | |
1500 | (struct output_buffer_struct): Move for availability to prototypes. | |
1501 | (ieee_part_after): New function. | |
1502 | (ieee_slurp_debug): Use it here. | |
1503 | (ieee_seek): Pass in ieee_data_struct rather than bfd. Use | |
1504 | ieee_part_after to set last_byte to one past end of current part. | |
1505 | Update callers. | |
1506 | (ieee_pos): Pass in ieee_data_struct rather than bfd. | |
1507 | Update callers. | |
1508 | (parse_expression): Don't go beyond the end of the current part. | |
1509 | (ieee_slurp_external_symbols): Correct type passed to read_2bytes. | |
1510 | (ieee_get_symtab_upper_bound, ieee_get_symtab, | |
1511 | ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook, | |
1512 | ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block, | |
1513 | ieee_set_section_contents, ieee_write_object_contents, | |
1514 | ieee_make_empty_symbol): Make static. | |
1515 | (ieee_archive_p): Correct comments regarding bfd_read. | |
1516 | (ieee_object_p): Similarly. | |
1517 | (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr, | |
1518 | output_ptr_end, input_ptr_start, input_ptr, input_ptr_end, | |
1519 | input_bfd, output_bfd, output_buffer. | |
1520 | (do_as_repeat): Write out ieee_set_current_pc_enum value as for | |
1521 | do_with_relocs, ie. as a symbol for relocatable files. | |
1522 | (ieee_vec): Add comments showing functions referenced by macros. | |
1523 | ||
1524 | 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com> | |
1525 | ||
1526 | * aout-tic30.c: Add missing prototypes. Fix formatting. | |
1527 | * aout-ns32k.c: Add missing prototypes. Fix formatting. | |
1528 | * peXXigen.c: Add missining prototypes. Fix formatting. | |
1529 | * aout-adobe.c: Add missining prototypes. Fix formatting. | |
1530 | ||
1531 | 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com> | |
1532 | ||
1533 | * elf32-v850.c: Add missing function prototypes. | |
1534 | Fix some formatting. | |
1535 | ||
1536 | * cpu-v850.c: Add missing function prototype. | |
1537 | Fix some formatting. | |
1538 | ||
1539 | 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com> | |
1540 | ||
1541 | * elf-bfd.h (struct elf_backend_data): Add new fields | |
1542 | 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'. | |
1543 | (bfd_elf_sprintf_vma): Rename function prototype to | |
1544 | '_bfd_elf_sprintf_vma'. | |
1545 | (bfd_elf_fprintf_vma): Rename function prototype to | |
1546 | '_bfd_elf_fprintf_vma'. | |
1547 | * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma | |
1548 | directly, instead indirect via the elf_backend_data structure. | |
1549 | (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly, | |
1550 | instead indirect via the elf_backend_data structure. | |
1551 | * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma. | |
1552 | (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma. | |
1553 | * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not | |
1554 | already defined. | |
1555 | (elf_backend_fprintf_vma): Initialise if not already defined. | |
1556 | (struct elf_backend_data): Initialise the | |
1557 | elf_backend_sprintf_vma and elf_backend_fprintf_vma fields. | |
1558 | ||
1559 | 2001-08-10 Andreas Jaeger <aj@suse.de> | |
1560 | ||
1561 | * elf64-sparc.c: Add missing prototypes. | |
1562 | * elf32-cris.c: Likewise. | |
1563 | * elf32-i370.c: Likewise. | |
1564 | * elf64-hppa.c: Likewise. | |
1565 | * elf64-s390.c: Likewise. | |
1566 | ||
1567 | 2001-08-10 Andreas Jaeger <aj@suse.de> | |
1568 | ||
1569 | * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static. | |
1570 | Add prototypes where needed. | |
1571 | ||
1572 | 2001-08-10 H.J. Lu <hjl@gnu.org> | |
1573 | ||
1574 | * bfd.c (bfd_sprintf_vma): Fix a typo in the last change. | |
1575 | (bfd_fprintf_vma): Likewise. | |
1576 | ||
1577 | 2001-08-10 H.J. Lu <hjl@gnu.org> | |
1578 | ||
1579 | * bfd.c (bfd_sprintf_vma): Don't return void. | |
1580 | (bfd_fprintf_vma): Likewise. | |
1581 | ||
1582 | 2001-08-10 Andreas Jaeger <aj@suse.de> | |
1583 | ||
1584 | * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes | |
1585 | to build warnings. | |
1586 | * configure: Regenerate. | |
1587 | ||
1588 | 2001-08-10 Alan Modra <amodra@bigpond.net.au> | |
1589 | ||
1590 | * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet | |
1591 | warning if not BFD64. Add braces so emacs auto format works. | |
1592 | (bfd_elf_fprintf_vma): Likewise. | |
1593 | ||
1594 | * libxcoff.h (struct xcoff_backend_data_rec): Constify src param | |
1595 | of _xcoff_swap_ld*. | |
1596 | * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external | |
1597 | param to agree with libxcoff.h. | |
1598 | (xcoff_swap_ldhdr_out): Likewise. | |
1599 | (xcoff_swap_ldsym_in): Likewise. | |
1600 | (xcoff_swap_ldsym_out): Likewise. | |
1601 | (xcoff_swap_ldrel_in): Likewise. | |
1602 | (xcoff_swap_ldrel_out): Likewise. | |
1603 | (xcoff_create_csect_from_smclas): Likewise. | |
1604 | * coff64-rs6000.c: Add missing prototypes. | |
1605 | (xcoff64_swap_ldhdr_in): Modify type of external param to agree | |
1606 | with libxcoff.h. | |
1607 | (xcoff64_swap_ldhdr_out): Likewise. | |
1608 | (xcoff64_swap_ldsym_in): Likewise. | |
1609 | (xcoff64_swap_ldsym_out): Likewise. | |
1610 | (xcoff64_swap_ldrel_in): Likewise. | |
1611 | (xcoff64_swap_ldrel_out): Likewise. | |
1612 | (xcoff64_ppc_relocate_section): Make static. | |
1613 | (xcoff64_slurp_armap): Likewise. | |
1614 | (xcoff64_archive_p): Likewise. | |
1615 | (xcoff64_openr_next_archived_file): Likewise. | |
1616 | (xcoff64_sizeof_headers): Likewise. | |
1617 | (xcoff64_is_lineno_count_overflow): Likewise. | |
1618 | (xcoff64_is_reloc_count_overflow): Likewise. | |
1619 | (xcoff64_loader_symbol_offset): Likewise. | |
1620 | (xcoff64_loader_reloc_offset): Likewise. | |
1621 | * elf64-gen.c: Add missing prototypes. | |
1622 | ||
1623 | 2001-08-09 H.J. Lu <hjl@gnu.org> | |
1624 | ||
1625 | * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64. | |
1626 | (bfd_elf_fprintf_vma): Likewise. | |
1627 | ||
1628 | 2001-08-09 H.J. Lu <hjl@gnu.org> | |
1629 | ||
1630 | * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved | |
1631 | to ... | |
1632 | * elf-bfd.h: Here. | |
1633 | * bfd-in2.h: Regenerated. | |
1634 | ||
1635 | 2001-08-09 H.J. Lu <hjl@gnu.org> | |
1636 | ||
1637 | * bfd-in.h (bfd_sprintf_vma): New prototype. | |
1638 | (bfd_fprintf_vma): Likewise. | |
1639 | (bfd_elf_sprintf_vma): Likewise. | |
1640 | (bfd_elf_fprintf_vma): Likewise. | |
1641 | (bfd_printf_vma): New. Defined with bfd_fprintf_vma. | |
1642 | * bfd-in2.h: Regenerated. | |
1643 | ||
1644 | * bfd.c (bfd_sprintf_vma): New. Defined. | |
1645 | (bfd_fprintf_vma): Likewise. | |
1646 | ||
1647 | * elf.c (bfd_elf_sprintf_vma): New. Defined. | |
1648 | (bfd_elf_fprintf_vma): Likewise. | |
1649 | ||
1650 | 2001-08-09 Alan Modra <amodra@bigpond.net.au> | |
1651 | ||
1652 | * coff-rs6000.c: Add missing prototypes. | |
1653 | (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow, | |
1654 | xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset, | |
1655 | xcoff_loader_reloc_offset): Make static. | |
1656 | * dwarf1.c: Add missing prototypes. | |
1657 | * dwarf2.c: Add missing prototypes. | |
1658 | (struct abbrev_info): Move definition. | |
1659 | (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise. | |
1660 | * elf.c: Add missing prototypes. | |
1661 | * elf32-gen.c: Likewise. | |
1662 | * elf32-i386.c: Likewise. | |
1663 | * elf32-ppc.c: Likewise. | |
1664 | (ppc_elf_sort_rela): Use PTR instead of "void *". | |
1665 | * elflink.h: Add missing prototypes. Formatting fixes. | |
1666 | * merge.c: Add missing prototypes. | |
1667 | (last4_eq): Use PTR instead of "void *". | |
1668 | (last_eq): Likewise. | |
1669 | * syms.c: Add missing prototypes. | |
1670 | ||
1671 | 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com> | |
1672 | ||
1673 | * bfd.c: Fix formatting. | |
1674 | * bfd-in2.h: Regenerate. | |
1675 | ||
1676 | 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com> | |
1677 | ||
1678 | * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to | |
1679 | true (this target uses REL relocations) and 'pcrel_offset' to | |
1680 | false (the PC is implied, not stored in the offset). | |
1681 | ||
1682 | 2001-08-08 Alan Modra <amodra@bigpond.net.au> | |
1683 | ||
1684 | 1999-10-19 Linus Nordberg <linus@swox.se> | |
1685 | * elf-bfd.h (struct elf_backend_data): Add want_got_sym. | |
1686 | * elfxx-target.h (elf_backend_want_got_sym): Define. | |
1687 | (elfNN_bed): Add elf_backend_want_got_sym. | |
1688 | * elflink.c (_bfd_elf_create_got_section): Define | |
1689 | _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym. | |
1690 | ||
1691 | 2001-08-08 Alexandre Oliva <aoliva@redhat.com> | |
1692 | ||
1693 | * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms. | |
1694 | (find_rela_addend): New function. | |
1695 | (parse_comp_unit): Call it to find the abbrev offset addend. | |
1696 | (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new | |
1697 | members of dwarf2_debug as debugging information is read. | |
1698 | ||
1699 | 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com> | |
1700 | ||
1701 | * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff | |
1702 | targets as well as sh-pe. | |
1703 | ||
1704 | 2001-08-03 Ben Harris <bjh21@netbsd.org> | |
1705 | ||
1706 | * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of | |
1707 | reloc from start of section when computing value for R_ARM_REL32 | |
1708 | reloc. | |
1709 | ||
1710 | 2001-08-03 Alan Modra <amodra@bigpond.net.au> | |
1711 | ||
1712 | From H.J. Lu <hjl@gnu.org> | |
1713 | * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't | |
1714 | keep relocs for undefined syms if there are no dynamic sections in | |
1715 | executable. | |
1716 | * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise. | |
1717 | ||
1718 | 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com> | |
1719 | ||
1720 | * cofflink.c (coff_link_check_ar_symbols): also search for | |
1721 | __imp__symbol as well as _symbol. | |
1722 | * linker.c (_bfd_generic_link_add_archive_symbols): also | |
1723 | search for __imp__symbol as well as _symbol. | |
1724 | ||
1725 | 2001-08-01 Adam Nemet <anemet@lnxw.com> | |
1726 | ||
1727 | * elf.c (elf_sort_sections): Return zero only as the last step. | |
1728 | ||
1729 | 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com> | |
1730 | ||
1731 | * config.bfd (arm-vxworks): Change name of define from VXWORKS to | |
1732 | ARM_COFF_BUGFIX. | |
1733 | (arm-epoc-pe): Define ARM_COFF_BUGFIX. | |
1734 | coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with | |
1735 | ARM_COFF_BUGFIX. | |
1736 | ||
1737 | 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | |
1738 | ||
1739 | * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type | |
1740 | to match corresponding bfd_coff_backend data member. | |
1741 | ||
1742 | 2001-07-24 Alan Modra <amodra@bigpond.net.au> | |
1743 | ||
1744 | * Makefile.am: Update dependencies with "make dep-am". | |
1745 | * Makefile.in: Regenerate | |
1746 | ||
1747 | 2001-07-15 H.J. Lu <hjl@gnu.org> | |
1748 | ||
1749 | * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp. | |
1750 | (po/BLD-POTFILES.in): Use tmp.bld instead of tmp. | |
1751 | * Makefile.in: Regenerate. | |
1752 | ||
1753 | 2001-07-11 H.J. Lu <hjl@gnu.org> | |
1754 | ||
1755 | * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD | |
1756 | flags when creating the reloc section if the ALLOC flag in the | |
1757 | source section is set. | |
1758 | ||
1759 | 2001-07-11 Steve Ellcey <sje@cup.hp.com> | |
1760 | ||
1761 | * reloc.c (bfd_reloc_code_type): Add IA64 relocs | |
1762 | BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB | |
1763 | * bfd-in2.h: Regenerate. | |
1764 | * libbfd.h: Regenerate. | |
1765 | * elfxx-ia64.c (ia64_howto_table): Define how to handle | |
1766 | new relocations. | |
1767 | (elfNN_ia64_reloc_type_lookup): Handle new relocations. | |
1768 | (elfNN_ia64_check_relocs): Likewise. | |
1769 | (elfNN_ia64_install_value): Likewise. | |
1770 | (elfNN_ia64_relocate_section): Likewise. | |
1771 | ||
1772 | 2001-07-11 Jakub Jelinek <jakub@redhat.com> | |
1773 | ||
1774 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for | |
1775 | R_SPARC_UA64. | |
1776 | (elf32_sparc_check_relocs): Likewise. | |
1777 | Only create .rela section for alloced sections in shared libraries. | |
1778 | (elf32_sparc_relocate_section): Likewise. | |
1779 | Remove redundant check. | |
1780 | Optimize unaligned reloc usage. | |
1781 | * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant | |
1782 | check. | |
1783 | ||
1784 | 2001-07-11 H.J. Lu <hjl@gnu.org> | |
1785 | ||
1786 | * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same | |
1787 | ALLOC|LOAD flags as the source section for debugging sections | |
1788 | when creating the reloc section. | |
1789 | ||
1790 | 2001-07-05 Jim Wilson <wilson@redhat.com> | |
1791 | ||
1792 | * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use | |
1793 | the section of the bigger symbol. | |
1794 | ||
1795 | * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM. | |
1796 | ||
1797 | 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com> | |
1798 | ||
1799 | * peicode.h (coff_swap_scnhdr_in): For sections containing | |
1800 | uninitialised data, only set their size to s_paddr if this does | |
1801 | not reset their size to zero. MS's latest compilers will set | |
1802 | s_paddr to zero. | |
1803 | ||
1804 | 2001-07-04 H.J. Lu <hjl@gnu.org> | |
1805 | ||
1806 | * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): | |
1807 | Handle bfd_mach_mips4400, bfd_mach_mips4600 and | |
1808 | bfd_mach_mips5000. | |
1809 | ||
1810 | 2001-07-03 Mark Elbrecht <snowball3@softhome.net> | |
1811 | ||
1812 | * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets. | |
1813 | ||
1814 | * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from | |
1815 | sections being discarded. | |
1816 | ||
1817 | 2001-06-30 Alan Modra <amodra@bigpond.net.au> | |
1818 | ||
1819 | * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly | |
1820 | instead of _bfd_elfcore_section_from_phdr. | |
1821 | * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove. | |
1822 | * elf.c (_bfd_elfcore_section_from_phdr): Remove. | |
1823 | (_bfd_elfcore_make_pseudosection): Expedite tail-call. | |
1824 | (elfcore_grok_prstatus): Likewise. | |
1825 | (elfcore_grok_lwpstatus): Likewise. | |
1826 | (bfd_get_elf_phdr_upper_bound): Likewise. | |
1827 | (elfcore_make_note_pseudosection): Formatting. | |
1828 | (_bfd_elfcore_strndup): Formatting. | |
1829 | * elf32-mips.c (mips_elf_sym_is_global): Formatting. | |
1830 | (_bfd_elf32_mips_grok_prstatus): Expedite tail-call. | |
1831 | ||
1832 | 2001-06-29 Daniel Jacobowitz <drow@mvista.com> | |
1833 | ||
1834 | * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection | |
1835 | and _bfd_elfcore_strndup. | |
1836 | (struct elf_backend_data): Add elf_backend_grok_prstatus | |
1837 | and elf_backend_grok_psinfo. | |
1838 | * elf.c (_bfd_elfcore_make_pseudosection): New function. | |
1839 | (elfcore_grok_prstatus): Use it. | |
1840 | (elfcore_make_note_pseudosection): Likewise. | |
1841 | (elfcore_strndup): Rename to... | |
1842 | (_bfd_elfcore_strndup): Here, and make global. | |
1843 | (elfcore_grok_psinfo): Use _bfd_elfcore_strndup. | |
1844 | (elfcore_grok_note): Call elf_backend_grok_prstatus | |
1845 | and elf_backend_grok_psinfo if available. | |
1846 | * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function. | |
1847 | (_bfd_elf32_mips_grok_psinfo): New function. | |
1848 | (elf_backend_grok_prstatus): Define. | |
1849 | (elf_backend_grok_psinfo): Define. | |
1850 | * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL. | |
1851 | (elf_backend_grok_psinfo): Likewise. | |
1852 | (elfNN_bed): Include elf_backend_grok_prstatus and | |
1853 | elf_backend_grok_psinfo. | |
1854 | ||
1855 | 2001-06-29 H.J. Lu <hjl@gnu.org> | |
1856 | ||
1857 | * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if | |
1858 | hplink->sgot is NULL before filling GOT. Check if hplink->splt | |
1859 | is NULL before filling PLT. | |
1860 | ||
1861 | 2001-06-29 Alan Modra <amodra@bigpond.net.au> | |
1862 | ||
1863 | * elflink.h (elf_link_output_extsym): Revert 1999-04-10. | |
1864 | ||
1865 | 2001-06-27 Alan Modra <amodra@bigpond.net.au> | |
1866 | ||
1867 | * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic | |
1868 | here.. | |
1869 | (elf32_hppa_adjust_dynamic_symbol): ..nor here.. | |
1870 | (allocate_plt_and_got_and_discard_relocs): .. instead do so here | |
1871 | after gc has run. | |
1872 | ||
1873 | * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete. | |
1874 | (IS_ABSOLUTE_RELOC): Define. | |
1875 | (elf32_hppa_link_hash_entry): Always include reloc_entries field. | |
1876 | (hppa_link_hash_newfunc): Always init it. | |
1877 | (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to | |
1878 | create COPY relocs only when the reloc is in a read-only section. | |
1879 | Instead, allocate space for a dynamic reloc to reference the | |
1880 | library symbol directly. Keep track of space we allocate using | |
1881 | relocs_entries. | |
1882 | (hppa_discard_copies): Delete, and move code to.. | |
1883 | (allocate_plt_and_got): ..here. Rename to | |
1884 | allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic | |
1885 | relocs for non-shared link. | |
1886 | (elf32_hppa_size_dynamic_sections): Update calls to above. | |
1887 | (elf32_hppa_relocate_section): Write out the dynamic relocs used | |
1888 | in lieu of COPY relocs. | |
1889 | ||
1890 | * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic | |
1891 | here.. | |
1892 | (elf_i386_adjust_dynamic_symbol): ..nor here.. | |
1893 | (allocate_plt_and_got_and_discard_relocs): .. instead do so here | |
1894 | after gc has run. | |
1895 | (elf_i386_size_dynamic_sections): Fix a comment. | |
1896 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code | |
1897 | involved in writing reloc out. | |
1898 | ||
1899 | 2001-06-25 Alan Modra <amodra@bigpond.net.au> | |
1900 | ||
1901 | * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>): | |
1902 | Ensure syms are dynamic if we might be emitting a reloc. | |
1903 | (allocate_plt_and_got_and_discard_relocs): Don't discard relocs | |
1904 | for undefweak or undefined syms.. | |
1905 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit. | |
1906 | ||
1907 | * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard | |
1908 | relocs without ELF_LINK_HASH_DEF_DYNAMIC set. | |
1909 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove | |
1910 | redundant bfd_link_hash_defined, bfd_link_hash_defweak test. | |
1911 | ||
1912 | 2001-06-24 H.J. Lu <hjl@gnu.org> | |
1913 | ||
1914 | * cpu-i960.c (scan_960_mach): Don't modify const char *. Use | |
1915 | strncasecmp/strcasecmp instead of strncmp/strcmp. | |
1916 | ||
1917 | 2001-06-23 H.J. Lu <hjl@gnu.org> | |
1918 | ||
1919 | * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>): | |
1920 | Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined | |
1921 | in the regular object file and treat the weak definition as | |
1922 | the normal one. | |
1923 | ||
1924 | 2001-06-23 Alan Modra <amodra@bigpond.net.au> | |
1925 | ||
1926 | * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten | |
1927 | unresolved_reloc test to exclude cases where we use "relocation" | |
1928 | before setting it to point into the .got. Reinstate fudge for | |
1929 | unresolved relocs in debugging sections. | |
1930 | ||
1931 | * elf32-i386.c (elf_i386_relocate_section): Replace ugly | |
1932 | complicated tests for unresolvable relocs with a simple direct | |
1933 | scheme using "unresolved_reloc" var. | |
1934 | ||
1935 | * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to | |
1936 | elf_i386_dyn_relocs. Update comment. | |
1937 | (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to | |
1938 | dyn_relocs. | |
1939 | (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change | |
1940 | others to aborts. | |
1941 | (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with | |
1942 | abort. | |
1943 | (elf_i386_size_dynamic_sections): Likewise. | |
1944 | (elf_i386_finish_dynamic_symbol): Likewise. | |
1945 | (elf_i386_finish_dynamic_sections): Likewise. | |
1946 | (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error | |
1947 | handling code. | |
1948 | ||
1949 | Avoid creating COPY relocs if possible. | |
1950 | * elf32-i386.c (elf_i386_check_relocs): Tweak condition under | |
1951 | which .got created. Mark symbols used by R_386_32 and R_386_PC32 | |
1952 | relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the | |
1953 | reloc is in a read-only section. Instead, allocate space for a | |
1954 | dynamic reloc to reference the library symbol directly. Keep | |
1955 | track of space we allocate using pcrel_relocs_copied. | |
1956 | (discard_copies): Delete, and move code to .. | |
1957 | (allocate_plt_and_got): ..here. Rename to | |
1958 | allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic | |
1959 | relocs for non-shared link. | |
1960 | (elf_i386_size_dynamic_sections): Update calls to above functions. | |
1961 | (elf_i386_relocate_section): Write out the dynamic relocs. Add | |
1962 | more ugly logic to avoid "unresolvable relocation" error. Use | |
1963 | htab shortcut in place of elf_hash_table macro. | |
1964 | (elf_i386_finish_dynamic_sections): Allow that dynamic .got may | |
1965 | not always be created now. | |
1966 | ||
1967 | 2001-06-20 Bo Thorsen <bo@suse.co.uk> | |
1968 | ||
1969 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of | |
1970 | shared libraries. | |
1971 | ||
1972 | 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
1973 | ||
1974 | * configure.host (mips64-*-linux): Reformat. | |
1975 | ||
1976 | 2001-06-21 Alan Modra <amodra@bigpond.net.au> | |
1977 | ||
1978 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always | |
1979 | allocate local .got space. Use shortcuts from hash table for .got | |
1980 | and .plt rather than comparing section names. | |
1981 | (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than | |
1982 | adjusting index into local_got_refcounts to document what we are | |
1983 | really doing. | |
1984 | (elf32_hppa_relocate_section): Similarly for local_plt_offsets. | |
1985 | Tidy .got and .plt error checking. | |
1986 | ||
1987 | 2001-06-20 Catherine Moore <clm@redhat.com> | |
1988 | ||
1989 | * elf-bfd.h (struct elf_backend_data): | |
1990 | elf_backend_emit_relocs: New field: Function for emitting | |
1991 | relocs. | |
1992 | elf_backend_count_relocs: New field: Function for determining | |
1993 | the number of relocs to be emitted. | |
1994 | * elfxx-target.h: Provide default (NULL) values for | |
1995 | elf_backend_emit_relocs and elf_backend_count_relocs. | |
1996 | * elflink.h (elf_link_size_reloc_section): Make the hash table | |
1997 | big enough to hold the relocs counted by either reloc_count or | |
1998 | o->reloc_count. | |
1999 | (elf_bfd_final_link) emit_relocs: New boolean, set if relocs | |
2000 | should be emitted, either because of a command line option | |
2001 | stored in the info structure or because the target provides a | |
2002 | special reloc emitting function. | |
2003 | If the target provides a reloc counting function use it, | |
2004 | unless performing a relocatable link or emitting all relocs. | |
2005 | Also set the SEC_RELOC flag on any output section which will | |
2006 | contain relocs. | |
2007 | (elf_link_input_bfd): emit_relocs: New boolean, set if relocs | |
2008 | should be emitted, either because of a command line option | |
2009 | stored in the info structure or because the target provides a | |
2010 | special reloc emitting function. | |
2011 | If the target provides a reloc emitting function, use it, | |
2012 | unless performing a relocatable link or emitting all relocs. | |
2013 | ||
2014 | 2001-06-20 H.J. Lu <hjl@gnu.org> | |
2015 | ||
2016 | * elf32-i386.c (elf_i386_size_dynamic_sections): Always | |
2017 | allocate local .got space. | |
2018 | ||
2019 | 2001-06-19 Andreas Jaeger <aj@suse.de> | |
2020 | ||
2021 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of | |
2022 | dynamic symbols. | |
2023 | ||
2024 | 2001-06-18 Hans-Peter Nilsson <hp@axis.com> | |
2025 | ||
2026 | * elflink.h (struct elf_assign_sym_version_info): Remove member | |
2027 | export_dynamic. All users changed to use info member. | |
2028 | NAME(bfd_elf,size_dynamic_sections)): Remove parameter | |
2029 | export_dynamic, instead use member in parameter info. | |
2030 | * bfd-in.h (bfd_elf32_size_dynamic_sections, | |
2031 | bfd_elf64_size_dynamic_sections): Update prototype. | |
2032 | * bfd-in2.h: Regenerate. | |
2033 | ||
2034 | 2001-06-18 H.J. Lu <hjl@gnu.org> | |
2035 | ||
2036 | * elflink.h (elf_info_failed): Add a new field, verdefs. | |
2037 | (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to | |
2038 | elf_export_symbol. | |
2039 | (elf_export_symbol): Check eif->verdefs to decide if a symbol | |
2040 | should be exported. | |
2041 | ||
2042 | 2001-06-17 H.J. Lu <hjl@gnu.org> | |
2043 | ||
2044 | * elf32-mips.c (mips_elf_link_hash_entry): Add a new field, | |
2045 | readonly_reloc, to record if a relocation in the .rel.dyn | |
2046 | section is against a read-only section. | |
2047 | (mips_elf_link_hash_newfunc): Initialize the readonly_reloc | |
2048 | field to false. | |
2049 | (_bfd_mips_elf_check_relocs): Record if there is a relocation | |
2050 | in the .rel.dyn section against a read-only section by setting | |
2051 | DF_TEXTREL or readonly_reloc. | |
2052 | (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if | |
2053 | it is true. | |
2054 | (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if | |
2055 | there is a relocation in the .rel.dyn section against a | |
2056 | read-only section. | |
2057 | (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if | |
2058 | DF_TEXTREL is set. | |
2059 | ||
2060 | 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com> | |
2061 | ||
2062 | * coffcode.h (styp_flags_to_sec_flags): Change to a boolean | |
2063 | function. Move flagword result into parameter list. Remove | |
2064 | comment about setting bfd_error_handler to intercept failure | |
2065 | results. | |
2066 | * coffgen.c (make_a_section_from_file): Examine result of | |
2067 | calling bfd_coff_styp_to_sec_flags and pass a failure back to | |
2068 | caller. | |
2069 | * ecoff.h (styp_flags_to_sec_flags): Change to a boolean | |
2070 | function. Move flagword result into parameter list. | |
2071 | * libcoff.h: Regenerate. | |
2072 | * libecoff.h: Regenerate. | |
2073 | ||
2074 | 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com> | |
2075 | ||
2076 | * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data | |
2077 | section is going to follow it. | |
2078 | ||
2079 | 2001-06-12 Catherine Moore <clm@redhat.com> | |
2080 | ||
2081 | * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN | |
2082 | with the file_align entry from elf_backend_data. | |
2083 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
2084 | (elf_gc_record_vtentry): Likewise. | |
2085 | ||
2086 | 2001-06-10 Alan Modra <amodra@bigpond.net.au> | |
2087 | ||
2088 | * elflink.h: Whitespace changes. | |
2089 | (elf_link_read_relocs_from_section): Use "unsigned int" iterator | |
2090 | rather than "unsigned char". | |
2091 | (elf_link_output_relocs): Likewise. | |
2092 | (elf_link_input_bfd): Likewise. | |
2093 | (elf_reloc_link_order): LIkewise. | |
2094 | * elf.c: s/CONST/const/. Whitespace changes. | |
2095 | * elf32-mips.c: Formatting fix. | |
2096 | ||
2097 | * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h. | |
2098 | * Makefile.in: Regenerate. | |
2099 | * po/Make-in: Remove trailing tab. | |
2100 | ||
2101 | 2001-06-09 Philip Blundell <philb@gnu.org> | |
2102 | ||
2103 | * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last | |
2104 | change. | |
2105 | (elf32_arm_plt_entry): Likewise. | |
2106 | ||
2107 | 2001-06-08 H.J. Lu <hjl@gnu.org> | |
2108 | ||
2109 | * elf.c (swap_out_syms): Keep names for global section symbols. | |
2110 | ||
2111 | 2001-06-07 H.J. Lu <hjl@gnu.org> | |
2112 | ||
2113 | * config.bfd: Put back ecoff for Linux/mips. Firmwares on some | |
2114 | MIPS-based machines need it. | |
2115 | ||
2116 | 2001-06-07 H.J. Lu <hjl@gnu.org> | |
2117 | ||
2118 | * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab | |
2119 | for SGI only. | |
2120 | ||
2121 | * config.bfd: Remove ecoff from Linux/mips. | |
2122 | ||
2123 | 2001-06-07 Andreas Jaeger <aj@suse.de> | |
2124 | ||
2125 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an | |
2126 | assertion. | |
2127 | (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an | |
2128 | alignment of 8 for .rela sections; handle further relocations. | |
2129 | ||
2130 | 2001-06-06 Christian Groessler <cpg@aladdin.de> | |
2131 | ||
2132 | * coff-z8k.c: Fix formatting. | |
2133 | Fix howtos: howto->size was always 1. | |
2134 | ||
2135 | 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
2136 | ||
2137 | * configure.host (mips64*-*-linux*): Define. | |
2138 | ||
2139 | 2001-06-05 Alan Modra <amodra@bigpond.net.au> | |
2140 | ||
2141 | * elf32-i386.c (elf_i386_discard_copies): Rename to | |
2142 | discard_copies, and use elf_link_hash_entry arg rather than | |
2143 | elf_i386_link_hash_entry. | |
2144 | (elf_i386_link_hash_traverse): Delete. | |
2145 | (elf_i386_size_dynamic_sections): Adjust call to discard_copies. | |
2146 | Tidy sizing of dynamic sections. | |
2147 | (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count | |
2148 | possible .plt entries. | |
2149 | (elf_i386_gc_sweep_hook): Likewise. | |
2150 | (elf_i386_adjust_dynamic_symbol): Discard .plt entries for | |
2151 | everything with plt.refcount <= 0. | |
2152 | ||
2153 | * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and | |
2154 | .relgot space here. | |
2155 | (elf_i386_gc_sweep_hook): ..and no need to deallocate here.. | |
2156 | (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and | |
2157 | .rel.plt here.. | |
2158 | (allocate_plt_and_got): ..instead do it all here. New function. | |
2159 | (elf_i386_size_dynamic_sections): Allocate local .got space and | |
2160 | call allocate_plt_and_got. No need to zap .relgot if not dynamic. | |
2161 | (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link | |
2162 | rather than gc variety). | |
2163 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
2164 | (elf_i386_relocate_section): Use it here and correct handling of | |
2165 | R_386_GOT32. Provide section and offset for "unresolvable | |
2166 | relocation" error message. | |
2167 | (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32. | |
2168 | ||
2169 | * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot, | |
2170 | sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields. | |
2171 | (elf_i386_link_hash_table_create): Init them. | |
2172 | (create_got_section): New function. | |
2173 | (elf_i386_create_dynamic_sections): New function. | |
2174 | (elf_backend_create_dynamic_sections): Set to above. | |
2175 | (elf_i386_check_relocs): Use shortcuts from hash table rather than | |
2176 | calling bfd_get_section_by_name. | |
2177 | (elf_i386_gc_sweep_hook): Likewise. | |
2178 | (elf_i386_adjust_dynamic_symbol): Likewise. | |
2179 | (elf_i386_size_dynamic_sections): Likewise. | |
2180 | (elf_i386_relocate_section): Likewise. | |
2181 | (elf_i386_finish_dynamic_sections): Likewise. | |
2182 | ||
2183 | * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms. | |
2184 | ||
2185 | 2001-06-02 H.J. Lu <hjl@gnu.org> | |
2186 | ||
2187 | * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX | |
2188 | and ELFOSABI_HPUX. | |
2189 | * elf64-hppa.c (elf64_hppa_object_p): Likewise. | |
2190 | ||
2191 | 2001-06-02 H.J. Lu <hjl@gnu.org> | |
2192 | ||
2193 | * aout-cris.c (MACHTYPE_OK): New. Defined. | |
2194 | ||
2195 | 2001-06-02 Hans-Peter Nilsson <hp@axis.com> | |
2196 | ||
2197 | * section.c (_bfd_strip_section_from_output): Handle NULL | |
2198 | output_section. | |
2199 | ||
2200 | 2001-06-02 H.J. Lu <hjl@gnu.org> | |
2201 | ||
2202 | * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add | |
2203 | rs6000coff64_vec only if BFD64 is defined. | |
2204 | (powerpc64-*-aix*): Enable only if BFD64 is defined. | |
2205 | ||
2206 | 2001-06-02 H.J. Lu <hjl@gnu.org> | |
2207 | ||
2208 | * coff-ia64.c (ia64coff_object_p): Rewrite with | |
2209 | external_PEI_DOS_hdr and external_PEI_IMAGE_hdr. | |
2210 | ||
2211 | 2001-06-01 Andreas Jaeger <aj@suse.de> | |
2212 | ||
2213 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8 | |
2214 | relocation, small reformatting. | |
2215 | ||
2216 | 2001-05-29 Andreas Jaeger <aj@suse.de> | |
2217 | ||
2218 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64. | |
2219 | (elf64_x86_64_relocate_section): Likewise. | |
2220 | ||
2221 | 2001-05-30 Alan Modra <amodra@one.net.au> | |
2222 | ||
2223 | * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for | |
2224 | millicode. Don't allocate .got and .rela.got space here.. | |
2225 | (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here.. | |
2226 | (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and | |
2227 | .rela.plt here.. | |
2228 | (hppa_handle_PIC_calls): ..nor here.. | |
2229 | (allocate_plt_and_got): ..instead do it all here. New function. | |
2230 | (elf32_hppa_size_dynamic_sections): Allocate local .got space and | |
2231 | call allocate_plt_and_got. No need to zap .got if not dynamic. | |
2232 | (elf32_hppa_final_link): Call regular bfd_final_link instead of | |
2233 | gc_common_final_link. | |
2234 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
2235 | (elf32_hppa_relocate_section): Use it here. | |
2236 | (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of | |
2237 | dynamic_sections_created. | |
2238 | (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym. | |
2239 | ||
2240 | 2001-05-28 Andreas Jaeger <aj@suse.de> | |
2241 | ||
2242 | * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the | |
2243 | generic version since we want a hashsize of 4. | |
2244 | (elf_backend_size_info): Likewise. | |
2245 | ||
2246 | 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
2247 | ||
2248 | * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of | |
2249 | a zeroing loop. | |
2250 | (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly. | |
2251 | (elf_link_input_bfd): Likewise. | |
2252 | (elf_reloc_link_order): Likewise. | |
2253 | (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64 | |
2254 | relocations correctly. | |
2255 | ||
2256 | 2001-05-28 Nicolas Pitre <nico@cam.org> | |
2257 | ||
2258 | * elf32-arm.h: fix PLT generation for big endian ARM | |
2259 | ||
2260 | 2001-05-28 Alan Modra <amodra@one.net.au> | |
2261 | ||
2262 | * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries | |
2263 | for symbols forced local that need plabels. | |
2264 | (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in | |
2265 | .plt.rela for local syms if non-shared. | |
2266 | (hppa_build_one_stub): Mask lsb of plt.offset. | |
2267 | (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set. | |
2268 | (clobber_millicode_symbols): Correct comment. | |
2269 | (elf32_hppa_relocate_section): Likewise. | |
2270 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
2271 | ||
2272 | 2001-05-28 Jeff Sturm <jsturm@one-point.com> | |
2273 | ||
2274 | * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64. | |
2275 | * bfd-in2.h: Regenerate. | |
2276 | * libbfd.h: Regenerate. | |
2277 | * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32 | |
2278 | and BFD_RELOC_SPARC_UA64 mapping | |
2279 | * elf64-sparc.c: Likewise. | |
2280 | ||
2281 | 2001-05-25 H.J. Lu <hjl@gnu.org> | |
2282 | ||
2283 | * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo. | |
2284 | (BFD32_BACKENDS_CFILES): Remove coff-pmac.c. | |
2285 | (coff-rs6000.lo): Remove the old dependency. | |
2286 | * Makefile.in: Rebuild. | |
2287 | ||
2288 | * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with | |
2289 | coff-rs6000.lo. | |
2290 | ||
2291 | 2001-05-25 H.J. Lu <hjl@gnu.org> | |
2292 | ||
2293 | * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p, | |
2294 | rs6000coff_core_file_matches_executable_p, | |
2295 | rs6000coff_core_file_failing_command and | |
2296 | rs6000coff_core_file_failing_signal only if AIX_CORE is | |
2297 | defined. | |
2298 | (pmac_xcoff_vec): Likewise. | |
2299 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
2300 | ||
2301 | 2001-05-25 Timothy Wall <twall@redhat.com> | |
2302 | ||
2303 | * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry | |
2304 | for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs. | |
2305 | ||
2306 | 2001-05-25 H.J. Lu <hjl@gnu.org> | |
2307 | ||
2308 | * bfd-in2.h: Regenerated. | |
2309 | * libcoff.h: Likewise. | |
2310 | ||
2311 | 2001-05-25 Alan Modra <amodra@one.net.au> | |
2312 | ||
2313 | * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow | |
2314 | undefined millicode syms in shared libs. | |
2315 | (hppa_build_one_stub): Turn BFD_ASSERTs into aborts. | |
2316 | (elf32_hppa_check_relocs): Likewise. | |
2317 | (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
2318 | (elf32_hppa_size_dynamic_sections): Likewise. | |
2319 | (elf32_hppa_relocate_section): Likewise. | |
2320 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
2321 | (elf32_hppa_finish_dynamic_sections): Likewise. | |
2322 | ||
2323 | 2001-05-24 Tom Rix <trix@redhat.com> | |
2324 | ||
2325 | * Makefile.am coff-pmac bfd now defined in coff-rs6000.c | |
2326 | xcoff-target.h not used to define rs6000 or ppc bfd. | |
2327 | * Makefile.in same | |
2328 | ||
2329 | * bfd-in.h : (struct lineno_cache_entry) promote element "offset" | |
2330 | to 64 bit. | |
2331 | ||
2332 | * coff-rs6000.c : Many changes for 64 bit support. Move common | |
2333 | 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec | |
2334 | and pmac_xcoff_vec | |
2335 | ||
2336 | * coff64-rs6000.c : Many changes for 64 bit support. 64 bit | |
2337 | linker now supported. Explictly define the rs6000coff64_vec. | |
2338 | ||
2339 | * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support | |
2340 | (coff_print_aux) same | |
2341 | (coff_write_object_contents) same | |
2342 | (coff_slurp_line_table) same | |
2343 | ||
2344 | * coffgen.c : (coff_fix_symbol_name) formatting | |
2345 | (coff_mangle_symbols) xcoff 64 bit support | |
2346 | (coff_write_symbol) same | |
2347 | (coff_write_alien_symbol) same | |
2348 | (coff_write_native_symbol) same | |
2349 | (coff_write_symbols) same | |
2350 | (coff_get_symbol_info) same | |
2351 | (bfd_coff_get_syment) same | |
2352 | (coff_print_symbol) same | |
2353 | ||
2354 | * config.bfd : add powerpc64-*-aix* target | |
2355 | ||
2356 | * libcoff-in.h : formatting | |
2357 | ||
2358 | * libcoff.h : move xcoff extern declarations to libxcoff.h | |
2359 | ||
2360 | * libxcoff.h : New file | |
2361 | ||
2362 | * xcofflink.c : Many changes for xcoff64 support. Move common | |
2363 | structures to include/coff/xcoff.h. Move specific structure to | |
2364 | backends coff-rs6000.c and coff64-rs6000.c. Use new backend | |
2365 | functions, defined in libxcoff.h, to isolate 32/64 dependencies. | |
2366 | ||
2367 | (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for | |
2368 | aix4.2+ -binitfini. | |
2369 | ||
2370 | (xcoff_build_ldsyms) : handle special __rtinit symbol. | |
2371 | ||
2372 | 2001-05-23 Alexandre Oliva <aoliva@redhat.com> | |
2373 | ||
2374 | * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo | |
2375 | s/ENTIRES/ENTRIES/. | |
2376 | ||
2377 | 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
2378 | ||
2379 | * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations. | |
2380 | * libbfd.h: Regenerate. | |
2381 | * bfd-in2.h: Regenerate. | |
2382 | ||
2383 | * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support. | |
2384 | * archures.c (bfd_mach_mips12000): Define. | |
2385 | * cpu-mips.c (arch_info_struct): Add MIPS r12k support. | |
2386 | * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k | |
2387 | support. | |
2388 | (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef. | |
2389 | * bfd-in2.h: Regenerate. | |
2390 | * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol. | |
2391 | ||
2392 | 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp> | |
2393 | ||
2394 | * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry, | |
2395 | elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be, | |
2396 | elf_sh_pic_plt_entry): New PLT code, that does not use r2, since | |
2397 | that is used by GCC. | |
2398 | ||
2399 | 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com> | |
2400 | ||
2401 | * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number | |
2402 | of entries in a structured section. | |
2403 | * elf.c: Use new macro. | |
2404 | * elf32-i386.c: Use new macro. | |
2405 | * elf32-mips.c: Use new macro. | |
2406 | * elf64-alpha.c: Use new macro. | |
2407 | * elf64-sparc.c: Use new macro. | |
2408 | * elfcode.h: Use new macro. | |
2409 | * elflink.h: Use new macro. | |
2410 | ||
2411 | 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com> | |
2412 | ||
2413 | * bfdint.texi: Replace -oformat with --oformat. | |
2414 | ||
2415 | 2001-05-21 Andreas Jaeger <aj@suse.de> | |
2416 | ||
2417 | * dwarf2.c (decode_line_info): Fix error message. | |
2418 | (read_abbrevs): Fix test for offset as suggested by Alan Modra and | |
2419 | adjust error message. | |
2420 | ||
2421 | 2001-05-18 H.J. Lu <hjl@gnu.org> | |
2422 | ||
2423 | * elflink.h (elf_link_add_object_symbols): Revert the last | |
2424 | change. | |
2425 | ||
2426 | 2001-05-17 Alan Modra <amodra@one.net.au> | |
2427 | ||
2428 | * elf32-hppa.c (clobber_millicode_symbols): Temporarily set | |
2429 | ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change. | |
2430 | (hppa_build_one_stub): Add an assert to check plt.offset. | |
2431 | ||
2432 | 2001-05-17 H.J. Lu <hjl@gnu.org> | |
2433 | ||
2434 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the | |
2435 | version definition to basename of the output filename. | |
2436 | ||
2437 | 2001-05-17 H.J. Lu <hjl@gnu.org> | |
2438 | ||
2439 | * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to | |
2440 | basename of the bfd filename. | |
2441 | ||
2442 | 2001-05-16 Alan Modra <amodra@one.net.au> | |
2443 | ||
2444 | * section.c (asection): Add linker_has_input field. | |
2445 | (STD_SECTION): Adjust initialization to suit. | |
2446 | * ecoff.c (bfd_debug_section): Likewise. | |
2447 | * bfd-in2.h: Regenerate. | |
2448 | ||
2449 | 2001-05-15 Alexandre Oliva <aoliva@redhat.com> | |
2450 | ||
2451 | * elf-m10300.c (mn10300_elf_relax_section): Don't relax | |
2452 | negative 32-bit operands to 16 operands when the operand is | |
2453 | going to be zero-extended by the modified opcode. | |
2454 | ||
2455 | 2001-05-12 Peter Targett <peter.targett@arccores.com> | |
2456 | ||
2457 | * cpu-arc.c (arch_info_struct): Add entry 'base' representing old | |
2458 | name for 'arc5' core versions. | |
2459 | (bfd_arc_arch): Make bfd_mach_arc_6 default. | |
2460 | ||
2461 | * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default | |
2462 | architecture. | |
2463 | (arc_elf_final_write_processing): Make bfd_mach_arc_6 default. | |
2464 | ||
2465 | 2001-05-11 Jakub Jelinek <jakub@redhat.com> | |
2466 | ||
2467 | * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind | |
2468 | sections as well. | |
2469 | (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO | |
2470 | to .gnu.linkonce.t.FOO text section. | |
2471 | ||
2472 | 2001-05-11 Jakub Jelinek <jakub@redhat.com> | |
2473 | ||
2474 | * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix | |
2475 | fields, change sec into secinfo. | |
2476 | (struct sec_merge_info): Add chain, remove last fields. | |
2477 | (struct sec_merge_sec_info): Add next, sec, psecinfo fields. | |
2478 | (sec_merge_hash_lookup): If lookup could not use a string only | |
2479 | because it has bad alignment, mark the old string for deletion. | |
2480 | (sec_merge_add): Add secinfo argument. Don't compute entry's | |
2481 | position, instead record the section. | |
2482 | (sec_merge_emit): Update for the sec into secinfo change in | |
2483 | struct sec_merge_hash_entry. | |
2484 | (_bfd_merge_section): Only record the section for merging, defer | |
2485 | putting strings into the hash table. | |
2486 | (cmplengthentry, last4_eq, last_eq, record_section, merge_strings, | |
2487 | _bfd_merge_sections): New functions. | |
2488 | (_bfd_merged_section_offset): Update for the sec_merge_hash_entry | |
2489 | changes. | |
2490 | * libbfd-in.h (_bfd_merge_sections): Add prototype. | |
2491 | (_bfd_nolink_bfd_merge_sections): Define. | |
2492 | * libbfd.h: Likewise. | |
2493 | (bfd_generic_merge_sections): Add prototype. | |
2494 | * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections. | |
2495 | (struct bfd_target): Likewise. | |
2496 | * bfd.c (bfd_merge_sections): Define. | |
2497 | * bfd-in2.h: Rebuilt. | |
2498 | * elf.c (_bfd_elf_merge_sections): New function. | |
2499 | * elf-bfd.h (_bfd_elf_merge_sections): Add prototype. | |
2500 | * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define. | |
2501 | * reloc.c (bfd_generic_merge_sections): New function. | |
2502 | * vms.c (vms_bfd_merge_sections): New function. | |
2503 | * aout-adobe.c (aout_32_bfd_merge_sections): Define. | |
2504 | * aout-target.h (MY_bfd_merge_sections): Define. | |
2505 | * aout-tic30.c (MY_bfd_merge_sections): Define. | |
2506 | * binary.c (binary_bfd_merge_sections): Define. | |
2507 | * bout.c (b_out_bfd_merge_sections): Define. | |
2508 | * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define. | |
2509 | * coffcode.c (coff_bfd_merge_sections): Define. | |
2510 | * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define. | |
2511 | * i386msdos.c (msdos_bfd_merge_sections): Define. | |
2512 | * i386os9k.c (os9k_bfd_merge_sections): Define. | |
2513 | * ieee.c (ieee_bfd_merge_sections): Define. | |
2514 | * ihex.c (ihex_bfd_merge_sections): Define. | |
2515 | * nlm-target.h (nlm_bfd_merge_sections): Define. | |
2516 | * oasys.c (oasys_bfd_merge_sections): Define. | |
2517 | * ppcboot.c (ppcboot_bfd_merge_sections): Define. | |
2518 | * som.c (som_bfd_merge_sections): Define. | |
2519 | * srec.c (srec_bfd_merge_sections): Define. | |
2520 | * tekhex.c (tekhex_bfd_merge_sections): Define. | |
2521 | * versados.c (versados_bfd_merge_sections): Define. | |
2522 | * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define. | |
2523 | ||
2524 | 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com> | |
2525 | ||
2526 | * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr' | |
2527 | to be unsigned long, in order to match its use. | |
2528 | ||
2529 | 2001-05-10 H.J. Lu <hjl@gnu.org> | |
2530 | ||
2531 | * linker.c (_bfd_generic_link_add_one_symbol): Check loop on | |
2532 | indirect symbols. | |
2533 | ||
2534 | 2001-05-09 H.J. Lu <hjl@gnu.org> | |
2535 | ||
2536 | * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate | |
2537 | versymhdr->sh_size bytes for extversym instead of hdr->sh_size. | |
2538 | Remove the unused veriable `dynver'. | |
2539 | ||
2540 | 2001-05-08 Ian Lance Taylor <ian@zembu.com> | |
2541 | ||
2542 | * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is | |
2543 | NULL or is not COFF. | |
2544 | (coff_i386_rtype_to_howto): Don't dump core if output section | |
2545 | owner is not COFF. | |
2546 | ||
2547 | 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
2548 | ||
2549 | * ecoff.c (bfd_debug_section): Fix initialization. | |
2550 | * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it | |
2551 | is always a positive integer. Cast away sign mismatch. | |
2552 | * elf32-mips.c: Fix misleading comment and typo. | |
2553 | (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use | |
2554 | correct data type. | |
2555 | * elflink.c: Fix typo. | |
2556 | (_bfd_elf_create_dynamic_sections): Remove superfluous initialization. | |
2557 | * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch. | |
2558 | ||
2559 | 2001-05-04 Richard Henderson <rth@redhat.com> | |
2560 | ||
2561 | * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true. | |
2562 | ||
2563 | 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com> | |
2564 | ||
2565 | * elf32-arm.h (elf32_arm_final_link_relocate): Set | |
2566 | EF_ARM_HASENTRY if the start address is set. | |
2567 | ||
2568 | 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com> | |
2569 | ||
2570 | * targets.c (_bfd_target_vector_entries): Compute value based on | |
2571 | the size of the _bfd_target_vector and not bfd_target_vector. | |
2572 | ||
2573 | 2001-05-03 H.J. Lu <hjl@gnu.org> | |
2574 | ||
2575 | * elfcode.h: Include "libiberty.h". | |
2576 | ||
2577 | * elflink.h (elf_link_add_object_symbols): Set | |
2578 | elf_dt_name (abfd) to basename of the bfd filename. | |
2579 | (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename | |
2580 | of the bfd filename. | |
2581 | ||
2582 | 2001-05-03 Andreas Jaeger <aj@suse.de> | |
2583 | ||
2584 | * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute. | |
2585 | (elf_generic_info_to_howto_rel): Likewise. | |
2586 | * coff-alpha.c (reloc_nil): Likewise. | |
2587 | (alpha_ecoff_bad_format_hook): Likewise. | |
2588 | (alpha_adjust_reloc_out): Likewise. | |
2589 | (alpha_bfd_reloc_type_lookup): Likewise. | |
2590 | (alpha_convert_external_reloc): Likewise. | |
2591 | * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise. | |
2592 | (elf64_alpha_reloc_bad): Likewise. | |
2593 | (elf64_alpha_reloc_gpdisp): Likewise. | |
2594 | (elf64_alpha_bfd_reloc_type_lookup): Likewise. | |
2595 | (elf64_alpha_info_to_howto): Likewise. | |
2596 | (elf64_alpha_add_symbol_hook): Likewise. | |
2597 | (elf64_alpha_create_got_section): Likewise. | |
2598 | (elf64_alpha_is_local_label_name): Likewise. | |
2599 | (elf64_alpha_merge_ind_symbols): Likewise. | |
2600 | * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise. | |
2601 | (mips_elf64_get_reloc_upper_bound): Likewise. | |
2602 | * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise. | |
2603 | (nlm_alpha_get_public_offset): Likewise. | |
2604 | ||
2605 | 2001-05-02 Johan Rydberg <jrydberg@opencores.org> | |
2606 | ||
2607 | * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain | |
2608 | about overflow in R_OPENRISC_LO_16_IN_INSN and | |
2609 | R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c | |
2610 | ||
2611 | 2001-04-30 H.J. Lu <hjl@gnu.org> | |
2612 | ||
2613 | * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1 | |
2614 | only for ELF_LINK_FORCED_LOCAL. | |
2615 | * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. | |
2616 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise. | |
2617 | * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise. | |
2618 | ||
2619 | * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL | |
2620 | if the symbol has hidden or internal visibility. | |
2621 | ||
2622 | 2001-04-30 Alan Modra <amodra@one.net.au> | |
2623 | ||
2624 | * elf32-hppa.c (final_link_relocate): Branch to .+8 for | |
2625 | calls to undefined weak symbols. | |
2626 | ||
2627 | 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de> | |
2628 | ||
2629 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for | |
2630 | R_X86_64_GOTPCREL, don't use assignments instead of comparisons. | |
2631 | ||
2632 | 2001-04-27 Andreas Jaeger <aj@suse.de> | |
2633 | ||
2634 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap | |
2635 | out handled entries. | |
2636 | (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries. | |
2637 | (elf64_x86_64_relocate_section): Fix GOTPCREL calculation. | |
2638 | (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and | |
2639 | GOT32. | |
2640 | ||
2641 | 2001-04-27 Sean McNeil <sean@mcneil.com> | |
2642 | ||
2643 | * config.bfd: Add arm-vxworks target. | |
2644 | * coff-arm (coff_arm_relocate_section): Add in symbol value to | |
2645 | addend (fro VXworks targets). | |
2646 | ||
2647 | 2001-04-26 H.J. Lu <hjl@gnu.org> | |
2648 | ||
2649 | * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is | |
2650 | valid. | |
2651 | ||
2652 | 2001-04-25 Frank Ch. Eigler <fche@redhat.com> | |
2653 | ||
2654 | * bfd-in.h (bfd_cache_close): Declare newly exported function. | |
2655 | * bfd-in2.h: Regenerated. | |
2656 | ||
2657 | 2001-04-24 Jakub Jelinek <jakub@redhat.com> | |
2658 | ||
2659 | * merge.c (struct sec_merge_hash_entry): Add alignment field. | |
2660 | (struct sec_merge_hash): Remove alignment_power. | |
2661 | (sec_merge_hash_newfunc): Clear alignment. | |
2662 | (sec_merge_hash_lookup): Pass alignment as argument. | |
2663 | Use hashp->root.next, not hashp->next to walk the hash chain. | |
2664 | If a string already in the hashtable does not have required | |
2665 | alignment, create a new hashtable entry. | |
2666 | (sec_merge_init): Remove alignment_power argument. | |
2667 | (sec_merge_add): Add alignment argument. | |
2668 | (sec_merge_emit): Alignment is now a per-entity thing, not per | |
2669 | section. | |
2670 | (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections | |
2671 | for proper alignment. | |
2672 | Pass alignment information to sec_merge_add. | |
2673 | ||
2674 | 2001-04-24 Christian Groessler <cpg@aladdin.de> | |
2675 | ||
2676 | * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR | |
2677 | and R_REL16 reloc types; accept odd values for R_REL16 type | |
2678 | ||
2679 | 2001-04-24 Johan Rydberg <jrydberg@opencores.org> | |
2680 | ||
2681 | * cpu-openrisc.c: New file. | |
2682 | * elf32-openrisc.c: Likewise. | |
2683 | ||
2684 | * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo. | |
2685 | (ALL_MACHINES_CFILES): Add cpu-openrisc.c. | |
2686 | (BFD32_BACKENDS): Add elf32-openrisc.lo. | |
2687 | (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c. | |
2688 | (cpu-openrisc.lo, elf32-openrisc.lo): New rules. | |
2689 | * Makefile.in: Regenerated. | |
2690 | * config.bfd: (openrisc-*-elf): New target. | |
2691 | * configure.in (bfd_elf32_openrisc_vec): New vector. | |
2692 | * configure: Regenerated. | |
2693 | * libbfd.h: Regenerated. | |
2694 | * bfd-in2.h: Regenerated. | |
2695 | * reloc.c: Add OpenRISC relocations. | |
2696 | * targets.c (bfd_elf32_openrisc_vec): Declare. | |
2697 | (bfd_target_vect): Add bfd_elf32_openrisc_vec. | |
2698 | * archures.c (enum bfd_architecture): Add bfd_arch_openrisc. | |
2699 | (bfd_openrisc_arch): Declare. | |
2700 | (bfd_archures_list): Add bfd_openrisc_arch. | |
2701 | * elf.c (prep_headers): Add bfd_arch_openrisc. | |
2702 | ||
2703 | 2001-04-23 Bo Thorsen <bo@suse.de> | |
2704 | ||
2705 | * elf64-x86-64.c: Add c++ vtable hack. | |
2706 | Small whitespace and comment changes. | |
2707 | ||
2708 | 2001-04-19 Andreas Jaeger <aj@suse.de> | |
2709 | ||
2710 | * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions. | |
2711 | (elf64_x86_64_plt_entry): Likewise. | |
2712 | (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation. | |
2713 | (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation. | |
2714 | ||
2715 | 2001-04-17 Hans-Peter Nilsson <hp@axis.com> | |
2716 | ||
2717 | * elf32-cris.c: Tweak comments related to dynamic linking. | |
2718 | (cris_elf_relocate_section): When not creating shared object, fill | |
2719 | in the .got table for any symbol not in the dynamic symbol table. | |
2720 | (elf_cris_finish_dynamic_symbol): When not creating shared object, | |
2721 | only emit a .got.rela reloc if the symbol is in the dynamic symbol | |
2722 | table. | |
2723 | (cris_elf_check_relocs): Use variable r_type in all places rather | |
2724 | than the original expression. Add default case in switch for | |
2725 | reloc types. | |
2726 | (elf_cris_size_dynamic_sections): Iterate over | |
2727 | elf_cris_discard_excess_program_dynamics when not creating shared | |
2728 | library. | |
2729 | (elf_cris_discard_excess_dso_dynamics): Renamed from | |
2730 | elf_cris_discard_copies. Correct typo, s/Rel/Rela/. | |
2731 | (elf_cris_discard_excess_program_dynamics): New. | |
2732 | ||
2733 | 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com> | |
2734 | ||
2735 | * coffcode.h (coff_write_object_contents): Use | |
2736 | bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out. | |
2737 | ||
2738 | 2001-04-14 H.J. Lu <hjl@gnu.org> | |
2739 | ||
2740 | * bfd-in2.h: Regenerate. | |
2741 | ||
2742 | 2001-04-14 Jakub Jelinek <jakub@redhat.com> | |
2743 | ||
2744 | * section.c (STD_SECTION): Add entsize. | |
2745 | ||
2746 | 2001-04-13 H.J. Lu <hjl@gnu.org> | |
2747 | ||
2748 | * section.c (SEC_MERGE): Define new flag for merging. | |
2749 | (SEC_STRINGS): Likewise. | |
2750 | (entsize): New field. | |
2751 | ||
2752 | 2001-04-13 Roger Sayle <roger@metaphorics.com> | |
2753 | ||
2754 | * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section | |
2755 | flag on pe-i386 targets. | |
2756 | ||
2757 | 2001-04-13 Jakub Jelinek <jakub@redhat.com> | |
2758 | ||
2759 | * libbfd-in.h (_bfd_merge_section): New. | |
2760 | (_bfd_write_merged_section): New. | |
2761 | (_bfd_merged_section_offset): New. | |
2762 | * libbfd.h: Rebuilt. | |
2763 | * linker.c (_bfd_generic_link_output_symbols): Handle | |
2764 | discard_sec_merge. | |
2765 | * aoutx.h (aout_link_write_symbols): Likewise. | |
2766 | * pdp11.c (aout_link_write_symbols): Likewise. | |
2767 | * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section. | |
2768 | (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE | |
2769 | sections. | |
2770 | (elf_link_sec_merge_syms): New. | |
2771 | (elf_link_input_bfd): Call _bfd_merged_section_offset | |
2772 | and _bfd_write_merged_section. | |
2773 | Handle discard_sec_merge. | |
2774 | * elf-bfd.h (struct elf_link_hash_table): Add merge_info | |
2775 | field. | |
2776 | (struct bfd_elf_section_data): Likewise. | |
2777 | * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and | |
2778 | SEC_STRINGS section flags and entsize from their ELF counterparts. | |
2779 | (_bfd_elf_link_hash_table_init): Initialize merge_info. | |
2780 | (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize | |
2781 | from their BFD counterparts. | |
2782 | * merge.c: New file. | |
2783 | * Makefile.am: Add strtab.lo. | |
2784 | * Makefile.in: Rebuilt. | |
2785 | ||
2786 | 2001-04-09 Hans-Peter Nilsson <hp@axis.com> | |
2787 | ||
2788 | * elflink.h (elf_fix_symbol_flags): For non-default visibilities, | |
2789 | only hide symbols marked STV_INTERNAL or STV_HIDDEN. | |
2790 | ||
2791 | 2001-04-05 Steven J. Hill <sjhill@cotw.com> | |
2792 | ||
2793 | * config.bfd (mips*el*-*-linux-gnu*): Use traditional little | |
2794 | endian MIPS ELF target. | |
2795 | * config.bfd (mips*-*-linux-gnu*): Use traditional big endian | |
2796 | MIPS ELF target. | |
2797 | ||
2798 | * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional | |
2799 | 64bit big endian MIPS ELF target. | |
2800 | (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little | |
2801 | endian MIPS ELF target. | |
2802 | * configure: Regenerated. | |
2803 | ||
2804 | * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and | |
2805 | little endian targets. | |
2806 | (mips_elf_sym_is_global): Handle traditional targets. | |
2807 | ||
2808 | * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional | |
2809 | 64bit big endian MIPS ELF target. | |
2810 | (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little | |
2811 | endian MIPS ELF target. | |
2812 | ||
2813 | * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec | |
2814 | and bfd_elf64_tradlittlemips_vec. | |
2815 | ||
2816 | 2001-04-05 David Mosberger <davidm@hpl.hp.com> | |
2817 | ||
2818 | * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an | |
2819 | ordinary "progbits" section. | |
2820 | ||
2821 | 2001-04-04 Alan Modra <alan@linuxcare.com.au> | |
2822 | ||
2823 | * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol | |
2824 | when -Bsymbolic causes a symbol to no longer need a .plt entry. | |
2825 | ||
2826 | 2001-04-03 David Mosberger <davidm@hpl.hp.com> | |
2827 | ||
2828 | * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted. | |
2829 | ||
2830 | 2001-03-30 H.J. Lu <hjl@gnu.org> | |
2831 | ||
2832 | * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ... | |
2833 | (PEI_DEFAULT_TARGET_SUBSYSTEM): This. | |
2834 | ||
2835 | 2001-03-26 H.J. Lu <hjl@gnu.org> | |
2836 | ||
2837 | * elf32-gen.c (elf32_generic_link_add_symbols): New. Check | |
2838 | if there are any relocations for generic ELF. | |
2839 | (bfd_elf32_bfd_link_add_symbols): Defined to | |
2840 | elf32_generic_link_add_symbols. | |
2841 | * elf64-gen.c (elf64_generic_link_add_symbols): New. Check | |
2842 | if there are any relocations for generic ELF. | |
2843 | (bfd_elf64_bfd_link_add_symbols): Defined to | |
2844 | elf64_generic_link_add_symbols. | |
2845 | ||
2846 | 2001-03-23 Nick Clifton <nickc@redhat.com> | |
2847 | ||
2848 | * Makefile.am (BUILD_CFILES): New variable: List of C source | |
2849 | files created in build directory. | |
2850 | (BUILD_HFILES): New variable: List of header files created in | |
2851 | build directory. | |
2852 | (POTFILES): Delete. | |
2853 | (po/POTFILES.in): Replace rule with empty entry. | |
2854 | (po/SRC-POTFILES.in): New rule: Create a list of source files | |
2855 | in the source directory. | |
2856 | (po/BLD-POTFILES.in): New rule: Create a list of source files | |
2857 | in the build directory. | |
2858 | (MOSTLYCLEAN): Do not delete source files created in build | |
2859 | directory. | |
2860 | * Makefile.in: Regenerate. | |
2861 | * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in | |
2862 | into po/Makefile. | |
2863 | * configure: Regenerate. | |
2864 | ||
2865 | * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES | |
2866 | and BLD_POTFILES. | |
2867 | Add .. to the search path when building bfd.pot. | |
2868 | Delete POTFILES when performing distclean. | |
2869 | Add comment describing why distclean is broken in maintainer mode. | |
2870 | * po/POTFILES.in: Delete. | |
2871 | * po/SRC-POTFILES.in: New file. | |
2872 | * po/BLD-POTFILES.in: New file. | |
2873 | * po/bfd.pot: Regenerate. | |
2874 | ||
2875 | 2001-03-22 Hans-Peter Nilsson <hp@axis.com> | |
2876 | ||
2877 | * elf32-cris.c: Shlib and PIC support. PCREL tweaks. | |
2878 | (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got, | |
2879 | elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc, | |
2880 | elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol, | |
2881 | elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol, | |
2882 | elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New | |
2883 | functions. | |
2884 | (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL, | |
2885 | R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false. | |
2886 | <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE, | |
2887 | R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT, | |
2888 | R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>: | |
2889 | New HOWTO members for new relocs. | |
2890 | (cris_reloc_map): Map new relocs. | |
2891 | (ELF_DYNAMIC_INTERPRETER): Define. | |
2892 | (PLT_ENTRY_SIZE): Define. | |
2893 | (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry, | |
2894 | elf_cris_pic_plt_entry): New, PLT templates. | |
2895 | (struct elf_cris_pcrel_relocs_copied, struct | |
2896 | elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New. | |
2897 | (elf_cris_link_hash_traverse, elf_cris_hash_table): Define. | |
2898 | (cris_final_link_relocate): Check that 16-bit GOT relocs have | |
2899 | positive values. Adjust PCREL relocs to be relative to location | |
2900 | after relocation. | |
2901 | (cris_elf_relocate_section): Handle relocations to dynamic | |
2902 | objects. Handle new relocations. Call error handler when seeing | |
2903 | non-PIC relocation for read-only sections while generating shared | |
2904 | object. | |
2905 | (cris_elf_check_relocs): Set reference counts for GOT and PLT | |
2906 | entries. | |
2907 | (bfd_elf32_bfd_link_hash_table_create, | |
2908 | elf_backend_adjust_dynamic_symbol, | |
2909 | elf_backend_size_dynamic_sections, | |
2910 | elf_backend_finish_dynamic_symbol, | |
2911 | elf_backend_finish_dynamic_sections, | |
2912 | elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link, | |
2913 | elf_backend_hide_symbol, elf_backend_want_got_plt, | |
2914 | elf_backend_plt_readonly, elf_backend_want_plt_sym, | |
2915 | elf_backend_got_header_size, elf_backend_plt_header_size): | |
2916 | Define. | |
2917 | ||
2918 | * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT, | |
2919 | BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE, | |
2920 | BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT, | |
2921 | BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT, | |
2922 | BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL, | |
2923 | BFD_RELOC_CRIS_32_PLT_PCREL): New relocs. | |
2924 | * bfd-in2.h, libbfd.h: Regenerate. | |
2925 | ||
2926 | 2001-03-21 Diego Novillo <dnovillo@redhat.com> | |
2927 | ||
2928 | (_bfd_mips_elf_relocate_section): Give a better error message when | |
2929 | a relocation is not recognized. | |
2930 | ||
2931 | 2001-03-21 Alan Modra <alan@linuxcare.com.au> | |
2932 | ||
2933 | * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section | |
2934 | non-NULL before attempting to dereference. | |
2935 | ||
2936 | 2001-03-20 H.J. Lu <hjl@gnu.org> | |
2937 | ||
2938 | * configure.in: Remove the redundent AC_ARG_PROGRAM. | |
2939 | * configure: Rebuild. | |
2940 | ||
2941 | 2001-03-20 Andreas Schwab <schwab@suse.de> | |
2942 | ||
2943 | * elf32-m68k.c (elf_m68k_relocate_section): Don't need the | |
2944 | relocation value when resolving a reference from a debugging | |
2945 | section. | |
2946 | ||
2947 | 2001-03-16 Scott Thomason <SThomaso@hii.com> | |
2948 | ||
2949 | * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors. | |
2950 | (xcoff64_swap_sym_out): Fix syntax errors. | |
2951 | ||
2952 | 2001-03-16 Richard Sandiford <rsandifo@redhat.com> | |
2953 | ||
2954 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning. | |
2955 | ||
2956 | 2001-03-15 Alan Modra <alan@linuxcare.com.au> | |
2957 | ||
2958 | * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call. | |
2959 | (hppa_link_hash_newfunc): Init it. | |
2960 | (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller | |
2961 | section appears to be non-PIC. | |
2962 | (final_link_relocate): Likewise. | |
2963 | (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any | |
2964 | possible candidate function, and set pic_call for those that will | |
2965 | only have a .plt entry for the PIC call stub. | |
2966 | (hppa_handle_PIC_calls): Set maybe_pic_call. | |
2967 | ||
2968 | 2001-03-12 DJ Delorie <dj@redhat.com> | |
2969 | ||
2970 | * elf32-sh.c (sh_elf_relocate_section): Only relocation | |
2971 | R_SH_DIR8WP* relocs if they're against external symbols, else | |
2972 | they're just for relaxing. Validate the reloc values. | |
2973 | ||
2974 | 2001-03-12 Stefan Geuken <mail@stefan-geuken.de> | |
2975 | ||
2976 | * binary.c (bfd_external_binary_architecture): Declare. | |
2977 | (binary_object_p): If bfd_external_binary_architecture is defined, | |
2978 | set the architecture to this string. | |
2979 | ||
2980 | 2001-03-11 Philip Blundell <philb@gnu.org> | |
2981 | ||
2982 | * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT | |
2983 | entries that could serve as a definition for a weak symbol. | |
2984 | ||
2985 | 2001-03-08 Nick Clifton <nickc@redhat.com> | |
2986 | ||
2987 | * Most files: Update copyright notices using Perl script created | |
2988 | by Kevin Buettner <kevinb@redhat.com>. | |
2989 | ||
2990 | 2001-03-07 Nick Clifton <nickc@redhat.com> | |
2991 | ||
2992 | * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise | |
2993 | prior patch on ! defined OLD_ARM_ABI. | |
2994 | ||
2995 | 2001-03-07 Andreas Jaeger <aj@suse.de> | |
2996 | ||
2997 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of | |
2998 | some relocation values. | |
2999 | ||
3000 | 2001-03-06 Nick Clifton <nickc@redhat.com> | |
3001 | ||
3002 | * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero | |
3003 | of offset in BLX(1) instruction. | |
3004 | * coff-arm.c (coff_arm_relocate_section): Clear bit zero of | |
3005 | offset in BLX(1) instruction. | |
3006 | Fix formatting. | |
3007 | ||
3008 | 2001-03-06 Nick Clifton <nickc@redhat.com> | |
3009 | ||
3010 | * coff-arm.c (coff_arm_reloc_type_lookup): Add | |
3011 | BFD_RELOC_THUMB_PCREL_BLX. | |
3012 | ||
3013 | 2001-03-06 Igor Shevlyakov <igor@windriver.com> | |
3014 | ||
3015 | * archures.c (bfd_default_scan): Add Coldfire CPUs. | |
3016 | * bfd-in2.h: Regenerate. | |
3017 | * cpu-m68k.c: Add Coldfire CPUs for arch table. | |
3018 | * ieee.c (ieee_write_processor): Set proper id for | |
3019 | Coldfire CPUs. | |
3020 | ||
3021 | 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com> | |
3022 | ||
3023 | * configure.in: Add s390 target. | |
3024 | * configure: Regenerate. | |
3025 | ||
3026 | 2001-02-28 Andreas Jaeger <aj@suse.de> | |
3027 | ||
3028 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation | |
3029 | to addend. | |
3030 | ||
3031 | 2001-02-28 Philip Blundell <pb@futuretv.com> | |
3032 | ||
3033 | * elf32-arm.h: Update mentions of renamed EF_xx constants. | |
3034 | (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2. | |
3035 | ||
3036 | 2001-02-27 H.J. Lu <hjl@gnu.org> | |
3037 | ||
3038 | * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if | |
3039 | abfd->tdata.aout_data == NULL. | |
3040 | ||
3041 | 2001-02-27 Alan Modra <alan@linuxcare.com.au> | |
3042 | ||
3043 | * elf32-hppa.c: Correct field selector in stub comments. | |
3044 | (clobber_millicode_symbols): Formatting fix. | |
3045 | ||
3046 | * configure.in: Bump version to 2.11.90. | |
3047 | * configure: Regenerate. | |
3048 | * Makefile.am (CFILES): Rename to SOURCE_CFILES. | |
3049 | (CFILES): $SOURCE_CFILES + generated C files. | |
3050 | (POTFILES): Include $HFILES not $SOURCE_HFILES. | |
3051 | Run "make dep-am" | |
3052 | * Makefile.in: Regenerate. | |
3053 | * doc/Makefile.in: This too. | |
3054 | ||
3055 | 2001-02-26 Timothy Wall <twall@cygnus.com> | |
3056 | ||
3057 | * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete | |
3058 | comments. | |
3059 | ||
3060 | 2001-02-26 Nick Clifton <nickc@redhat.com> | |
3061 | ||
3062 | * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy | |
3063 | up, replacing multiple if statements with a switch. | |
3064 | (handle_COMDAT): New function. | |
3065 | ||
3066 | 2001-02-26 H.J. Lu <hjl@gnu.org> | |
3067 | ||
3068 | * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue | |
3069 | a warning for section flags we do not handle instead of | |
3070 | aborting. | |
3071 | ||
3072 | 2001-02-26 Andreas Jaeger <aj@suse.de> | |
3073 | ||
3074 | * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries. | |
3075 | ||
3076 | 2001-02-22 Timothy Wall <twall@cygnus.com> | |
3077 | ||
3078 | * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey). | |
3079 | * configure.in: Add objects for elf64_ia64_aix vectors. | |
3080 | * configure: Regenerated. | |
3081 | * configure.host: Recognize ia64-*-aix*. | |
3082 | * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors | |
3083 | for AIX. AIX5 requires most relocations to be dynamic (*all* | |
3084 | binaries are somewhat similar to shared libraries). | |
3085 | * targets.c: Add elf64_ia64_aix vectors. | |
3086 | ||
3087 | 2001-02-21 David Mosberger <davidm@hpl.hp.com> | |
3088 | ||
3089 | * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for | |
3090 | C8 said "1" instead of "8". Clarify error string for IMM22: | |
3091 | "signed integer" instead of just "integer". | |
3092 | ||
3093 | 2001-02-20 Andreas Jaeger <aj@suse.de> | |
3094 | ||
3095 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make | |
3096 | PLT entries that could serve as a definition for a weak symbol. | |
3097 | ||
3098 | 2001-02-19 Jakub Jelinek <jakub@redhat.com> | |
3099 | ||
3100 | * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT | |
3101 | entries that could serve as a definition for a weak symbol. | |
3102 | * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise. | |
3103 | ||
3104 | 2001-02-18 David O'Brien <obrien@FreeBSD> | |
3105 | ||
3106 | * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat | |
3107 | FreeBSD/i386-CURRENT differently until I can figure out the needed | |
3108 | corefile changes. | |
3109 | * configure: Regenerate. | |
3110 | * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm, | |
3111 | FreeBSD/PowerPC, and FreeBSD/sparc64. | |
3112 | ||
3113 | 2001-02-18 lars brinkhoff <lars@nocrew.org> | |
3114 | ||
3115 | * Makefile.am: Add PDP-11 a.out target. | |
3116 | * config.bfd: Likewise. | |
3117 | * configure.in: Likewise. | |
3118 | * targets.c: Likewise. | |
3119 | * archures.c: Likewise. | |
3120 | * bfd-in2.h: Likewise. Add PDP-11 relocations. | |
3121 | * libbfd.h: Add PDP-11 relocations. | |
3122 | * reloc.c: Likewise. | |
3123 | * cpu-pdp11.c: New file. | |
3124 | * pdp11.c: New file. | |
3125 | ||
3126 | * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define. | |
3127 | (GET_SWORD) [ARCH_SIZE==16]: Likewise. | |
3128 | (GET_SWORD) [ARCH_SIZE==16]: Likewise. | |
3129 | (PUT_WORD) [ARCH_SIZE==16]: Likewise. | |
3130 | (GET_MAGIC): New macro. | |
3131 | (PUT_MAGIC): Likewise. | |
3132 | * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word. | |
3133 | ||
3134 | 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com> | |
3135 | ||
3136 | * irix-core.c (irix_core_core_file_p): Set the architecture (GDB | |
3137 | multiarch needs it). | |
3138 | ||
3139 | 2001-02-18 H.J. Lu <hjl@gnu.org> | |
3140 | ||
3141 | * elflink.h (elf_link_input_bfd): Ignore invalid section symbol | |
3142 | index. | |
3143 | ||
3144 | 2001-02-18 Kazu Hirata <kazu@hxi.com> | |
3145 | ||
3146 | * vms-misc.c: Fix formatting. | |
3147 | ||
3148 | 2001-02-16 Kazu Hirata <kazu@hxi.com> | |
3149 | ||
3150 | * vms.c: Fix formatting. | |
3151 | ||
3152 | 2001-02-14 H.J. Lu <hjl@gnu.org> | |
3153 | ||
3154 | * elf.c (elf_find_function): New function. | |
3155 | (_bfd_elf_find_nearest_line): Call elf_find_function () to find | |
3156 | the file name and function name. | |
3157 | ||
3158 | 2001-02-14 Nick Clifton <nickc@redhat.com> | |
3159 | ||
3160 | * ecoff.c (bfd_debug_section): Update to initialise new fields in | |
3161 | asection structure. | |
3162 | ||
3163 | * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c | |
3164 | (BFD64_BACKENDS): Add pepigen.c | |
3165 | Add rules to create peigen.c and pepigen.c from peXXigen.c. | |
3166 | ||
3167 | * Makefile.in: Regenerate. | |
3168 | * configure: Regenerate. | |
3169 | * po/POTFILES.in: Regenerate. | |
3170 | * po/bfd.pot: Regenerate. | |
3171 | ||
3172 | 2001-02-14 H.J. Lu <hjl@gnu.org> | |
3173 | ||
3174 | * libcoff-in.h (pe_tdata): Add members target_subsystem and | |
3175 | force_minimum_alignment. | |
3176 | ||
3177 | 2001-02-14 Bo Thorsen <bo@suse.de> | |
3178 | ||
3179 | * elf64-x86-64.c: Small formatting fixes and rearrangements of code. | |
3180 | (elf64_86_64_size_info): Struct added to fix a problem | |
3181 | with the hashtable string entries. | |
3182 | (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt. | |
3183 | (elf64_x86_64_size_dynamic_sections): A FIXME removed. | |
3184 | (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and | |
3185 | remove the FIXME for this. | |
3186 | (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt | |
3187 | section. Also removed the FIXME for it. | |
3188 | (x86_64_elf_howto_table): Use bfd_elf_generic_reloc. | |
3189 | (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker. | |
3190 | (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing. | |
3191 | ||
3192 | 2001-02-13 Richard Henderson <rth@redhat.com> | |
3193 | ||
3194 | * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required | |
3195 | and not user provided. | |
3196 | ||
3197 | 2001-02-13 Kazu Hirata <kazu@hxi.com> | |
3198 | ||
3199 | * vms.c (vms_print_symbol): Remove unreachable code. | |
3200 | ||
3201 | * rs6000-core.c: Fix formatting. | |
3202 | ||
3203 | 2001-02-13 David Mosberger <davidm@hpl.hp.com> | |
3204 | ||
3205 | * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define | |
3206 | as _bfd_XXi_only_swap_filehdr_out. | |
3207 | (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set | |
3208 | pe->force_minimum_alignment to TRUE. | |
3209 | (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to | |
3210 | PEI_TARGET_SUBSYSTEM. | |
3211 | (pe_print_private_bfd_data): Call | |
3212 | _bfd_XX_print_private_bfd_data_common() instead of | |
3213 | _bfd_pe_print_private_bfd_data_common(). | |
3214 | (pe_bfd_copy_private_bfd_data): Call | |
3215 | _bfd_XX_bfd_copy_private_bfd_data_common() instead of | |
3216 | _bfd_pe_bfd_copy_private_bfd_data_common(). | |
3217 | (coff_bfd_copy_private_section_data): Define as | |
3218 | _bfd_XX_bfd_copy_private_section_data instead of | |
3219 | _bfd_pe_bfd_copy_private_section_data. | |
3220 | (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead | |
3221 | of a _bfd_pe_get_symbol_info. | |
3222 | ||
3223 | * peigen.c: Delete. | |
3224 | ||
3225 | * peXXigen.c: Renamed from peigen.c. | |
3226 | (COFF_WITH_XX): Define this macro (will get expanded into | |
3227 | COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being | |
3228 | compiled as peigen.c or pepigen.c. | |
3229 | [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to | |
3230 | define the canonical PEP structures and definitions. | |
3231 | (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in | |
3232 | effect, enforce minimum file and section alignments. If | |
3233 | extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to | |
3234 | pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN, | |
3235 | so, by default, this is a no-op). | |
3236 | ||
3237 | * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep. | |
3238 | (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map | |
3239 | _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to | |
3240 | _bfd_pefoo if it's not defined. Use these macros to define | |
3241 | coff swap macros. | |
3242 | ||
3243 | * libcoff.h (pe_tdata): Add members target_subsystem and | |
3244 | force_minimum_alignment. | |
3245 | ||
3246 | * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to | |
3247 | COFF_WITH_pep. | |
3248 | (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM. | |
3249 | ||
3250 | * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of | |
3251 | peigen.lo. | |
3252 | ||
3253 | * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep. | |
3254 | (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and | |
3255 | PEPAOUTHDR. | |
3256 | ||
3257 | * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo. | |
3258 | (BFD64_BACKENDS_CFILES): Mention pepigen.c | |
3259 | (peigen.c): Add rule to generate from peXXigen.c. | |
3260 | (pepigen.c): Ditto. | |
3261 | (pepigen.lo): List dependencies for pepigen.lo. | |
3262 | ||
3263 | 2001-02-13 Alan Modra <alan@linuxcare.com.au> | |
3264 | ||
3265 | * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If | |
3266 | $global$ referenced but not defined, set its value here. | |
3267 | ||
3268 | 2001-02-09 Bo Thorsen <bo@suse.de> | |
3269 | ||
3270 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section | |
3271 | alignment to 3. | |
3272 | (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry | |
3273 | and relocation. | |
3274 | (elf64_x86_64_relocate_section): Fix formatting. | |
3275 | (elf64_x86_64_relocate_section): Fix addend for relocation of | |
3276 | R_X86_64_(8|16|32|PC8|PC16|PC32). | |
3277 | ||
3278 | 2001-02-12 Jan Hubicka <jh@suse.cz> | |
3279 | ||
3280 | * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL. | |
3281 | ||
3282 | 2001-02-11 H.J. Lu <hjl@gnu.org> | |
3283 | ||
3284 | * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB | |
3285 | alignment. | |
3286 | ||
3287 | 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl> | |
3288 | ||
3289 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch | |
3290 | from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32 | |
3291 | relocations against dynsym symbols. | |
3292 | ||
3293 | * elf32-mips.c (elf_mips_howto_table): Fix the comment on | |
3294 | the R_MIPS_26 relocation. | |
3295 | (mips_elf_calculate_relocation): Use (p + 4) instead of p for | |
3296 | the R_MIPS_26 relocation. | |
3297 | (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26 | |
3298 | relocation. | |
3299 | * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on | |
3300 | the R_MIPS_26 relocation. | |
3301 | (mips_elf64_howto_table_rela): Likewise. | |
3302 | ||
3303 | * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub | |
3304 | member to mark symbols that have non-CALL relocations against | |
3305 | them. | |
3306 | (mips_elf_link_hash_newfunc): Initialize no_fn_stub. | |
3307 | (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like | |
3308 | R_MIPS_GOT16. | |
3309 | (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a | |
3310 | non-CALL relocation against it is encountered. | |
3311 | (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well. | |
3312 | (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if | |
3313 | no_fn_stub is not set. | |
3314 | ||
3315 | * elf32-mips.c (mips_elf_output_extsym): Get the output section | |
3316 | information from the real symbol for indirect ones. | |
3317 | Check no_fn_stub to find out if a symbol has a function stub | |
3318 | indeed. | |
3319 | ||
3320 | 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG> | |
3321 | ||
3322 | * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory. | |
3323 | * Makefile.in: Regenerate. | |
3324 | ||
3325 | 2001-02-09 David Mosberger <davidm@hpl.hp.com> | |
3326 | ||
3327 | * elfxx-ia64.c (is_unwind_section_name): New function. Returns | |
3328 | true if section name is an unwind table section name. | |
3329 | (elfNN_ia64_additional_program_headers): Count each unwind section | |
3330 | separately. | |
3331 | (elfNN_ia64_modify_segment_map): Install one unwind program header | |
3332 | for each unwind separate section. Note: normally the linker | |
3333 | script merges the unwind sections that go into a single segment, | |
3334 | so this still generates at most one unwind program header per | |
3335 | segment. | |
3336 | ||
3337 | * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section | |
3338 | name for SHT_IA_64_UNWIND, not just .IA_64.unwind. | |
3339 | (elfNN_ia64_fake_sections): Mark sections with names that start | |
3340 | with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64 | |
3341 | unwind section. | |
3342 | ||
3343 | * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function. | |
3344 | Use it to make sh_info in unwind section point to the text section | |
3345 | it applies to. | |
3346 | ||
3347 | 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com> | |
3348 | ||
3349 | * Makefile.am: Add linux target for S/390. | |
3350 | * archures.c: Likewise. | |
3351 | * bfd-in2.h: Likewise. | |
3352 | * config.bfd: Likewise. | |
3353 | * configure.in: Likewise. | |
3354 | * elf.c: Likewise. | |
3355 | * libbfd.h: Likewise. | |
3356 | * targets.c: Likewise. | |
3357 | * cpu-s390.c: New file. | |
3358 | * elf32-s390.c: New file. | |
3359 | * elf64-s390.c: New file. | |
3360 | ||
3361 | 2001-02-09 Nick Clifton <nickc@redhat.com> | |
3362 | ||
3363 | * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of | |
3364 | ImageBase. This has already been done by coff_swap_hdr_in. | |
3365 | ||
3366 | 2001-02-09 Jakub Jelinek <jakub@redhat.com> | |
3367 | ||
3368 | * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function. | |
3369 | ||
3370 | 2001-02-09 Jakub Jelinek <jakub@redhat.com> | |
3371 | ||
3372 | * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count. | |
3373 | (sparc64_elf_relocate_section): Likewise. | |
3374 | ||
3375 | 2001-02-09 Mark Kettenis <kettenis@gnu.org> | |
3376 | ||
3377 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32 | |
3378 | similar to R_SPARC_32. | |
3379 | * elf64-sparc.c (sparc64_elf_howto_table): Likewise. | |
3380 | ||
3381 | 2001-02-08 H.J. Lu <hjl@gnu.org> | |
3382 | ||
3383 | * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32 | |
3384 | relocation entries for weak definitions when building DSO with | |
3385 | -Bsymbolic. | |
3386 | ||
3387 | 2001-02-08 Richard Henderson <rth@redhat.com> | |
3388 | ||
3389 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness | |
3390 | before visibility. Locally defined protected symbols are not | |
3391 | dynamic. | |
3392 | ||
3393 | 2001-02-08 Geoffrey Keating <geoffk@redhat.com> | |
3394 | ||
3395 | * config.bfd: Enable coff64 for rs6000-*. Patch from | |
3396 | <hzoli@austin.ibm.com>. | |
3397 | ||
3398 | 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com> | |
3399 | ||
3400 | * coffgen.c (coff_find_nearest_line): If stabs info is successfully | |
3401 | found, do not attempt to find dwarf2 info before returning. | |
3402 | ||
3403 | 2001-02-07 Jakub Jelinek <jakub@redhat.com> | |
3404 | ||
3405 | * elflink.h (is_global_symbol_definition): Rename to | |
3406 | is_global_data_symbol_definition and have it reject function | |
3407 | symbols. | |
3408 | (elf_link_is_defined_archive_symbol): Use renamed function. | |
3409 | ||
3410 | 2001-02-07 Todd Vierling <tv@wasabisystems.com> | |
3411 | ||
3412 | * libbfd-in.h (bfd_target_vector): Change extern array to pointer. | |
3413 | * libbfd.h (bfd_target_vector): Likewise. | |
3414 | * targets.c (bfd_target_vector): Rename to _bfd_target_vector and | |
3415 | make static; create pointer reference named bfd_target_vector. | |
3416 | (_bfd_target_vector_entries): Calculate this based on the array | |
3417 | typed _bfd_target_vector. | |
3418 | ||
3419 | 2001-02-06 H.J. Lu <hjl@gnu.org> | |
3420 | ||
3421 | * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and | |
3422 | internal symbols are not dynamic. | |
3423 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise. | |
3424 | ||
3425 | 2001-02-06 Nick Clifton <nickc@redhat.com> | |
3426 | ||
3427 | * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so | |
3428 | that it will not be pulled into the list of files that make up | |
3429 | po/POTFILES.in. | |
3430 | * Makefile.in: Regenerate. | |
3431 | * po/bfd.pot: Regenerate. | |
3432 | ||
3433 | 2001-02-06 H.J. Lu <hjl@gnu.org> | |
3434 | ||
3435 | * peicode.h (coff_swap_filehdr_in): Remove the e_magic | |
3436 | checking. | |
3437 | (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and | |
3438 | external_PEI_IMAGE_hdr. | |
3439 | ||
3440 | 2001-02-06 Kazu Hirata <kazu@hxi.com> | |
3441 | ||
3442 | * elf-m10200.c: Fix formatting. | |
3443 | ||
3444 | 2001-02-04 Nick Clifton <nickc@redhat.com> | |
3445 | ||
3446 | * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC | |
3447 | rel, it will be handled later on. | |
3448 | ||
3449 | 2001-02-02 Fred Fish <fnf@ninemoons.com> | |
3450 | ||
3451 | * Makefile.in: Fix typo. | |
3452 | ||
3453 | 2001-02-01 Kazu Hirata <kazu@hxi.com> | |
3454 | ||
3455 | * elf-m10300.c: Fix formatting. | |
3456 | ||
3457 | 2001-01-30 Alan Modra <alan@linuxcare.com.au> | |
3458 | ||
3459 | * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function. | |
3460 | (elf_backend_get_symbol_type): Define. | |
3461 | (elf64_hppa_object_p): Set architecture and machine from elf | |
3462 | header flags. | |
3463 | ||
3464 | 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov> | |
3465 | ||
3466 | * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2 | |
3467 | before mdebug. | |
3468 | ||
3469 | 2001-01-26 Richard Henderson <rth@redhat.com> | |
3470 | ||
3471 | * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false | |
3472 | for non-default visibility. | |
3473 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but | |
3474 | delete ugly macro and replace with pretty function. | |
3475 | ||
3476 | 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com> | |
3477 | ||
3478 | * coff-go32.c: Update copyright. | |
3479 | * coff-stgo32.c: Likewise. | |
3480 | * coff-go32.c (COFF_LONG_FILENAMES): Define. | |
3481 | * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise. | |
3482 | * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry. | |
3483 | * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. | |
3484 | ||
3485 | 2001-01-25 Kazu Hirata <kazu@hxi.com> | |
3486 | ||
3487 | * bfd-in2.h: Rebuild. | |
3488 | * libbfd.h: Likewise. | |
3489 | ||
3490 | 2001-01-23 H.J. Lu <hjl@gnu.org> | |
3491 | ||
3492 | * bfd-in2.h: Rebuild. | |
3493 | ||
3494 | 2001-01-23 H.J. Lu <hjl@gnu.org> | |
3495 | ||
3496 | * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf) | |
3497 | is NULL or PRIV(vms_rec) is outside of the buffer. | |
3498 | ||
3499 | 2001-01-23 Kazu Hirata <kazu@hxi.com> | |
3500 | ||
3501 | * coff64-rs6000.c: Fix formatting. | |
3502 | * coff-arm.c: Likewise. | |
3503 | * coffgen.c: Likewise. | |
3504 | * cofflink.c: Likewise. | |
3505 | * coff-mcore.c: Likewise. | |
3506 | * coff-mips.c: Likewise. | |
3507 | * coff-pmac.c: Likewise. | |
3508 | * coff-ppc.c: Likewise. | |
3509 | * coff-rs6000.c: Likewise. | |
3510 | * elf32.c: Likewise. | |
3511 | * elf32-fr30.c: Likewise. | |
3512 | * elf32-i370.c: Likewise. | |
3513 | * elf32-i860.c: Likewise. | |
3514 | * elf32-m32r.c: Likewise. | |
3515 | * elf32-m68k.c: Likewise. | |
3516 | * elf32-mcore.c: Likewise. | |
3517 | * elf32-ppc.c: Likewise. | |
3518 | * elf32-sh.c: Likewise. | |
3519 | * elf32-v850.c: Likewise. | |
3520 | * elf64-alpha.c: Likewise. | |
3521 | * elf64-sparc.c: Likewise. | |
3522 | * elflink.c: Likewise. | |
3523 | * elflink.h: Likewise. | |
3524 | * elf-m10200.c: Likewise. | |
3525 | * elf-m10300.c: Likewise. | |
3526 | * elfxx-ia64.c: Likewise. | |
3527 | ||
3528 | * aoutx.h: Fix formatting. | |
3529 | * bfd.c: Likewise. | |
3530 | * bfd-in2.h: Likewise. | |
3531 | * bfd-in.h: Likewise. | |
3532 | * cpu-i386.c: Likewise. | |
3533 | * cpu-m68hc11.c: Likewise. | |
3534 | * dwarf2.c: Likewise. | |
3535 | * elf64-x86-64.c: Likewise. | |
3536 | * format.c: Likewise. | |
3537 | * freebsd.h: Likewise. | |
3538 | * hash.c: Likewise. | |
3539 | * hp300hpux.c: Likewise. | |
3540 | * hppabsd-core.c: Likewise. | |
3541 | * hpux-core.c: Likewise. | |
3542 | ||
3543 | 2001-01-22 Bo Thorsen <bo@suse.de> | |
3544 | ||
3545 | * elf64-x86-64.c: Added PIC support for X86-64. | |
3546 | (elf64_x86_64_link_hash_newfunc): Function added. | |
3547 | (elf64_x86_64_link_hash_table_create): Likewise. | |
3548 | (elf64_x86_64_check_relocs): Likewise. | |
3549 | (elf64_x86_64_gc_mark_hook): Likewise. | |
3550 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
3551 | (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
3552 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
3553 | (elf64_x86_64_discard_copies): Likewise. | |
3554 | (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
3555 | (elf64_x86_64_finish_dynamic_sections): Likewise. | |
3556 | (elf64_x86_64_relocate_section): Add relocation of PIC sections. | |
3557 | ||
3558 | 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl> | |
3559 | ||
3560 | * Makefile.am (install-data-local): Make use of $(DESTDIR). | |
3561 | * Makefile.in: Regenerate. | |
3562 | ||
3563 | 2001-01-21 Kazu Hirata <kazu@hxi.com> | |
3564 | ||
3565 | * coff-a29k.c: Fix formatting. | |
3566 | ||
3567 | 2001-01-19 H.J. Lu <hjl@gnu.org> | |
3568 | ||
3569 | * elf32-i386.c (elf_i386_check_relocs): Report files with bad | |
3570 | relocation section names. | |
3571 | (elf_i386_relocate_section): Report files with bad relocation | |
3572 | section names and return false. | |
3573 | ||
3574 | 2001-01-17 Bo Thorsen <bo@suse.de> | |
3575 | ||
3576 | * targets.c: Alphabetize list of xvecs. | |
3577 | ||
3578 | 2001-01-14 Alan Modra <alan@linuxcare.com.au> | |
3579 | ||
3580 | * config.bfd: Add linux target variant for elfxx-hppa. | |
3581 | * configure.in: Recognize bfd_elf32_hppa_linux_vec and | |
3582 | bfd_elf64_hppa_linux_vec. | |
3583 | * configure: Regenerate. | |
3584 | * elf64-hppa.c: Include elf64-target.h again to support linux | |
3585 | target variant. | |
3586 | (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux. | |
3587 | * elf32-hppa.c: Include elf32-target.h again to support linux | |
3588 | target variant. | |
3589 | (elf32_hppa_post_process_headers): New function. | |
3590 | (elf_backend_post_process_headers): Define. | |
3591 | * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and | |
3592 | bfd_elf32_hppa_linux_vec. | |
3593 | ||
3594 | * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base, | |
3595 | and data_segment_base fields. | |
3596 | (elf32_hppa_link_hash_table_create ): Init them. | |
3597 | (elf32_hppa_check_relocs): Update comments. | |
3598 | (hppa_record_segment_addr): New function. | |
3599 | (elf32_hppa_relocate_section): Call it. | |
3600 | (final_link_relocate): Handle R_PARISC_SEGREL32. | |
3601 | (elf32_hppa_final_link): New function. | |
3602 | (bfd_elf32_bfd_final_link): Define to call it. | |
3603 | (hppa_unwind_entry_compare): New function. | |
3604 | * cache.c (bfd_open_file): Create files in write+read mode. | |
3605 | ||
3606 | * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for | |
3607 | SEGREL32 and numerous other relocs. Change duplicate | |
3608 | R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED. | |
3609 | ||
3610 | * opncls.c (bfd_fdopenr): Add parens like the comment says around | |
3611 | O_ACCMODE. | |
3612 | ||
3613 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create | |
3614 | .plt entries for DT_INIT and DT_FINI. | |
3615 | (elf32_hppa_finish_dynamic_sections): Remove special handling of | |
3616 | DT_INIT and DT_FINI. | |
3617 | ||
3618 | * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit | |
3619 | offsets for stub .plt access if wide mode. Check offset in range. | |
3620 | ||
3621 | 2001-01-13 Nick Clifton <nickc@redhat.com> | |
3622 | ||
3623 | * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank | |
3624 | line. | |
3625 | ||
3626 | * coffcode.h (coff_canonicalize_reloc): Remove spurious blank | |
3627 | line. | |
3628 | ||
3629 | 2001-01-12 Alan Modra <alan@linuxcare.com.au> | |
3630 | ||
3631 | * configure.in ([bfd_elf64_x86_64_vec]): Set target64. | |
3632 | * configure: Regenerate. | |
3633 | ||
3634 | 2001-01-11 Peter Targett <peter.targett@arccores.com> | |
3635 | ||
3636 | * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5, | |
3637 | bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants. | |
3638 | * cpu-arc.c (arch_info_struct): Add entries for variants. | |
3639 | (bfd_arc_arch) Set default to bfd_mach_arc_5. | |
3640 | (arc_get_mach) Don't assume machine names prefixed arc- before | |
3641 | testing. | |
3642 | * elf32-arc.c (arc_elf_object_p): Set machine number based on new | |
3643 | selections. | |
3644 | (arc_elf_final_write_processing) Likewise. | |
3645 | (ELF_MACHINE_CODE) Use EM_ARC. | |
3646 | ||
3647 | 2001-01-10 Nick Clifton <nickc@redhat.com> | |
3648 | ||
3649 | * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "". | |
3650 | ||
3651 | 2001-01-07 Philip Blundell <philb@gnu.org> | |
3652 | ||
3653 | * README: Replace `bug-gnu-utils@gnu.org' with | |
3654 | `bug-binutils@gnu.org'. | |
3655 | ||
3656 | 2001-01-04 Kazu Hirata <kazu@hxi.com> | |
3657 | ||
3658 | * som.c: Fix formatting. | |
3659 | ||
3660 | 2001-01-03 Kazu Hirata <kazu@hxi.com> | |
3661 | ||
3662 | * ecoffswap.h: Fix formatting. | |
3663 | * elf-bfd.h: Likewise. | |
3664 | * elfarm-nabi.c: Likewise. | |
3665 | * elfarm-oabi.c: Likewise. | |
3666 | * elfcode.h: Likewise. | |
3667 | * elfcore.h: Likewise. | |
3668 | * elflink.c: Likewise. | |
3669 | * elflink.h: Likewise. | |
3670 | * elfxx-ia64.c: Likewise. | |
3671 | * elfxx-target.h: Likewise. | |
3672 | * libbfd.c: Likewise | |
3673 | * linker.c: Likewise. | |
3674 | * lynx-core.c: Likewise. | |
3675 | ||
3676 | 2001-01-02 Kazu Hirata <kazu@hxi.com> | |
3677 | ||
3678 | * pc532-mach.c: Fix formatting. | |
3679 | * pe-arm.c: Likewise. | |
3680 | * pe-i386.c: Likewise. | |
3681 | * pe-mips.c: Likewise. | |
3682 | * pe-ppc.c: Likewise. | |
3683 | * pe-sh.c: Likewise. | |
3684 | * pei-mips.c: Likewise. | |
3685 | * pei-sh.c: Likewise. | |
3686 | * peicode.h: Likewise. | |
3687 | * ppcboot.c: Likewise. | |
3688 | * ptrace-core.c: Likewise. | |
3689 | ||
3690 | 2001-01-01 Kazu Hirata <kazu@hxi.com> | |
3691 | ||
3692 | * reloc.c: Fix formatting. | |
3693 | * riscix.c: Likewise. | |
3694 | * rs6000-core.c: Likewise. | |
3695 | * xcoff-target.h: Likewise. | |
3696 | ||
3697 | 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com> | |
3698 | ||
3699 | * elfcode.h (elf_object_p): Also restore the bfd mach field on | |
3700 | error, by calling bfd_default_set_arch_mach with incoming | |
3701 | values. | |
3702 | ||
3703 | 2000-12-26 Kazu Hirata <kazu@hxi.com> | |
3704 | ||
3705 | * vaxnetbsd.c: Fix formatting. | |
3706 | * versados.c: Likewise. | |
3707 | * vms-gsd.c: Likewise. | |
3708 | * vms-hdr.c: Likewise. | |
3709 | * vms-misc.c: Likewise. | |
3710 | ||
3711 | 2000-12-25 Alexandre Oliva <aoliva@redhat.com> | |
3712 | ||
3713 | * archive.c (coff_write_armap): Don't write more than symbol_count | |
3714 | `archive_member_file_ptr's. | |
3715 | ||
3716 | 2000-12-25 Kazu Hirata <kazu@hxi.com> | |
3717 | ||
3718 | * vms-tir.c: Fix formatting. | |
3719 | ||
3720 | 2000-12-23 Kazu Hirata <kazu@hxi.com> | |
3721 | ||
3722 | * vms.c: Fix formatting. | |
3723 | * vms.h: Likewise. | |
3724 | ||
3725 | 2000-12-21 Santeri Paavolainen <santtu@ssh.com> | |
3726 | ||
3727 | * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined. | |
3728 | ||
3729 | * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM. | |
3730 | ||
3731 | * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *) | |
3732 | arithmetic. | |
3733 | ||
3734 | * elf32-fr30.c: Add casts to avoid (void *) arithmetic. | |
3735 | ||
3736 | * coffcode.h (styp_to_sec_flags): Add empty statement after label. | |
3737 | ||
3738 | 2000-12-21 Richard Sandiford <rsandifo@redhat.com> | |
3739 | ||
3740 | * libbfd.c (bfd_get_bits): Added | |
3741 | (bfd_put_bits): Likewise | |
3742 | * bfd-in.h: Declared the above. | |
3743 | * bfd-in2.h: Regenerated. | |
3744 | ||
3745 | 2000-12-20 Kazu Hirata <kazu@hxi.com> | |
3746 | ||
3747 | * targets.c: Fix formatting. | |
3748 | * tekhex.c: Likewise. | |
3749 | * trad-core.c: Likewise. | |
3750 | ||
3751 | 2000-12-19 Kazu Hirata <kazu@hxi.com> | |
3752 | ||
3753 | * sco5-core.c: Fix formatting. | |
3754 | * section.c: Likewise. | |
3755 | * sparclinux.c: Likewise. | |
3756 | * sparclynx.c: Likewise. | |
3757 | * sparcnetbsd.c: Likewise. | |
3758 | * srec.c: Likewise. | |
3759 | * stabs.c: Likewise. | |
3760 | * stab-syms.c: Likewise. | |
3761 | * sunos.c: Likewise. | |
3762 | * syms.c: Likewise. | |
3763 | * sysdep.h: Likewise. | |
3764 | ||
3765 | 2000-12-18 Nick Clifton <nickc@redhat.com> | |
3766 | ||
3767 | * coff-arm.c (EXTRA_S_FLAGS): Only define if not already | |
3768 | defined. | |
3769 | * epoc-pe-arm.c (EXTRA_S_FLAGS): Define. | |
3770 | * epoc-pei-arm.c (EXTRA_S_FLAGS): Define. | |
3771 | ||
3772 | 2000-12-18 Nick Clifton <nickc@redhat.com> | |
3773 | ||
3774 | * vms-misc.c (_bfd_vms_get_record): Add default case to | |
3775 | file_format switch. | |
3776 | ||
3777 | 2000-12-15 Miloslav Trmac <mitr@volny.cz> | |
3778 | ||
3779 | * elfcore.h (elf_core_file_p): Move to the start of the program | |
3780 | headers before attempting to read them. | |
3781 | ||
3782 | 2000-12-14 Kazu Hirata <kazu@hxi.com> | |
3783 | ||
3784 | * peigen.c: Fix formatting. | |
3785 | * som.c: Likewise. | |
3786 | * som.h: Likewise. | |
3787 | ||
3788 | 2000-12-13 Kazu Hirata <kazu@hxi.com> | |
3789 | ||
3790 | * peigen.c: Fix formatting. | |
3791 | ||
3792 | 2000-12-12 Jim Wilson <wilson@redhat.com> | |
3793 | ||
3794 | * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *. | |
3795 | ||
3796 | 2000-12-08 Mark Salter <msalter@redhat.com> | |
3797 | ||
3798 | * binary.c (binary_set_section_contents): Ignore sections | |
3799 | with zero size. | |
3800 | ||
3801 | 2000-12-12 Kazu Hirata <kazu@hxi.com> | |
3802 | ||
3803 | * m68klinux.c: Fix formatting. | |
3804 | * m68knetbsd.c: Likewise. | |
3805 | * mipsbsd.c: Likewise. | |
3806 | * netbsd-core.c: Likewise. | |
3807 | * netbsd.h: Likewise. | |
3808 | * newsos3.c: Likewise. | |
3809 | * nlm32-alpha.c: Likewise. | |
3810 | * nlm32-i386.c: Likewise. | |
3811 | * nlm32-ppc.c: Likewise. | |
3812 | * nlm32-sparc.c: Likewise. | |
3813 | * nlmcode.h: Likewise. | |
3814 | * nlmswap.h: Likewise. | |
3815 | * nlm-target.h: Likewise. | |
3816 | * ns32knetbsd.c: Likewise. | |
3817 | ||
3818 | 2000-12-10 Fred Fish <fnf@be.com> | |
3819 | ||
3820 | * elflink.h (elf_link_output_extsym): Don't complain about undefined | |
3821 | symbols in shared objects if allow_shlib_undefined is true. | |
3822 | ||
3823 | 2000-12-12 Nick Clifton <nickc@redhat.com> | |
3824 | ||
3825 | * cpu-sh.c: Fix formattng. | |
3826 | * elf.c: Fix formattng. | |
3827 | * elf32-mips.c: Fix formattng. | |
3828 | * elf32-sh.c: Fix formattng. | |
3829 | * elf64-alpha.c: Fix formattng. | |
3830 | ||
3831 | 2000-12-09 Nick Clifton <nickc@redhat.com> | |
3832 | ||
3833 | * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass | |
3834 | dwarf2_find_line_info as last parameter to invocation of | |
3835 | _bfd_dwarf2_find_nearest_line. | |
3836 | * elf32-arm.h (elf32_arm_find_nearest_line): Pass | |
3837 | dwarf2_find_line_info as last parameter to invocation of | |
3838 | _bfd_dwarf2_find_nearest_line. | |
3839 | ||
3840 | 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com> | |
3841 | ||
3842 | * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here... | |
3843 | (BFD_LIBS): ...to here. | |
3844 | (BFD32_BACKENDS_CFILES): Move dwarf2.c from here... | |
3845 | (BFD_LIBS_CFILES): ...to here. | |
3846 | * Makefile.in: Regenerate. | |
3847 | * configure.in: Remove dwarf.lo from the elf shell variable. | |
3848 | * configure: Regenerate. | |
3849 | * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info. | |
3850 | * libcoff.h: Regenerate. | |
3851 | * coffgen.c (coff_find_nearest_line): Call | |
3852 | _bfd_dwarf2_find_nearest_line. | |
3853 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update | |
3854 | accordingly. | |
3855 | (read_abbrevs): Likewise | |
3856 | (decode_line_info): Likewise. | |
3857 | (parse_comp_unit): Likewise. | |
3858 | (comp_unit_find_nearest_line): Likewise. | |
3859 | * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype. | |
3860 | * libbfd.h: Regenerate. | |
3861 | * elf.c (_bfd_elf_find_nearest_line): Update call. | |
3862 | * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR. | |
3863 | * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH. | |
3864 | * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros. | |
3865 | (sec_to_styp_flags): Use them. Handle DWARF2 sections. | |
3866 | (styp_to_sec_flags): Handle DWARF2 sections. | |
3867 | * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call | |
3868 | to _bfd_find_nearest_line. | |
3869 | * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to | |
3870 | call to _bfd_find_nearest_line. | |
3871 | ||
3872 | 2000-12-08 Kazu Hirata <kazu@hxi.com> | |
3873 | ||
3874 | * coffgen.c: Fix formatting. | |
3875 | * elf-m10300.c: Likewise. | |
3876 | * elf32-i386.c: Likewise. | |
3877 | * elf32-i960.c: Likewise. | |
3878 | * elf32-m68k.c: Likewise. | |
3879 | * elf32-mcore.c: Likewise. | |
3880 | * elf32-ppc.c: Likewise. | |
3881 | * elf32-sh.c: Likewise. | |
3882 | * elf32-sparc.c: Likewise. | |
3883 | * elf32-v850.c: Likewise. | |
3884 | * elf64-alpha.c: Likewise. | |
3885 | * elf64-hppa.c: Likewise. | |
3886 | * elf64-mips.c: Likewise. | |
3887 | * elf64-sparc.c: Likewise. | |
3888 | ||
3889 | 2000-12-07 Kazu Hirata <kazu@hxi.com> | |
3890 | ||
3891 | * elf32-ppc.c: Fix formatting. | |
3892 | * elf64-x86-64.c: Likewise. | |
3893 | ||
3894 | 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com> | |
3895 | ||
3896 | From Ralf Baechle <ralf@gnu.org> | |
3897 | ||
3898 | * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit | |
3899 | BFDs containing no sections or empty .text, .data or .bss sections | |
3900 | to be merged, regardless of their flags. | |
3901 | ||
3902 | 2000-12-06 Kazu Hirata <kazu@hxi.com> | |
3903 | ||
3904 | * elf32-m32r.c: Fix formatting. | |
3905 | * elf32-m68hc11.c: Likewise. | |
3906 | * elf32-m68hc12.c: Likewise. | |
3907 | * elf32-m68k.c: Likewise. | |
3908 | * elf32-mcore.c: Likewise. | |
3909 | * elf32-pj.c: Likewise. | |
3910 | * elf32-ppc.c: Likewise. | |
3911 | ||
3912 | 2000-12-05 Kazu Hirata <kazu@hxi.com> | |
3913 | ||
3914 | * elf32-fr30.c: Fix formatting. | |
3915 | * elf32-hppa.c: Likewise. | |
3916 | * elf32-i370.c: Likewise. | |
3917 | * elf32-i386.c: Likewise. | |
3918 | * elf32-i860.c: Likewise. | |
3919 | * elf32-i960.c: Likewise. | |
3920 | ||
3921 | 2000-12-03 Kazu Hirata <kazu@hxi.com> | |
3922 | ||
3923 | * elf32-arm.h: Fix formatting. | |
3924 | * elf32-avr.c: Likewise. | |
3925 | * elf32-cris.c: Likewise. | |
3926 | * elf32-d10v.c: Likewise. | |
3927 | * elf32-d30v.c: Likewise. | |
3928 | * elf-hppa.h: Likewise. | |
3929 | * elf-m10200.c: Likewise. | |
3930 | * elf-m10300.c: Likewise. | |
3931 | ||
3932 | 2000-12-01 Chris Demetriou <cgd@sibyte.com> | |
3933 | ||
3934 | * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and | |
3935 | bfd_mach_mips32_4k. Update FIXME comment. | |
3936 | * archures.c (bfd_mach_mips32): New constant. | |
3937 | (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to | |
3938 | the latter, renumber it. | |
3939 | * bfd-in2.h (bfd_mach_mips32): New constant. | |
3940 | (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to | |
3941 | the latter, renumber it. | |
3942 | * cpu-mips.c (I_mips32): New constant. | |
3943 | (I_mips4K, I_mips32_4k): Rename the former to the latter. | |
3944 | (arch_info_struct): Add bfd_mach_mips32 entry, replace | |
3945 | bfd_mach_mips4K entry with bfd_mach_mips32_4k entry. | |
3946 | * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case. | |
3947 | (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32 | |
3948 | with E_MIPS_MACH_MIPS32_4K. | |
3949 | (_bfd_mips_elf_final_write_processing): Replace | |
3950 | bfd_mach_mips4K with bfd_mach_mips32_4k case, add | |
3951 | bfd_mach_mips32 case. | |
3952 | (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing | |
3953 | comparison with support for MIPS32. | |
3954 | (_bfd_mips_elf_print_private_bfd_data): Print ISA name for | |
3955 | MIPS32. | |
3956 | ||
3957 | * aoutx.h (NAME(aout,machine_type)): Add cases for | |
3958 | bfd_mach_mips5 and bfd_mach_mips64. | |
3959 | * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants. | |
3960 | * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise. | |
3961 | * cpu_mips.c (I_mips5, I_mips64): New definitions. | |
3962 | (arch_info_struct): Add entries for bfd_mach_mips5 and | |
3963 | bfd_mach_mips64. | |
3964 | * elf32-mips.c (elf_mips_isa, elf_mips_mach, | |
3965 | _bfd_mips_elf_print_private_bfd_data): Add cases for | |
3966 | E_MIPS_ARCH_5 and E_MIPS_ARCH_64. | |
3967 | (_bfd_mips_elf_final_write_processing): Add cases for | |
3968 | bfd_mach_mips5 and bfd_mach_mips64. | |
3969 | ||
3970 | * aoutx.h (NAME(aout,machine_type)): Add a | |
3971 | bfd_mach_mips_sb1 case. | |
3972 | * archures.c (bfd_mach_mips_sb1): New constant. | |
3973 | * bfd-in2.h (bfd_mach_mips_sb1): New constant. | |
3974 | * cpu-mips.c (I_sb1): New constant. | |
3975 | (arch_info_struct): Add entry for bfd_mach_mips_sb1. | |
3976 | * elf32-mips.c (elf_mips_mach): Add case for | |
3977 | E_MIPS_MACH_SB1. | |
3978 | (_bfd_mips_elf_final_write_processing): Add case for | |
3979 | bfd_mach_mips_sb1. | |
3980 | ||
3981 | 2000-12-01 Joel Sherrill <joel@OARcorp.com> | |
3982 | ||
3983 | * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets. | |
3984 | (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets. | |
3985 | (sparc*-*-rtems*): Switched from a.out to ELF. | |
3986 | ||
3987 | 2000-11-30 Jan Hubicka <jh@suse.cz> | |
3988 | ||
3989 | * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo | |
3990 | BFD64_BACKENDS_CFILES): Add elf64-x86-64.c | |
3991 | (elf64-x86-64.lo): Add dependencies. | |
3992 | * archures.c (DESCRIPTION): Add bfd_mach_x86_64, | |
3993 | bfd_mach_x86_64_intel_syntax. | |
3994 | * elf.c (prep_headers): Use EM_x86_64 for 64bit output. | |
3995 | * config.bfd (x86_64): Add. | |
3996 | * configure.in: Add support for bfd_elf64_x86_64_vec. | |
3997 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add. | |
3998 | (bfd_i386_arch, i8086_ar): Link in. | |
3999 | * elf64-x86-64.c: New file. | |
4000 | * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*. | |
4001 | * targets.c (bfd_elf64_x86_64_vec): Add. | |
4002 | (bfd_target_vect): Add bfd_elf64_x86_64_vec. | |
4003 | ||
4004 | 2000-11-30 Kazu Hirata <kazu@hxi.com> | |
4005 | ||
4006 | * xcofflink.c: Fix formatting. | |
4007 | ||
4008 | 2000-11-28 Kazu Hirata <kazu@hxi.com> | |
4009 | ||
4010 | * aoutx.h: Fix formatting. | |
4011 | * bfd-in.h: Likewise. | |
4012 | * bfd-in2.h: Likewise. | |
4013 | * cache.c: Likewise. | |
4014 | * cisco-core.c: Likewise. | |
4015 | * coff64-rs6000.c: Likewise. | |
4016 | * coffcode.h: Likewise. | |
4017 | * coffswap.h: Likewise. | |
4018 | * corefile.c: Likewise. | |
4019 | * elf32-mips.c: Likewise. | |
4020 | ||
4021 | 2000-11-27 Kazu Hirata <kazu@hxi.com> | |
4022 | ||
4023 | * aout-adobe.c: Fix formatting. | |
4024 | * coff64-rs6000.c: Likewise. | |
4025 | * coffgen.c: Likewise. | |
4026 | * cofflink.c: Likewise. | |
4027 | ||
4028 | 2000-11-27 Philip Blundell <pb@futuretv.com> | |
4029 | ||
4030 | * libcoff-in.h (coff_tdata): Add `strings_written' flag. | |
4031 | (obj_coff_strings_written): New accessor macro for above. | |
4032 | * libcoff.h: Regenerate. | |
4033 | * cofflink.c (_bfd_coff_final_link): Say that we wrote the | |
4034 | strings. | |
4035 | * coffcode.h (coff_write_object_contents): No need to write out | |
4036 | the string table if it's already been done. | |
4037 | ||
4038 | 2000-11-22 Philip Blundell <pb@futuretv.com> | |
4039 | ||
4040 | * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to | |
4041 | weak undefined symbols. | |
4042 | ||
4043 | 2000-11-24 Nick Clifton <nickc@redhat.com> | |
4044 | ||
4045 | * archures.c (bfd_mach_arm_5TE): Define. | |
4046 | (bfd_mach_arm+XScale): Define. | |
4047 | * bfd-in2.h: Regenerate. | |
4048 | ||
4049 | * coff-arm.c (coff_arm_reloc_type_lookup): Accept | |
4050 | BFD_RELOC_ARM_PCREL_BLX. | |
4051 | ||
4052 | * coffcode.h (coff_set_flags): Set flags for 5t, 5te and | |
4053 | XScale machine numbers. | |
4054 | ||
4055 | * config.bfd (xscale-elf): Add target. | |
4056 | (xscale-coff): Add target. | |
4057 | ||
4058 | * cpu-arm.c: Add xscale machine name. | |
4059 | Add v5t, v5te and XScale machine numbers. | |
4060 | ||
4061 | 2000-11-23 Kazu Hirata <kazu@hxi.com> | |
4062 | ||
4063 | * aix386-core.c: Fix formatting. | |
4064 | ||
4065 | 2000-11-22 Jim Wilson <wilson@redhat.com> | |
4066 | ||
4067 | * coff-ia64.c (howto_table): Use EMPTY_HOWTO. | |
4068 | (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters. | |
4069 | * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise. | |
4070 | (ins_imms_scaled): Initialize sign_bit at function entry. | |
4071 | (elf64_ia64_operands): Add missing initializers. | |
4072 | * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup, | |
4073 | elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections, | |
4074 | elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name, | |
4075 | elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff, | |
4076 | elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused | |
4077 | parameters. | |
4078 | (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents, | |
4079 | and free_extsyms at function entry. | |
4080 | (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result. | |
4081 | (elfNN_ia64_create_dynamic_sections): Delete unused local h. | |
4082 | (get_got): Delete unused local srel. | |
4083 | (elfNN_ia64_check_relocs): Initialize dynrel_type when declared. | |
4084 | (elfNN_ia64_relocate_section): Delete unused local dynindx. | |
4085 | ||
4086 | 2000-11-21 Kazu Hirata <kazu@hxi.com> | |
4087 | ||
4088 | * coff-a29k.c: Fix formatting. | |
4089 | * coff-h8500.c: Likewise. | |
4090 | * coff-i960.c: Likewise. | |
4091 | * coff-ppc.c: Likewise. | |
4092 | * coff-rs6000.c: Likewise. | |
4093 | * coff-stgo32.c: Likewise. | |
4094 | * coff-tic54x.c: Likewise. | |
4095 | * coff-w65.c: Likewise. | |
4096 | * cpu-h8500.c: Likewise. | |
4097 | * cpu-hppa.c: Likewise. | |
4098 | * cpu-ns32k.c: Likewise. | |
4099 | * ecoff.c: Likewise. | |
4100 | * ecofflink.c: Likewise. | |
4101 | ||
4102 | 2000-11-21 Nick Clifton <nickc@redhat.com> | |
4103 | ||
4104 | * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and | |
4105 | remove possibility of infinite loop. | |
4106 | ||
4107 | 2000-11-20 Kazu Hirata <kazu@hxi.com> | |
4108 | ||
4109 | * aix386-core.c: Fix formatting. | |
4110 | * aout-adobe.c: Likewise. | |
4111 | * aout-arm.c: Likewise. | |
4112 | * aout-encap.c: Likewise. | |
4113 | * aout-ns32k.c: Likewise. | |
4114 | * aout-target.h: Likewise. | |
4115 | * aout-tic30.c: Likewise. | |
4116 | * aoutf1.h: Likewise. | |
4117 | * aoutx.h: Likewise. | |
4118 | * archive.c: Likewise. | |
4119 | * bfd-in.h: Likewise. | |
4120 | * bfd-in2.h: Likewise. | |
4121 | * bfd.c: Likewise. | |
4122 | * bout.c: Likewise. | |
4123 | ||
4124 | 2000-11-17 H.J. Lu <hjl@gnu.org> | |
4125 | ||
4126 | * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create | |
4127 | pltoff entries for DT_INIT and DT_FINI. | |
4128 | (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries. | |
4129 | (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI | |
4130 | entries. | |
4131 | ||
4132 | 2000-11-16 Richard Henderson <rth@redhat.com> | |
4133 | ||
4134 | * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs. | |
4135 | (allocate_dynrel_entries): Likewise. | |
4136 | (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly. | |
4137 | (set_pltoff_entry): Likewise. | |
4138 | (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB | |
4139 | (elfNN_ia64_reloc_type_lookup): Likewise. | |
4140 | (elfNN_ia64_install_value): Likewise. | |
4141 | (elfNN_ia64_relocate_section): Likewise. | |
4142 | * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove. | |
4143 | (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove. | |
4144 | ||
4145 | 2000-11-16 Kazu Hirata <kazu@hxi.com> | |
4146 | ||
4147 | * cpu-a29k.c: Fix formatting. | |
4148 | * cpu-alpha.c: Likewise. | |
4149 | * cpu-arm.c: Likewise. | |
4150 | * cpu-avr.c: Likewise. | |
4151 | * cpu-d10v.c: Likewise. | |
4152 | * cpu-h8500.c: Likewise. | |
4153 | * cpu-hppa.c: Likewise. | |
4154 | * cpu-i370.c: Likewise. | |
4155 | * cpu-i386.c: Likewise. | |
4156 | * cpu-i960.c: Likewise. | |
4157 | * cpu-ia64-opc.c: Likewise. | |
4158 | * cpu-ia64.c: Likewise. | |
4159 | * cpu-m32r.c: Likewise. | |
4160 | * cpu-m68hc11.c: Likewise. | |
4161 | * cpu-m68hc12.c: Likewise. | |
4162 | * cpu-m68k.c: Likewise. | |
4163 | * cpu-m88k.c: Likewise. | |
4164 | * cpu-mips.c: Likewise. | |
4165 | * cpu-ns32k.c: Likewise. | |
4166 | * cpu-pj.c: Likewise. | |
4167 | * cpu-powerpc.c: Likewise. | |
4168 | * cpu-sh.c: Likewise. | |
4169 | * cpu-sparc.c: Likewise. | |
4170 | * cpu-tic54x.c: Likewise. | |
4171 | * cpu-v850.c: Likewise. | |
4172 | * cpu-vax.c: Likewise. | |
4173 | * cpu-w65.c: Likewise. | |
4174 | * cpu-we32k.c: Likewise. | |
4175 | * cpu-z8k.c: Likewise. | |
4176 | * dwarf1.c: Likewise. | |
4177 | * dwarf2.c: Likewise. | |
4178 | ||
4179 | 2000-11-15 Kazu Hirata <kazu@hxi.com> | |
4180 | ||
4181 | * coff-arm.c: Fix formatting. | |
4182 | * coff-ppc.c: Likewise. | |
4183 | * coff-rs6000.c: Likewise. | |
4184 | * coff-sh.c: Likewise. | |
4185 | * coff-sparc.c: Likewise. | |
4186 | * coff-tic30.c: Likewise. | |
4187 | * coff-tic54x.c: Likewise. | |
4188 | * coff-tic80.c: Likewise. | |
4189 | * coff-w65.c: Likewise. | |
4190 | * coff-we32k.c: Likewise. | |
4191 | * coff-z8k.c: Likewise. | |
4192 | ||
4193 | 2000-11-15 Richard Henderson <rth@redhat.com> | |
4194 | ||
4195 | * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc | |
4196 | section with the same ALLOC|LOAD flags as the source section. | |
4197 | ||
4198 | 2000-11-14 Jakub Jelinek <jakub@redhat.com> | |
4199 | ||
4200 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used | |
4201 | by STO_ALPHA constants. | |
4202 | ||
4203 | 2000-11-14 Kazu Hirata <kazu@hxi.com> | |
4204 | ||
4205 | * coff-pmac.c: Fix formatting. | |
4206 | * coff-ppc.c: Likewise. | |
4207 | ||
4208 | 2000-11-13 H.J. Lu <hjl@gnu.org> | |
4209 | ||
4210 | * elflink.h (elf_link_add_object_symbols): Also add indirect | |
4211 | symbols for common symbols with the default version. | |
4212 | ||
4213 | 2000-11-09 Philip Blundell <pb@futuretv.com> | |
4214 | ||
4215 | * section.c (STD_SECTION): Set gc_mark flag. | |
4216 | ||
4217 | 2000-11-11 Kazu Hirata <kazu@hxi.com> | |
4218 | ||
4219 | * coff-i960.c: Likewise. | |
4220 | * coff-m68k.c: Likewise. | |
4221 | * coff-m88k.c: Likewise. | |
4222 | * coff-mcore.c: Likewise. | |
4223 | * coff-mips.c: Likewise. | |
4224 | ||
4225 | 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk> | |
4226 | ||
4227 | * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs. | |
4228 | ||
4229 | 2000-11-10 Kazu Hirata <kazu@hxi.com> | |
4230 | ||
4231 | * coff-h8300.c: Fix formatting. | |
4232 | * coff-h8500.c: Likewise. | |
4233 | * coff-i386.c: Likewise. | |
4234 | * coff-i860.c: Likewise. | |
4235 | * coff-i960.c: Likewise. | |
4236 | * coff-ia64.c: Likewise. | |
4237 | ||
4238 | 2000-11-09 Kazu Hirata <kazu@hxi.com> | |
4239 | ||
4240 | * archive.c: Fix formatting. | |
4241 | * archures.c: Likewise. | |
4242 | ||
4243 | 2000-11-07 Richard Henderson <rth@redhat.com> | |
4244 | ||
4245 | * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec. | |
4246 | Set it before bfd_elf64_bfd_final_link call. Use it after the call. | |
4247 | * section.c (bfd_set_section_contents): Call memcpy if | |
4248 | section->contents set and location not equal to contents plus offset. | |
4249 | ||
4250 | 2000-11-08 Kazu Hirata <kazu@hxi.com> | |
4251 | ||
4252 | * bfd-in.h: Fix formatting. | |
4253 | * bfd-in2.h: Likewise. | |
4254 | * bfd.c: Likewise. | |
4255 | * binary.c: Likewise. | |
4256 | * bout.c: Likewise. | |
4257 | * coff-a29k.c: Likewise. | |
4258 | * coff-alpha.c: Likewise. | |
4259 | * coff-apollo.c: Likewise. | |
4260 | * coff-aux.c: Likewise. | |
4261 | ||
4262 | 2000-11-07 Kazu Hirata <kazu@hxi.com> | |
4263 | ||
4264 | * aix386-core.c: Fix formatting. | |
4265 | * aoutf1.h: Likewise. | |
4266 | * aoutx.h: Likewise. | |
4267 | * archures.c: Likewise. | |
4268 | * armnetbsd.c: Likewise. | |
4269 | ||
4270 | 2000-11-07 Alan Modra <alan@linuxcare.com.au> | |
4271 | ||
4272 | * coff-h8300.c (special): Adjust reloc address. | |
4273 | ||
4274 | 2000-11-06 Steve Ellcey <sje@cup.hp.com> | |
4275 | ||
4276 | * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines | |
4277 | to differentiate elf32 and elf64 on ia64. | |
4278 | * bfd-in2.h: Regenerate. | |
4279 | * config.bfd: Add target for "ia64*-*-hpux*". | |
4280 | * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch. | |
4281 | * configure: Regenerate. | |
4282 | * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure. | |
4283 | * targets.c: Add bfd_target bfd_elf32_ia64_big_vec. | |
4284 | ||
4285 | * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects | |
4286 | from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo. | |
4287 | * Makefile.in: Regnerate. | |
4288 | * elf64-ia64.c: Deleted. | |
4289 | * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c. | |
4290 | ||
4291 | 2000-11-06 Kazu Hirata <kazu@hxi.com> | |
4292 | ||
4293 | * aout-adobe.c: Fix formatting. | |
4294 | * aout-arm.c: Likewise. | |
4295 | * aout-cris.c: Likewise. | |
4296 | * aout-encap.c: Likewise. | |
4297 | * aout-ns32k.c: Likewise. | |
4298 | * aout-target.h: Likewise. | |
4299 | * aout-tic30.c: Likewise. | |
4300 | ||
4301 | 2000-11-05 Philip Blundell <philb@gnu.org> | |
4302 | ||
4303 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit | |
4304 | BFDs containing no sections to be merged, regardless of their flags. | |
4305 | ||
4306 | 2000-11-04 Philip Blundell <philb@gnu.org> | |
4307 | ||
4308 | * elf32-arm.h (elf32_arm_relocate_section): Suppress error message | |
4309 | if a relocation for an undefined symbol also results in an | |
4310 | overflow. | |
4311 | ||
4312 | 2000-11-06 Christopher Faylor <cgf@cygnus.com> | |
4313 | ||
4314 | * config.bfd: Add support for Sun Chorus. | |
4315 | ||
4316 | 2000-11-05 David O'Brien <obrien@FreeBSD.org> | |
4317 | ||
4318 | * configure.in: Recognize alpha-*-freebsd*. | |
4319 | * configure: Regenerate. | |
4320 | ||
4321 | 2000-11-02 Luciano Gemme <ishitawa@yahoo.com> | |
4322 | ||
4323 | * srec.c (CHUNK): Rename to DEFAULT_CHUNK. | |
4324 | (Chunk): New global variable set by a parameter in objcopy.c. | |
4325 | (S3Forced): New global variable set by a parameter in | |
4326 | objcopy.c. | |
4327 | (srec_set_section_contents): If S3Forced is true, always generate | |
4328 | S3 records. | |
4329 | (srec_write_section): Use 'Chunk' to limit maximum length of S | |
4330 | records. | |
4331 | ||
4332 | 2000-11-02 Per Lundberg <plundis@chaosdev.org> | |
4333 | ||
4334 | * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos. | |
4335 | * Makefile.in: Regenerate. | |
4336 | * bfd-in2.h: Regenerate. | |
4337 | * po/bfd.pot: Regenerate. | |
4338 | ||
4339 | 2000-10-31 Philip Blundell <philb@gnu.org> | |
4340 | ||
4341 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle | |
4342 | EF_SOFT_FLOAT if it is defined. | |
4343 | ||
4344 | 2000-10-27 Philip Blundell <philb@gnu.org> | |
4345 | ||
4346 | * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse | |
4347 | attempts to mix PIC code with non-PIC, just mark the output as | |
4348 | being position dependent. | |
4349 | (elf32_arm_merge_private_bfd_data): Likewise. Print an error | |
4350 | message for EF_SOFT_FLOAT mismatches. Display diagnostics for | |
4351 | all mismatches, not just the first one. | |
4352 | ||
4353 | 2000-10-25 Chris Demetriou <cgd@sibyte.com> | |
4354 | ||
4355 | * ieee.c (ieee_archive_p): Plug one of many possible | |
4356 | memory leaks in error handling. | |
4357 | ||
4358 | 2000-10-20 Jakub Jelinek <jakub@redhat.com> | |
4359 | ||
4360 | * elf32-sparc.c (elf32_sparc_merge_private_bfd_data, | |
4361 | elf32_sparc_object_p, elf32_sparc_final_write_processing): | |
4362 | Support v8plusb. | |
4363 | * elf64-sparc.c (sparc64_elf_merge_private_bfd_data, | |
4364 | sparc64_elf_object_p): Support v9b. | |
4365 | * archures.c: Declare v8plusb and v9b machines. | |
4366 | * bfd-in2.h: Ditto. | |
4367 | * cpu-sparc.c: Ditto. | |
4368 | ||
4369 | 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com> | |
4370 | ||
4371 | * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location | |
4372 | of a GOT reloc. | |
4373 | ||
4374 | * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro. | |
4375 | (SYMBOL_CALLS_LOCAL): New macro. | |
4376 | (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL. | |
4377 | (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL. | |
4378 | (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL. | |
4379 | (ppc_elf_relocate_section): Use flag variable to determine | |
4380 | whether the relocation refers to a local symbol. | |
4381 | Test whether a PLTREL24 reloc will produce a reloc by looking | |
4382 | to see whether a PLT entry was made. | |
4383 | ||
4384 | 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com> | |
4385 | ||
4386 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT | |
4387 | entries that could serve as a definition for a weak symbol. | |
4388 | ||
4389 | 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com> | |
4390 | ||
4391 | From Ralf Baechle <ralf@gnu.org> | |
4392 | ||
4393 | * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument | |
4394 | local_p. Add symbol value only for non-R_MIPS_REL32 relocations | |
4395 | against local symbols. | |
4396 | (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01. | |
4397 | ||
4398 | 2000-10-12 Alan Modra <alan@linuxcare.com.au> | |
4399 | ||
4400 | * section.c (struct sec): Add kept_section. | |
4401 | (struct bfd_comdat_info): Remove sec, we can use above. | |
4402 | (STD_SECTION): Add initializer. | |
4403 | (bfd_make_section_anyway): Init here too. | |
4404 | ||
4405 | * bfd-in2.h: Regenerate. | |
4406 | ||
4407 | * elflink.h (elf_link_add_object_symbols): Remove unnecessary | |
4408 | zeroing of `flags'. | |
4409 | (elf_link_input_bfd): Set all asection->symbol->value's here, and | |
4410 | fudge values for discarded link-once section symbols. | |
4411 | ||
4412 | * elf64-hppa.c: Include alloca-conf.h | |
4413 | ||
4414 | 2000-10-11 Alan Modra <alan@linuxcare.com.au> | |
4415 | ||
4416 | * elf.c (swap_out_syms): Revert 2000-10-07 changes. | |
4417 | ||
4418 | * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg. | |
4419 | ||
4420 | 2000-10-10 Alan Modra <alan@linuxcare.com.au> | |
4421 | ||
4422 | * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc. | |
4423 | ||
4424 | 2000-10-10 Tom Rix <trix@redhat.com> | |
4425 | ||
4426 | * section.c (bfd_make_section_anyway): Release newsect ptr when | |
4427 | newsect->symbol fails to alloc. Use bfd_release instead of free. | |
4428 | ||
4429 | 2000-10-09 Richard Henderson <rth@cygnus.com | |
4430 | ||
4431 | * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New. | |
4432 | (elf64_ia64_unwind_entry_compare): New. | |
4433 | (elf64_ia64_final_link): Sort the .IA_64.unwind section. | |
4434 | ||
4435 | 2000-10-07 Alan Modra <alan@linuxcare.com.au> | |
4436 | ||
4437 | * elflink.h (size_dynamic_sections): Don't create various tags if | |
4438 | .dynstr is excluded from the link. Don't set first dynsym entry | |
4439 | if dynsymcount is zero. | |
4440 | (elf_bfd_final_link): Don't try to swap out dynamic syms if | |
4441 | .dynsym excluded from the link. Don't try to write any dynamic | |
4442 | sections excluded from the link. | |
4443 | ||
4444 | * elf.c (swap_out_syms): Handle global section symbols. | |
4445 | ||
4446 | 2000-10-05 DJ Delorie <dj@redhat.com> | |
4447 | ||
4448 | * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs | |
4449 | * coffcode.h (coff_set_alignment_hook): read extended reloc count | |
4450 | (coff_write_relocs): write extended reloc count | |
4451 | (coff_write_object_contents): account for extended relocs | |
4452 | ||
4453 | 2000-10-05 Jim Wilson <wilson@cygnus.com> | |
4454 | ||
4455 | * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags | |
4456 | field. | |
4457 | * elf.c (_bfd_elf_make_section_from_shdr): Call the | |
4458 | elf_backend_section_flags function. | |
4459 | * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion | |
4460 | code. | |
4461 | (elf64_ia64_section_flags): New function containing flag conversion | |
4462 | code. | |
4463 | (elf_backend_section_flags): Define to elf64_ia64_section_flags. | |
4464 | * elfxx-target.h (elf_backend_section_flags): Define. | |
4465 | (elfNN_bed): Initialize elf_backend_section_flags field. | |
4466 | ||
4467 | 2000-10-02 Alan Modra <alan@linuxcare.com.au> | |
4468 | ||
4469 | * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to | |
4470 | _bfd_elf32_gc_record_vtable. Correct a comment. | |
4471 | ||
4472 | 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com> | |
4473 | ||
4474 | From Ralf Baechle <ralf@gnu.org> | |
4475 | ||
4476 | * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld | |
4477 | produces binaries with got[1] = 0x80000001 to differenciate them | |
4478 | for the dynamic linker from the broken binaries produced by old | |
4479 | versions. | |
4480 | ||
4481 | 2000-09-30 Petr Sorfa <petrs@sco.com> | |
4482 | ||
4483 | * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t. | |
4484 | (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t. | |
4485 | * configure.in: Add check for pxstatus_t and lwpxstatus_t. | |
4486 | * configure: Regenerate. | |
4487 | ||
4488 | 2000-09-27 Hans-Peter Nilsson <hp@axis.com> | |
4489 | ||
4490 | Define two bfd_targets for absence and presence of leading | |
4491 | underscore on symbols. Make sure to only link same kind. | |
4492 | * elf32-cris.c (cris_elf_object_p, | |
4493 | cris_elf_final_write_processing, cris_elf_print_private_bfd_data, | |
4494 | cris_elf_merge_private_bfd_data): New. | |
4495 | (elf_backend_object_p, elf_backend_final_write_processing, | |
4496 | bfd_elf32_bfd_print_private_bfd_data, | |
4497 | bfd_elf32_bfd_merge_private_bfd_data): Define. | |
4498 | <Target vector definition>: Include elf32-target.h twice with | |
4499 | different macro settings: | |
4500 | (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as | |
4501 | bfd_elf32_us_cris_vec. | |
4502 | (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris". | |
4503 | (elf_symbol_leading_char): First as 0, then '_'. | |
4504 | (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h. | |
4505 | * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs. | |
4506 | * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector. | |
4507 | * configure: Regenerate. | |
4508 | * targets.c: Declare bfd_elf32_us_cris_vec. | |
4509 | * po/bfd.pot: Regenerate. | |
4510 | ||
4511 | 2000-09-29 Momchil Velikov <velco@fadata.bg> | |
4512 | ||
4513 | * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for | |
4514 | R_ARM_THM_PC22 relocations. | |
4515 | ||
4516 | 2000-09-29 NIIBE Yutaka <gniibe@chroot.org> | |
4517 | ||
4518 | * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath. | |
4519 | ||
4520 | 2000-09-29 Momchil Velikov <velco@fadata.bg> | |
4521 | ||
4522 | * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if | |
4523 | is has the SEC_HAS_CONTENTS flag set. | |
4524 |