* elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
[platform/upstream/binutils.git] / bfd / ChangeLog
1 2001-09-06  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>\r
2 \r
3         * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO\r
4         definitions.\r
5         (mips_elf64_howto_table_rel): Likewise.\r
6 \r
7 2001-09-05  Tom Rix <trix@redhat.com> \r
8 \r
9         * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO \r
10         and syscall symbols.\r
11         (write_global_symbol) : Same.   \r
12         (bfd_xcoff_export_symbol): Remove unused syscall param.\r
13         * libxcoff.h: Change prototype of bfd_xcoff_export symbol and \r
14         bfd_xcoff_import_symbol.\r
15         * bfd-in.h: Same.\r
16         * bfd-in2.h : Regenerate.\r
17 \r
18 2001-09-04  Richard Henderson  <rth@redhat.com>\r
19 \r
20         * elf64-alpha.c (SKIP_HOWTO): New.\r
21         (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.\r
22         Fix sizes of 16-bit mem format relocs.\r
23         (elf64_alpha_reloc_map): Update to match.\r
24         (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.\r
25         (elf64_alpha_relax_without_lituse): Likewise.\r
26         (elf64_alpha_check_relocs): Handle GPREL16.\r
27         (elf64_alpha_relocate_section): Likewise.\r
28         * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.\r
29         (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.\r
30         * bfd-in2.h, libbfd.h: Rebuild.\r
31 \r
32 2001-09-04  Jeff Law <law@redhat.com>\r
33 \r
34         * elf32-h8300.c (elf32_h8_relax_section): New function.\r
35         (elf32_h8_relax_delete_bytes): Likewise.\r
36         (elf32_h8_symbol_address_p): Likewise.\r
37         (elf32_h8_get_relocated_section_contents): Likewise.\r
38         (bfd_elf32_bfd_relax_section): Define.\r
39         (bfd_elf32_bfd_get_relocated_section_contents): Likewise.\r
40 \r
41         * elf32-h8300.c (special): New function.\r
42         (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in\r
43         all relocations.\r
44         (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit\r
45         relocations.  Fix problems with the true 24bit reloc R_H8_DIR24R8.\r
46         Fix minor problems with 8bit and 16bit PC relative relocations.\r
47 \r
48 2001-09-01  Andreas Jaeger  <aj@suse.de>\r
49 \r
50         * vms-tir.c: Add missing prototypes.\r
51         * vms-hdr.c: Likewise.\r
52         * vms-gsd.c: Likewise.\r
53         * vms-misc.c: Likewise.\r
54 \r
55 2001-08-31  H.J. Lu  <hjl@gnu.org>\r
56 \r
57         * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename\r
58         with bad relocation.\r
59 \r
60 2001-08-31  Eric Christopher  <echristo@redhat.com>\r
61             Jason Eckhardt  <jle@redhat.com>\r
62 \r
63         * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,\r
64         mips32_4k and mips64.\r
65         * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,\r
66         bfd_mach_mips64.  Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.\r
67         * bfd/cpu-mips.c: Ditto.\r
68         * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.\r
69         * bfd/bfd-in2.h: Regenerate.\r
70 \r
71 2001-08-31  Jakub Jelinek  <jakub@redhat.com>\r
72 \r
73         * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory\r
74         value into R_ALPHA_RELATIVE's addend.\r
75         (elf64_alpha_finish_dynamic_symbol): Likewise.\r
76 \r
77 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>\r
78 \r
79         * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift\r
80         recomputed addend during relocatable link if not USE_REL.\r
81 \r
82         * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one\r
83         error.\r
84 \r
85 2001-08-30  H.J. Lu  <hjl@gnu.org>\r
86 \r
87         * elf32-mips.c (mips_elf_calculate_relocation): Revert the last\r
88         2 changes.\r
89         (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic\r
90         relocations for weak definitions.\r
91 \r
92 2001-08-30  H.J. Lu  <hjl@gnu.org>\r
93 \r
94         * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.\r
95         (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.\r
96         * Makefile.in: Rebuild.\r
97 \r
98 2001-08-30  H.J. Lu  <hjl@gnu.org>\r
99 \r
100         * elf32-mips.c (mips_elf_calculate_relocation): Don't create\r
101         dynamic relocation for undefined weak symbols when creating\r
102         executables. Check h->root.root.type, instead of h->root.type.\r
103 \r
104 2001-08-29  Joel Sherrill <joel@OARcorp.com>\r
105 \r
106         * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change\r
107         default from coff to elf.\r
108 \r
109 2001-08-29  Jeff Law <law@redhat.com>\r
110 \r
111         * elf32-h8300.c (h8_elf_howto_table): Add new PC relative\r
112         relocations.\r
113         (h8_reloc_map): Similarly.\r
114         (elf32_h8_final_link_relocate): Remove incorrect overflow tests.\r
115         Add support for PC relative relocations.\r
116 \r
117         * elf32-h8300.c: Put all prototypes together.\r
118         (elf32_h8_info_to_howto): Parameter elf_reloc is used.\r
119         (elf32_h8_final_link_relocate): New function for linker.\r
120         (elf32_h8_relocate_section): Similarly.\r
121         (elf_backend_relocate_section): Define.\r
122 \r
123         * cpu-h8300.c (h8300_scan, compatible): Prototype.\r
124         (h8300_scan): Handle architecture:machine encodings typically\r
125         found in linker scripts.\r
126         * elf.c (prep_headers): Do not try to do H8 machine recognition\r
127         here.\r
128         * elf32-h8300.c:  Add some missing prototypes.\r
129         (elf32_h8_mach, elf32_h8_final_write_processing): New functions.\r
130         (elf32_h8_object_p): Similarly.\r
131 \r
132 2001-08-29  Tom Rix <trix@redhat.com>\r
133 \r
134         * xcofflink.c (xcoff_link_add_symbols):  Fix XTY_LD symbol that\r
135         does not follow a XTY_SD.\r
136 \r
137 2001-08-29  Alan Modra  <amodra@bigpond.net.au>\r
138 \r
139         * targmatch.sed: Delete case statements.\r
140         * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for\r
141         aix4.3 and above.\r
142 \r
143 Wed Aug 29 02:27:36 2001  J"orn Rennecke <amylaar@redhat.com>\r
144 \r
145         * Makefile.am (elf32-h8300.lo): New target.\r
146         * config.bfd (h8300*-*-elf): New case.\r
147         * configure.in (bfd_elf32_h8300_vec): New case.\r
148         * elf.c (prep_headers): Add case for bfd_arch_h8300.\r
149         * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.\r
150         (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.\r
151         (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.\r
152         * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.\r
153         * elf32-h8300.c: New file.\r
154         * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.\r
155 \r
156 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>\r
157 \r
158         * sparclynx.c: Add missing prototypes.\r
159         * coff-mcore.c: Add missing prototypes.\r
160         * elf32-pj.c: Add missing prototypes.\r
161         * nlm32-sparc.c: Add missing prototypes.\r
162         * oasys.c: Add missing prototypes.\r
163         * pdp11.c: Add missing prototypes.\r
164         * pe-mips.c: Add missing prototypes.\r
165         * riscix.c: Add missing prototypes.\r
166 \r
167 2001-08-27  Daniel Jacobowitz  <drow@mvista.com>\r
168 \r
169         * elf32-i386.c: Add missing prototypes.\r
170         * elf32-ppc.c: Likewise.\r
171         * elf32-sh-lin.c: Likewise.\r
172         * elfarm-nabi.c: Likewise.\r
173 \r
174 2001-08-27  Daniel Jacobowitz  <drow@mvista.com>\r
175 \r
176         * elf32-i386.c (elf_i386_grok_prstatus): New function.\r
177         (elf_i386_grok_psinfo): New function.\r
178         (elf_backend_grok_prstatus): Define.\r
179         (elf_backend_grok_psinfo): Likewise.\r
180         * elf32-ppc.c (ppc_elf_grok_prstatus): New function.\r
181         (ppc_elf_grok_psinfo): New function.\r
182         (elf_backend_grok_prstatus): Define.\r
183         (elf_backend_grok_psinfo): Likewise.\r
184         * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.\r
185         (elf32_shlin_grok_psinfo): New function.\r
186         (elf_backend_grok_prstatus): Define.\r
187         (elf_backend_grok_psinfo): Likewise.\r
188         * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.\r
189         (elf32_arm_nabi_grok_psinfo): New function.\r
190         (elf_backend_grok_prstatus): Define.\r
191         (elf_backend_grok_psinfo): Likewise.\r
192 \r
193 2001-08-27  H.J. Lu  <hjl@gnu.org>\r
194 \r
195         * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more\r
196         sanity check.\r
197         (mips_elf_calculate_relocation): Create dynamic relocation for\r
198         symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR\r
199         bit is not set.\r
200 \r
201 2001-08-27  H.J. Lu  <hjl@gnu.org>\r
202 \r
203         * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.\r
204         (_bfd_mips_elf_copy_indirect_symbol): Likewise.\r
205         (_bfd_elf32_mips_grok_prstatus): Likewise.\r
206         (_bfd_elf32_mips_grok_psinfo): Likewise.\r
207         (_bfd_mips_elf_hide_symbol): Make it static and cast to\r
208         `struct mips_elf_link_hash_entry *'.\r
209         (_bfd_mips_elf_copy_indirect_symbol): Make it static.\r
210 \r
211 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>\r
212 \r
213         * mipsbsd.c: Add missing prototypes.\r
214         * hp300hpux.c: Add missing prototypes.\r
215         * i386aout.c: Add missing prototypes.\r
216         * i386lynx.c: Add missing prototypes.\r
217         * i386mach3.c: Add missing prototypes.\r
218         * i386msdos.c: Add missing prototypes.\r
219         * i386os9k.c: Add missing prototypes.\r
220 \r
221 2001-08-27  Linus Nordberg  <linus@swox.se>\r
222             Torbjorn Granlund  <tege@swox.com>\r
223             Staffan Ulfberg  <staffanu@swox.se>\r
224             Alan Modra  <amodra@bigpond.net.au>\r
225 \r
226         * config.bfd: Add powerpc64 target.  Add powerpc64 vectors to\r
227         targ64_selvecs for 32 bit powerpc targets.\r
228         * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.\r
229         (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.\r
230         Run "make dep-am".\r
231         * Makefile.in: Regenerate.\r
232         * configure.in: Add elf64_powerpc vecs.\r
233         * configure: Regenerate.\r
234         * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.\r
235         * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.\r
236         * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.\r
237         * elf64-ppc.c: New file.\r
238         * reloc.c: Add powerpc64 relocs.\r
239         * libbfd.h: Regenerate.\r
240         * bfd-in2.h: Regenerate.\r
241 \r
242 2001-08-27  Andreas Schwab  <schwab@suse.de>\r
243 \r
244         * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the\r
245         reloc is against read-only section.\r
246         (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
247         looking up section names for DT_TEXTREL.\r
248         (elf32_m68k_reloc_type_class): New function.\r
249         (elf_backend_reloc_type_class): Define.\r
250 \r
251 2001-08-27  Andreas Jaeger  <aj@suse.de>\r
252 \r
253         * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the\r
254         reloc is against read-only section.\r
255         (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
256         looking up section names for DT_TEXTREL.\r
257         (elf_s390_reloc_type_class): New.\r
258         (elf_backend_reloc_type_class): Define.\r
259 \r
260         * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the\r
261         reloc is against read-only section.\r
262         (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
263         looking up section names for DT_TEXTREL.\r
264         (elf_s390_reloc_type_class): New.\r
265         (elf_backend_reloc_type_class): Define.\r
266 \r
267         * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc\r
268         is against read-only section.\r
269         (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
270         looking up section names for DT_TEXTREL.\r
271         (ppc_elf_reloc_type_class): New.\r
272         (elf_backend_reloc_type_class): Define.\r
273 \r
274 2001-08-26  Andreas Jaeger  <aj@suse.de>\r
275 \r
276         * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the\r
277         reloc is against read-only section.\r
278         (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
279         looking up section names for DT_TEXTREL.\r
280         (elf_cris_reloc_type_class): New.\r
281         (elf_backend_reloc_type_class): Define.\r
282 \r
283         * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is\r
284         against read-only section.\r
285         (elf_backend_reloc_type_class): Define.\r
286         (sh_elf_reloc_type_class): New.\r
287         (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
288         looking up section names for DT_TEXTREL.\r
289 \r
290         * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the\r
291         reloc is against read-only section.\r
292         (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
293         looking up section names for DT_TEXTREL.\r
294         (elf32_arm_reloc_type_class): New.\r
295         (elf_backend_reloc_type_class): Define.\r
296 \r
297 2001-08-25  Andreas Jaeger  <aj@suse.de>\r
298 \r
299         * oasys.c: Add missing prototypes.\r
300 \r
301         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused\r
302         attribute for parameter.\r
303         * elf.c (_bfd_elf_reloc_type_class): Likewise.\r
304 \r
305         * versados.c (get_4): Make static.\r
306         (get_10): Make static.\r
307         Add missing prototypes.\r
308         (process_esd): Fix call to versados_new_symbol.\r
309 \r
310 2001-08-25  Nick Clifton  <nickc@cambridge.redhat.com>\r
311 \r
312         * coff-a29k.c: Add missing prototypes.\r
313         * coff-apollo.c: Add missing prototypes.\r
314         * coff-arm.c: Add missing prototypes.\r
315         * coff-i860.c: Add missing prototypes.\r
316         * coff-rs6000.c: Add missing prototypes.\r
317         * coff-tic80.c: Add missing prototypes.\r
318         * elf-m10200.c: Add missing prototypes.\r
319         * elf-m10300.c: Add missing prototypes.\r
320         * elf32-arm.h: Add missing prototypes.\r
321         * elf32-d10v.c: Add missing prototypes.\r
322         * elf32-m32r.c: Add missing prototypes.\r
323         * elf32-mcore.c: Add missing prototypes.\r
324         * elf32-openrisc.c: Add missing prototypes.\r
325         * elf32-sh.c: Add missing prototypes.\r
326         * elf32-sparc.c: Add missing prototypes.\r
327         * elf32-v850.c: Add missing prototypes.\r
328         * elfarm-nabi.c: Add missing prototypes.\r
329         * elfarm-oabi.c: Add missing prototypes.\r
330 \r
331 2001-08-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>\r
332 \r
333         * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for\r
334         E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64\r
335 \r
336 2001-08-24  H.J. Lu  <hjl@gnu.org>\r
337 \r
338         * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF\r
339         hash structure.\r
340 \r
341 2001-08-24  Nick Clifton  <nickc@cambridge.redhat.com>\r
342 \r
343         * elf-bfd.h (elf_hash_table): Revert definition.\r
344         (is_elf_hash_table): New macro.\r
345         * elflink.h (elf_link_add_object_symbols): Test\r
346         is_elf_hash_table before accessing ELF only fields in hash\r
347         structure.\r
348         (elf_link_create_dynamic_sections): Fail if not using an ELF\r
349         hash structure.\r
350         (elf_add_dynamic_entry): Fail if not using an ELF hash\r
351         structure.\r
352         (elf_link_record_local_dynamic_symbol): Fail if not using an\r
353         ELF hash structure.\r
354         (size_dynamic_sections): Fail if not using an ELF hash\r
355         structure.\r
356         (elf_adjust_dynamic_symbol): Fail if not using an ELF\r
357         hash structure.\r
358         (elf_bfd_final_link): Fail if not using an ELF hash\r
359         structure.\r
360 \r
361 2001-08-24  H.J. Lu  <hjl@gnu.org>\r
362 \r
363         * elf-bfd.h (elf_hash_table): Return NULL if the linker hash\r
364         table is not an ELF linker hash table.\r
365 \r
366         * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash\r
367         table type to bfd_link_elf_hash_table.\r
368 \r
369         * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert\r
370         the last change.\r
371 \r
372         * linker.c (_bfd_link_hash_table_init): Set the linker hash\r
373         table type to bfd_link_generic_hash_table.\r
374 \r
375 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>\r
376 \r
377         * bfd.c (bfd_alt_mach_code): New function.\r
378         * bfd-in2.h: Rebuilt.\r
379 \r
380 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>\r
381 \r
382         * elf-m10300.c (mn10300_elf_relocate_section): Test the right\r
383         `type' field in the hash entry when deciding whether to follow a\r
384         link.\r
385 \r
386 2001-08-24  Jakub Jelinek  <jakub@redhat.com>\r
387 \r
388         * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not\r
389         last.\r
390         (elf_link_sort_relocs): Adjust accordingly.\r
391 \r
392         * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.\r
393         (elf64_alpha_check_relocs): Set it if section this reloc is against\r
394         is read-only.  Set DF_TEXTREL if a RELATIVE reloc is needed against\r
395         read-only section.\r
396         (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation\r
397         is is against read-only section.\r
398         (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't\r
399         check section names.\r
400         (elf64_alpha_reloc_type_class): New.\r
401         (elf_backend_reloc_type_class): Define.\r
402 \r
403 2001-08-24  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>\r
404 \r
405         * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()\r
406         by bfd_malloc().\r
407 \r
408 2001-08-23  Andreas Jaeger  <aj@suse.de>\r
409 \r
410         * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if\r
411         the reloc is against read-only section.\r
412         (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead\r
413         of looking up section names for DT_TEXTREL.\r
414         (elf64_x86_64_reloc_type_class): New.\r
415         (elf_backend_reloc_type_class): Define.\r
416 \r
417 2001-08-23  H.J. Lu  <hjl@gnu.org>\r
418 \r
419         * syms.c (bfd_print_symbol_vandf): Add abfd to arg.\r
420         * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.\r
421 \r
422         * aoutx.h (NAME(aout,print_symbol)): Pass abfd to\r
423         bfd_print_symbol_vandf.\r
424         * coffgen.c (coff_print_symbol): Likewise.\r
425         * elf.c (bfd_elf_print_symbol): Likewise.\r
426         * ieee.c (ieee_print_symbol): Likewise.\r
427         * nlmcode.h (nlm_print_symbol): Likewise.\r
428         * oasys.c (oasys_print_symbol): Likewise.\r
429         * pdp11.c (NAME(aout,print_symbol)): Likewise.\r
430         * som.c (som_print_symbol): Likewise.\r
431         * srec.c (srec_print_symbol): Likewise.\r
432         * tekhex.c (tekhex_print_symbol): Likewise.\r
433         * versados.c (versados_print_symbol): Likewise.\r
434         * vms.c (vms_print_symbol): Likewise.\r
435 \r
436         * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma\r
437         with bfd_fprintf_vma.\r
438         (bfd_elf_print_symbol): Likewise.\r
439         * syms.c (bfd_print_symbol_vandf): Likewise.\r
440 \r
441 2001-08-23  Nick Clifton  <nickc@cambridge.redhat.com>\r
442 \r
443         * aoutf1.h (sunos_write_object_contents): Silence compile time\r
444         warning.\r
445         * libaout.h (N_SET_DYNAMIC): Silence compile time warning.\r
446 \r
447         * bout.c: Add missing function prototypes.  Fix formatting.\r
448         * coff-z8k.c: Add missing function prototypes.  Fix formatting.\r
449         * coff-w65.c: Add missing function prototypes.  Fix formatting.\r
450         * coff-h8500.c: Add missing function prototypes.  Fix formatting.\r
451         * coff-h8300.c: Add missing function prototypes.  Fix formatting.\r
452         * coff-tic54x.c: Add missing function prototypes.  Fix formatting.\r
453         * coff-tic30.c: Add missing function prototypes.  Fix formatting.\r
454         * coff-m68k.c: Add missing function prototypes.  Fix formatting.\r
455         * coff-rs6000.c: Add missing function prototypes.  Fix formatting.\r
456         * coff-sh.c: Add missing function prototypes.  Fix formatting.\r
457 \r
458 2001-08-23  Jakub Jelinek  <jakub@redhat.com>\r
459 \r
460         * elf-bfd.h (enum elf_reloc_type_class): New.\r
461         (struct elf_backend_data): Add elf_backend_reloc_type_class.\r
462         (_bfd_elf_reloc_type_class): New.\r
463         * elfxx-target.h (elf_backend_reloc_type_class): Define.\r
464         (elfNN_bed): Add elf_backend_reloc_type_class.\r
465         * elf.c (_bfd_elf_reloc_type_class): New.\r
466         * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc\r
467         is against read-only section.\r
468         (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
469         looking up section names for DT_TEXTREL.\r
470         (elf_i386_reloc_type_class): New.\r
471         (elf_backend_reloc_type_class): Define.\r
472         * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the\r
473         reloc is against read-only section.\r
474         (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
475         looking up section names for DT_TEXTREL.\r
476         (elf32_sparc_reloc_type_class): New.\r
477         (elf_backend_reloc_type_class): Define.\r
478         * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the\r
479         reloc is against read-only section.\r
480         (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of\r
481         looking up section names for DT_TEXTREL.\r
482         (sparc64_elf_reloc_type_class): New.\r
483         (elf_backend_reloc_type_class): Define.\r
484         * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.\r
485         (elfNN_ia64_hash_table_create): Clear ia64_info.\r
486         (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only\r
487         section.\r
488         (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag\r
489         instead of looking up section names for DT_TEXTREL.\r
490         (elfNN_ia64_reloc_type_class): New.\r
491         (elf_backend_reloc_type_class): Define.\r
492         * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.\r
493         (struct elf_link_sort_rela): New.\r
494         (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.\r
495         (elf_bfd_final_link): Call elf_link_sort_relocs.\r
496         Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if\r
497         necessary.\r
498 \r
499 2001-08-23  Nick Clifton  <nickc@cambridge.redhat.com>\r
500 \r
501         * configure.in (x86-bsdi): No corefile support.\r
502         * configure: Regenerate.\r
503 \r
504 2001-08-22  Nick Clifton  <nickc@cambridge.redhat.com>\r
505 \r
506         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing\r
507         comma.\r
508 \r
509 2001-08-21  Mark Elbrecht  <snowball3@bigfoot.com>\r
510 \r
511         * coff-go32.c: Make DWARF2 sections use an alignment of 0.  Set\r
512         the alignment of dwarf2 linkonce sections to 0.\r
513         * coff-sto32.c: Likewise.\r
514 \r
515 2001-08-20  Andreas Jaeger  <aj@suse.de>\r
516 \r
517         * coff-sparc.c: Add missing prototypes.\r
518         * elf32-s390.c: Likewise.\r
519         * elf32-i960.c: Likewise.\r
520         * aout-target.h: Likewise.\r
521 \r
522 2001-08-20  H.J. Lu  <hjl@gnu.org>\r
523 \r
524         * elf-bfd.h (elf_obj_tdata): Add num_section_syms.\r
525         (elf_num_section_syms): New for num_section_syms.\r
526 \r
527         * elf.c (elf_map_symbols): Set num_section_syms.\r
528         (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for\r
529         the section symbol index.\r
530 \r
531 2001-08-20  Nick Clifton  <nickc@cambridge.redhat.com>\r
532 \r
533         * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never\r
534         select the generic has table creator.  All elf backends need elf\r
535         specific fields in the hash table.\r
536 \r
537 2001-08-20  Alan Modra  <amodra@bigpond.net.au>\r
538 \r
539         * archive.c (offsetof): Remove define.\r
540         * elf.c: Likewise.\r
541         * oasys.c: Likewise\r
542         * sysdep.h (offsetof): Define.\r
543 \r
544 2001-08-17  Alan Modra  <amodra@bigpond.net.au>\r
545 \r
546         * bfd.c (bfd_get_gp_size): Return an unsigned int.\r
547         (bfd_set_gp_size): Make param unsigned.\r
548         * bfd-in2.h: Regenerate.\r
549         * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather\r
550         than calling bfd_get_gp_size.\r
551         * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.\r
552         * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.\r
553 \r
554 2001-08-17  Alan Modra  <amodra@bigpond.net.au>\r
555 \r
556         * linker.c (default_fill_link_order): Handle four byte fill value.\r
557 \r
558 2001-08-17  Alan Modra  <amodra@bigpond.net.au>\r
559 \r
560         * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing\r
561         prototype.\r
562         * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.\r
563 \r
564         * elf64-mips.c (UNUSED_RELOC): Define.\r
565         (mips_elf64_howto_table_rel): Use it.\r
566         (mips_elf64_howto_table_rela): Here too.\r
567         (mips_elf64_write_relocs): Fix signed/unsigned warning.\r
568 \r
569         * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to\r
570         silence warning.\r
571         * coffgen.c (coff_print_symbol): Fix warnings.\r
572         (coff_find_nearest_line): Likewise.\r
573         * cofflink.c (_bfd_coff_link_input_bfd): Likewise.\r
574         * coff-alpha.c (alpha_convert_external_reloc): Likewise.\r
575         * format.c (bfd_check_format_matches): Likewise.\r
576         (bfd_set_format): Likewise.\r
577         * coff-ia64.c: Add missing prototypes.\r
578         * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend\r
579         signed to silence warnings.\r
580         (elf64_alpha_relocate_section): Likewise.\r
581         (elf64_alpha_find_reloc_at_ofs): Fix warnings.\r
582         (elf64_alpha_add_symbol_hook): Likewise.\r
583         (elf64_alpha_final_link): Likewise.\r
584         (elf64_alpha_relax_section): Remove redundant assign to info.gotent.\r
585         (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.\r
586         (elf64_alpha_size_got_sections): Likewise.\r
587         * elfxx-ia64.c: Add missing prototypes.\r
588         (elfNN_ia64_relocate_section): Fix warning.\r
589         (elfNN_ia64_unwind_entry_compare): Make params const.\r
590 \r
591 2001-08-17  Alan Modra  <amodra@bigpond.net.au>\r
592 \r
593         * config.bfd (targ64_selvecs): New.\r
594         <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.\r
595 \r
596         * bfd-in.h (BFD_VERSION): Remove wrong comment.\r
597         (BFD_DEFAULT_TARGET_SIZE): New.\r
598         (BFD_ARCH_SIZE): Comment.\r
599         * configure.in (target_size): New.  Set instead of target64 in\r
600         selvecs case statement.  Set target64 from it.\r
601         (bfd_default_target_size): New.  Set from taget_size. AC_SUBST.\r
602         * bfd-in2.h: Regenerate.\r
603         * configure: Regenerate.\r
604 \r
605 2001-08-17  Alan Modra  <amodra@bigpond.net.au>\r
606 \r
607         * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.\r
608         (bfd_errmsgs): Add corresponding message.\r
609         * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when\r
610         finding an archive that contains different format object files.\r
611         Return bfd_error_wrong_object_format for this case.\r
612         * format.c: Formatting fixes.  s/CONST/const/.\r
613         (bfd_check_format_matches): Accept archives that give\r
614         bfd_error_wrong_object_format if no full match is found.  Tidy\r
615         code handling matching_vector.  Don't return a pointer to freed\r
616         memory in `matching'.  Handle ambiguous matches as for partial\r
617         archive matches.\r
618         * bfd-in2.h: Regenerate.\r
619 \r
620 2001-08-15  Alan Modra  <amodra@bigpond.net.au>\r
621 \r
622         * libieee.h (common_header_type): Add last_byte field.\r
623 \r
624         * ieee.c: Add missing prototypes.  Some format fixes.\r
625         (struct output_buffer_struct): Move for availability to prototypes.\r
626         (ieee_part_after): New function.\r
627         (ieee_slurp_debug): Use it here.\r
628         (ieee_seek): Pass in ieee_data_struct rather than bfd.  Use\r
629         ieee_part_after to set last_byte to one past end of current part.\r
630         Update callers.\r
631         (ieee_pos): Pass in ieee_data_struct rather than bfd.\r
632         Update callers.\r
633         (parse_expression): Don't go beyond the end of the current part.\r
634         (ieee_slurp_external_symbols): Correct type passed to read_2bytes.\r
635         (ieee_get_symtab_upper_bound, ieee_get_symtab,\r
636         ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,\r
637         ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,\r
638         ieee_set_section_contents, ieee_write_object_contents,\r
639         ieee_make_empty_symbol): Make static.\r
640         (ieee_archive_p): Correct comments regarding bfd_read.\r
641         (ieee_object_p): Similarly.\r
642         (ieee_mkobject): Move it.  Clear output_ptr_start, output_ptr,\r
643         output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,\r
644         input_bfd, output_bfd, output_buffer.\r
645         (do_as_repeat): Write out ieee_set_current_pc_enum value as for\r
646         do_with_relocs, ie. as a symbol for relocatable files.\r
647         (ieee_vec): Add comments showing functions referenced by macros.\r
648 \r
649 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>\r
650 \r
651         * aout-tic30.c: Add missing prototypes.  Fix formatting.\r
652         * aout-ns32k.c: Add missing prototypes.  Fix formatting.\r
653         * peXXigen.c: Add missining prototypes.  Fix formatting.\r
654         * aout-adobe.c: Add missining prototypes.  Fix formatting.\r
655 \r
656 2001-08-13  Nick Clifton  <nickc@cambridge.redhat.com>\r
657 \r
658         * elf32-v850.c: Add missing function prototypes.\r
659         Fix some formatting.\r
660 \r
661         * cpu-v850.c: Add missing function prototype.\r
662         Fix some formatting.\r
663 \r
664 2001-08-11  Nick Clifton  <nickc@cambridge.redhat.com>\r
665 \r
666         * elf-bfd.h (struct elf_backend_data): Add new fields\r
667         'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.\r
668         (bfd_elf_sprintf_vma): Rename function prototype to\r
669         '_bfd_elf_sprintf_vma'.\r
670         (bfd_elf_fprintf_vma): Rename function prototype to\r
671         '_bfd_elf_fprintf_vma'.\r
672         * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma\r
673         directly, instead indirect via the elf_backend_data structure.\r
674         (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,\r
675         instead indirect via the elf_backend_data structure.\r
676         * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.\r
677         (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.\r
678         * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not\r
679         already defined.\r
680         (elf_backend_fprintf_vma): Initialise if not already defined.\r
681         (struct elf_backend_data): Initialise the\r
682         elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.\r
683 \r
684 2001-08-10  Andreas Jaeger  <aj@suse.de>\r
685 \r
686         * elf64-sparc.c: Add missing prototypes.\r
687         * elf32-cris.c: Likewise.\r
688         * elf32-i370.c: Likewise.\r
689         * elf64-hppa.c: Likewise.\r
690         * elf64-s390.c: Likewise.\r
691 \r
692 2001-08-10  Andreas Jaeger  <aj@suse.de>\r
693 \r
694         * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.\r
695         Add prototypes where needed.\r
696 \r
697 2001-08-10  H.J. Lu  <hjl@gnu.org>\r
698 \r
699         * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.\r
700         (bfd_fprintf_vma): Likewise.\r
701 \r
702 2001-08-10  H.J. Lu  <hjl@gnu.org>\r
703 \r
704         * bfd.c (bfd_sprintf_vma): Don't return void.\r
705         (bfd_fprintf_vma): Likewise.\r
706 \r
707 2001-08-10  Andreas Jaeger  <aj@suse.de>\r
708 \r
709         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes\r
710         to build warnings.\r
711         * configure: Regenerate.\r
712 \r
713 2001-08-10  Alan Modra  <amodra@bigpond.net.au>\r
714 \r
715         * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet\r
716         warning if not BFD64.  Add braces so emacs auto format works.\r
717         (bfd_elf_fprintf_vma): Likewise.\r
718 \r
719         * libxcoff.h (struct xcoff_backend_data_rec): Constify src param\r
720         of _xcoff_swap_ld*.\r
721         * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external\r
722         param to agree with libxcoff.h.\r
723         (xcoff_swap_ldhdr_out): Likewise.\r
724         (xcoff_swap_ldsym_in): Likewise.\r
725         (xcoff_swap_ldsym_out): Likewise.\r
726         (xcoff_swap_ldrel_in): Likewise.\r
727         (xcoff_swap_ldrel_out): Likewise.\r
728         (xcoff_create_csect_from_smclas): Likewise.\r
729         * coff64-rs6000.c: Add missing prototypes.\r
730         (xcoff64_swap_ldhdr_in): Modify type of external param to agree\r
731         with libxcoff.h.\r
732         (xcoff64_swap_ldhdr_out): Likewise.\r
733         (xcoff64_swap_ldsym_in): Likewise.\r
734         (xcoff64_swap_ldsym_out): Likewise.\r
735         (xcoff64_swap_ldrel_in): Likewise.\r
736         (xcoff64_swap_ldrel_out): Likewise.\r
737         (xcoff64_ppc_relocate_section): Make static.\r
738         (xcoff64_slurp_armap): Likewise.\r
739         (xcoff64_archive_p): Likewise.\r
740         (xcoff64_openr_next_archived_file): Likewise.\r
741         (xcoff64_sizeof_headers): Likewise.\r
742         (xcoff64_is_lineno_count_overflow): Likewise.\r
743         (xcoff64_is_reloc_count_overflow): Likewise.\r
744         (xcoff64_loader_symbol_offset): Likewise.\r
745         (xcoff64_loader_reloc_offset): Likewise.\r
746         * elf64-gen.c: Add missing prototypes.\r
747 \r
748 2001-08-09  H.J. Lu  <hjl@gnu.org>\r
749 \r
750         * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.\r
751         (bfd_elf_fprintf_vma): Likewise.\r
752 \r
753 2001-08-09  H.J. Lu  <hjl@gnu.org>\r
754 \r
755         * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved\r
756         to ...\r
757         * elf-bfd.h: Here.\r
758         * bfd-in2.h: Regenerated.\r
759 \r
760 2001-08-09  H.J. Lu  <hjl@gnu.org>\r
761 \r
762         * bfd-in.h (bfd_sprintf_vma): New prototype.\r
763         (bfd_fprintf_vma): Likewise.\r
764         (bfd_elf_sprintf_vma): Likewise.\r
765         (bfd_elf_fprintf_vma): Likewise.\r
766         (bfd_printf_vma): New. Defined with bfd_fprintf_vma.\r
767         * bfd-in2.h: Regenerated.\r
768 \r
769         * bfd.c (bfd_sprintf_vma): New. Defined.\r
770         (bfd_fprintf_vma): Likewise.\r
771 \r
772         * elf.c (bfd_elf_sprintf_vma): New. Defined.\r
773         (bfd_elf_fprintf_vma): Likewise.\r
774 \r
775 2001-08-09  Alan Modra  <amodra@bigpond.net.au>\r
776 \r
777         * coff-rs6000.c: Add missing prototypes.\r
778         (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,\r
779         xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,\r
780         xcoff_loader_reloc_offset): Make static.\r
781         * dwarf1.c: Add missing prototypes.\r
782         * dwarf2.c: Add missing prototypes.\r
783         (struct abbrev_info): Move definition.\r
784         (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.\r
785         * elf.c: Add missing prototypes.\r
786         * elf32-gen.c: Likewise.\r
787         * elf32-i386.c: Likewise.\r
788         * elf32-ppc.c: Likewise.\r
789         (ppc_elf_sort_rela): Use PTR instead of "void *".\r
790         * elflink.h: Add missing prototypes.  Formatting fixes.\r
791         * merge.c: Add missing prototypes.\r
792         (last4_eq): Use PTR instead of "void *".\r
793         (last_eq): Likewise.\r
794         * syms.c: Add missing prototypes.\r
795 \r
796 2001-08-09  Nick Clifton  <nickc@cambridge.redhat.com>\r
797 \r
798         * bfd.c: Fix formatting.\r
799         * bfd-in2.h: Regenerate.\r
800 \r
801 2001-08-09  Nick Clifton  <nickc@cambridge.redhat.com>\r
802 \r
803         * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to\r
804         true (this target uses REL relocations) and 'pcrel_offset' to\r
805         false (the PC is implied, not stored in the offset).\r
806 \r
807 2001-08-08  Alan Modra  <amodra@bigpond.net.au>\r
808 \r
809         1999-10-19  Linus Nordberg  <linus@swox.se>\r
810         * elf-bfd.h (struct elf_backend_data): Add want_got_sym.\r
811         * elfxx-target.h (elf_backend_want_got_sym): Define.\r
812         (elfNN_bed): Add elf_backend_want_got_sym.\r
813         * elflink.c (_bfd_elf_create_got_section): Define\r
814         _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.\r
815 \r
816 2001-08-08  Alexandre Oliva  <aoliva@redhat.com>\r
817 \r
818         * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.\r
819         (find_rela_addend): New function.\r
820         (parse_comp_unit): Call it to find the abbrev offset addend.\r
821         (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new\r
822         members of dwarf2_debug as debugging information is read.\r
823 \r
824 2001-08-07  Nick Clifton  <nickc@cambridge.redhat.com>\r
825 \r
826         * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff\r
827         targets as well as sh-pe.\r
828 \r
829 2001-08-03  Ben Harris <bjh21@netbsd.org>\r
830 \r
831         * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of\r
832         reloc from start of section when computing value for R_ARM_REL32\r
833         reloc.\r
834 \r
835 2001-08-03  Alan Modra  <amodra@bigpond.net.au>\r
836 \r
837         From  H.J. Lu  <hjl@gnu.org>\r
838         * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't\r
839         keep relocs for undefined syms if there are no dynamic sections in\r
840         executable.\r
841         * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.\r
842 \r
843 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>\r
844 \r
845         * cofflink.c (coff_link_check_ar_symbols): also search for\r
846         __imp__symbol as well as _symbol.\r
847         * linker.c (_bfd_generic_link_add_archive_symbols): also\r
848         search for __imp__symbol as well as _symbol.\r
849 \r
850 2001-08-01  Adam Nemet  <anemet@lnxw.com>\r
851 \r
852         * elf.c (elf_sort_sections): Return zero only as the last step.\r
853 \r
854 2001-08-01  Nick Clifton  <nickc@cambridge.redhat.com>\r
855 \r
856         * config.bfd (arm-vxworks): Change name of define from VXWORKS to\r
857         ARM_COFF_BUGFIX.\r
858         (arm-epoc-pe): Define ARM_COFF_BUGFIX.\r
859         coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with\r
860         ARM_COFF_BUGFIX.\r
861 \r
862 2001-07-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>\r
863 \r
864         * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type\r
865         to match corresponding bfd_coff_backend data member.\r
866 \r
867 2001-07-24  Alan Modra  <amodra@bigpond.net.au>\r
868 \r
869         * Makefile.am: Update dependencies with "make dep-am".\r
870         * Makefile.in: Regenerate\r
871 \r
872 2001-07-15  H.J. Lu  <hjl@gnu.org>\r
873 \r
874         * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.\r
875         (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.\r
876         * Makefile.in: Regenerate.\r
877 \r
878 2001-07-11  H.J. Lu  <hjl@gnu.org>\r
879 \r
880         * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD\r
881         flags when creating the reloc section if the ALLOC flag in the\r
882         source section is set.\r
883 \r
884 2001-07-11  Steve Ellcey  <sje@cup.hp.com>\r
885 \r
886         * reloc.c (bfd_reloc_code_type): Add IA64 relocs\r
887         BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB\r
888         * bfd-in2.h: Regenerate.\r
889         * libbfd.h: Regenerate.\r
890         * elfxx-ia64.c (ia64_howto_table): Define how to handle\r
891         new relocations.\r
892         (elfNN_ia64_reloc_type_lookup): Handle new relocations.\r
893         (elfNN_ia64_check_relocs): Likewise.\r
894         (elfNN_ia64_install_value): Likewise.\r
895         (elfNN_ia64_relocate_section): Likewise.\r
896 \r
897 2001-07-11  Jakub Jelinek  <jakub@redhat.com>\r
898 \r
899         * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for\r
900         R_SPARC_UA64.\r
901         (elf32_sparc_check_relocs): Likewise.\r
902         Only create .rela section for alloced sections in shared libraries.\r
903         (elf32_sparc_relocate_section): Likewise.\r
904         Remove redundant check.\r
905         Optimize unaligned reloc usage.\r
906         * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant\r
907         check.\r
908 \r
909 2001-07-11  H.J. Lu  <hjl@gnu.org>\r
910 \r
911         * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same\r
912         ALLOC|LOAD flags as the source section for debugging sections\r
913         when creating the reloc section.\r
914 \r
915 2001-07-05  Jim Wilson  <wilson@redhat.com>\r
916 \r
917         * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use\r
918         the section of the bigger symbol.\r
919 \r
920         * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.\r
921 \r
922 2001-07-05  Nick Clifton  <nickc@cambridge.redhat.com>\r
923 \r
924         * peicode.h (coff_swap_scnhdr_in): For sections containing\r
925         uninitialised data, only set their size to s_paddr if this does\r
926         not reset their size to zero.  MS's latest compilers will set\r
927         s_paddr to zero.\r
928 \r
929 2001-07-04  H.J. Lu  <hjl@gnu.org>\r
930 \r
931         * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):\r
932         Handle bfd_mach_mips4400, bfd_mach_mips4600 and\r
933         bfd_mach_mips5000.\r
934 \r
935 2001-07-03  Mark Elbrecht  <snowball3@softhome.net>\r
936 \r
937         * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.\r
938 \r
939         * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from\r
940         sections being discarded.\r
941 \r
942 2001-06-30  Alan Modra  <amodra@bigpond.net.au>\r
943 \r
944         * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly\r
945         instead of _bfd_elfcore_section_from_phdr.\r
946         * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.\r
947         * elf.c (_bfd_elfcore_section_from_phdr): Remove.\r
948         (_bfd_elfcore_make_pseudosection): Expedite tail-call.\r
949         (elfcore_grok_prstatus): Likewise.\r
950         (elfcore_grok_lwpstatus): Likewise.\r
951         (bfd_get_elf_phdr_upper_bound): Likewise.\r
952         (elfcore_make_note_pseudosection): Formatting.\r
953         (_bfd_elfcore_strndup): Formatting.\r
954         * elf32-mips.c (mips_elf_sym_is_global): Formatting.\r
955         (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.\r
956 \r
957 2001-06-29  Daniel Jacobowitz  <drow@mvista.com>\r
958 \r
959         * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection\r
960         and _bfd_elfcore_strndup.\r
961         (struct elf_backend_data): Add elf_backend_grok_prstatus\r
962         and elf_backend_grok_psinfo.\r
963         * elf.c (_bfd_elfcore_make_pseudosection): New function.\r
964         (elfcore_grok_prstatus): Use it.\r
965         (elfcore_make_note_pseudosection): Likewise.\r
966         (elfcore_strndup):  Rename to...\r
967         (_bfd_elfcore_strndup): Here, and make global.\r
968         (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.\r
969         (elfcore_grok_note): Call elf_backend_grok_prstatus\r
970         and elf_backend_grok_psinfo if available.\r
971         * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.\r
972         (_bfd_elf32_mips_grok_psinfo): New function.\r
973         (elf_backend_grok_prstatus): Define.\r
974         (elf_backend_grok_psinfo): Define.\r
975         * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.\r
976         (elf_backend_grok_psinfo): Likewise.\r
977         (elfNN_bed): Include elf_backend_grok_prstatus and\r
978         elf_backend_grok_psinfo.\r
979 \r
980 2001-06-29  H.J. Lu  <hjl@gnu.org>\r
981 \r
982         * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if\r
983         hplink->sgot is NULL before filling GOT.  Check if hplink->splt\r
984         is NULL before filling PLT.\r
985 \r
986 2001-06-29  Alan Modra  <amodra@bigpond.net.au>\r
987 \r
988         * elflink.h (elf_link_output_extsym): Revert 1999-04-10.\r
989 \r
990 2001-06-27  Alan Modra  <amodra@bigpond.net.au>\r
991 \r
992         * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic\r
993         here..\r
994         (elf32_hppa_adjust_dynamic_symbol): ..nor here..\r
995         (allocate_plt_and_got_and_discard_relocs): .. instead do so here\r
996         after gc has run.\r
997 \r
998         * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.\r
999         (IS_ABSOLUTE_RELOC): Define.\r
1000         (elf32_hppa_link_hash_entry): Always include reloc_entries field.\r
1001         (hppa_link_hash_newfunc): Always init it.\r
1002         (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to\r
1003         create COPY relocs only when the reloc is in a read-only section.\r
1004         Instead, allocate space for a dynamic reloc to reference the\r
1005         library symbol directly.  Keep track of space we allocate using\r
1006         relocs_entries.\r
1007         (hppa_discard_copies): Delete, and move code to..\r
1008         (allocate_plt_and_got): ..here.  Rename to\r
1009         allocate_plt_and_got_and_discard_relocs.  Remove unneeded dynamic\r
1010         relocs for non-shared link.\r
1011         (elf32_hppa_size_dynamic_sections): Update calls to above.\r
1012         (elf32_hppa_relocate_section): Write out the dynamic relocs used\r
1013         in lieu of COPY relocs.\r
1014 \r
1015         * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic\r
1016         here..\r
1017         (elf_i386_adjust_dynamic_symbol): ..nor here..\r
1018         (allocate_plt_and_got_and_discard_relocs): .. instead do so here\r
1019         after gc has run.\r
1020         (elf_i386_size_dynamic_sections): Fix a comment.\r
1021         (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code\r
1022         involved in writing reloc out.\r
1023 \r
1024 2001-06-25  Alan Modra  <amodra@bigpond.net.au>\r
1025 \r
1026         * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):\r
1027         Ensure syms are dynamic if we might be emitting a reloc.\r
1028         (allocate_plt_and_got_and_discard_relocs): Don't discard relocs\r
1029         for undefweak or undefined syms..\r
1030         (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.\r
1031 \r
1032         * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard\r
1033         relocs without ELF_LINK_HASH_DEF_DYNAMIC set.\r
1034         (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove\r
1035         redundant bfd_link_hash_defined, bfd_link_hash_defweak test.\r
1036 \r
1037 2001-06-24  H.J. Lu  <hjl@gnu.org>\r
1038 \r
1039         * cpu-i960.c (scan_960_mach): Don't modify const char *. Use\r
1040         strncasecmp/strcasecmp instead of strncmp/strcmp.\r
1041 \r
1042 2001-06-23  H.J. Lu  <hjl@gnu.org>\r
1043 \r
1044         * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):\r
1045         Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined\r
1046         in the regular object file and treat the weak definition as\r
1047         the normal one.\r
1048 \r
1049 2001-06-23  Alan Modra  <amodra@bigpond.net.au>\r
1050 \r
1051         * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten\r
1052         unresolved_reloc test to exclude cases where we use "relocation"\r
1053         before setting it to point into the .got.  Reinstate fudge for\r
1054         unresolved relocs in debugging sections.\r
1055 \r
1056         * elf32-i386.c (elf_i386_relocate_section): Replace ugly\r
1057         complicated tests for unresolvable relocs with a simple direct\r
1058         scheme using "unresolved_reloc" var.\r
1059 \r
1060         * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to\r
1061         elf_i386_dyn_relocs.  Update comment.\r
1062         (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to\r
1063         dyn_relocs.\r
1064         (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change\r
1065         others to aborts.\r
1066         (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with\r
1067         abort.\r
1068         (elf_i386_size_dynamic_sections): Likewise.\r
1069         (elf_i386_finish_dynamic_symbol): Likewise.\r
1070         (elf_i386_finish_dynamic_sections): Likewise.\r
1071         (elf_i386_relocate_section): Likewise.  Tidy R_386_GOT32 and error\r
1072         handling code.\r
1073 \r
1074         Avoid creating COPY relocs if possible.\r
1075         * elf32-i386.c (elf_i386_check_relocs): Tweak condition under\r
1076         which .got created.  Mark symbols used by R_386_32 and R_386_PC32\r
1077         relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the\r
1078         reloc is in a read-only section.  Instead, allocate space for a\r
1079         dynamic reloc to reference the library symbol directly.  Keep\r
1080         track of space we allocate using pcrel_relocs_copied.\r
1081         (discard_copies): Delete, and move code to ..\r
1082         (allocate_plt_and_got): ..here.  Rename to\r
1083         allocate_plt_and_got_and_discard_relocs.  Remove unneeded dynamic\r
1084         relocs for non-shared link.\r
1085         (elf_i386_size_dynamic_sections): Update calls to above functions.\r
1086         (elf_i386_relocate_section): Write out the dynamic relocs.  Add\r
1087         more ugly logic to avoid "unresolvable relocation" error.  Use\r
1088         htab shortcut in place of elf_hash_table macro.\r
1089         (elf_i386_finish_dynamic_sections): Allow that dynamic .got may\r
1090         not always be created now.\r
1091 \r
1092 2001-06-20  Bo Thorsen  <bo@suse.co.uk>\r
1093 \r
1094         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of\r
1095         shared libraries.\r
1096 \r
1097 2001-06-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>\r
1098 \r
1099         * configure.host (mips64-*-linux): Reformat.\r
1100 \r
1101 2001-06-21  Alan Modra  <amodra@bigpond.net.au>\r
1102 \r
1103         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always\r
1104         allocate local .got space.  Use shortcuts from hash table for .got\r
1105         and .plt rather than comparing section names.\r
1106         (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than\r
1107         adjusting index into local_got_refcounts to document what we are\r
1108         really doing.\r
1109         (elf32_hppa_relocate_section): Similarly for local_plt_offsets.\r
1110         Tidy .got and .plt error checking.\r
1111 \r
1112 2001-06-20  Catherine Moore  <clm@redhat.com>\r
1113 \r
1114         * elf-bfd.h (struct elf_backend_data):\r
1115         elf_backend_emit_relocs: New field: Function for emitting\r
1116         relocs.\r
1117         elf_backend_count_relocs: New field: Function for determining\r
1118         the number of relocs to be emitted.\r
1119         * elfxx-target.h: Provide default (NULL) values for\r
1120         elf_backend_emit_relocs and elf_backend_count_relocs.\r
1121         * elflink.h (elf_link_size_reloc_section): Make the hash table\r
1122         big enough to hold the relocs counted by either reloc_count or\r
1123         o->reloc_count.\r
1124         (elf_bfd_final_link) emit_relocs: New boolean, set if relocs\r
1125         should be emitted, either because of a command line option\r
1126         stored in the info structure or because the target provides a\r
1127         special reloc emitting function.\r
1128         If the target provides a reloc counting function use it,\r
1129         unless performing a relocatable link or emitting all relocs.\r
1130         Also set the SEC_RELOC flag on any output section which will\r
1131         contain relocs.\r
1132         (elf_link_input_bfd): emit_relocs: New boolean, set if relocs\r
1133         should be emitted, either because of a command line option\r
1134         stored in the info structure or because the target provides a\r
1135         special reloc emitting function.\r
1136         If the target provides a reloc emitting function, use it,\r
1137         unless performing a relocatable link or emitting all relocs.\r
1138 \r
1139 2001-06-20  H.J. Lu  <hjl@gnu.org>\r
1140 \r
1141         * elf32-i386.c (elf_i386_size_dynamic_sections): Always\r
1142         allocate local .got space.\r
1143 \r
1144 2001-06-19  Andreas Jaeger  <aj@suse.de>\r
1145 \r
1146         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of\r
1147         dynamic symbols.\r
1148 \r
1149 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>\r
1150 \r
1151         * elflink.h (struct elf_assign_sym_version_info): Remove member\r
1152         export_dynamic.  All users changed to use info member.\r
1153         NAME(bfd_elf,size_dynamic_sections)): Remove parameter\r
1154         export_dynamic, instead use member in parameter info.\r
1155         * bfd-in.h (bfd_elf32_size_dynamic_sections,\r
1156         bfd_elf64_size_dynamic_sections): Update prototype.\r
1157         * bfd-in2.h: Regenerate.\r
1158 \r
1159 2001-06-18  H.J. Lu  <hjl@gnu.org>\r
1160 \r
1161         * elflink.h (elf_info_failed): Add a new field, verdefs.\r
1162         (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to\r
1163         elf_export_symbol.\r
1164         (elf_export_symbol): Check eif->verdefs to decide if a symbol\r
1165         should be exported.\r
1166 \r
1167 2001-06-17  H.J. Lu  <hjl@gnu.org>\r
1168 \r
1169         * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,\r
1170         readonly_reloc, to record if a relocation in the .rel.dyn\r
1171         section is against a read-only section.\r
1172         (mips_elf_link_hash_newfunc): Initialize the readonly_reloc\r
1173         field to false.\r
1174         (_bfd_mips_elf_check_relocs): Record if there is a relocation\r
1175         in the .rel.dyn section against a read-only section by setting\r
1176         DF_TEXTREL or readonly_reloc.\r
1177         (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if\r
1178         it is true.\r
1179         (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if\r
1180         there is a relocation in the .rel.dyn section against a\r
1181         read-only section.\r
1182         (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if\r
1183         DF_TEXTREL is set.\r
1184 \r
1185 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>\r
1186 \r
1187         * coffcode.h (styp_flags_to_sec_flags): Change to a boolean\r
1188         function.  Move flagword result into parameter list.  Remove\r
1189         comment about setting bfd_error_handler to intercept failure\r
1190         results.\r
1191         * coffgen.c (make_a_section_from_file): Examine result of\r
1192         calling bfd_coff_styp_to_sec_flags and pass a failure back to\r
1193         caller.\r
1194         * ecoff.h (styp_flags_to_sec_flags): Change to a boolean\r
1195         function.  Move flagword result into parameter list.\r
1196         * libcoff.h: Regenerate.\r
1197         * libecoff.h: Regenerate.\r
1198 \r
1199 2001-06-13  Nick Clifton  <nickc@cambridge.redhat.com>\r
1200 \r
1201         * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data\r
1202         section is going to follow it.\r
1203 \r
1204 2001-06-12  Catherine Moore  <clm@redhat.com>\r
1205 \r
1206         * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN\r
1207         with the file_align entry from elf_backend_data.\r
1208         (elf_gc_smash_unused_vtentry_relocs): Likewise.\r
1209         (elf_gc_record_vtentry): Likewise.\r
1210 \r
1211 2001-06-10  Alan Modra  <amodra@bigpond.net.au>\r
1212 \r
1213         * elflink.h: Whitespace changes.\r
1214         (elf_link_read_relocs_from_section): Use "unsigned int" iterator\r
1215         rather than "unsigned char".\r
1216         (elf_link_output_relocs): Likewise.\r
1217         (elf_link_input_bfd): Likewise.\r
1218         (elf_reloc_link_order): LIkewise.\r
1219         * elf.c: s/CONST/const/.  Whitespace changes.\r
1220         * elf32-mips.c: Formatting fix.\r
1221 \r
1222         * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.\r
1223         * Makefile.in: Regenerate.\r
1224         * po/Make-in: Remove trailing tab.\r
1225 \r
1226 2001-06-09  Philip Blundell  <philb@gnu.org>\r
1227 \r
1228         * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last\r
1229         change.\r
1230         (elf32_arm_plt_entry): Likewise.\r
1231 \r
1232 2001-06-08  H.J. Lu  <hjl@gnu.org>\r
1233 \r
1234         * elf.c (swap_out_syms): Keep names for global section symbols.\r
1235 \r
1236 2001-06-07  H.J. Lu  <hjl@gnu.org>\r
1237 \r
1238         * config.bfd: Put back ecoff for Linux/mips. Firmwares on some\r
1239         MIPS-based machines need it.\r
1240 \r
1241 2001-06-07  H.J. Lu  <hjl@gnu.org>\r
1242 \r
1243         * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab\r
1244         for SGI only.\r
1245 \r
1246         * config.bfd: Remove ecoff from Linux/mips.\r
1247 \r
1248 2001-06-07  Andreas Jaeger  <aj@suse.de>\r
1249 \r
1250         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an\r
1251         assertion.\r
1252         (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an\r
1253         alignment of 8 for .rela sections; handle further relocations.\r
1254 \r
1255 2001-06-06  Christian Groessler <cpg@aladdin.de>\r
1256 \r
1257         * coff-z8k.c: Fix formatting.\r
1258         Fix howtos: howto->size was always 1.\r
1259 \r
1260 2001-06-05  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>\r
1261 \r
1262         * configure.host (mips64*-*-linux*): Define.\r
1263 \r
1264 2001-06-05  Alan Modra  <amodra@bigpond.net.au>\r
1265 \r
1266         * elf32-i386.c (elf_i386_discard_copies): Rename to\r
1267         discard_copies, and use elf_link_hash_entry arg rather than\r
1268         elf_i386_link_hash_entry.\r
1269         (elf_i386_link_hash_traverse): Delete.\r
1270         (elf_i386_size_dynamic_sections): Adjust call to discard_copies.\r
1271         Tidy sizing of dynamic sections.\r
1272         (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count\r
1273         possible .plt entries.\r
1274         (elf_i386_gc_sweep_hook): Likewise.\r
1275         (elf_i386_adjust_dynamic_symbol): Discard .plt entries for\r
1276         everything with plt.refcount <= 0.\r
1277 \r
1278         * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and\r
1279         .relgot space here.\r
1280         (elf_i386_gc_sweep_hook): ..and no need to deallocate here..\r
1281         (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and\r
1282         .rel.plt here..\r
1283         (allocate_plt_and_got): ..instead do it all here.  New function.\r
1284         (elf_i386_size_dynamic_sections): Allocate local .got space and\r
1285         call allocate_plt_and_got.  No need to zap .relgot if not dynamic.\r
1286         (bfd_elf32_bfd_final_link): Delete.  (ie. use regular final link\r
1287         rather than gc variety).\r
1288         (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.\r
1289         (elf_i386_relocate_section): Use it here and correct handling of\r
1290         R_386_GOT32.  Provide section and offset for "unresolvable\r
1291         relocation" error message.\r
1292         (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.\r
1293 \r
1294         * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,\r
1295         sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.\r
1296         (elf_i386_link_hash_table_create): Init them.\r
1297         (create_got_section): New function.\r
1298         (elf_i386_create_dynamic_sections): New function.\r
1299         (elf_backend_create_dynamic_sections): Set to above.\r
1300         (elf_i386_check_relocs): Use shortcuts from hash table rather than\r
1301         calling bfd_get_section_by_name.\r
1302         (elf_i386_gc_sweep_hook): Likewise.\r
1303         (elf_i386_adjust_dynamic_symbol): Likewise.\r
1304         (elf_i386_size_dynamic_sections): Likewise.\r
1305         (elf_i386_relocate_section): Likewise.\r
1306         (elf_i386_finish_dynamic_sections): Likewise.\r
1307 \r
1308         * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.\r
1309 \r
1310 2001-06-02  H.J. Lu  <hjl@gnu.org>\r
1311 \r
1312         * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX\r
1313         and ELFOSABI_HPUX.\r
1314         * elf64-hppa.c (elf64_hppa_object_p): Likewise.\r
1315 \r
1316 2001-06-02  H.J. Lu  <hjl@gnu.org>\r
1317 \r
1318         * aout-cris.c (MACHTYPE_OK): New. Defined.\r
1319 \r
1320 2001-06-02  Hans-Peter Nilsson  <hp@axis.com>\r
1321 \r
1322         * section.c (_bfd_strip_section_from_output): Handle NULL\r
1323         output_section.\r
1324 \r
1325 2001-06-02  H.J. Lu  <hjl@gnu.org>\r
1326 \r
1327         * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add\r
1328         rs6000coff64_vec only if BFD64 is defined.\r
1329         (powerpc64-*-aix*): Enable only if BFD64 is defined.\r
1330 \r
1331 2001-06-02  H.J. Lu  <hjl@gnu.org>\r
1332 \r
1333         * coff-ia64.c (ia64coff_object_p): Rewrite with\r
1334         external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.\r
1335 \r
1336 2001-06-01  Andreas Jaeger  <aj@suse.de>\r
1337 \r
1338         * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8\r
1339         relocation, small reformatting.\r
1340 \r
1341 2001-05-29  Andreas Jaeger  <aj@suse.de>\r
1342 \r
1343         * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.\r
1344         (elf64_x86_64_relocate_section): Likewise.\r
1345 \r
1346 2001-05-30  Alan Modra  <amodra@one.net.au>\r
1347 \r
1348         * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for\r
1349         millicode.  Don't allocate .got and .rela.got space here..\r
1350         (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..\r
1351         (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and\r
1352         .rela.plt here..\r
1353         (hppa_handle_PIC_calls): ..nor here..\r
1354         (allocate_plt_and_got): ..instead do it all here.  New function.\r
1355         (elf32_hppa_size_dynamic_sections): Allocate local .got space and\r
1356         call allocate_plt_and_got.  No need to zap .got if not dynamic.\r
1357         (elf32_hppa_final_link): Call regular bfd_final_link instead of\r
1358         gc_common_final_link.\r
1359         (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.\r
1360         (elf32_hppa_relocate_section): Use it here.\r
1361         (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of\r
1362         dynamic_sections_created.\r
1363         (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.\r
1364 \r
1365 2001-05-28  Andreas Jaeger  <aj@suse.de>\r
1366 \r
1367         * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the\r
1368         generic version since we want a hashsize of 4.\r
1369         (elf_backend_size_info): Likewise.\r
1370 \r
1371 2001-05-28  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>\r
1372 \r
1373         * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of\r
1374         a zeroing loop.\r
1375         (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.\r
1376         (elf_link_input_bfd): Likewise.\r
1377         (elf_reloc_link_order): Likewise.\r
1378         (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64\r
1379         relocations correctly.\r
1380 \r
1381 2001-05-28  Nicolas Pitre <nico@cam.org>\r
1382 \r
1383         * elf32-arm.h: fix PLT generation for big endian ARM\r
1384 \r
1385 2001-05-28  Alan Modra  <amodra@one.net.au>\r
1386 \r
1387         * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries\r
1388         for symbols forced local that need plabels.\r
1389         (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in\r
1390         .plt.rela for local syms if non-shared.\r
1391         (hppa_build_one_stub): Mask lsb of plt.offset.\r
1392         (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.\r
1393         (clobber_millicode_symbols): Correct comment.\r
1394         (elf32_hppa_relocate_section): Likewise.\r
1395         (elf32_hppa_finish_dynamic_symbol): Likewise.\r
1396 \r
1397 2001-05-28  Jeff Sturm  <jsturm@one-point.com>\r
1398 \r
1399         * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.\r
1400         * bfd-in2.h: Regenerate.\r
1401         * libbfd.h: Regenerate.\r
1402         * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32\r
1403         and BFD_RELOC_SPARC_UA64 mapping\r
1404         * elf64-sparc.c: Likewise.\r
1405 \r
1406 2001-05-25  H.J. Lu  <hjl@gnu.org>\r
1407 \r
1408         * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.\r
1409         (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.\r
1410         (coff-rs6000.lo): Remove the old dependency.\r
1411         * Makefile.in: Rebuild.\r
1412 \r
1413         * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with\r
1414         coff-rs6000.lo.\r
1415 \r
1416 2001-05-25  H.J. Lu  <hjl@gnu.org>\r
1417 \r
1418         * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,\r
1419         rs6000coff_core_file_matches_executable_p,\r
1420         rs6000coff_core_file_failing_command and\r
1421         rs6000coff_core_file_failing_signal only if AIX_CORE is\r
1422         defined.\r
1423         (pmac_xcoff_vec): Likewise.\r
1424         * coff64-rs6000.c (rs6000coff64_vec): Likewise.\r
1425 \r
1426 2001-05-25  Timothy Wall  <twall@redhat.com>\r
1427 \r
1428         * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry\r
1429         for __GLOB_DATA_PTR on AIX5.  Clean up some relocation bugs.\r
1430 \r
1431 2001-05-25  H.J. Lu  <hjl@gnu.org>\r
1432 \r
1433         * bfd-in2.h: Regenerated.\r
1434         * libcoff.h: Likewise.\r
1435 \r
1436 2001-05-25  Alan Modra  <amodra@one.net.au>\r
1437 \r
1438         * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow\r
1439         undefined millicode syms in shared libs.\r
1440         (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.\r
1441         (elf32_hppa_check_relocs): Likewise.\r
1442         (elf32_hppa_adjust_dynamic_symbol): Likewise.\r
1443         (elf32_hppa_size_dynamic_sections): Likewise.\r
1444         (elf32_hppa_relocate_section): Likewise.\r
1445         (elf32_hppa_finish_dynamic_symbol): Likewise.\r
1446         (elf32_hppa_finish_dynamic_sections): Likewise.\r
1447 \r
1448 2001-05-24  Tom Rix <trix@redhat.com>\r
1449 \r
1450         * Makefile.am coff-pmac bfd now defined in coff-rs6000.c\r
1451         xcoff-target.h not used to define rs6000 or ppc bfd.\r
1452         * Makefile.in same\r
1453 \r
1454         * bfd-in.h : (struct lineno_cache_entry) promote element "offset"\r
1455         to 64 bit.\r
1456 \r
1457         * coff-rs6000.c : Many changes for 64 bit support.  Move common\r
1458         32/64 code to xcofflink.c.  Explictly define the rs6000coff_vec\r
1459         and pmac_xcoff_vec\r
1460 \r
1461         * coff64-rs6000.c : Many changes for 64 bit support.  64 bit\r
1462         linker now supported.  Explictly define the rs6000coff64_vec.\r
1463 \r
1464         * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support\r
1465         (coff_print_aux) same\r
1466         (coff_write_object_contents) same\r
1467         (coff_slurp_line_table) same\r
1468 \r
1469         * coffgen.c : (coff_fix_symbol_name) formatting\r
1470         (coff_mangle_symbols) xcoff 64 bit support\r
1471         (coff_write_symbol) same\r
1472         (coff_write_alien_symbol) same\r
1473         (coff_write_native_symbol) same\r
1474         (coff_write_symbols) same\r
1475         (coff_get_symbol_info) same\r
1476         (bfd_coff_get_syment) same\r
1477         (coff_print_symbol) same\r
1478 \r
1479         * config.bfd : add powerpc64-*-aix* target\r
1480 \r
1481         * libcoff-in.h : formatting\r
1482 \r
1483         * libcoff.h : move xcoff extern declarations to libxcoff.h\r
1484 \r
1485         * libxcoff.h : New file\r
1486 \r
1487         * xcofflink.c : Many changes for xcoff64 support.  Move common\r
1488         structures to include/coff/xcoff.h.  Move specific structure to\r
1489         backends coff-rs6000.c and coff64-rs6000.c.   Use new backend\r
1490         functions, defined in libxcoff.h, to isolate 32/64 dependencies.\r
1491 \r
1492         (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for\r
1493         aix4.2+ -binitfini.\r
1494 \r
1495         (xcoff_build_ldsyms) : handle special __rtinit symbol.\r
1496 \r
1497 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>\r
1498 \r
1499         * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo\r
1500         s/ENTIRES/ENTRIES/.\r
1501 \r
1502 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>\r
1503 \r
1504         * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.\r
1505         * libbfd.h: Regenerate.\r
1506         * bfd-in2.h: Regenerate.\r
1507 \r
1508         * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.\r
1509         * archures.c (bfd_mach_mips12000): Define.\r
1510         * cpu-mips.c (arch_info_struct): Add MIPS r12k support.\r
1511         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k\r
1512         support.\r
1513         (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.\r
1514         * bfd-in2.h: Regenerate.\r
1515         * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.\r
1516 \r
1517 2001-05-23  kaz Kojima  <kkojima@rr.iij4u.or.jp>\r
1518 \r
1519         * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,\r
1520         elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,\r
1521         elf_sh_pic_plt_entry): New PLT code, that does not use r2, since\r
1522         that is used by GCC.\r
1523 \r
1524 2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>\r
1525 \r
1526         * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number\r
1527         of entries in a structured section.\r
1528         * elf.c: Use new macro.\r
1529         * elf32-i386.c: Use new macro.\r
1530         * elf32-mips.c: Use new macro.\r
1531         * elf64-alpha.c: Use new macro.\r
1532         * elf64-sparc.c: Use new macro.\r
1533         * elfcode.h: Use new macro.\r
1534         * elflink.h: Use new macro.\r
1535 \r
1536 2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>\r
1537 \r
1538         * bfdint.texi: Replace -oformat with --oformat.\r
1539 \r
1540 2001-05-21  Andreas Jaeger  <aj@suse.de>\r
1541 \r
1542         * dwarf2.c (decode_line_info): Fix error message.\r
1543         (read_abbrevs): Fix test for offset as suggested by Alan Modra and\r
1544         adjust error message.\r
1545 \r
1546 2001-05-18  H.J. Lu  <hjl@gnu.org>\r
1547 \r
1548         * elflink.h (elf_link_add_object_symbols): Revert the last\r
1549         change.\r
1550 \r
1551 2001-05-17  Alan Modra  <amodra@one.net.au>\r
1552 \r
1553         * elf32-hppa.c (clobber_millicode_symbols): Temporarily set\r
1554         ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.\r
1555         (hppa_build_one_stub): Add an assert to check plt.offset.\r
1556 \r
1557 2001-05-17  H.J. Lu  <hjl@gnu.org>\r
1558 \r
1559         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the\r
1560         version definition to basename of the output filename.\r
1561 \r
1562 2001-05-17  H.J. Lu  <hjl@gnu.org>\r
1563 \r
1564         * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to\r
1565         basename of the bfd filename.\r
1566 \r
1567 2001-05-16  Alan Modra  <amodra@one.net.au>\r
1568 \r
1569         * section.c (asection): Add linker_has_input field.\r
1570         (STD_SECTION): Adjust initialization to suit.\r
1571         * ecoff.c (bfd_debug_section): Likewise.\r
1572         * bfd-in2.h: Regenerate.\r
1573 \r
1574 2001-05-15  Alexandre Oliva  <aoliva@redhat.com>\r
1575 \r
1576         * elf-m10300.c (mn10300_elf_relax_section): Don't relax\r
1577         negative 32-bit operands to 16 operands when the operand is\r
1578         going to be zero-extended by the modified opcode.\r
1579 \r
1580 2001-05-12  Peter Targett  <peter.targett@arccores.com>\r
1581 \r
1582         * cpu-arc.c (arch_info_struct): Add entry 'base' representing old\r
1583         name for 'arc5' core versions.\r
1584         (bfd_arc_arch): Make bfd_mach_arc_6 default.\r
1585 \r
1586         * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default\r
1587         architecture.\r
1588         (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.\r
1589 \r
1590 2001-05-11  Jakub Jelinek  <jakub@redhat.com>\r
1591 \r
1592         * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind\r
1593         sections as well.\r
1594         (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO\r
1595         to .gnu.linkonce.t.FOO text section.\r
1596 \r
1597 2001-05-11  Jakub Jelinek  <jakub@redhat.com>\r
1598 \r
1599         * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix\r
1600         fields, change sec into secinfo.\r
1601         (struct sec_merge_info): Add chain, remove last fields.\r
1602         (struct sec_merge_sec_info): Add next, sec, psecinfo fields.\r
1603         (sec_merge_hash_lookup): If lookup could not use a string only\r
1604         because it has bad alignment, mark the old string for deletion.\r
1605         (sec_merge_add): Add secinfo argument. Don't compute entry's\r
1606         position, instead record the section.\r
1607         (sec_merge_emit): Update for the sec into secinfo change in\r
1608         struct sec_merge_hash_entry.\r
1609         (_bfd_merge_section): Only record the section for merging, defer\r
1610         putting strings into the hash table.\r
1611         (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,\r
1612         _bfd_merge_sections): New functions.\r
1613         (_bfd_merged_section_offset): Update for the sec_merge_hash_entry\r
1614         changes.\r
1615         * libbfd-in.h (_bfd_merge_sections): Add prototype.\r
1616         (_bfd_nolink_bfd_merge_sections): Define.\r
1617         * libbfd.h: Likewise.\r
1618         (bfd_generic_merge_sections): Add prototype.\r
1619         * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.\r
1620         (struct bfd_target): Likewise.\r
1621         * bfd.c (bfd_merge_sections): Define.\r
1622         * bfd-in2.h: Rebuilt.\r
1623         * elf.c (_bfd_elf_merge_sections): New function.\r
1624         * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.\r
1625         * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.\r
1626         * reloc.c (bfd_generic_merge_sections): New function.\r
1627         * vms.c (vms_bfd_merge_sections): New function.\r
1628         * aout-adobe.c (aout_32_bfd_merge_sections): Define.\r
1629         * aout-target.h (MY_bfd_merge_sections): Define.\r
1630         * aout-tic30.c (MY_bfd_merge_sections): Define.\r
1631         * binary.c (binary_bfd_merge_sections): Define.\r
1632         * bout.c (b_out_bfd_merge_sections): Define.\r
1633         * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.\r
1634         * coffcode.c (coff_bfd_merge_sections): Define.\r
1635         * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.\r
1636         * i386msdos.c (msdos_bfd_merge_sections): Define.\r
1637         * i386os9k.c (os9k_bfd_merge_sections): Define.\r
1638         * ieee.c (ieee_bfd_merge_sections): Define.\r
1639         * ihex.c (ihex_bfd_merge_sections): Define.\r
1640         * nlm-target.h (nlm_bfd_merge_sections): Define.\r
1641         * oasys.c (oasys_bfd_merge_sections): Define.\r
1642         * ppcboot.c (ppcboot_bfd_merge_sections): Define.\r
1643         * som.c (som_bfd_merge_sections): Define.\r
1644         * srec.c (srec_bfd_merge_sections): Define.\r
1645         * tekhex.c (tekhex_bfd_merge_sections): Define.\r
1646         * versados.c (versados_bfd_merge_sections): Define.\r
1647         * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.\r
1648 \r
1649 2001-05-11  Nick Clifton  <nickc@cambridge.redhat.com>\r
1650 \r
1651         * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'\r
1652         to be unsigned long, in order to match its use.\r
1653 \r
1654 2001-05-10  H.J. Lu  <hjl@gnu.org>\r
1655 \r
1656         * linker.c (_bfd_generic_link_add_one_symbol): Check loop on\r
1657         indirect symbols.\r
1658 \r
1659 2001-05-09  H.J. Lu  <hjl@gnu.org>\r
1660 \r
1661         * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate\r
1662         versymhdr->sh_size bytes for extversym instead of hdr->sh_size.\r
1663         Remove the unused veriable `dynver'.\r
1664 \r
1665 2001-05-08  Ian Lance Taylor  <ian@zembu.com>\r
1666 \r
1667         * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is\r
1668         NULL or is not COFF.\r
1669         (coff_i386_rtype_to_howto): Don't dump core if output section\r
1670         owner is not COFF.\r
1671 \r
1672 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>\r
1673 \r
1674         * ecoff.c (bfd_debug_section): Fix initialization.\r
1675         * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it\r
1676         is always a positive integer. Cast away sign mismatch.\r
1677         * elf32-mips.c: Fix misleading comment and typo.\r
1678         (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use\r
1679         correct data type.\r
1680         * elflink.c: Fix typo.\r
1681         (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.\r
1682         * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.\r
1683 \r
1684 2001-05-04  Richard Henderson  <rth@redhat.com>\r
1685 \r
1686         * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.\r
1687 \r
1688 2001-05-04  Nick Clifton  <nickc@cambridge.redhat.com>\r
1689 \r
1690         * elf32-arm.h (elf32_arm_final_link_relocate): Set\r
1691         EF_ARM_HASENTRY if the start address is set.\r
1692 \r
1693 2001-05-03  Nick Clifton  <nickc@cambridge.redhat.com>\r
1694 \r
1695         * targets.c (_bfd_target_vector_entries): Compute value based on\r
1696         the size of the _bfd_target_vector and not bfd_target_vector.\r
1697 \r
1698 2001-05-03  H.J. Lu  <hjl@gnu.org>\r
1699 \r
1700         * elfcode.h: Include "libiberty.h".\r
1701 \r
1702         * elflink.h (elf_link_add_object_symbols): Set\r
1703         elf_dt_name (abfd) to basename of the bfd filename.\r
1704         (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename\r
1705         of the bfd filename.\r
1706 \r
1707 2001-05-03  Andreas Jaeger  <aj@suse.de>\r
1708 \r
1709         * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.\r
1710         (elf_generic_info_to_howto_rel): Likewise.\r
1711         * coff-alpha.c (reloc_nil): Likewise.\r
1712         (alpha_ecoff_bad_format_hook): Likewise.\r
1713         (alpha_adjust_reloc_out): Likewise.\r
1714         (alpha_bfd_reloc_type_lookup): Likewise.\r
1715         (alpha_convert_external_reloc): Likewise.\r
1716         * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.\r
1717         (elf64_alpha_reloc_bad): Likewise.\r
1718         (elf64_alpha_reloc_gpdisp): Likewise.\r
1719         (elf64_alpha_bfd_reloc_type_lookup): Likewise.\r
1720         (elf64_alpha_info_to_howto): Likewise.\r
1721         (elf64_alpha_add_symbol_hook): Likewise.\r
1722         (elf64_alpha_create_got_section): Likewise.\r
1723         (elf64_alpha_is_local_label_name): Likewise.\r
1724         (elf64_alpha_merge_ind_symbols): Likewise.\r
1725         * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.\r
1726         (mips_elf64_get_reloc_upper_bound): Likewise.\r
1727         * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.\r
1728         (nlm_alpha_get_public_offset): Likewise.\r
1729 \r
1730 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>\r
1731 \r
1732         * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain\r
1733         about overflow in R_OPENRISC_LO_16_IN_INSN and\r
1734         R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c\r
1735 \r
1736 2001-04-30  H.J. Lu  <hjl@gnu.org>\r
1737 \r
1738         * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1\r
1739         only for ELF_LINK_FORCED_LOCAL.\r
1740         * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.\r
1741         * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.\r
1742         * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.\r
1743 \r
1744         * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL\r
1745         if the symbol has hidden or internal visibility.\r
1746 \r
1747 2001-04-30  Alan Modra  <amodra@one.net.au>\r
1748 \r
1749         * elf32-hppa.c (final_link_relocate): Branch to .+8 for\r
1750         calls to undefined weak symbols.\r
1751 \r
1752 2001-04-30  Andreas Jaeger  <aj@suse.de>, Andreas Schwab <schwab@suse.de>\r
1753 \r
1754         * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for\r
1755         R_X86_64_GOTPCREL, don't use assignments instead of comparisons.\r
1756 \r
1757 2001-04-27  Andreas Jaeger  <aj@suse.de>\r
1758 \r
1759         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap\r
1760         out handled entries.\r
1761         (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.\r
1762         (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.\r
1763         (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and\r
1764         GOT32.\r
1765 \r
1766 2001-04-27  Sean McNeil <sean@mcneil.com>\r
1767 \r
1768         * config.bfd: Add arm-vxworks target.\r
1769         * coff-arm (coff_arm_relocate_section): Add in symbol value to\r
1770         addend (fro VXworks targets).\r
1771 \r
1772 2001-04-26  H.J. Lu  <hjl@gnu.org>\r
1773 \r
1774         * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is\r
1775         valid.\r
1776 \r
1777 2001-04-25  Frank Ch. Eigler  <fche@redhat.com>\r
1778 \r
1779         * bfd-in.h (bfd_cache_close): Declare newly exported function.\r
1780         * bfd-in2.h: Regenerated.\r
1781 \r
1782 2001-04-24  Jakub Jelinek  <jakub@redhat.com>\r
1783 \r
1784         * merge.c (struct sec_merge_hash_entry): Add alignment field.\r
1785         (struct sec_merge_hash): Remove alignment_power.\r
1786         (sec_merge_hash_newfunc): Clear alignment.\r
1787         (sec_merge_hash_lookup): Pass alignment as argument.\r
1788         Use hashp->root.next, not hashp->next to walk the hash chain.\r
1789         If a string already in the hashtable does not have required\r
1790         alignment, create a new hashtable entry.\r
1791         (sec_merge_init): Remove alignment_power argument.\r
1792         (sec_merge_add): Add alignment argument.\r
1793         (sec_merge_emit): Alignment is now a per-entity thing, not per\r
1794         section.\r
1795         (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections\r
1796         for proper alignment.\r
1797         Pass alignment information to sec_merge_add.\r
1798 \r
1799 2001-04-24  Christian Groessler  <cpg@aladdin.de>\r
1800 \r
1801         * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR\r
1802         and R_REL16 reloc types; accept odd values for R_REL16 type\r
1803 \r
1804 2001-04-24  Johan Rydberg  <jrydberg@opencores.org>\r
1805 \r
1806         * cpu-openrisc.c: New file.\r
1807         * elf32-openrisc.c: Likewise.\r
1808 \r
1809         * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.\r
1810         (ALL_MACHINES_CFILES): Add cpu-openrisc.c.\r
1811         (BFD32_BACKENDS): Add elf32-openrisc.lo.\r
1812         (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.\r
1813         (cpu-openrisc.lo, elf32-openrisc.lo): New rules.\r
1814         * Makefile.in: Regenerated.\r
1815         * config.bfd: (openrisc-*-elf): New target.\r
1816         * configure.in (bfd_elf32_openrisc_vec): New vector.\r
1817         * configure: Regenerated.\r
1818         * libbfd.h: Regenerated.\r
1819         * bfd-in2.h: Regenerated.\r
1820         * reloc.c: Add OpenRISC relocations.\r
1821         * targets.c (bfd_elf32_openrisc_vec): Declare.\r
1822         (bfd_target_vect): Add bfd_elf32_openrisc_vec.\r
1823         * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.\r
1824         (bfd_openrisc_arch): Declare.\r
1825         (bfd_archures_list): Add bfd_openrisc_arch.\r
1826         * elf.c (prep_headers): Add bfd_arch_openrisc.\r
1827 \r
1828 2001-04-23  Bo Thorsen  <bo@suse.de>\r
1829 \r
1830         * elf64-x86-64.c: Add c++ vtable hack.\r
1831         Small whitespace and comment changes.\r
1832 \r
1833 2001-04-19  Andreas Jaeger  <aj@suse.de>\r
1834 \r
1835         * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.\r
1836         (elf64_x86_64_plt_entry): Likewise.\r
1837         (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.\r
1838         (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.\r
1839 \r
1840 2001-04-17  Hans-Peter Nilsson  <hp@axis.com>\r
1841 \r
1842         * elf32-cris.c: Tweak comments related to dynamic linking.\r
1843         (cris_elf_relocate_section): When not creating shared object, fill\r
1844         in the .got table for any symbol not in the dynamic symbol table.\r
1845         (elf_cris_finish_dynamic_symbol): When not creating shared object,\r
1846         only emit a .got.rela reloc if the symbol is in the dynamic symbol\r
1847         table.\r
1848         (cris_elf_check_relocs): Use variable r_type in all places rather\r
1849         than the original expression.  Add default case in switch for\r
1850         reloc types.\r
1851         (elf_cris_size_dynamic_sections): Iterate over\r
1852         elf_cris_discard_excess_program_dynamics when not creating shared\r
1853         library.\r
1854         (elf_cris_discard_excess_dso_dynamics): Renamed from\r
1855         elf_cris_discard_copies.  Correct typo, s/Rel/Rela/.\r
1856         (elf_cris_discard_excess_program_dynamics): New.\r
1857 \r
1858 2001-04-14  Mark Elbrecht  <snowball3@bigfoot.com>\r
1859 \r
1860         * coffcode.h (coff_write_object_contents): Use\r
1861         bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.\r
1862 \r
1863 2001-04-14  H.J. Lu  <hjl@gnu.org>\r
1864 \r
1865         * bfd-in2.h: Regenerate.\r
1866 \r
1867 2001-04-14  Jakub Jelinek <jakub@redhat.com>\r
1868 \r
1869         * section.c (STD_SECTION): Add entsize.\r
1870 \r
1871 2001-04-13  H.J. Lu  <hjl@gnu.org>\r
1872 \r
1873         * section.c (SEC_MERGE): Define new flag for merging.\r
1874         (SEC_STRINGS): Likewise.\r
1875         (entsize): New field.\r
1876 \r
1877 2001-04-13  Roger Sayle  <roger@metaphorics.com>\r
1878 \r
1879         * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section\r
1880         flag on pe-i386 targets.\r
1881 \r
1882 2001-04-13  Jakub Jelinek  <jakub@redhat.com>\r
1883 \r
1884         * libbfd-in.h (_bfd_merge_section): New.\r
1885         (_bfd_write_merged_section): New.\r
1886         (_bfd_merged_section_offset): New.\r
1887         * libbfd.h: Rebuilt.\r
1888         * linker.c (_bfd_generic_link_output_symbols): Handle\r
1889         discard_sec_merge.\r
1890         * aoutx.h (aout_link_write_symbols): Likewise.\r
1891         * pdp11.c (aout_link_write_symbols): Likewise.\r
1892         * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.\r
1893         (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE\r
1894         sections.\r
1895         (elf_link_sec_merge_syms): New.\r
1896         (elf_link_input_bfd): Call _bfd_merged_section_offset\r
1897         and _bfd_write_merged_section.\r
1898         Handle discard_sec_merge.\r
1899         * elf-bfd.h (struct elf_link_hash_table): Add merge_info\r
1900         field.\r
1901         (struct bfd_elf_section_data): Likewise.\r
1902         * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and\r
1903         SEC_STRINGS section flags and entsize from their ELF counterparts.\r
1904         (_bfd_elf_link_hash_table_init): Initialize merge_info.\r
1905         (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize\r
1906         from their BFD counterparts.\r
1907         * merge.c: New file.\r
1908         * Makefile.am: Add strtab.lo.\r
1909         * Makefile.in: Rebuilt.\r
1910 \r
1911 2001-04-09  Hans-Peter Nilsson  <hp@axis.com>\r
1912 \r
1913         * elflink.h (elf_fix_symbol_flags): For non-default visibilities,\r
1914         only hide symbols marked STV_INTERNAL or STV_HIDDEN.\r
1915 \r
1916 2001-04-05  Steven J. Hill  <sjhill@cotw.com>\r
1917 \r
1918         * config.bfd (mips*el*-*-linux-gnu*): Use traditional little\r
1919         endian MIPS ELF target.\r
1920         * config.bfd (mips*-*-linux-gnu*): Use traditional big endian\r
1921         MIPS ELF target.\r
1922 \r
1923         * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional\r
1924         64bit big endian MIPS ELF target.\r
1925         (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little\r
1926         endian MIPS ELF target.\r
1927         * configure: Regenerated.\r
1928 \r
1929         * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and\r
1930         little endian targets.\r
1931         (mips_elf_sym_is_global): Handle traditional targets.\r
1932 \r
1933         * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional\r
1934         64bit big endian MIPS ELF target.\r
1935         (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little\r
1936         endian MIPS ELF target.\r
1937 \r
1938         * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec\r
1939         and bfd_elf64_tradlittlemips_vec.\r
1940 \r
1941 2001-04-05  David Mosberger  <davidm@hpl.hp.com>\r
1942 \r
1943         * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an\r
1944         ordinary "progbits" section.\r
1945 \r
1946 2001-04-04  Alan Modra  <alan@linuxcare.com.au>\r
1947 \r
1948         * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol\r
1949         when -Bsymbolic causes a symbol to no longer need a .plt entry.\r
1950 \r
1951 2001-04-03  David Mosberger  <davidm@hpl.hp.com>\r
1952 \r
1953         * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.\r
1954 \r
1955 2001-03-30  H.J. Lu  <hjl@gnu.org>\r
1956 \r
1957         * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...\r
1958         (PEI_DEFAULT_TARGET_SUBSYSTEM): This.\r
1959 \r
1960 2001-03-26  H.J. Lu  <hjl@gnu.org>\r
1961 \r
1962         * elf32-gen.c (elf32_generic_link_add_symbols): New. Check\r
1963         if there are any relocations for generic ELF.\r
1964         (bfd_elf32_bfd_link_add_symbols): Defined to\r
1965         elf32_generic_link_add_symbols.\r
1966         * elf64-gen.c (elf64_generic_link_add_symbols): New. Check\r
1967         if there are any relocations for generic ELF.\r
1968         (bfd_elf64_bfd_link_add_symbols): Defined to\r
1969         elf64_generic_link_add_symbols.\r
1970 \r
1971 2001-03-23  Nick Clifton  <nickc@redhat.com>\r
1972 \r
1973         * Makefile.am (BUILD_CFILES): New variable: List of C source\r
1974         files created in build directory.\r
1975         (BUILD_HFILES): New variable: List of header files created in\r
1976         build directory.\r
1977         (POTFILES): Delete.\r
1978         (po/POTFILES.in): Replace rule with empty entry.\r
1979         (po/SRC-POTFILES.in): New rule: Create a list of source files\r
1980         in the source directory.\r
1981         (po/BLD-POTFILES.in): New rule: Create a list of source files\r
1982         in the build directory.\r
1983         (MOSTLYCLEAN): Do not delete source files created in build\r
1984         directory.\r
1985         * Makefile.in: Regenerate.\r
1986         * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in\r
1987         into po/Makefile.\r
1988         * configure: Regenerate.\r
1989 \r
1990         * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES\r
1991         and BLD_POTFILES.\r
1992         Add .. to the search path when building bfd.pot.\r
1993         Delete POTFILES when performing distclean.\r
1994         Add comment describing why distclean is broken in maintainer mode.\r
1995         * po/POTFILES.in: Delete.\r
1996         * po/SRC-POTFILES.in: New file.\r
1997         * po/BLD-POTFILES.in: New file.\r
1998         * po/bfd.pot: Regenerate.\r
1999 \r
2000 2001-03-22  Hans-Peter Nilsson  <hp@axis.com>\r
2001 \r
2002         * elf32-cris.c: Shlib and PIC support.  PCREL tweaks.\r
2003         (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,\r
2004         elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,\r
2005         elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,\r
2006         elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,\r
2007         elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New\r
2008         functions.\r
2009         (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,\r
2010         R_CRIS_32_PCREL>: Correct comments.  Set pcrel_offset to false.\r
2011         <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,\r
2012         R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,\r
2013         R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:\r
2014         New HOWTO members for new relocs.\r
2015         (cris_reloc_map): Map new relocs.\r
2016         (ELF_DYNAMIC_INTERPRETER): Define.\r
2017         (PLT_ENTRY_SIZE): Define.\r
2018         (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,\r
2019         elf_cris_pic_plt_entry): New, PLT templates.\r
2020         (struct elf_cris_pcrel_relocs_copied, struct\r
2021         elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.\r
2022         (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.\r
2023         (cris_final_link_relocate): Check that 16-bit GOT relocs have\r
2024         positive values.  Adjust PCREL relocs to be relative to location\r
2025         after relocation.\r
2026         (cris_elf_relocate_section): Handle relocations to dynamic\r
2027         objects.  Handle new relocations.  Call error handler when seeing\r
2028         non-PIC relocation for read-only sections while generating shared\r
2029         object.\r
2030         (cris_elf_check_relocs): Set reference counts for GOT and PLT\r
2031         entries.\r
2032         (bfd_elf32_bfd_link_hash_table_create,\r
2033         elf_backend_adjust_dynamic_symbol,\r
2034         elf_backend_size_dynamic_sections,\r
2035         elf_backend_finish_dynamic_symbol,\r
2036         elf_backend_finish_dynamic_sections,\r
2037         elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,\r
2038         elf_backend_hide_symbol, elf_backend_want_got_plt,\r
2039         elf_backend_plt_readonly, elf_backend_want_plt_sym,\r
2040         elf_backend_got_header_size, elf_backend_plt_header_size):\r
2041         Define.\r
2042 \r
2043         * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,\r
2044         BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,\r
2045         BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,\r
2046         BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,\r
2047         BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,\r
2048         BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.\r
2049         * bfd-in2.h, libbfd.h: Regenerate.\r
2050 \r
2051 2001-03-21  Diego Novillo  <dnovillo@redhat.com>\r
2052 \r
2053         (_bfd_mips_elf_relocate_section): Give a better error message when\r
2054         a relocation is not recognized.\r
2055 \r
2056 2001-03-21  Alan Modra  <alan@linuxcare.com.au>\r
2057 \r
2058         * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section\r
2059         non-NULL before attempting to dereference.\r
2060 \r
2061 2001-03-20  H.J. Lu  <hjl@gnu.org>\r
2062 \r
2063         * configure.in: Remove the redundent AC_ARG_PROGRAM.\r
2064         * configure: Rebuild.\r
2065 \r
2066 2001-03-20  Andreas Schwab  <schwab@suse.de>\r
2067 \r
2068         * elf32-m68k.c (elf_m68k_relocate_section): Don't need the\r
2069         relocation value when resolving a reference from a debugging\r
2070         section.\r
2071 \r
2072 2001-03-16  Scott Thomason  <SThomaso@hii.com>\r
2073 \r
2074         * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.\r
2075         (xcoff64_swap_sym_out): Fix syntax errors.\r
2076 \r
2077 2001-03-16  Richard Sandiford  <rsandifo@redhat.com>\r
2078 \r
2079         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.\r
2080 \r
2081 2001-03-15  Alan Modra  <alan@linuxcare.com.au>\r
2082 \r
2083         * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.\r
2084         (hppa_link_hash_newfunc): Init it.\r
2085         (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller\r
2086         section appears to be non-PIC.\r
2087         (final_link_relocate): Likewise.\r
2088         (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any\r
2089         possible candidate function, and set pic_call for those that will\r
2090         only have a .plt entry for the PIC call stub.\r
2091         (hppa_handle_PIC_calls): Set maybe_pic_call.\r
2092 \r
2093 2001-03-12  DJ Delorie  <dj@redhat.com>\r
2094 \r
2095         * elf32-sh.c (sh_elf_relocate_section): Only relocation\r
2096         R_SH_DIR8WP* relocs if they're against external symbols, else\r
2097         they're just for relaxing.  Validate the reloc values.\r
2098 \r
2099 2001-03-12  Stefan Geuken <mail@stefan-geuken.de>\r
2100 \r
2101         * binary.c (bfd_external_binary_architecture): Declare.\r
2102         (binary_object_p): If bfd_external_binary_architecture is defined,\r
2103         set the architecture to this string.\r
2104 \r
2105 2001-03-11  Philip Blundell  <philb@gnu.org>\r
2106 \r
2107         * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT\r
2108         entries that could serve as a definition for a weak symbol.\r
2109 \r
2110 2001-03-08  Nick Clifton  <nickc@redhat.com>\r
2111 \r
2112         * Most files: Update copyright notices using Perl script created\r
2113         by Kevin Buettner <kevinb@redhat.com>.\r
2114 \r
2115 2001-03-07  Nick Clifton  <nickc@redhat.com>\r
2116 \r
2117         * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise\r
2118         prior patch on ! defined OLD_ARM_ABI.\r
2119 \r
2120 2001-03-07  Andreas Jaeger  <aj@suse.de>\r
2121 \r
2122         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of\r
2123         some relocation values.\r
2124 \r
2125 2001-03-06  Nick Clifton  <nickc@redhat.com>\r
2126 \r
2127         * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero\r
2128         of offset in BLX(1) instruction.\r
2129         * coff-arm.c (coff_arm_relocate_section): Clear bit zero of\r
2130         offset in BLX(1) instruction.\r
2131         Fix formatting.\r
2132 \r
2133 2001-03-06  Nick Clifton  <nickc@redhat.com>\r
2134 \r
2135         * coff-arm.c (coff_arm_reloc_type_lookup): Add\r
2136         BFD_RELOC_THUMB_PCREL_BLX.\r
2137 \r
2138 2001-03-06  Igor Shevlyakov  <igor@windriver.com>\r
2139 \r
2140         * archures.c (bfd_default_scan): Add Coldfire CPUs.\r
2141         * bfd-in2.h: Regenerate.\r
2142         * cpu-m68k.c: Add Coldfire CPUs for arch table.\r
2143         * ieee.c (ieee_write_processor): Set proper id for\r
2144         Coldfire CPUs.\r
2145 \r
2146 2001-03-01  D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>\r
2147 \r
2148         * configure.in: Add s390 target.\r
2149         * configure: Regenerate.\r
2150 \r
2151 2001-02-28  Andreas Jaeger  <aj@suse.de>\r
2152 \r
2153         * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation\r
2154         to addend.\r
2155 \r
2156 2001-02-28  Philip Blundell  <pb@futuretv.com>\r
2157 \r
2158         * elf32-arm.h: Update mentions of renamed EF_xx constants.\r
2159         (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.\r
2160 \r
2161 2001-02-27  H.J. Lu  <hjl@gnu.org>\r
2162 \r
2163         * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if\r
2164         abfd->tdata.aout_data == NULL.\r
2165 \r
2166 2001-02-27  Alan Modra  <alan@linuxcare.com.au>\r
2167 \r
2168         * elf32-hppa.c: Correct field selector in stub comments.\r
2169         (clobber_millicode_symbols): Formatting fix.\r
2170 \r
2171         * configure.in: Bump version to 2.11.90.\r
2172         * configure: Regenerate.\r
2173         * Makefile.am (CFILES): Rename to SOURCE_CFILES.\r
2174         (CFILES): $SOURCE_CFILES + generated C files.\r
2175         (POTFILES): Include $HFILES not $SOURCE_HFILES.\r
2176         Run "make dep-am"\r
2177         * Makefile.in: Regenerate.\r
2178         * doc/Makefile.in: This too.\r
2179 \r
2180 2001-02-26  Timothy Wall  <twall@cygnus.com>\r
2181 \r
2182         * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete\r
2183         comments.\r
2184 \r
2185 2001-02-26  Nick Clifton <nickc@redhat.com>\r
2186 \r
2187         * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy\r
2188         up, replacing multiple if statements with a switch.\r
2189         (handle_COMDAT): New function.\r
2190 \r
2191 2001-02-26  H.J. Lu  <hjl@gnu.org>\r
2192 \r
2193         * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue\r
2194         a warning for section flags we do not handle instead of\r
2195         aborting.\r
2196 \r
2197 2001-02-26  Andreas Jaeger  <aj@suse.de>\r
2198 \r
2199         * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.\r
2200 \r
2201 2001-02-22  Timothy Wall  <twall@cygnus.com>\r
2202 \r
2203         * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).\r
2204         * configure.in: Add objects for elf64_ia64_aix vectors.\r
2205         * configure: Regenerated.\r
2206         * configure.host: Recognize ia64-*-aix*.\r
2207         * elfxx-ia64.c: Add hooks for ELF64 on AIX5.  Define new vectors\r
2208         for AIX.  AIX5 requires most relocations to be dynamic (*all*\r
2209         binaries are somewhat similar to shared libraries).\r
2210         * targets.c: Add elf64_ia64_aix vectors.\r
2211 \r
2212 2001-02-21  David Mosberger  <davidm@hpl.hp.com>\r
2213 \r
2214         * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for\r
2215         C8 said "1" instead of "8".  Clarify error string for IMM22:\r
2216         "signed integer" instead of just "integer".\r
2217 \r
2218 2001-02-20  Andreas Jaeger  <aj@suse.de>\r
2219 \r
2220         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make\r
2221         PLT entries that could serve as a definition for a weak symbol.\r
2222 \r
2223 2001-02-19  Jakub Jelinek  <jakub@redhat.com>\r
2224 \r
2225         * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT\r
2226         entries that could serve as a definition for a weak symbol.\r
2227         * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.\r
2228 \r
2229 2001-02-18  David O'Brien  <obrien@FreeBSD>\r
2230 \r
2231         * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat\r
2232         FreeBSD/i386-CURRENT differently until I can figure out the needed\r
2233         corefile changes.\r
2234         * configure: Regenerate.\r
2235         * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,\r
2236         FreeBSD/PowerPC, and FreeBSD/sparc64.\r
2237 \r
2238 2001-02-18  lars brinkhoff  <lars@nocrew.org>\r
2239 \r
2240         * Makefile.am: Add PDP-11 a.out target.\r
2241         * config.bfd: Likewise.\r
2242         * configure.in: Likewise.\r
2243         * targets.c: Likewise.\r
2244         * archures.c: Likewise.\r
2245         * bfd-in2.h: Likewise.  Add PDP-11 relocations.\r
2246         * libbfd.h: Add PDP-11 relocations.\r
2247         * reloc.c: Likewise.\r
2248         * cpu-pdp11.c: New file.\r
2249         * pdp11.c: New file.\r
2250 \r
2251         * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.\r
2252         (GET_SWORD) [ARCH_SIZE==16]: Likewise.\r
2253         (GET_SWORD) [ARCH_SIZE==16]: Likewise.\r
2254         (PUT_WORD) [ARCH_SIZE==16]: Likewise.\r
2255         (GET_MAGIC): New macro.\r
2256         (PUT_MAGIC): Likewise.\r
2257         * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.\r
2258 \r
2259 2001-02-18  Jim Kingdon  <jkingdon@engr.sgi.com>\r
2260 \r
2261         * irix-core.c (irix_core_core_file_p): Set the architecture (GDB\r
2262         multiarch needs it).\r
2263 \r
2264 2001-02-18  H.J. Lu  <hjl@gnu.org>\r
2265 \r
2266         * elflink.h (elf_link_input_bfd): Ignore invalid section symbol\r
2267         index.\r
2268 \r
2269 2001-02-18  Kazu Hirata  <kazu@hxi.com>\r
2270 \r
2271         * vms-misc.c: Fix formatting.\r
2272 \r
2273 2001-02-16  Kazu Hirata  <kazu@hxi.com>\r
2274 \r
2275         * vms.c: Fix formatting.\r
2276 \r
2277 2001-02-14  H.J. Lu  <hjl@gnu.org>\r
2278 \r
2279         * elf.c (elf_find_function): New function.\r
2280         (_bfd_elf_find_nearest_line): Call elf_find_function () to find\r
2281         the file name and function name.\r
2282 \r
2283 2001-02-14  Nick Clifton  <nickc@redhat.com>\r
2284 \r
2285         * ecoff.c (bfd_debug_section): Update to initialise new fields in\r
2286         asection structure.\r
2287 \r
2288         * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c\r
2289         (BFD64_BACKENDS): Add pepigen.c\r
2290         Add rules to create peigen.c and pepigen.c from peXXigen.c.\r
2291 \r
2292         * Makefile.in: Regenerate.\r
2293         * configure:  Regenerate.\r
2294         * po/POTFILES.in: Regenerate.\r
2295         * po/bfd.pot: Regenerate.\r
2296 \r
2297 2001-02-14  H.J. Lu  <hjl@gnu.org>\r
2298 \r
2299         * libcoff-in.h (pe_tdata): Add members target_subsystem and\r
2300         force_minimum_alignment.\r
2301 \r
2302 2001-02-14  Bo Thorsen  <bo@suse.de>\r
2303 \r
2304         * elf64-x86-64.c: Small formatting fixes and rearrangements of code.\r
2305         (elf64_86_64_size_info): Struct added to fix a problem\r
2306         with the hashtable string entries.\r
2307         (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.\r
2308         (elf64_x86_64_size_dynamic_sections): A FIXME removed.\r
2309         (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and\r
2310         remove the FIXME for this.\r
2311         (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt\r
2312         section. Also removed the FIXME for it.\r
2313         (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.\r
2314         (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.\r
2315         (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.\r
2316 \r
2317 2001-02-13  Richard Henderson  <rth@redhat.com>\r
2318 \r
2319         * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required\r
2320         and not user provided.\r
2321 \r
2322 2001-02-13  Kazu Hirata  <kazu@hxi.com>\r
2323 \r
2324         * vms.c (vms_print_symbol): Remove unreachable code.\r
2325 \r
2326         * rs6000-core.c: Fix formatting.\r
2327 \r
2328 2001-02-13  David Mosberger  <davidm@hpl.hp.com>\r
2329 \r
2330         * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define\r
2331         as _bfd_XXi_only_swap_filehdr_out.\r
2332         (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set\r
2333         pe->force_minimum_alignment to TRUE.\r
2334         (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to\r
2335         PEI_TARGET_SUBSYSTEM.\r
2336         (pe_print_private_bfd_data): Call\r
2337         _bfd_XX_print_private_bfd_data_common() instead of\r
2338         _bfd_pe_print_private_bfd_data_common().\r
2339         (pe_bfd_copy_private_bfd_data): Call\r
2340         _bfd_XX_bfd_copy_private_bfd_data_common() instead of\r
2341         _bfd_pe_bfd_copy_private_bfd_data_common().\r
2342         (coff_bfd_copy_private_section_data): Define as\r
2343         _bfd_XX_bfd_copy_private_section_data instead of\r
2344         _bfd_pe_bfd_copy_private_section_data.\r
2345         (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead\r
2346         of a _bfd_pe_get_symbol_info.\r
2347 \r
2348         * peigen.c: Delete.\r
2349 \r
2350         * peXXigen.c: Renamed from peigen.c.\r
2351         (COFF_WITH_XX): Define this macro (will get expanded into\r
2352         COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being\r
2353         compiled as peigen.c or pepigen.c.\r
2354         [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to\r
2355         define the canonical PEP structures and definitions.\r
2356         (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in\r
2357         effect, enforce minimum file and section alignments.  If\r
2358         extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to\r
2359         pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,\r
2360         so, by default, this is a no-op).\r
2361 \r
2362         * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.\r
2363         (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map\r
2364         _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to\r
2365         _bfd_pefoo if it's not defined.  Use these macros to define\r
2366         coff swap macros.\r
2367 \r
2368         * libcoff.h (pe_tdata): Add members target_subsystem and\r
2369         force_minimum_alignment.\r
2370 \r
2371         * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to\r
2372         COFF_WITH_pep.\r
2373         (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.\r
2374 \r
2375         * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of\r
2376         peigen.lo.\r
2377 \r
2378         * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.\r
2379         (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and\r
2380         PEPAOUTHDR.\r
2381 \r
2382         * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.\r
2383         (BFD64_BACKENDS_CFILES): Mention pepigen.c\r
2384         (peigen.c): Add rule to generate from peXXigen.c.\r
2385         (pepigen.c): Ditto.\r
2386         (pepigen.lo): List dependencies for pepigen.lo.\r
2387 \r
2388 2001-02-13  Alan Modra  <alan@linuxcare.com.au>\r
2389 \r
2390         * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$.  If\r
2391         $global$ referenced but not defined, set its value here.\r
2392 \r
2393 2001-02-09  Bo Thorsen  <bo@suse.de>\r
2394 \r
2395         * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section\r
2396         alignment to 3.\r
2397         (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry\r
2398         and relocation.\r
2399         (elf64_x86_64_relocate_section): Fix formatting.\r
2400         (elf64_x86_64_relocate_section): Fix addend for relocation of\r
2401         R_X86_64_(8|16|32|PC8|PC16|PC32).\r
2402 \r
2403 2001-02-12  Jan Hubicka  <jh@suse.cz>\r
2404 \r
2405         * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.\r
2406 \r
2407 2001-02-11  H.J. Lu  <hjl@gnu.org>\r
2408 \r
2409         * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB\r
2410         alignment.\r
2411 \r
2412 2001-02-11  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>\r
2413 \r
2414         * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch\r
2415         from 2000-10-13.  Do not add the symbol's value for R_MIPS_REL32\r
2416         relocations against dynsym symbols.\r
2417 \r
2418         * elf32-mips.c (elf_mips_howto_table): Fix the comment on\r
2419         the R_MIPS_26 relocation.\r
2420         (mips_elf_calculate_relocation): Use (p + 4) instead of p for\r
2421         the R_MIPS_26 relocation.\r
2422         (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26\r
2423         relocation.\r
2424         * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on\r
2425         the R_MIPS_26 relocation.\r
2426         (mips_elf64_howto_table_rela): Likewise.\r
2427 \r
2428         * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub\r
2429         member to mark symbols that have non-CALL relocations against\r
2430         them.\r
2431         (mips_elf_link_hash_newfunc): Initialize no_fn_stub.\r
2432         (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like\r
2433         R_MIPS_GOT16.\r
2434         (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a\r
2435         non-CALL relocation against it is encountered.\r
2436         (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.\r
2437         (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if\r
2438         no_fn_stub is not set.\r
2439 \r
2440         * elf32-mips.c (mips_elf_output_extsym): Get the output section\r
2441         information from the real symbol for indirect ones.\r
2442         Check no_fn_stub to find out if a symbol has a function stub\r
2443         indeed.\r
2444 \r
2445 2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>\r
2446 \r
2447         * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.\r
2448         * Makefile.in: Regenerate.\r
2449 \r
2450 2001-02-09  David Mosberger  <davidm@hpl.hp.com>\r
2451 \r
2452         * elfxx-ia64.c (is_unwind_section_name): New function.  Returns\r
2453         true if section name is an unwind table section name.\r
2454         (elfNN_ia64_additional_program_headers): Count each unwind section\r
2455         separately.\r
2456         (elfNN_ia64_modify_segment_map): Install one unwind program header\r
2457         for each unwind separate section.  Note: normally the linker\r
2458         script merges the unwind sections that go into a single segment,\r
2459         so this still generates at most one unwind program header per\r
2460         segment.\r
2461 \r
2462         * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section\r
2463         name for SHT_IA_64_UNWIND, not just .IA_64.unwind.\r
2464         (elfNN_ia64_fake_sections): Mark sections with names that start\r
2465         with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64\r
2466         unwind section.\r
2467 \r
2468         * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.\r
2469         Use it to make sh_info in unwind section point to the text section\r
2470         it applies to.\r
2471 \r
2472 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>\r
2473 \r
2474         * Makefile.am: Add linux target for S/390.\r
2475         * archures.c: Likewise.\r
2476         * bfd-in2.h: Likewise.\r
2477         * config.bfd: Likewise.\r
2478         * configure.in: Likewise.\r
2479         * elf.c: Likewise.\r
2480         * libbfd.h: Likewise.\r
2481         * targets.c: Likewise.\r
2482         * cpu-s390.c: New file.\r
2483         * elf32-s390.c: New file.\r
2484         * elf64-s390.c: New file.\r
2485 \r
2486 2001-02-09  Nick Clifton  <nickc@redhat.com>\r
2487 \r
2488         * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of\r
2489         ImageBase.  This has already been done by coff_swap_hdr_in.\r
2490 \r
2491 2001-02-09  Jakub Jelinek  <jakub@redhat.com>\r
2492 \r
2493         * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.\r
2494 \r
2495 2001-02-09  Jakub Jelinek  <jakub@redhat.com>\r
2496 \r
2497         * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.\r
2498         (sparc64_elf_relocate_section): Likewise.\r
2499 \r
2500 2001-02-09  Mark Kettenis  <kettenis@gnu.org>\r
2501 \r
2502         * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32\r
2503         similar to R_SPARC_32.\r
2504         * elf64-sparc.c (sparc64_elf_howto_table): Likewise.\r
2505 \r
2506 2001-02-08  H.J. Lu  <hjl@gnu.org>\r
2507 \r
2508         * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32\r
2509         relocation entries for weak definitions when building DSO with\r
2510         -Bsymbolic.\r
2511 \r
2512 2001-02-08  Richard Henderson  <rth@redhat.com>\r
2513 \r
2514         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness\r
2515         before visibility.  Locally defined protected symbols are not\r
2516         dynamic.\r
2517 \r
2518 2001-02-08  Geoffrey Keating  <geoffk@redhat.com>\r
2519 \r
2520         * config.bfd: Enable coff64 for rs6000-*.  Patch from\r
2521         <hzoli@austin.ibm.com>.\r
2522 \r
2523 2001-02-07  Mark Elbrecht  <snowball3@bigfoot.com>\r
2524 \r
2525         * coffgen.c (coff_find_nearest_line): If stabs info is successfully\r
2526         found, do not attempt to find dwarf2 info before returning.\r
2527 \r
2528 2001-02-07  Jakub Jelinek  <jakub@redhat.com>\r
2529 \r
2530         * elflink.h (is_global_symbol_definition): Rename to\r
2531         is_global_data_symbol_definition and have it reject function\r
2532         symbols.\r
2533         (elf_link_is_defined_archive_symbol): Use renamed function.\r
2534 \r
2535 2001-02-07  Todd Vierling  <tv@wasabisystems.com>\r
2536 \r
2537         * libbfd-in.h (bfd_target_vector): Change extern array to pointer.\r
2538         * libbfd.h (bfd_target_vector): Likewise.\r
2539         * targets.c (bfd_target_vector): Rename to _bfd_target_vector and\r
2540         make static; create pointer reference named bfd_target_vector.\r
2541         (_bfd_target_vector_entries): Calculate this based on the array\r
2542         typed _bfd_target_vector.\r
2543 \r
2544 2001-02-06  H.J. Lu  <hjl@gnu.org>\r
2545 \r
2546         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and\r
2547         internal symbols are not dynamic.\r
2548         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.\r
2549 \r
2550 2001-02-06  Nick Clifton  <nickc@redhat.com>\r
2551 \r
2552         * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so\r
2553         that it will not be pulled into the list of files that make up\r
2554         po/POTFILES.in.\r
2555         * Makefile.in: Regenerate.\r
2556         * po/bfd.pot:  Regenerate.\r
2557 \r
2558 2001-02-06  H.J. Lu  <hjl@gnu.org>\r
2559 \r
2560         * peicode.h (coff_swap_filehdr_in): Remove the e_magic\r
2561         checking.\r
2562         (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and\r
2563         external_PEI_IMAGE_hdr.\r
2564 \r
2565 2001-02-06  Kazu Hirata  <kazu@hxi.com>\r
2566 \r
2567         * elf-m10200.c: Fix formatting.\r
2568 \r
2569 2001-02-04  Nick Clifton  <nickc@redhat.com>\r
2570 \r
2571         * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC\r
2572         rel, it will be handled later on.\r
2573 \r
2574 2001-02-02  Fred Fish  <fnf@ninemoons.com>\r
2575 \r
2576         * Makefile.in: Fix typo.\r
2577 \r
2578 2001-02-01  Kazu Hirata  <kazu@hxi.com>\r
2579 \r
2580         * elf-m10300.c: Fix formatting.\r
2581 \r
2582 2001-01-30  Alan Modra  <alan@linuxcare.com.au>\r
2583 \r
2584         * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.\r
2585         (elf_backend_get_symbol_type): Define.\r
2586         (elf64_hppa_object_p): Set architecture and machine from elf\r
2587         header flags.\r
2588 \r
2589 2001-01-30  Curtis L. Janssen  <cljanss@ca.sandia.gov>\r
2590 \r
2591         * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2\r
2592         before mdebug.\r
2593 \r
2594 2001-01-26  Richard Henderson  <rth@redhat.com>\r
2595 \r
2596         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false\r
2597         for non-default visibility.\r
2598         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but\r
2599         delete ugly macro and replace with pretty function.\r
2600 \r
2601 2001-01-25  Mark Elbrecht  <snowball3@bigfoot.com>\r
2602 \r
2603         * coff-go32.c: Update copyright.\r
2604         * coff-stgo32.c: Likewise.\r
2605         * coff-go32.c (COFF_LONG_FILENAMES): Define.\r
2606         * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.\r
2607         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.\r
2608         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.\r
2609 \r
2610 2001-01-25  Kazu Hirata  <kazu@hxi.com>\r
2611 \r
2612         * bfd-in2.h: Rebuild.\r
2613         * libbfd.h: Likewise.\r
2614 \r
2615 2001-01-23  H.J. Lu  <hjl@gnu.org>\r
2616 \r
2617         * bfd-in2.h: Rebuild.\r
2618 \r
2619 2001-01-23  H.J. Lu  <hjl@gnu.org>\r
2620 \r
2621         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)\r
2622         is NULL or PRIV(vms_rec) is outside of the buffer.\r
2623 \r
2624 2001-01-23  Kazu Hirata  <kazu@hxi.com>\r
2625 \r
2626         * coff64-rs6000.c: Fix formatting.\r
2627         * coff-arm.c: Likewise.\r
2628         * coffgen.c: Likewise.\r
2629         * cofflink.c: Likewise.\r
2630         * coff-mcore.c: Likewise.\r
2631         * coff-mips.c: Likewise.\r
2632         * coff-pmac.c: Likewise.\r
2633         * coff-ppc.c: Likewise.\r
2634         * coff-rs6000.c: Likewise.\r
2635         * elf32.c: Likewise.\r
2636         * elf32-fr30.c: Likewise.\r
2637         * elf32-i370.c: Likewise.\r
2638         * elf32-i860.c: Likewise.\r
2639         * elf32-m32r.c: Likewise.\r
2640         * elf32-m68k.c: Likewise.\r
2641         * elf32-mcore.c: Likewise.\r
2642         * elf32-ppc.c: Likewise.\r
2643         * elf32-sh.c: Likewise.\r
2644         * elf32-v850.c: Likewise.\r
2645         * elf64-alpha.c: Likewise.\r
2646         * elf64-sparc.c: Likewise.\r
2647         * elflink.c: Likewise.\r
2648         * elflink.h: Likewise.\r
2649         * elf-m10200.c: Likewise.\r
2650         * elf-m10300.c: Likewise.\r
2651         * elfxx-ia64.c: Likewise.\r
2652 \r
2653         * aoutx.h: Fix formatting.\r
2654         * bfd.c: Likewise.\r
2655         * bfd-in2.h: Likewise.\r
2656         * bfd-in.h: Likewise.\r
2657         * cpu-i386.c: Likewise.\r
2658         * cpu-m68hc11.c: Likewise.\r
2659         * dwarf2.c: Likewise.\r
2660         * elf64-x86-64.c: Likewise.\r
2661         * format.c: Likewise.\r
2662         * freebsd.h: Likewise.\r
2663         * hash.c: Likewise.\r
2664         * hp300hpux.c: Likewise.\r
2665         * hppabsd-core.c: Likewise.\r
2666         * hpux-core.c: Likewise.\r
2667 \r
2668 2001-01-22  Bo Thorsen  <bo@suse.de>\r
2669 \r
2670         * elf64-x86-64.c: Added PIC support for X86-64.\r
2671         (elf64_x86_64_link_hash_newfunc): Function added.\r
2672         (elf64_x86_64_link_hash_table_create): Likewise.\r
2673         (elf64_x86_64_check_relocs): Likewise.\r
2674         (elf64_x86_64_gc_mark_hook): Likewise.\r
2675         (elf64_x86_64_gc_sweep_hook): Likewise.\r
2676         (elf64_x86_64_adjust_dynamic_symbol): Likewise.\r
2677         (elf64_x86_64_size_dynamic_sections): Likewise.\r
2678         (elf64_x86_64_discard_copies): Likewise.\r
2679         (elf64_x86_64_finish_dynamic_symbol): Likewise.\r
2680         (elf64_x86_64_finish_dynamic_sections): Likewise.\r
2681         (elf64_x86_64_relocate_section): Add relocation of PIC sections.\r
2682 \r
2683 2001-01-21  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>\r
2684 \r
2685         * Makefile.am (install-data-local): Make use of $(DESTDIR).\r
2686         * Makefile.in: Regenerate.\r
2687 \r
2688 2001-01-21  Kazu Hirata  <kazu@hxi.com>\r
2689 \r
2690         * coff-a29k.c: Fix formatting.\r
2691 \r
2692 2001-01-19  H.J. Lu  <hjl@gnu.org>\r
2693 \r
2694         * elf32-i386.c (elf_i386_check_relocs): Report files with bad\r
2695         relocation section names.\r
2696         (elf_i386_relocate_section): Report files with bad relocation\r
2697         section names and return false.\r
2698 \r
2699 2001-01-17  Bo Thorsen  <bo@suse.de>\r
2700 \r
2701         * targets.c: Alphabetize list of xvecs.\r
2702 \r
2703 2001-01-14  Alan Modra  <alan@linuxcare.com.au>\r
2704 \r
2705         * config.bfd: Add linux target variant for elfxx-hppa.\r
2706         * configure.in: Recognize bfd_elf32_hppa_linux_vec and\r
2707         bfd_elf64_hppa_linux_vec.\r
2708         * configure: Regenerate.\r
2709         * elf64-hppa.c: Include elf64-target.h again to support linux\r
2710         target variant.\r
2711         (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.\r
2712         * elf32-hppa.c: Include elf32-target.h again to support linux\r
2713         target variant.\r
2714         (elf32_hppa_post_process_headers): New function.\r
2715         (elf_backend_post_process_headers): Define.\r
2716         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and\r
2717         bfd_elf32_hppa_linux_vec.\r
2718 \r
2719         * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,\r
2720         and data_segment_base fields.\r
2721         (elf32_hppa_link_hash_table_create ): Init them.\r
2722         (elf32_hppa_check_relocs): Update comments.\r
2723         (hppa_record_segment_addr): New function.\r
2724         (elf32_hppa_relocate_section): Call it.\r
2725         (final_link_relocate): Handle R_PARISC_SEGREL32.\r
2726         (elf32_hppa_final_link): New function.\r
2727         (bfd_elf32_bfd_final_link): Define to call it.\r
2728         (hppa_unwind_entry_compare): New function.\r
2729         * cache.c (bfd_open_file): Create files in write+read mode.\r
2730 \r
2731         * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for\r
2732         SEGREL32 and numerous other relocs.  Change duplicate\r
2733         R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.\r
2734 \r
2735         * opncls.c (bfd_fdopenr): Add parens like the comment says around\r
2736         O_ACCMODE.\r
2737 \r
2738         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create\r
2739         .plt entries for DT_INIT and DT_FINI.\r
2740         (elf32_hppa_finish_dynamic_sections): Remove special handling of\r
2741         DT_INIT and DT_FINI.\r
2742 \r
2743         * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit\r
2744         offsets for stub .plt access if wide mode.  Check offset in range.\r
2745 \r
2746 2001-01-13  Nick Clifton  <nickc@redhat.com>\r
2747 \r
2748         * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank\r
2749         line.\r
2750 \r
2751         * coffcode.h (coff_canonicalize_reloc): Remove spurious blank\r
2752         line.\r
2753 \r
2754 2001-01-12  Alan Modra  <alan@linuxcare.com.au>\r
2755 \r
2756         * configure.in ([bfd_elf64_x86_64_vec]): Set target64.\r
2757         * configure: Regenerate.\r
2758 \r
2759 2001-01-11  Peter Targett  <peter.targett@arccores.com>\r
2760 \r
2761         * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,\r
2762         bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.\r
2763         * cpu-arc.c (arch_info_struct): Add entries for variants.\r
2764         (bfd_arc_arch) Set default to bfd_mach_arc_5.\r
2765         (arc_get_mach) Don't assume machine names prefixed arc- before\r
2766         testing.\r
2767         * elf32-arc.c (arc_elf_object_p): Set machine number based on new\r
2768         selections.\r
2769         (arc_elf_final_write_processing) Likewise.\r
2770         (ELF_MACHINE_CODE) Use EM_ARC.\r
2771 \r
2772 2001-01-10  Nick Clifton  <nickc@redhat.com>\r
2773 \r
2774         * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".\r
2775 \r
2776 2001-01-07  Philip Blundell  <philb@gnu.org>\r
2777 \r
2778         * README: Replace `bug-gnu-utils@gnu.org' with\r
2779         `bug-binutils@gnu.org'.\r
2780 \r
2781 2001-01-04  Kazu Hirata  <kazu@hxi.com>\r
2782 \r
2783         * som.c: Fix formatting.\r
2784 \r
2785 2001-01-03  Kazu Hirata  <kazu@hxi.com>\r
2786 \r
2787         * ecoffswap.h: Fix formatting.\r
2788         * elf-bfd.h: Likewise.\r
2789         * elfarm-nabi.c: Likewise.\r
2790         * elfarm-oabi.c: Likewise.\r
2791         * elfcode.h: Likewise.\r
2792         * elfcore.h: Likewise.\r
2793         * elflink.c: Likewise.\r
2794         * elflink.h: Likewise.\r
2795         * elfxx-ia64.c: Likewise.\r
2796         * elfxx-target.h: Likewise.\r
2797         * libbfd.c: Likewise\r
2798         * linker.c: Likewise.\r
2799         * lynx-core.c: Likewise.\r
2800 \r
2801 2001-01-02  Kazu Hirata  <kazu@hxi.com>\r
2802 \r
2803         * pc532-mach.c: Fix formatting.\r
2804         * pe-arm.c: Likewise.\r
2805         * pe-i386.c: Likewise.\r
2806         * pe-mips.c: Likewise.\r
2807         * pe-ppc.c: Likewise.\r
2808         * pe-sh.c: Likewise.\r
2809         * pei-mips.c: Likewise.\r
2810         * pei-sh.c: Likewise.\r
2811         * peicode.h: Likewise.\r
2812         * ppcboot.c: Likewise.\r
2813         * ptrace-core.c: Likewise.\r
2814 \r
2815 2001-01-01  Kazu Hirata  <kazu@hxi.com>\r
2816 \r
2817         * reloc.c: Fix formatting.\r
2818         * riscix.c: Likewise.\r
2819         * rs6000-core.c: Likewise.\r
2820         * xcoff-target.h: Likewise.\r
2821 \r
2822 2000-12-29  Hans-Peter Nilsson  <hp@bitrange.com>\r
2823 \r
2824         * elfcode.h (elf_object_p): Also restore the bfd mach field on\r
2825         error, by calling bfd_default_set_arch_mach with incoming\r
2826         values.\r
2827 \r
2828 2000-12-26  Kazu Hirata  <kazu@hxi.com>\r
2829 \r
2830         * vaxnetbsd.c: Fix formatting.\r
2831         * versados.c: Likewise.\r
2832         * vms-gsd.c: Likewise.\r
2833         * vms-hdr.c: Likewise.\r
2834         * vms-misc.c: Likewise.\r
2835 \r
2836 2000-12-25  Alexandre Oliva  <aoliva@redhat.com>\r
2837 \r
2838         * archive.c (coff_write_armap): Don't write more than symbol_count\r
2839         `archive_member_file_ptr's.\r
2840 \r
2841 2000-12-25  Kazu Hirata  <kazu@hxi.com>\r
2842 \r
2843         * vms-tir.c: Fix formatting.\r
2844 \r
2845 2000-12-23  Kazu Hirata  <kazu@hxi.com>\r
2846 \r
2847         * vms.c: Fix formatting.\r
2848         * vms.h: Likewise.\r
2849 \r
2850 2000-12-21  Santeri Paavolainen <santtu@ssh.com>\r
2851 \r
2852         * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.\r
2853 \r
2854         * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.\r
2855 \r
2856         * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)\r
2857         arithmetic.\r
2858 \r
2859         * elf32-fr30.c: Add casts to avoid (void *) arithmetic.\r
2860 \r
2861         * coffcode.h (styp_to_sec_flags): Add empty statement after label.\r
2862 \r
2863 2000-12-21  Richard Sandiford  <rsandifo@redhat.com>\r
2864 \r
2865         * libbfd.c (bfd_get_bits): Added\r
2866         (bfd_put_bits): Likewise\r
2867         * bfd-in.h: Declared the above.\r
2868         * bfd-in2.h: Regenerated.\r
2869 \r
2870 2000-12-20  Kazu Hirata  <kazu@hxi.com>\r
2871 \r
2872         * targets.c: Fix formatting.\r
2873         * tekhex.c: Likewise.\r
2874         * trad-core.c: Likewise.\r
2875 \r
2876 2000-12-19  Kazu Hirata  <kazu@hxi.com>\r
2877 \r
2878         * sco5-core.c: Fix formatting.\r
2879         * section.c: Likewise.\r
2880         * sparclinux.c: Likewise.\r
2881         * sparclynx.c: Likewise.\r
2882         * sparcnetbsd.c: Likewise.\r
2883         * srec.c: Likewise.\r
2884         * stabs.c: Likewise.\r
2885         * stab-syms.c: Likewise.\r
2886         * sunos.c: Likewise.\r
2887         * syms.c: Likewise.\r
2888         * sysdep.h: Likewise.\r
2889 \r
2890 2000-12-18  Nick Clifton  <nickc@redhat.com>\r
2891 \r
2892         * coff-arm.c (EXTRA_S_FLAGS): Only define if not already\r
2893         defined.\r
2894         * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.\r
2895         * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.\r
2896 \r
2897 2000-12-18  Nick Clifton  <nickc@redhat.com>\r
2898 \r
2899         * vms-misc.c (_bfd_vms_get_record): Add default case to\r
2900         file_format switch.\r
2901 \r
2902 2000-12-15  Miloslav Trmac <mitr@volny.cz>\r
2903 \r
2904         * elfcore.h (elf_core_file_p): Move to the start of the program\r
2905         headers before attempting to read them.\r
2906 \r
2907 2000-12-14  Kazu Hirata  <kazu@hxi.com>\r
2908 \r
2909         * peigen.c: Fix formatting.\r
2910         * som.c: Likewise.\r
2911         * som.h: Likewise.\r
2912 \r
2913 2000-12-13  Kazu Hirata  <kazu@hxi.com>\r
2914 \r
2915         * peigen.c: Fix formatting.\r
2916 \r
2917 2000-12-12  Jim Wilson  <wilson@redhat.com>\r
2918 \r
2919         *  elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.\r
2920 \r
2921 2000-12-08  Mark Salter  <msalter@redhat.com>\r
2922 \r
2923         * binary.c (binary_set_section_contents): Ignore sections\r
2924         with zero size.\r
2925 \r
2926 2000-12-12  Kazu Hirata  <kazu@hxi.com>\r
2927 \r
2928         * m68klinux.c: Fix formatting.\r
2929         * m68knetbsd.c: Likewise.\r
2930         * mipsbsd.c: Likewise.\r
2931         * netbsd-core.c: Likewise.\r
2932         * netbsd.h: Likewise.\r
2933         * newsos3.c: Likewise.\r
2934         * nlm32-alpha.c: Likewise.\r
2935         * nlm32-i386.c: Likewise.\r
2936         * nlm32-ppc.c: Likewise.\r
2937         * nlm32-sparc.c: Likewise.\r
2938         * nlmcode.h: Likewise.\r
2939         * nlmswap.h: Likewise.\r
2940         * nlm-target.h: Likewise.\r
2941         * ns32knetbsd.c: Likewise.\r
2942 \r
2943 2000-12-10  Fred Fish  <fnf@be.com>\r
2944 \r
2945         * elflink.h (elf_link_output_extsym): Don't complain about undefined\r
2946         symbols in shared objects if allow_shlib_undefined is true.\r
2947 \r
2948 2000-12-12  Nick Clifton  <nickc@redhat.com>\r
2949 \r
2950         * cpu-sh.c: Fix formattng.\r
2951         * elf.c: Fix formattng.\r
2952         * elf32-mips.c: Fix formattng.\r
2953         * elf32-sh.c: Fix formattng.\r
2954         * elf64-alpha.c: Fix formattng.\r
2955 \r
2956 2000-12-09  Nick Clifton  <nickc@redhat.com>\r
2957 \r
2958         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass\r
2959         dwarf2_find_line_info as last parameter to invocation of\r
2960         _bfd_dwarf2_find_nearest_line.\r
2961         * elf32-arm.h (elf32_arm_find_nearest_line): Pass\r
2962         dwarf2_find_line_info as last parameter to invocation of\r
2963         _bfd_dwarf2_find_nearest_line.\r
2964 \r
2965 2000-12-08  Mark Elbrecht  <snowball3@bigfoot.com>\r
2966 \r
2967         * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...\r
2968         (BFD_LIBS): ...to here.\r
2969         (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...\r
2970         (BFD_LIBS_CFILES): ...to here.\r
2971         * Makefile.in: Regenerate.\r
2972         * configure.in: Remove dwarf.lo from the elf shell variable.\r
2973         * configure: Regenerate.\r
2974         * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.\r
2975         * libcoff.h: Regenerate.\r
2976         * coffgen.c (coff_find_nearest_line): Call\r
2977         _bfd_dwarf2_find_nearest_line.\r
2978         * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update\r
2979         accordingly.\r
2980         (read_abbrevs): Likewise\r
2981         (decode_line_info): Likewise.\r
2982         (parse_comp_unit): Likewise.\r
2983         (comp_unit_find_nearest_line): Likewise.\r
2984         * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.\r
2985         * libbfd.h: Regenerate.\r
2986         * elf.c (_bfd_elf_find_nearest_line): Update call.\r
2987         * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.\r
2988         * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.\r
2989         * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.\r
2990         (sec_to_styp_flags): Use them. Handle DWARF2 sections.\r
2991         (styp_to_sec_flags): Handle DWARF2 sections.\r
2992         * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call\r
2993         to _bfd_find_nearest_line.\r
2994         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to\r
2995         call to _bfd_find_nearest_line.\r
2996 \r
2997 2000-12-08  Kazu Hirata  <kazu@hxi.com>\r
2998 \r
2999         * coffgen.c: Fix formatting.\r
3000         * elf-m10300.c: Likewise.\r
3001         * elf32-i386.c: Likewise.\r
3002         * elf32-i960.c: Likewise.\r
3003         * elf32-m68k.c: Likewise.\r
3004         * elf32-mcore.c: Likewise.\r
3005         * elf32-ppc.c: Likewise.\r
3006         * elf32-sh.c: Likewise.\r
3007         * elf32-sparc.c: Likewise.\r
3008         * elf32-v850.c: Likewise.\r
3009         * elf64-alpha.c: Likewise.\r
3010         * elf64-hppa.c: Likewise.\r
3011         * elf64-mips.c: Likewise.\r
3012         * elf64-sparc.c: Likewise.\r
3013 \r
3014 2000-12-07  Kazu Hirata  <kazu@hxi.com>\r
3015 \r
3016         * elf32-ppc.c: Fix formatting.\r
3017         * elf64-x86-64.c: Likewise.\r
3018 \r
3019 2000-12-06  Ulf Carlsson  <ulfc@engr.sgi.com>\r
3020 \r
3021         From  Ralf Baechle  <ralf@gnu.org>\r
3022 \r
3023         * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit\r
3024         BFDs containing no sections or empty .text, .data or .bss sections\r
3025         to be merged, regardless of their flags.\r
3026 \r
3027 2000-12-06  Kazu Hirata  <kazu@hxi.com>\r
3028 \r
3029         * elf32-m32r.c: Fix formatting.\r
3030         * elf32-m68hc11.c: Likewise.\r
3031         * elf32-m68hc12.c: Likewise.\r
3032         * elf32-m68k.c: Likewise.\r
3033         * elf32-mcore.c: Likewise.\r
3034         * elf32-pj.c: Likewise.\r
3035         * elf32-ppc.c: Likewise.\r
3036 \r
3037 2000-12-05  Kazu Hirata  <kazu@hxi.com>\r
3038 \r
3039         * elf32-fr30.c: Fix formatting.\r
3040         * elf32-hppa.c: Likewise.\r
3041         * elf32-i370.c: Likewise.\r
3042         * elf32-i386.c: Likewise.\r
3043         * elf32-i860.c: Likewise.\r
3044         * elf32-i960.c: Likewise.\r
3045 \r
3046 2000-12-03  Kazu Hirata  <kazu@hxi.com>\r
3047 \r
3048         * elf32-arm.h: Fix formatting.\r
3049         * elf32-avr.c: Likewise.\r
3050         * elf32-cris.c: Likewise.\r
3051         * elf32-d10v.c: Likewise.\r
3052         * elf32-d30v.c: Likewise.\r
3053         * elf-hppa.h: Likewise.\r
3054         * elf-m10200.c: Likewise.\r
3055         * elf-m10300.c: Likewise.\r
3056 \r
3057 2000-12-01  Chris Demetriou  <cgd@sibyte.com>\r
3058 \r
3059         * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and\r
3060         bfd_mach_mips32_4k.  Update FIXME comment.\r
3061         * archures.c (bfd_mach_mips32): New constant.\r
3062         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to\r
3063         the latter, renumber it.\r
3064         * bfd-in2.h (bfd_mach_mips32): New constant.\r
3065         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to\r
3066         the latter, renumber it.\r
3067         * cpu-mips.c (I_mips32): New constant.\r
3068         (I_mips4K, I_mips32_4k): Rename the former to the latter.\r
3069         (arch_info_struct): Add bfd_mach_mips32 entry, replace\r
3070         bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.\r
3071         * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.\r
3072         (elf_mips_mach): Likewise.  Also, replace E_MIPS_MACH_MIPS32\r
3073         with E_MIPS_MACH_MIPS32_4K.\r
3074         (_bfd_mips_elf_final_write_processing): Replace\r
3075         bfd_mach_mips4K with bfd_mach_mips32_4k case, add\r
3076         bfd_mach_mips32 case.\r
3077         (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing\r
3078         comparison with support for MIPS32.\r
3079         (_bfd_mips_elf_print_private_bfd_data): Print ISA name for\r
3080         MIPS32.\r
3081 \r
3082         * aoutx.h (NAME(aout,machine_type)): Add cases for\r
3083         bfd_mach_mips5 and bfd_mach_mips64.\r
3084         * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.\r
3085         * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.\r
3086         * cpu_mips.c (I_mips5, I_mips64): New definitions.\r
3087         (arch_info_struct): Add entries for bfd_mach_mips5 and\r
3088         bfd_mach_mips64.\r
3089         * elf32-mips.c (elf_mips_isa, elf_mips_mach,\r
3090         _bfd_mips_elf_print_private_bfd_data): Add cases for\r
3091         E_MIPS_ARCH_5 and E_MIPS_ARCH_64.\r
3092         (_bfd_mips_elf_final_write_processing): Add cases for\r
3093         bfd_mach_mips5 and bfd_mach_mips64.\r
3094 \r
3095         * aoutx.h (NAME(aout,machine_type)): Add a\r
3096         bfd_mach_mips_sb1 case.\r
3097         * archures.c (bfd_mach_mips_sb1): New constant.\r
3098         * bfd-in2.h (bfd_mach_mips_sb1): New constant.\r
3099         * cpu-mips.c (I_sb1): New constant.\r
3100         (arch_info_struct): Add entry for bfd_mach_mips_sb1.\r
3101         * elf32-mips.c (elf_mips_mach): Add case for\r
3102         E_MIPS_MACH_SB1.\r
3103         (_bfd_mips_elf_final_write_processing): Add case for\r
3104         bfd_mach_mips_sb1.\r
3105 \r
3106 2000-12-01  Joel Sherrill <joel@OARcorp.com>\r
3107 \r
3108         * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.\r
3109         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.\r
3110         (sparc*-*-rtems*): Switched from a.out to ELF.\r
3111 \r
3112 2000-11-30  Jan Hubicka  <jh@suse.cz>\r
3113 \r
3114         * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo\r
3115         BFD64_BACKENDS_CFILES): Add elf64-x86-64.c\r
3116         (elf64-x86-64.lo): Add dependencies.\r
3117         * archures.c (DESCRIPTION): Add bfd_mach_x86_64,\r
3118         bfd_mach_x86_64_intel_syntax.\r
3119         * elf.c (prep_headers): Use EM_x86_64 for 64bit output.\r
3120         * config.bfd (x86_64): Add.\r
3121         * configure.in: Add support for bfd_elf64_x86_64_vec.\r
3122         * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.\r
3123         (bfd_i386_arch, i8086_ar): Link in.\r
3124         * elf64-x86-64.c: New file.\r
3125         * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.\r
3126         * targets.c (bfd_elf64_x86_64_vec): Add.\r
3127         (bfd_target_vect): Add bfd_elf64_x86_64_vec.\r
3128 \r
3129 2000-11-30  Kazu Hirata  <kazu@hxi.com>\r
3130 \r
3131         * xcofflink.c: Fix formatting.\r
3132 \r
3133 2000-11-28  Kazu Hirata  <kazu@hxi.com>\r
3134 \r
3135         * aoutx.h: Fix formatting.\r
3136         * bfd-in.h: Likewise.\r
3137         * bfd-in2.h: Likewise.\r
3138         * cache.c: Likewise.\r
3139         * cisco-core.c: Likewise.\r
3140         * coff64-rs6000.c: Likewise.\r
3141         * coffcode.h: Likewise.\r
3142         * coffswap.h: Likewise.\r
3143         * corefile.c: Likewise.\r
3144         * elf32-mips.c: Likewise.\r
3145 \r
3146 2000-11-27  Kazu Hirata  <kazu@hxi.com>\r
3147 \r
3148         * aout-adobe.c: Fix formatting.\r
3149         * coff64-rs6000.c: Likewise.\r
3150         * coffgen.c: Likewise.\r
3151         * cofflink.c: Likewise.\r
3152 \r
3153 2000-11-27  Philip Blundell  <pb@futuretv.com>\r
3154 \r
3155         * libcoff-in.h (coff_tdata): Add `strings_written' flag.\r
3156         (obj_coff_strings_written): New accessor macro for above.\r
3157         * libcoff.h: Regenerate.\r
3158         * cofflink.c (_bfd_coff_final_link): Say that we wrote the\r
3159         strings.\r
3160         * coffcode.h (coff_write_object_contents): No need to write out\r
3161         the string table if it's already been done.\r
3162 \r
3163 2000-11-22  Philip Blundell  <pb@futuretv.com>\r
3164 \r
3165         * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to\r
3166         weak undefined symbols.\r
3167 \r
3168 2000-11-24  Nick Clifton  <nickc@redhat.com>\r
3169 \r
3170         * archures.c (bfd_mach_arm_5TE): Define.\r
3171         (bfd_mach_arm+XScale): Define.\r
3172         * bfd-in2.h: Regenerate.\r
3173 \r
3174         * coff-arm.c (coff_arm_reloc_type_lookup): Accept\r
3175         BFD_RELOC_ARM_PCREL_BLX.\r
3176 \r
3177         * coffcode.h (coff_set_flags): Set flags for 5t, 5te and\r
3178         XScale machine numbers.\r
3179 \r
3180         * config.bfd (xscale-elf): Add target.\r
3181         (xscale-coff): Add target.\r
3182 \r
3183         * cpu-arm.c: Add xscale machine name.\r
3184         Add v5t, v5te and XScale machine numbers.\r
3185 \r
3186 2000-11-23  Kazu Hirata  <kazu@hxi.com>\r
3187 \r
3188         * aix386-core.c: Fix formatting.\r
3189 \r
3190 2000-11-22  Jim Wilson  <wilson@redhat.com>\r
3191 \r
3192         * coff-ia64.c (howto_table): Use EMPTY_HOWTO.\r
3193         (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.\r
3194         * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.\r
3195         (ins_imms_scaled): Initialize sign_bit at function entry.\r
3196         (elf64_ia64_operands): Add missing initializers.\r
3197         * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,\r
3198         elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,\r
3199         elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,\r
3200         elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,\r
3201         elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused\r
3202         parameters.\r
3203         (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,\r
3204         and free_extsyms at function entry.\r
3205         (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.\r
3206         (elfNN_ia64_create_dynamic_sections): Delete unused local h.\r
3207         (get_got): Delete unused local srel.\r
3208         (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.\r
3209         (elfNN_ia64_relocate_section): Delete unused local dynindx.\r
3210 \r
3211 2000-11-21  Kazu Hirata  <kazu@hxi.com>\r
3212 \r
3213         * coff-a29k.c: Fix formatting.\r
3214         * coff-h8500.c: Likewise.\r
3215         * coff-i960.c: Likewise.\r
3216         * coff-ppc.c: Likewise.\r
3217         * coff-rs6000.c: Likewise.\r
3218         * coff-stgo32.c: Likewise.\r
3219         * coff-tic54x.c: Likewise.\r
3220         * coff-w65.c: Likewise.\r
3221         * cpu-h8500.c: Likewise.\r
3222         * cpu-hppa.c: Likewise.\r
3223         * cpu-ns32k.c: Likewise.\r
3224         * ecoff.c: Likewise.\r
3225         * ecofflink.c: Likewise.\r
3226 \r
3227 2000-11-21  Nick Clifton  <nickc@redhat.com>\r
3228 \r
3229         * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and\r
3230         remove possibility of infinite loop.\r
3231 \r
3232 2000-11-20  Kazu Hirata  <kazu@hxi.com>\r
3233 \r
3234         * aix386-core.c: Fix formatting.\r
3235         * aout-adobe.c: Likewise.\r
3236         * aout-arm.c: Likewise.\r
3237         * aout-encap.c: Likewise.\r
3238         * aout-ns32k.c: Likewise.\r
3239         * aout-target.h: Likewise.\r
3240         * aout-tic30.c: Likewise.\r
3241         * aoutf1.h: Likewise.\r
3242         * aoutx.h: Likewise.\r
3243         * archive.c: Likewise.\r
3244         * bfd-in.h: Likewise.\r
3245         * bfd-in2.h: Likewise.\r
3246         * bfd.c: Likewise.\r
3247         * bout.c: Likewise.\r
3248 \r
3249 2000-11-17  H.J. Lu  <hjl@gnu.org>\r
3250 \r
3251         * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create\r
3252         pltoff entries for DT_INIT and DT_FINI.\r
3253         (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.\r
3254         (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI\r
3255         entries.\r
3256 \r
3257 2000-11-16  Richard Henderson  <rth@redhat.com>\r
3258 \r
3259         * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.\r
3260         (allocate_dynrel_entries): Likewise.\r
3261         (elfNN_ia64_relocate_section): Likewise.  Set REL addends correctly.\r
3262         (set_pltoff_entry): Likewise.\r
3263         (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB\r
3264         (elfNN_ia64_reloc_type_lookup): Likewise.\r
3265         (elfNN_ia64_install_value): Likewise.\r
3266         (elfNN_ia64_relocate_section): Likewise.\r
3267         * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.\r
3268         (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.\r
3269 \r
3270 2000-11-16  Kazu Hirata  <kazu@hxi.com>\r
3271 \r
3272         * cpu-a29k.c: Fix formatting.\r
3273         * cpu-alpha.c: Likewise.\r
3274         * cpu-arm.c: Likewise.\r
3275         * cpu-avr.c: Likewise.\r
3276         * cpu-d10v.c: Likewise.\r
3277         * cpu-h8500.c: Likewise.\r
3278         * cpu-hppa.c: Likewise.\r
3279         * cpu-i370.c: Likewise.\r
3280         * cpu-i386.c: Likewise.\r
3281         * cpu-i960.c: Likewise.\r
3282         * cpu-ia64-opc.c: Likewise.\r
3283         * cpu-ia64.c: Likewise.\r
3284         * cpu-m32r.c: Likewise.\r
3285         * cpu-m68hc11.c: Likewise.\r
3286         * cpu-m68hc12.c: Likewise.\r
3287         * cpu-m68k.c: Likewise.\r
3288         * cpu-m88k.c: Likewise.\r
3289         * cpu-mips.c: Likewise.\r
3290         * cpu-ns32k.c: Likewise.\r
3291         * cpu-pj.c: Likewise.\r
3292         * cpu-powerpc.c: Likewise.\r
3293         * cpu-sh.c: Likewise.\r
3294         * cpu-sparc.c: Likewise.\r
3295         * cpu-tic54x.c: Likewise.\r
3296         * cpu-v850.c: Likewise.\r
3297         * cpu-vax.c: Likewise.\r
3298         * cpu-w65.c: Likewise.\r
3299         * cpu-we32k.c: Likewise.\r
3300         * cpu-z8k.c: Likewise.\r
3301         * dwarf1.c: Likewise.\r
3302         * dwarf2.c: Likewise.\r
3303 \r
3304 2000-11-15  Kazu Hirata  <kazu@hxi.com>\r
3305 \r
3306         * coff-arm.c: Fix formatting.\r
3307         * coff-ppc.c: Likewise.\r
3308         * coff-rs6000.c: Likewise.\r
3309         * coff-sh.c: Likewise.\r
3310         * coff-sparc.c: Likewise.\r
3311         * coff-tic30.c: Likewise.\r
3312         * coff-tic54x.c: Likewise.\r
3313         * coff-tic80.c: Likewise.\r
3314         * coff-w65.c: Likewise.\r
3315         * coff-we32k.c: Likewise.\r
3316         * coff-z8k.c: Likewise.\r
3317 \r
3318 2000-11-15  Richard Henderson  <rth@redhat.com>\r
3319 \r
3320         * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc\r
3321         section with the same ALLOC|LOAD flags as the source section.\r
3322 \r
3323 2000-11-14  Jakub Jelinek  <jakub@redhat.com>\r
3324 \r
3325         * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used\r
3326         by STO_ALPHA constants.\r
3327 \r
3328 2000-11-14  Kazu Hirata  <kazu@hxi.com>\r
3329 \r
3330         * coff-pmac.c: Fix formatting.\r
3331         * coff-ppc.c: Likewise.\r
3332 \r
3333 2000-11-13  H.J. Lu  <hjl@gnu.org>\r
3334 \r
3335         * elflink.h (elf_link_add_object_symbols): Also add indirect\r
3336         symbols for common symbols with the default version.\r
3337 \r
3338 2000-11-09  Philip Blundell  <pb@futuretv.com>\r
3339 \r
3340         * section.c (STD_SECTION): Set gc_mark flag.\r
3341 \r
3342 2000-11-11  Kazu Hirata  <kazu@hxi.com>\r
3343 \r
3344         * coff-i960.c: Likewise.\r
3345         * coff-m68k.c: Likewise.\r
3346         * coff-m88k.c: Likewise.\r
3347         * coff-mcore.c: Likewise.\r
3348         * coff-mips.c: Likewise.\r
3349 \r
3350 2000-11-11  Bernd Schmidt  <bernds@cygnus.co.uk>\r
3351 \r
3352         * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.\r
3353 \r
3354 2000-11-10  Kazu Hirata  <kazu@hxi.com>\r
3355 \r
3356         * coff-h8300.c: Fix formatting.\r
3357         * coff-h8500.c: Likewise.\r
3358         * coff-i386.c: Likewise.\r
3359         * coff-i860.c: Likewise.\r
3360         * coff-i960.c: Likewise.\r
3361         * coff-ia64.c: Likewise.\r
3362 \r
3363 2000-11-09  Kazu Hirata  <kazu@hxi.com>\r
3364 \r
3365         * archive.c: Fix formatting.\r
3366         * archures.c: Likewise.\r
3367 \r
3368 2000-11-07  Richard Henderson  <rth@redhat.com>\r
3369 \r
3370         * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.\r
3371         Set it before bfd_elf64_bfd_final_link call.  Use it after the call.\r
3372         * section.c (bfd_set_section_contents): Call memcpy if\r
3373         section->contents set and location not equal to contents plus offset.\r
3374 \r
3375 2000-11-08  Kazu Hirata  <kazu@hxi.com>\r
3376 \r
3377         * bfd-in.h: Fix formatting.\r
3378         * bfd-in2.h: Likewise.\r
3379         * bfd.c: Likewise.\r
3380         * binary.c: Likewise.\r
3381         * bout.c: Likewise.\r
3382         * coff-a29k.c: Likewise.\r
3383         * coff-alpha.c: Likewise.\r
3384         * coff-apollo.c: Likewise.\r
3385         * coff-aux.c: Likewise.\r
3386 \r
3387 2000-11-07  Kazu Hirata  <kazu@hxi.com>\r
3388 \r
3389         * aix386-core.c: Fix formatting.\r
3390         * aoutf1.h: Likewise.\r
3391         * aoutx.h: Likewise.\r
3392         * archures.c: Likewise.\r
3393         * armnetbsd.c: Likewise.\r
3394 \r
3395 2000-11-07  Alan Modra  <alan@linuxcare.com.au>\r
3396 \r
3397         * coff-h8300.c (special): Adjust reloc address.\r
3398 \r
3399 2000-11-06  Steve Ellcey <sje@cup.hp.com>\r
3400 \r
3401         * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines\r
3402         to differentiate elf32 and elf64 on ia64.\r
3403         * bfd-in2.h: Regenerate.\r
3404         * config.bfd: Add target for "ia64*-*-hpux*".\r
3405         * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.\r
3406         * configure: Regenerate.\r
3407         * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.\r
3408         * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.\r
3409 \r
3410         * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects\r
3411         from elfxx-ia64.c.  Add depenency rules for making elf32-ia64.lo.\r
3412         * Makefile.in: Regnerate.\r
3413         * elf64-ia64.c: Deleted.\r
3414         * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.\r
3415 \r
3416 2000-11-06  Kazu Hirata  <kazu@hxi.com>\r
3417 \r
3418         * aout-adobe.c: Fix formatting.\r
3419         * aout-arm.c: Likewise.\r
3420         * aout-cris.c: Likewise.\r
3421         * aout-encap.c: Likewise.\r
3422         * aout-ns32k.c: Likewise.\r
3423         * aout-target.h: Likewise.\r
3424         * aout-tic30.c: Likewise.\r
3425 \r
3426 2000-11-05  Philip Blundell  <philb@gnu.org>\r
3427 \r
3428         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit\r
3429         BFDs containing no sections to be merged, regardless of their flags.\r
3430 \r
3431 2000-11-04  Philip Blundell  <philb@gnu.org>\r
3432 \r
3433         * elf32-arm.h (elf32_arm_relocate_section): Suppress error message\r
3434         if a relocation for an undefined symbol also results in an\r
3435         overflow.\r
3436 \r
3437 2000-11-06  Christopher Faylor <cgf@cygnus.com>\r
3438 \r
3439         * config.bfd: Add support for Sun Chorus.\r
3440 \r
3441 2000-11-05  David O'Brien  <obrien@FreeBSD.org>\r
3442 \r
3443         * configure.in: Recognize alpha-*-freebsd*.\r
3444         * configure: Regenerate.\r
3445 \r
3446 2000-11-02  Luciano Gemme <ishitawa@yahoo.com>\r
3447 \r
3448         * srec.c (CHUNK): Rename to DEFAULT_CHUNK.\r
3449         (Chunk): New global variable set by a parameter in objcopy.c.\r
3450         (S3Forced): New global variable set by a parameter in\r
3451         objcopy.c.\r
3452         (srec_set_section_contents): If S3Forced is true, always generate\r
3453         S3 records.\r
3454         (srec_write_section): Use 'Chunk' to limit maximum length of S\r
3455         records.\r
3456 \r
3457 2000-11-02  Per Lundberg  <plundis@chaosdev.org>\r
3458 \r
3459         * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.\r
3460         * Makefile.in: Regenerate.\r
3461         * bfd-in2.h: Regenerate.\r
3462         * po/bfd.pot: Regenerate.\r
3463 \r
3464 2000-10-31  Philip Blundell  <philb@gnu.org>\r
3465 \r
3466         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle\r
3467         EF_SOFT_FLOAT if it is defined.\r
3468 \r
3469 2000-10-27  Philip Blundell  <philb@gnu.org>\r
3470 \r
3471         * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse\r
3472         attempts to mix PIC code with non-PIC, just mark the output as\r
3473         being position dependent.\r
3474         (elf32_arm_merge_private_bfd_data): Likewise.  Print an error\r
3475         message for EF_SOFT_FLOAT mismatches.  Display diagnostics for\r
3476         all mismatches, not just the first one.\r
3477 \r
3478 2000-10-25  Chris Demetriou  <cgd@sibyte.com>\r
3479 \r
3480         * ieee.c (ieee_archive_p): Plug one of many possible\r
3481         memory leaks in error handling.\r
3482 \r
3483 2000-10-20  Jakub Jelinek  <jakub@redhat.com>\r
3484 \r
3485         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,\r
3486         elf32_sparc_object_p, elf32_sparc_final_write_processing):\r
3487         Support v8plusb.\r
3488         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,\r
3489         sparc64_elf_object_p): Support v9b.\r
3490         * archures.c: Declare v8plusb and v9b machines.\r
3491         * bfd-in2.h: Ditto.\r
3492         * cpu-sparc.c: Ditto.\r
3493 \r
3494 2000-10-16  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>\r
3495 \r
3496         * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location\r
3497         of a GOT reloc.\r
3498 \r
3499         * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.\r
3500         (SYMBOL_CALLS_LOCAL): New macro.\r
3501         (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.\r
3502         (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.\r
3503         (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.\r
3504         (ppc_elf_relocate_section): Use flag variable to determine\r
3505         whether the relocation refers to a local symbol.\r
3506         Test whether a PLTREL24 reloc will produce a reloc by looking\r
3507         to see whether a PLT entry was made.\r
3508 \r
3509 2000-10-14  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>\r
3510 \r
3511         * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT\r
3512         entries that could serve as a definition for a weak symbol.\r
3513 \r
3514 2000-10-13  Ulf Carlsson  <ulfc@engr.sgi.com>\r
3515 \r
3516         From  Ralf Baechle  <ralf@gnu.org>\r
3517 \r
3518         * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument\r
3519         local_p.  Add symbol value only for non-R_MIPS_REL32 relocations\r
3520         against local symbols.\r
3521         (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.\r
3522 \r
3523 2000-10-12  Alan Modra  <alan@linuxcare.com.au>\r
3524 \r
3525         * section.c (struct sec): Add kept_section.\r
3526         (struct bfd_comdat_info): Remove sec, we can use above.\r
3527         (STD_SECTION): Add initializer.\r
3528         (bfd_make_section_anyway): Init here too.\r
3529 \r
3530         * bfd-in2.h: Regenerate.\r
3531 \r
3532         * elflink.h (elf_link_add_object_symbols): Remove unnecessary\r
3533         zeroing of `flags'.\r
3534         (elf_link_input_bfd): Set all asection->symbol->value's here, and\r
3535         fudge values for discarded link-once section symbols.\r
3536 \r
3537         * elf64-hppa.c: Include alloca-conf.h\r
3538 \r
3539 2000-10-11  Alan Modra  <alan@linuxcare.com.au>\r
3540 \r
3541         * elf.c (swap_out_syms): Revert 2000-10-07 changes.\r
3542 \r
3543         * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.\r
3544 \r
3545 2000-10-10  Alan Modra  <alan@linuxcare.com.au>\r
3546 \r
3547         * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.\r
3548 \r
3549 2000-10-10  Tom Rix <trix@redhat.com>\r
3550 \r
3551         * section.c (bfd_make_section_anyway): Release newsect ptr when\r
3552         newsect->symbol fails to alloc.  Use bfd_release instead of free.\r
3553 \r
3554 2000-10-09  Richard Henderson  <rth@cygnus.com\r
3555 \r
3556         * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.\r
3557         (elf64_ia64_unwind_entry_compare): New.\r
3558         (elf64_ia64_final_link): Sort the .IA_64.unwind section.\r
3559 \r
3560 2000-10-07  Alan Modra  <alan@linuxcare.com.au>\r
3561 \r
3562         * elflink.h (size_dynamic_sections): Don't create various tags if\r
3563         .dynstr is excluded from the link.  Don't set first dynsym entry\r
3564         if dynsymcount is zero.\r
3565         (elf_bfd_final_link): Don't try to swap out dynamic syms if\r
3566         .dynsym excluded from the link.  Don't try to write any dynamic\r
3567         sections excluded from the link.\r
3568 \r
3569         * elf.c (swap_out_syms): Handle global section symbols.\r
3570 \r
3571 2000-10-05  DJ Delorie  <dj@redhat.com>\r
3572 \r
3573         * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs\r
3574         * coffcode.h (coff_set_alignment_hook): read extended reloc count\r
3575         (coff_write_relocs): write extended reloc count\r
3576         (coff_write_object_contents): account for extended relocs\r
3577 \r
3578 2000-10-05  Jim Wilson  <wilson@cygnus.com>\r
3579 \r
3580         * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags\r
3581         field.\r
3582         * elf.c (_bfd_elf_make_section_from_shdr): Call the\r
3583         elf_backend_section_flags function.\r
3584         * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion\r
3585         code.\r
3586         (elf64_ia64_section_flags): New function containing flag conversion\r
3587         code.\r
3588         (elf_backend_section_flags): Define to elf64_ia64_section_flags.\r
3589         * elfxx-target.h (elf_backend_section_flags): Define.\r
3590         (elfNN_bed): Initialize elf_backend_section_flags field.\r
3591 \r
3592 2000-10-02  Alan Modra  <alan@linuxcare.com.au>\r
3593 \r
3594         * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to\r
3595         _bfd_elf32_gc_record_vtable.  Correct a comment.\r
3596 \r
3597 2000-10-01  Ulf Carlsson  <ulfc@engr.sgi.com>\r
3598 \r
3599         From  Ralf Baechle  <ralf@gnu.org>\r
3600 \r
3601         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld\r
3602         produces binaries with got[1] = 0x80000001 to differenciate them\r
3603         for the dynamic linker from the broken binaries produced by old\r
3604         versions.\r
3605 \r
3606 2000-09-30  Petr Sorfa <petrs@sco.com>\r
3607 \r
3608         * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.\r
3609         (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.\r
3610         * configure.in: Add check for pxstatus_t and lwpxstatus_t.\r
3611         * configure: Regenerate.\r
3612 \r
3613 2000-09-27  Hans-Peter Nilsson  <hp@axis.com>\r
3614 \r
3615         Define two bfd_targets for absence and presence of leading\r
3616         underscore on symbols.  Make sure to only link same kind.\r
3617         * elf32-cris.c (cris_elf_object_p,\r
3618         cris_elf_final_write_processing, cris_elf_print_private_bfd_data,\r
3619         cris_elf_merge_private_bfd_data): New.\r
3620         (elf_backend_object_p, elf_backend_final_write_processing,\r
3621         bfd_elf32_bfd_print_private_bfd_data,\r
3622         bfd_elf32_bfd_merge_private_bfd_data): Define.\r
3623         <Target vector definition>: Include elf32-target.h twice with\r
3624         different macro settings:\r
3625         (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as\r
3626         bfd_elf32_us_cris_vec.\r
3627         (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".\r
3628         (elf_symbol_leading_char): First as 0, then '_'.\r
3629         (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.\r
3630         * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.\r
3631         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.\r
3632         * configure: Regenerate.\r
3633         * targets.c: Declare bfd_elf32_us_cris_vec.\r
3634         * po/bfd.pot: Regenerate.\r
3635 \r
3636 2000-09-29  Momchil Velikov  <velco@fadata.bg>\r
3637 \r
3638         * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for\r
3639         R_ARM_THM_PC22 relocations.\r
3640 \r
3641 2000-09-29  NIIBE Yutaka <gniibe@chroot.org>\r
3642 \r
3643         * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.\r
3644 \r
3645 2000-09-29  Momchil Velikov <velco@fadata.bg>\r
3646 \r
3647         * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if\r
3648         is has the SEC_HAS_CONTENTS flag set.\r
3649 \r
3650 2000-09-28  \81Örjan Friberg  <orjanf@axis.com>\r
3651             Hans-Peter Nilsson  <hp@axis.com>\r
3652 \r
3653         * aout-cris.c (N_TXTADDR): Define.\r
3654 \r
3655 2000-09-28  John David Anglin <dave@hiauly1.hia.nrc.ca>\r
3656 \r
3657         * som.c: Include alloca-conf.h.\r
3658         * Makefile.am: "make dep-am"\r
3659         * Makefile.in: Regenerate.\r
3660 \r
3661 2000-09-27  Alan Modra  <alan@linuxcare.com.au>\r
3662 \r
3663         * elf32-hppa.c (plt_stub): New.\r
3664         (PLT_STUB_ENTRY): Define.\r
3665         (elf32_hppa_link_hash_table): Change multi_subspace to packed\r
3666         boolean.  Add need_plt_stub, has_12bit_branch and has_17bit_branch.\r
3667         (elf32_hppa_link_hash_table_create): Init to suit.\r
3668         (elf32_hppa_check_relocs): Set has_12bit_branch and\r
3669         has_17bit_branch as appropriate.\r
3670         (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for\r
3671         non-local functions.\r
3672         (elf32_hppa_size_dynamic_sections): Correct setting of reltext.\r
3673         Add space for plt_stub as needed.\r
3674         (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global\r
3675         functions at plt_stub.\r
3676         (elf32_hppa_finish_dynamic_sections): Write plt_stub.\r
3677         (elf32_hppa_create_dynamic_sections): Leave .plt executable.\r
3678 \r
3679         * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.\r
3680         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.  Use it instead\r
3681         of fixed size, and if negative, disable handling of input sections\r
3682         before stub section.  Set up default stub group size depending\r
3683         on detected branch relocs.\r
3684         (hppa_build_one_stub): Use lrsel and rrsel for import stubs to\r
3685         ensure different offsets from sym_value aren't rounded to\r
3686         different 2k blocks.  Use lrsel and rrsel for other stubs too for\r
3687         consistency rather than necessity.\r
3688         (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.\r
3689         (final_link_relocate): Likewise.\r
3690         (elf32_hppa_relocate_section): Likewise.\r
3691 \r
3692         * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.\r
3693         (_bfd_elf_hppa_gen_reloc_type): Generate them.\r
3694         (elf_hppa_final_link_relocate): Handle them.\r
3695         (elf_hppa_relocate_insn): Likewise.\r
3696         (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.\r
3697 \r
3698 2000-09-26  Hans-Peter Nilsson  <hp@axis.com>\r
3699 \r
3700         * elfcode.h (elf_object_p): Preserve and clear abfd section\r
3701         information.  Restore at error.\r
3702 \r
3703 2000-09-26  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>\r
3704 \r
3705         * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory\r
3706         is empty, make sure that its rva also 0. NT loader dislikes\r
3707         having otherwise.\r
3708 \r
3709 2000-09-26  Steve Ellcey <sje@cup.hp.com>\r
3710 \r
3711         * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols\r
3712         global by default.\r
3713 \r
3714 2000-09-21  Alan Modra  <alan@linuxcare.com.au>\r
3715 \r
3716         * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in\r
3717         currently unused RELATIVE_DYNAMIC_RELOCS code.\r
3718         (hppa_discard_copies): Likewise.\r
3719         (elf32_hppa_size_stubs): Size `input_list' array correctly.  Correct\r
3720         comments.  Don't check non-code output sections for stub grouping.\r
3721 \r
3722 2000-09-20  Alan Modra  <alan@linuxcare.com.au>\r
3723 \r
3724         * section.c (bfd_get_unique_section_name): Return NULL if\r
3725         bfd_malloc fails.\r
3726 \r
3727 2000-09-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>\r
3728 \r
3729         * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0\r
3730         instruction sequence to actually work.\r
3731         (elf_m68k_finish_dynamic_sections): Change the patch-in offset\r
3732         accordingly.\r
3733 \r
3734 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>\r
3735 \r
3736         * elf32-sh.c (sh_elf_relocate_section): Use\r
3737         _bfd_final_link_relocate to apply the relocation against a section\r
3738         symbol, when doing relocatable links.\r
3739 \r
3740 2000-09-18  Alan Modra  <alan@linuxcare.com.au>\r
3741 \r
3742         * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section\r
3743         to id_sec.\r
3744         (stub_hash_newfunc): Here too.\r
3745         (hppa_add_stub): And here.\r
3746         (elf32_hppa_link_hash_table): Remove stub_section_created,\r
3747         reloc_section_created, first_init_sec and first_fini_sec.  Add\r
3748         stub_group.\r
3749         (elf32_hppa_link_hash_table_create): Init to suit.\r
3750         (hppa_get_stub_entry): Add support for grouping stub sections.\r
3751         (hppa_add_stub): Likewise.  Remove sec_count param and init/fini\r
3752         section code.  Index stub vars by section->id.\r
3753         (elf32_hppa_size_stubs): Likewise.  Remove duplicated function\r
3754         exit paths.  Zap allocation of above removed vars.  Refine\r
3755         link-once test.\r
3756 \r
3757         * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.\r
3758         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.\r
3759         (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table\r
3760         rather than pointer to bfd_link_info.\r
3761         (hppa_add_stub): Likewise.\r
3762         (final_link_relocate): Likewise.\r
3763 \r
3764 2000-09-17  David Huggins-Daines  <dhd@linuxcare.com>\r
3765 \r
3766         (elf32_hppa_size_stubs): Don't try to build stubs for discarded\r
3767         link-once sections.\r
3768 \r
3769 2000-09-16  Alexandre Oliva  <aoliva@redhat.com>\r
3770 \r
3771         * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match\r
3772         ld/emulparams/shelf.sh.\r
3773 \r
3774 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>\r
3775 \r
3776         * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.\r
3777         * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.\r
3778         * bfd-in2.h: Regenerate.\r
3779 \r
3780 2000-09-15  Kenneth Block  <Kenneth.Block@compaq.com>\r
3781 \r
3782         * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs\r
3783         LITUSE relocations incorrectly if -relax is specified on the ld\r
3784         command line and the displacement field of the load or store\r
3785         instruction is non-zero. (Patch by paul.winalski@compaq.com)\r
3786 \r
3787 2000-09-15  Alan Modra  <alan@linuxcare.com.au>\r
3788 \r
3789         * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and\r
3790         first_fini_sec here.\r
3791         (elf32_hppa_size_stubs): Instead correctly find the first .init\r
3792         and .fini section here.\r
3793 \r
3794 2000-09-15  David Huggins-Daines  <dhd@linuxcare.com>\r
3795 \r
3796         * elf32-hppa.c (clobber_millicode_symbols): New function.\r
3797         (elf32_hppa_size_dynamic_sections): Call it.\r
3798 \r
3799 2000-09-14  Alan Modra  <alan@linuxcare.com.au>\r
3800 \r
3801         * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call\r
3802         packed.  Add plabel, plt_abs packed booleans.\r
3803         (hppa_link_hash_newfunc): Init new fields.\r
3804         (PLABEL_PLT_ENTRY_SIZE): Define.\r
3805         (hppa_stub_name): Use size_t len vars.\r
3806         (hppa_add_stub): Likewise.\r
3807         (elf32_hppa_build_stubs): Likewise.\r
3808         (hppa_build_one_stub): Kill some compiler warnings.\r
3809         (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs\r
3810         if dynamic linking.  Munge the local plt offsets into\r
3811         local_got_refcounts.  Set h->plabel for all global PLABELs.  Use\r
3812         size_t len vars.  Add assert for plabel addend.\r
3813         (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.\r
3814         (elf32_hppa_hide_symbol): New function.\r
3815         (elf_backend_hide_symbol): Define.\r
3816         (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries\r
3817         with h->plabel set.  Don't make plt entries to have dynamic syms\r
3818         when they have been forced local.  If plt entry is used by a\r
3819         plabel, make it PLABEL_PLT_ENTRY_SIZE.\r
3820         (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.\r
3821         Set up .plt offsets for local syms.\r
3822         (elf32_hppa_relocate_section): Initialise plt entries for local\r
3823         syms.  Leave weak undefined plabels zero.  Make global plabel\r
3824         relocs against function symbol, and leave the addend zero.\r
3825         Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.\r
3826         (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for\r
3827         non-dynamic syms.  Init extra plt for plabels.  Use *ABS* DIR32\r
3828         relocs instead of SEGREL32 for dynamic got relocs.\r
3829         (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.\r
3830         (elf_backend_got_header_size): Adjust.\r
3831         (elf32_hppa_set_gp): Calculate an "ideal" LTP.\r
3832 \r
3833         * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.\r
3834         (hppa_type_of_stub): Use it instead of #if 0\r
3835         (hppa_discard_copies): Use it here too.\r
3836         (elf32_hppa_size_dynamic_sections): And here.\r
3837 \r
3838         * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.\r
3839         (elf32_hppa_link_hash_table_create): And here.\r
3840         (hppa_build_one_stub): And here.  Instead keep track of stub\r
3841         offset using _raw_size.\r
3842         (elf32_hppa_size_stubs): Likewise.\r
3843         (elf32_hppa_build_stubs): Likewise.\r
3844         (hppa_size_one_stub): Likewise.  Resize reloc section too.\r
3845 \r
3846         * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and\r
3847         first_fini_sec handling.  Don't search for reloc section or set\r
3848         hplink->reloc_section_created here.\r
3849         (elf32_hppa_size_stubs): Instead search for reloc sections, and\r
3850         set reloc_section_created here.\r
3851         (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.\r
3852         (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT\r
3853         and DT_FINI.\r
3854         (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.\r
3855 \r
3856         * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'\r
3857         with `hplink->root.'.\r
3858         (elf32_hppa_check_relocs): Likewise.\r
3859         (elf32_hppa_gc_sweep_hook): Likewise.\r
3860         (elf32_hppa_adjust_dynamic_symbol): Likewise.\r
3861         (hppa_handle_PIC_calls): Likewise.\r
3862         (elf32_hppa_size_dynamic_sections): Likewise.\r
3863         (elf32_hppa_set_gp): Likewise.\r
3864         (elf32_hppa_relocate_section): Likewise.\r
3865         (elf32_hppa_finish_dynamic_symbol): Likewise.\r
3866         (elf32_hppa_finish_dynamic_sections): Likewise.\r
3867 \r
3868         From  David Huggins-Daines  <dhd@linuxcare.com>\r
3869         * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for\r
3870         defined weak symbols in shared links.\r
3871         (final_link_relocate): Calls to defined weak symbols in shared\r
3872         objects must go via import stubs, as the target might not be known\r
3873         at link time.\r
3874 \r
3875 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>\r
3876 \r
3877         * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,\r
3878         R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,\r
3879         R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167.  Replaced\r
3880         the original entries with EMPTY_HOWTOs, and added new ones to fill\r
3881         in the gap.\r
3882         (sh_elf_info_to_howto): Make sure the new gap isn't used.\r
3883         (sh_elf_relocate_section): Likewise.\r
3884 \r
3885 2000-09-13  Anders Norlander  <anorland@acc.umu.se>\r
3886 \r
3887         * cpu-mips.c (arch_info_struct): Add mips:4K\r
3888         * bfd-in2.h (bfd_mach_mips4K): New define.\r
3889         * archures.c: Add bfd_mach_mips4K to comment.\r
3890         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return\r
3891         E_MIPS_ARCH_2 for bfd_mach_mips4K.\r
3892 \r
3893 2000-09-13  Marco Franzen <marcof@thyron.com>\r
3894 \r
3895         * som.c (som_write_symbol_strings): Do not used fixed buffers,\r
3896         use size_t as a counter.\r
3897         (som_write_space_strings): Similarly.\r
3898 \r
3899 2000-09-12  Jason Eckhardt  <jle@cygnus.com>\r
3900 \r
3901         * elf32-i860.c (elf32_i860_relocate_pc26): New function\r
3902         and prototype.\r
3903         (elf32_i860_relocate_section): Invoke new function from here.\r
3904 \r
3905 2000-09-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>\r
3906 \r
3907         * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names\r
3908         static.\r
3909 \r
3910 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>\r
3911 \r
3912         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for\r
3913         target section name instead of dumping core when the target symbol is\r
3914         undefined.\r
3915 \r
3916 2000-09-09  Kazu Hirata  <kazu@hxi.com>\r
3917 \r
3918         * riscix.c: Remove DEFUN.\r
3919 \r
3920 2000-09-08  Nick Clifton  <nickc@redhat.com>\r
3921 \r
3922         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not\r
3923         initialise flags in output bfd if the input bfd is the default\r
3924         architecture with the default flags.\r
3925 \r
3926 2000-09-08  Kazu Hirata  <kazu@hxi.com>\r
3927 \r
3928         * archive.c: Fix formatting.\r
3929         * coff-arm.c: Likewise.\r
3930         * doc/chew.c: Likewise.\r
3931 \r
3932 2000-09-08  Alan Modra  <alan@linuxcare.com.au>\r
3933 \r
3934         * section.c (bfd_get_unique_section_name): Put a dot before the\r
3935         numeric suffix.\r
3936 \r
3937 2000-09-07  Kazu Hirata  <kazu@hxi.com>\r
3938 \r
3939         * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.\r
3940         * elf.c: Fix formatting.\r
3941 \r
3942 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>\r
3943 \r
3944         * config.bfd (sh-*-linux*): Added.\r
3945         * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.\r
3946         * targets.c: Declare them.\r
3947         * elf32-sh-lin.c: New file.\r
3948         * Makefile.am: Compile it.\r
3949         * elf32-sh.c: Don't override defines from elf32-sh-lin.c.\r
3950         * configure, Makefile.in: Rebuilt.\r
3951 \r
3952 2000-09-06  Geoffrey Keating  <geoffk@cygnus.com>\r
3953 \r
3954         * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss\r
3955         pseduo-section when determining where the TOC ends.\r
3956 \r
3957         * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to\r
3958         output x_tvndx as it is only two bytes wide.\r
3959 \r
3960         * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute\r
3961         reloc is 26 or 32 bits wide.\r
3962 \r
3963         * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant\r
3964         for relocs that don't change anything.  Also look at the full\r
3965         6 bits of bitsize.\r
3966 \r
3967 2000-09-06  Philip Blundell  <philb@gnu.org>\r
3968 \r
3969         * config.bfd (arm*-*-uclinux*): New target.\r
3970 \r
3971 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>\r
3972 \r
3973         * configure: Rebuilt with new libtool.m4.\r
3974 \r
3975 2000-09-06  Alan Modra  <alan@linuxcare.com.au>\r
3976 \r
3977         * section.c (bfd_get_unique_section_name): Avoid c++ reserved\r
3978         word for variable name.\r
3979         * bfd-in2.h: Regenerate.\r
3980 \r
3981 2000-09-05  Nick Clifton  <nickc@redhat.com>\r
3982 \r
3983         * config.in: Regenerate.\r
3984         * libbfd.h: Regenerate.\r
3985         * po/bfd.pot: Regenerate.\r
3986         * doc/bfdint.texi: Remove CVS date string - it foils compares with\r
3987         local versions.\r
3988 \r
3989 2000-09-05  Steven Johnson  <sbjohnson@ozemail.com.au>\r
3990 \r
3991         * cpu-powerpc.c  (arch_info_struct): Added MPC860 Family entry.\r
3992 \r
3993 2000-09-05  Alan Modra  <alan@linuxcare.com.au>\r
3994 \r
3995         Shared library and PIC support.\r
3996         * elf32-hppa.c (PLT_ENTRY_SIZE): New.\r
3997         (GOT_ENTRY_SIZE): New.\r
3998         (ELF_DYNAMIC_INTERPRETER): New.\r
3999         (STUB_SUFFIX): Define.\r
4000         (LONG_BRANCH_PIC_IN_SHLIB): Define.\r
4001         (RELATIVE_DYNAMIC_RELOCS): Define.\r
4002         (enum elf32_hppa_stub_type): New.\r
4003         (struct elf32_hppa_stub_hash_entry): Rename offset to\r
4004         stub_offset.  Add a number of new fields.\r
4005         (struct elf32_hppa_link_hash_entry): New.\r
4006         (struct elf32_hppa_link_hash_table): Add numerous fields.  Remove\r
4007         global_value.\r
4008         (elf32_hppa_hash_table): Rename to hppa_link_hash_table.\r
4009         (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.\r
4010         (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc.  Init\r
4011         new fields.\r
4012         (hppa_link_hash_newfunc): New function.\r
4013         (elf32_hppa_link_hash_table_create): Use above function. Init new\r
4014         fields.\r
4015         (elf32_hppa_stub_name): Rename to hppa_stub_name.  Pass in reloc\r
4016         instead of addend, and remove sym_name from args.  Don't use\r
4017         symbol name for local syms, instead use sym index.\r
4018         (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return\r
4019         stub type rather than size.  Pass in hash and handle import stub\r
4020         case.  Also pass in reloc instead of offset so we can calculate\r
4021         PCREL22F and PCREL12F branches properly.\r
4022         (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub.  Build\r
4023         import and export stubs too.\r
4024         (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub.  Handle\r
4025         import and export stub sizing.\r
4026         (elf32_hppa_check_relocs): New function.\r
4027         (elf32_hppa_adjust_dynamic_symbol): New function.\r
4028         (hppa_discard_copies): New function.\r
4029         (elf32_hppa_size_dynamic_sections): New function.\r
4030         (elf_backend_size_dynamic_sections): Define.\r
4031         (elf32_hppa_finish_dynamic_symbol): New function.\r
4032         (elf_backend_finish_dynamic_symbol): Define.\r
4033         (elf32_hppa_size_stubs): Stash params in link hash table, and move\r
4034         some local vars into the link hash table too.  For shared links,\r
4035         trundle over function syms, generating export stubs.  Handle\r
4036         PCREL22F branches.  Break out stub creation code from here..\r
4037         (hppa_add_stub): .. to here.  New function.\r
4038         (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't\r
4039         call the bfd linker.  Use elf_gp to record global pointer.\r
4040         Calculate a value from sections if $global$ is missing.\r
4041         (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.\r
4042         (elf32_hppa_gc_mark_hook): New function.\r
4043         (elf_backend_gc_mark_hook): Define.\r
4044         (elf32_hppa_gc_sweep_hook): New function.\r
4045         (elf_backend_gc_sweep_hook): Define.\r
4046         (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.\r
4047         Add rel to args, and remove howto, input_bfd, offset, addend,\r
4048         sym_name as we can recalculate these locally.  Handle calls to\r
4049         dynamic objects, extra PIC relocs, PCREL22F branches.  Change\r
4050         handling of undefined weak syms.  Check that stubs are in range.\r
4051         Only look for import stubs on PCREL17F and PCREL22F relocs.  Add\r
4052         message on hitting a DPREL21L reloc that needs fixing.  Subtract\r
4053         off PC for PCREL14F.  Break out code that does a stub lookup from\r
4054         here..\r
4055         (hppa_get_stub_entry): ..to here.  New function.\r
4056         (elf32_hppa_relocate_insn): Merge into final_link_relocate.\r
4057         (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic\r
4058         relocs, etc. etc.\r
4059         (elf32_hppa_finish_dynamic_sections): New function.\r
4060         (elf_backend_finish_dynamic_sections): Define.\r
4061         (elf_backend_final_write_processing) Define.\r
4062         (hppa_handle_PIC_calls): New function.\r
4063         (elf32_hppa_build_stubs): Call it.  Pass link_info to\r
4064         hppa_build_one_stub.\r
4065         (elf32_hppa_create_dynamic_sections): New function\r
4066         to create .plt and .got then set .plt flags correctly.\r
4067         (elf_backend_create_dynamic_sections): Define.\r
4068         (elf32_hppa_object_p): New function.\r
4069         (elf_backend_object_p): Define.\r
4070         (elf32_hppa_elf_get_symbol_type): New function.\r
4071         (elf_backend_get_symbol_type): Define.\r
4072         (elf_backend_can_gc_sections): Define.\r
4073         (elf_backend_want_got_plt): Define.\r
4074         (elf_backend_plt_alignment): Set to 2.\r
4075         (elf_backend_plt_readonly): Define.\r
4076         (elf_backend_want_plt_sym): Define.\r
4077         (elf_backend_got_header_size): Reserve one entry.\r
4078 \r
4079         * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.\r
4080         (elf32_hppa_size_stubs): Pass in multi_subspace.\r
4081         (elf32_hppa_set_gp): Declare.\r
4082 \r
4083         * section.c (SEC_HAS_GOT_REF): Define new flag for asection.\r
4084         (bfd_get_unique_section_name): New function.\r
4085         * bfd-in2.h: Regenerate.\r
4086 \r
4087         * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.\r
4088         (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc\r
4089         comment.\r
4090 \r
4091         From  David Huggins-Daines  <dhd@linuxcare.com>\r
4092         * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.\r
4093         (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.\r
4094         (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has\r
4095         been updated in finish_dynamic_symbol before modifying function\r
4096         symbol.\r
4097 \r
4098         * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of\r
4099         eight entries.  Replace NULL with bfd_elf_generic_reloc.  Add\r
4100         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.\r
4101         (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*.  Add some\r
4102         comments.  Handle format == 12 for R_HPPA_PCREL_CALL.\r
4103         (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.\r
4104         (elf_hppa_relocate_insn): Likewise.  Reformat some comments.\r
4105         (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.\r
4106 \r
4107         From David Huggins-Daines  <dhd@linuxcare.com>\r
4108         * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF\r
4109         style of local labels as well.\r
4110 \r
4111 2000-09-03  Philip Blundell  <philb@gnu.org>\r
4112 \r
4113         * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate\r
4114         references to undefined symbols in debugging sections.\r
4115 \r
4116 2000-09-02  H.J. Lu  <hjl@gnu.org>\r
4117 \r
4118         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,\r
4119         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,\r
4120         BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH\r
4121         section.\r
4122 \r
4123 2000-09-02  Jason Eckhardt  <jle@cygnus.com>\r
4124 \r
4125         * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.\r
4126         (elf32_i860_is_local_label_name): New function and prototype.\r
4127 \r
4128 2000-09-02  Nick Clifton  <nickc@redhat.com>\r
4129 \r
4130         * configure.in: Increase version number to 2.10.91.\r
4131         * configure: Regenerate.\r
4132         * aclocal.m4: Regenerate.\r
4133         * config.in: Regenerate.\r
4134         * po/bfd.pot: Regenerate.\r
4135 \r
4136 2000-09-02  Daniel Berlin <dberlin@redhat.com>\r
4137 \r
4138         * elf.c (_bfd_elf_make_section_from_shdr): Add\r
4139         .gnu.linkobce.wi. to the list of debug section names.\r
4140 \r
4141 2000-09-02  Nick Clifton  <nickc@redhat.com>\r
4142 \r
4143         * dwarf2.c (find_debug_info): New function: Locate a section\r
4144         containing dwarf2 debug information.\r
4145         (bfd_dwarf2_find_nearest_line): Find all sections containing\r
4146         debug information and include them in the stash.\r
4147 \r
4148 2000-09-01  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>\r
4149 \r
4150         * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,\r
4151         R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.\r
4152         (sh_reloc_map): Add new relocs.\r
4153         (sh_elf_check_relocs, sh_elf_link_hash_newfunc,\r
4154         sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,\r
4155         sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,\r
4156         sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New\r
4157         functions.\r
4158         (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.\r
4159         (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,\r
4160         elf_sh_plt_entry_be, elf_sh_plt_entry_le,\r
4161         elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):\r
4162         New array constants.\r
4163         (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):\r
4164         New variables.\r
4165         (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,\r
4166         elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,\r
4167         elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,\r
4168         elf_sh_plt_reloc_offset): Define.\r
4169         (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,\r
4170         elf_sh_link_hash_table): New structs.\r
4171         (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.\r
4172         (sh_elf_relocate_section, sh_elf_check_relocs): Handle new\r
4173         relocation types.\r
4174         (elf_backend_create_dynamic_sections,\r
4175         bfd_elf32_bfd_link_hash_table_create,\r
4176         elf_backend_adjust_dynamic_symbol,\r
4177         elf_backend_size_dynamic_sections,\r
4178         elf_backend_finish_dynamic_symbol,\r
4179         elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,\r
4180         elf_backend_plt_readonly, elf_backend_want_plt_sym,\r
4181         elf_backend_got_header_size, elf_backend_plt_header_size):\r
4182         Define.\r
4183         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,\r
4184         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):\r
4185         New relocs.\r
4186         * bfd-in2.h, libbfd.h: Rebuilt.\r
4187 \r
4188 2000-09-01  Alan Modra  <alan@linuxcare.com.au>\r
4189 \r
4190         * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27\r
4191         change.\r
4192 \r
4193 2000-08-31  J"orn Rennecke <amylaar@cygnus.co.uk>\r
4194 \r
4195         * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags\r
4196         not initialized, set them to indicate the SH1 instruction set.\r
4197 \r
4198 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>\r
4199 \r
4200         * acinclude.m4: Include libtool and gettext macros from the\r
4201         top level.\r
4202         * aclocal.m4, configure: Rebuilt.\r
4203 \r
4204 2000-08-29  Michael Snyder  <msnyder@seadog.cygnus.com>\r
4205 \r
4206         * elf.c: Eliminate references to __sparcv9 macro; replace with\r
4207         autoconf variables HAVE_PSINFO32_T etc.\r
4208         * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,\r
4209         HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.\r
4210         * config.in: Ditto.\r
4211         * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can\r
4212         detect the above typedefs.  (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.\r
4213         * aclocal.m4: Ditto.\r
4214         * configure: Regenerate.\r
4215 \r
4216 2000-08-27  Alan Modra  <alan@linuxcare.com.au>\r
4217 \r
4218         * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied\r
4219         for any shared link, not just shared -Bsymbolic.\r
4220         (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on\r
4221         any shared link, and pass link info to it.\r
4222         (elf_i386_size_dynamic_sections): Update comment.\r
4223         (elf_i386_discard_copies): Modify to discard relocs for symbols\r
4224         that have been forced local.\r
4225         (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols\r
4226         that have been forced local.\r
4227 \r
4228 2000-08-24  Denis Chertykov  <denisc@overta.ru> & Nick Clifton  <nickc@redhat.com>\r
4229 \r
4230         * elflink.h (elf_link_add_object_symbols): Allow common\r
4231         symbols to have an alignment of 1 if explicitly requested, and\r
4232         not overridden by other definitions.\r
4233 \r
4234 2000-08-22  Doug Kwan <dkwan@transmeta.com>\r
4235 \r
4236         * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.\r
4237         * coffcode.h (coff_set_flags): Add detection of w65 architecture.\r
4238 \r
4239 2000-08-22  H.J. Lu  <hjl@gnu.org>\r
4240 \r
4241         * elf-bfd.h (elf_link_hash_table): Add runpath.\r
4242 \r
4243         * bfd-in.h (bfd_elf_get_runpath_list): New prototype.\r
4244         * bfd-in2.h: Rebuilt.\r
4245 \r
4246         * elf.c (_bfd_elf_link_hash_table_init): Initialize the\r
4247         "runpath" field to NULL.\r
4248         (bfd_elf_get_runpath_list): New function.\r
4249 \r
4250         * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and\r
4251         DT_RUNPATH entries.\r
4252 \r
4253 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>\r
4254 \r
4255         * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,\r
4256         R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them\r
4257         explicitly.  Improve validation of r_type.\r
4258 \r
4259 2000-08-21  H.J. Lu  <hjl@gnu.org>\r
4260 \r
4261         * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the\r
4262         dynamic allocated content space.  Add a comment to remind us that\r
4263         one day this ought to be fixed.\r
4264         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.\r
4265         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.\r
4266         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.\r
4267 \r
4268 2000-08-21  Jason Eckhardt  <jle@cygnus.com>\r
4269 \r
4270         * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate\r
4271         field with the newly relocated value instead of adding it to the\r
4272         existing immediate field.\r
4273         (elf32_i860_relocate_splitn): Likewise.\r
4274         (elf32_i860_relocate_highadj): Likewise.\r
4275 \r
4276 2000-08-16  Jason Eckhardt  <jle@cygnus.com>\r
4277 \r
4278         * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it\r
4279         was previously just a stub).\r
4280 \r
4281 2000-08-16  Alexandre Oliva  <aoliva@redhat.com>\r
4282 \r
4283         * elflink.c (_bfd_elf_create_got_section): Don't abort().\r
4284         Formatting fixes.\r
4285         (_bfd_elf_create_dynamic_sections): Likewise.\r
4286 \r
4287 2000-08-16  Andrew Macleod  <amacleod@cygnus.com>\r
4288 \r
4289         * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address\r
4290         for undefined symbols to be the beginning of the section.\r
4291 \r
4292         * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate\r
4293         four extra entries at the beginning of the .rela.plt section.\r
4294         (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt\r
4295         section to account for the four reserved entries in the .plt section.\r
4296 \r
4297 2000-08-15  Geoffrey Keating  <geoffk@cygnus.com>\r
4298 \r
4299         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0\r
4300         to the list of NOPs we recognize after a branch-and-link.\r
4301         Use the ori NOP when one is needed.\r
4302 \r
4303         * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation\r
4304         for large archives.\r
4305 \r
4306 2000-08-14  Jim Wilson  <wilson@cygnus.com>\r
4307 \r
4308         * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle\r
4309         EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.\r
4310         (elf64_ia64_print_private_bfd_data): Likewise.  Also handle\r
4311         EF_IA_64_ABSOLUTE.\r
4312 \r
4313 2000-08-11  Alexandre Oliva  <aoliva@redhat.com>\r
4314 \r
4315         * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.\r
4316 \r
4317 2000-08-10  Jason Eckhardt  <jle@cygnus.com>\r
4318 \r
4319         * elf32-i860.c (elf32_i860_relocate_section): New function.\r
4320         (i860_final_link_relocate): New function.\r
4321         (elf32_i860_relocate_splitn): New function.\r
4322         (elf32_i860_relocate_pc16): New function.\r
4323         (elf32_i860_relocate_highadj): New function.\r
4324         (elf32_i860_howto): Minor adjustments to some relocations.\r
4325         (elf_info_to_howto_rel): Define.\r
4326         (elf_backend_relocate_section): Define.\r
4327 \r
4328 2000-08-10  Nick Clifton  <nickc@cygnus.com>\r
4329 \r
4330         * elf32-arm.h: Fix formatting.\r
4331 \r
4332 2000-08-10  Bernd Schmidt  <bernds@cygnus.co.uk>\r
4333 \r
4334         * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.\r
4335 \r
4336 2000-08-08  Jason Eckhardt  <jle@cygnus.com>\r
4337 \r
4338         * elf32-i860.c (elf32_i860_howto_table): Updated some fields.\r
4339 \r
4340 2000-08-07  Kazu Hirata  <kazu@hxi.com>\r
4341 \r
4342         * ieee.c (ieee_write_debug_part): Rewrite a comment.\r
4343         * elf64-ia64.c: Fix a typo.\r
4344 \r
4345 2000-08-05  Jason Eckhardt  <jle@cygnus.com>\r
4346 \r
4347         * elf32-i860.c (elf32_i860_howto_table): New structure.\r
4348         (lookup_howto): New function.\r
4349         (elf32_i860_reloc_type_lookup): New function.\r
4350         (elf32_i860_info_to_howto_rela): New function.\r
4351         (elf_code_to_howto_index): New structure.\r
4352         (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.\r
4353         (bfd_elf32_bfd_reloc_type_lookup): Re-define as\r
4354         elf32_i860_reloc_type_lookup.\r
4355 \r
4356 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>\r
4357 \r
4358         * som.c (struct fixup_format): Constify `format'.\r
4359         (som_hppa_howto_table): Use SOM_HOWTO macro.\r
4360         (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.\r
4361         (som_bfd_reloc_type_lookup): Likewise.\r
4362         (compare_subspaces): Remove unused `count1', `count2'.\r
4363         (som_begin_writing): Remove unused `total_reloc_size'.\r
4364         (som_bfd_derive_misc_symbol_info): Decorate unused parameter.\r
4365         (som_print_symbol, som_bfd_is_local_label_name): Likewise.\r
4366         (som_set_reloc_info): Constify `cp'. Remove unused `addend'.\r
4367         (som_find_nearest_line): Decorate unused parameter(s).\r
4368         (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.\r
4369         (som_bfd_link_split_section): Likewise.\r
4370 \r
4371 2000-08-03  Nick Clifton  <nickc@cygnus.com>\r
4372 \r
4373         * section.c: Restore backed out code.\r
4374         * elf.c: Restore backed out code.\r
4375         (copy_private_bfd_data): Fix bug preventing stipped dynamic\r
4376         binaries from working.\r
4377         * bfd-in2.h: Regenerate.\r
4378 \r
4379 2000-08-03  H.J. Lu  <hjl@gnu.org>\r
4380 \r
4381         * section.c: Back out the change made by Nick Clifton\r
4382         <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic\r
4383         binaries.\r
4384         * bfd-in2.h: Likewise.\r
4385         * elf.c: Likewise.\r
4386 \r
4387 2000-08-03  Alexandre Oliva  <aoliva@redhat.com>\r
4388 \r
4389         * elf32-sh.c (sh_elf_reloc_loop): Warning removal.\r
4390 \r
4391 2000-07-31  Jason Eckhardt  <jle@cygnus.com>\r
4392 \r
4393         * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.\r
4394         * bfd-in2.h, libbfd.h: Regenerate.\r
4395 \r
4396 2000-07-31  Nick Clifton  <nickc@cygnus.com>\r
4397 \r
4398         * section.c (struct sec): Add new boolean field 'segment_mark'.\r
4399         (STD_SECTION): Initialise new field to zero.\r
4400 \r
4401         * bfd-in2.h: Regenerate.\r
4402 \r
4403         * elf.c (copy_private_bfd_data): Reorganise section to segment\r
4404         mapping to cope with moved sections requiring new segments,\r
4405         and overlapping segments.\r
4406         (SEGMENT_END): New macro: Return the end address of a segment.\r
4407         (IS_CONTAINED_BY_VMA): New macro: Determine if a segment\r
4408         contains a section by comparing their VMA addresses.\r
4409         (IS_CONTAINED_BY_LMA): New macro: Determine if a segment\r
4410         contains a section by comparing their LMA addresses.\r
4411         (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a\r
4412         section should be included in a segment.\r
4413         (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment\r
4414         follows another in memory.\r
4415         (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two\r
4416         segments overlap.\r
4417 \r
4418 2000-07-22  Jason Eckhardt  <jle@cygnus.com>\r
4419 \r
4420         * cpu-i860.c: Added comments.\r
4421 \r
4422         * elf32-i860.c (TARGET_LITTLE_SYM): Defined to\r
4423         bfd_elf32_i860_little_vec.\r
4424         (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".\r
4425         (ELF_MAXPAGESIZE): Changed to 4096.\r
4426 \r
4427         * targets.c (bfd_elf32_i860_little_vec): Declaration of\r
4428         new target.\r
4429         (bfd_target_vector): Added bfd_elf32_i860_little_vec.\r
4430 \r
4431         * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added\r
4432         config for little endian elf32 i860.\r
4433         (targ_defvec): Define for the new config above\r
4434         as "bfd_elf32_i860_little_vec".\r
4435         (targ_selvecs): Define for the new config above\r
4436         as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"\r
4437 \r
4438         * configure.in (bfd_elf32_i860_little_vec): Added recognition\r
4439         of new target vec.\r
4440 \r
4441         * configure: Regenerated.\r
4442 \r
4443 2000-07-27  H.J. Lu  <hjl@gnu.org>\r
4444 \r
4445         * elflink.h (elf_merge_symbol): Take one more argument,\r
4446         dt_needed, to indicate if the symbol comes from a DT_NEEDED\r
4447         entry. Don't overide the existing weak definition if dt_needed\r
4448         is true.\r
4449         (elf_link_add_object_symbols): Pass dt_needed to\r
4450         elf_merge_symbol ().\r
4451 \r
4452 2000-07-27  Nick Clifton  <nickc@cygnus.com>\r
4453 \r
4454         * elflink.h (elf_link_size_reloc_section): Zeroes the section's\r
4455         allocated contents.\r
4456 \r
4457 2000-07-25  Geoffrey Keating  <geoffk@cygnus.com>\r
4458 \r
4459         * configure.host (*-*-aix*): AIX has 'long long' always.\r
4460 \r
4461         * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.\r
4462         (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.\r
4463         (xcoff_write_archive_contents_big): Don't update the offset\r
4464         of the symbol table, xcoff_write_armap will do it.\r
4465 \r
4466 2000-07-23  Ulf Carlsson  <ulfc@engr.sgi.com>\r
4467 \r
4468         * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead\r
4469         of dynobj for SGI_COMPAT checks.\r
4470 \r
4471 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>\r
4472 \r
4473         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.\r
4474         * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.\r
4475         * bfd-in2.h: Regenerate.\r
4476 \r
4477 2000-07-21  Nick Clifton  <nickc@cygnus.com>\r
4478 \r
4479         * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of\r
4480         range symbol indices in relocs and issue an error message.\r
4481 \r
4482 2000-07-20  H.J. Lu  <hjl@gnu.org>\r
4483 \r
4484         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check\r
4485         info->new_dtags when setting DT_FLAGS_1. It will only be set\r
4486         by the new linker options. It shouldn't break anything.\r
4487 \r
4488 2000-07-20  H.J. Lu  <hjl@gnu.org>\r
4489 \r
4490         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1\r
4491         only if info->new_dtags is true.\r
4492 \r
4493 2000-07-20  H.J. Lu  <hjl@gnu.org>\r
4494 \r
4495         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set\r
4496         DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.\r
4497 \r
4498 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>\r
4499 \r
4500         * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.\r
4501         (ALL_MACHINES_CFILES): Add cpu-cris.c.\r
4502         (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.\r
4503         (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.\r
4504         (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.\r
4505         * Makefile.in: Rebuild.\r
4506         * aclocal.m4: Rebuild.\r
4507         * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.\r
4508         * archures.c (enum bfd_architecture): Add bfd_arch_cris.\r
4509         (bfd_cris_arch): Declare.\r
4510         (bfd_archures_list): Add bfd_cris_arch.\r
4511         * bfd-in2.h: Rebuild.\r
4512         * config.bfd: (cris-*-*): New target.\r
4513         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.\r
4514         * configure: Rebuild.\r
4515         * elf.c (prep_headers): Add bfd_arch_cris.\r
4516         * libbfd.h: Rebuild.\r
4517         * libaout.h (enum machine_type): Add M_CRIS.\r
4518         * reloc.c: Add CRIS relocations.\r
4519         * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.\r
4520         (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.\r
4521         * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.\r
4522         * po/POTFILES.in, po/bfd.pot: Regenerate.\r
4523 \r
4524 2000-07-19  H.J. Lu  <hjl@gnu.org>\r
4525 \r
4526         * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set\r
4527         DF_TEXTREL if DT_TEXTREL is set.\r
4528         * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.\r
4529         * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.\r
4530         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.\r
4531         * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.\r
4532         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.\r
4533         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.\r
4534         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.\r
4535         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.\r
4536         * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.\r
4537         * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.\r
4538 \r
4539         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also\r
4540         set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if\r
4541         DT_RPATH is set.\r
4542         Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.\r
4543 \r
4544 2000-07-19  H.J. Lu  <hjl@gnu.org>\r
4545 \r
4546         * bfd-in.h (bfd_elf_set_dt_needed_soname): New.\r
4547         * bfd-in2.h: Rebuild.\r
4548 \r
4549         * elf-bfd.h (elf_obj_tdata): Add dt_soname.\r
4550         (elf_dt_soname): New.\r
4551 \r
4552         * elf.c (bfd_elf_set_dt_needed_soname): New.\r
4553 \r
4554         * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED\r
4555         entry if the shared object loaded by DT_NEEDED is used to\r
4556         resolve the reference in a regular object.\r
4557 \r
4558 2000-07-19  H.J. Lu  <hjl@gnu.org>\r
4559 \r
4560         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,\r
4561         DT_DEPAUDIT and DT_AUDIT as strings.\r
4562 \r
4563 2000-07-19  Nick Clifton  <nickc@cygnus.com>\r
4564 \r
4565         * format.c: Fix formatting.\r
4566 \r
4567 2000-07-19  H.J. Lu  <hjl@gnu.org>\r
4568 \r
4569         * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.\r
4570 \r
4571 2000-07-19  H.J. Lu  <hjl@gnu.org>\r
4572 \r
4573         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,\r
4574         DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,\r
4575         DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,\r
4576         DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,\r
4577         DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,\r
4578         DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,\r
4579         DT_FLAGS_1, DT_USED and DT_CHECKSUM.\r
4580 \r
4581 2000-07-18  Andrew Cagney  <cagney@b1.cygnus.com>\r
4582 \r
4583         * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move\r
4584         renamed functions from here...\r
4585         (assign_section_numbers): Use renamed functions.\r
4586         (prep_headers): Use renamed functions.\r
4587 \r
4588         * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.\r
4589         * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.\r
4590         * bfd-in2.h: Regenerate.\r
4591 \r
4592 2000-07-18  Ulf Carlsson  <ulfc@engr.sgi.com>\r
4593 \r
4594         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add\r
4595         parenthesis in if statement.\r
4596 \r
4597 2000-07-17  Koundinya K  <kk@ddeorg.soft.net>\r
4598 \r
4599         Enable the support for Traditional MIPS.\r
4600         * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand\r
4601         return ict_none appropriately for traditional mips targets.\r
4602         (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.\r
4603         (STUB_MOVE): Conditionalize for traditonal mips.\r
4604         (STUB_LI16): Likewise.\r
4605         (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making\r
4606         room for RTPROC header.\r
4607         (_bfd_mips_elf_modify_segment_map): For a normal mips executable set\r
4608         the permission for the PT_DYNAMIC as read, write and execute.\r
4609         (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING\r
4610         for traditonal mips.\r
4611         (_bfd_mips_elf_create_dynamic_sections): Add the symbol\r
4612         _DYNAMIC_LINKING for traditonal mips.\r
4613         (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP\r
4614         in case of traditonal mips.\r
4615         (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT\r
4616         entry is required. For a function if PLT is not required then set the\r
4617         corresponding hash table entry to 0.\r
4618         (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for\r
4619         traditonal mips.\r
4620         (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a\r
4621         shared object set the value to 0.\r
4622         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol\r
4623         _DYNAMIC_LINKING for traditonal mips.\r
4624         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP\r
4625         for traditonal mips.\r
4626 \r
4627 2000-07-15  H.J. Lu  <hjl@gnu.org>\r
4628 \r
4629         * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.\r
4630 \r
4631 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>\r
4632 \r
4633         * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing\r
4634         out a structure that is BFD_IN_MEMORY.\r
4635 \r
4636 2000-07-11  Alan Modra  <alan@linuxcare.com.au>\r
4637 \r
4638         * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of\r
4639         bfd pointer.  Print section id instead of bfd pointer for local\r
4640         syms.  Prefix addend with `+' for global syms as well as local.\r
4641         Correct calculation of name component lengths.\r
4642         (elf64_hppa_check_relocs): Update call to get_dyn_name.\r
4643 \r
4644         From David Huggins-Daines  <dhd@linuxcare.com>\r
4645         * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.\r
4646         * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.\r
4647         (elf64_hppa_modify_segment_map): Likewise.\r
4648 \r
4649 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>\r
4650 \r
4651         * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA\r
4652         addresses to be "naturally" sign extended.  Return -1 if unknown.\r
4653         * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.\r
4654         * bfd-in2.h: Regenerate.\r
4655 \r
4656 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>\r
4657 \r
4658         * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32\r
4659         and ECOF_SIGNED_64 to list ways to extract an offset.\r
4660         (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,\r
4661         ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):\r
4662         Update.\r
4663         * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.\r
4664         * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.\r
4665 \r
4666 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>\r
4667 \r
4668         * elfcode.h (elf_object_p): Use bfd_set_start_address and not\r
4669         bfd_get_start_address.\r
4670         (elf_swap_ehdr_in): Sign extend e_entry when applicable.\r
4671         (elf_swap_ehdr_out): Ditto.\r
4672 \r
4673 2000-07-10  Alexander Aganichev  <AAganichev@hypercom.com>\r
4674 \r
4675         * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for\r
4676         compatibility with older binutils.\r
4677 \r
4678 2000-07-10  Alan Modra  <alan@linuxcare.com.au>\r
4679 \r
4680         * section.c (bfd_make_section_anyway): Start section_id at 0x10.\r
4681         (STD_SECTION): Avoid negative ids, instead use 0 to 3.\r
4682 \r
4683         From Ryan Bradetich  <rbradetich@uswest.net>\r
4684         * dwarf1.c (parse_die): Cure signed/unsigned char warnings.\r
4685         (parse_line_table): Ditto.\r
4686         (_bfd_dwarf1_find_nearest_line): Ditto.\r
4687         * syms.c (cmpindexentry): Remove extra `*' from params.\r
4688 \r
4689 2000-07-09  Koundinya K  <kk@ddeorg.soft.net>\r
4690 \r
4691         * elf32-mips.c (sort_dynamic_relocs): New Function.\r
4692         (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs\r
4693         via qsort to sort the dynamic relocations in increasing r_symndx\r
4694         value.\r
4695 \r
4696 2000-07-09  Alan Modra  <alan@linuxcare.com.au>\r
4697 \r
4698         * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add\r
4699         ATTRIBUTE_UNUSED to unused args.\r
4700         (get_opd): Likewise.\r
4701         (get_plt): Likewise.\r
4702         (get_dlt): Likewise.\r
4703         (get_stub): Likewise.\r
4704         (elf64_hppa_adjust_dynamic_symbol): Likewise.\r
4705         (elf64_hppa_link_output_symbol_hook): Likewise.\r
4706         (elf64_hppa_check_relocs): Delete unused var.\r
4707         (elf64_hppa_size_dynamic_sections): Likewise.\r
4708         (elf64_hppa_finalize_opd): Likewise.\r
4709         (elf64_hppa_finalize_dynreloc): Likewise.\r
4710         (elf64_hppa_modify_segment_map): Likewise.\r
4711         (elf64_hppa_finish_dynamic_sections): Likewise.\r
4712 \r
4713         * elf-hppa.h (elf_hppa_final_write_processing): Add\r
4714         ATTRIBUTE_UNUSED to unused args.\r
4715         (elf_hppa_final_link_relocate): Likewise.\r
4716         (elf_hppa_record_segment_addrs): Add paretheses.\r
4717         (elf_hppa_relocate_section): Constify dyn_name.\r
4718 \r
4719         From  David Huggins-Daines  <dhd@linuxcare.com>\r
4720         * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and\r
4721         rearrange case statement so that it gets preferred to 32-bit ones.\r
4722 \r
4723         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use\r
4724         asection->id instead of address of asection structure.\r
4725         (elf32_hppa_size_stubs): Likewise.\r
4726 \r
4727         * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section\r
4728         for .init* and .fini*.\r
4729 \r
4730         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers\r
4731         and addends used in stub names to 32 bits.\r
4732         (elf32_hppa_size_stubs): Likewise.\r
4733 \r
4734         * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend\r
4735         twice for R_PARISC_GPREL64.  Use bfd_put_32 for R_PARISC_PCREL32,\r
4736         not bfd_put_64.  Fix minor comment typo and formatting.\r
4737 \r
4738         Changes to create multiple linker stubs, positioned immediately\r
4739         before the section where they are required.\r
4740         * elf32-hppa.c: Don't include hppa_stubs.h.\r
4741         (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.\r
4742         (elf32_hppa_stub_hash_table): Delete.\r
4743         (elf32_hppa_link_hash_entry): Delete.\r
4744         (elf32_hppa_link_hash_table): Use plain bfd_hash_table for\r
4745         stub_hash_table, and store the struct here rather than a pointer.\r
4746         Delete output_symbol_count.  Add offset array.  Change\r
4747         global_value to a bfd_vma.\r
4748         (elf32_hppa_stub_hash_lookup): Use table instead of table->root.\r
4749         (elf32_hppa_stub_hash_traverse): Delete.\r
4750         (elf32_hppa_name_of_stub): Delete.\r
4751         (elf32_hppa_link_hash_lookup): Delete.\r
4752         (elf32_hppa_link_hash_traverse): Delete.\r
4753         (elf32_hppa_stub_hash_table_init): Delete.\r
4754         (elf32_hppa_size_of_stub): Pass input section and offset rather\r
4755         than location and calculate location here.  Don't pass name as all\r
4756         stubs are now the same size.\r
4757         (elf32_hppa_stub_hash_newfunc): Init new fields.\r
4758         (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table\r
4759         too.\r
4760         (elf32_hppa_bfd_final_link_relocate): Cast enums to int before\r
4761         comparing against ints.  Rewrite stub handling code.\r
4762         (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.\r
4763         Case enums to int before comparing against ints.  Remove\r
4764         bfd_reloc_dangerous case.\r
4765         (elf32_hppa_build_one_stub): Rewrite.\r
4766         (elf32_hppa_size_one_stub): New function.\r
4767         (elf32_hppa_build_stubs): Rewrite.\r
4768         (elf32_hppa_size_stubs): Pass in linker call-back functions.\r
4769         Rewrite stub-handling specific code.\r
4770 \r
4771         * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.\r
4772 \r
4773         * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.\r
4774 \r
4775         * hppa_stubs.h: Delete.\r
4776         * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h\r
4777         (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.\r
4778         * Makefile.in: Regenerate.\r
4779 \r
4780         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and\r
4781         e_nlrsel.\r
4782 \r
4783         * libhppa.h (hppa_field_adjust): Correct e_nsel case.\r
4784 \r
4785         * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset\r
4786         and section name for bfd_reloc_notsupported error message.\r
4787         (elf32_hppa_bfd_final_link_relocate): Print reasons for returning\r
4788         bfd_reloc_notsupported.\r
4789         (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.\r
4790 \r
4791         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle\r
4792         undefined weak symbols for all relocs.\r
4793         (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch\r
4794         offsets are relative to one past the delay slot.\r
4795         (elf32_hppa_size_stubs): Account for reloc addend when calculating\r
4796         branch destination.  Put addend into stub name too.\r
4797         (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and\r
4798         adjust by 8 when deciding whether a linker stub is needed.  Put\r
4799         addend into stub name as for above.\r
4800 \r
4801         * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on\r
4802         various args and vars.\r
4803         (elf32_hppa_bfd_final_link_relocate): Here too.\r
4804         (elf32_hppa_size_stubs): Rename index -> indx.  Use e_indx for\r
4805         inner block var to avoid shadowing.\r
4806 \r
4807         * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type):  Make `field' arg\r
4808         unsigned.\r
4809         * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.\r
4810         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.\r
4811         (elf_hppa_fake_sections): Rename local var to avoid shadowing.\r
4812 \r
4813         * libhppa.h: Change practically all unsigned ints to plain ints.\r
4814         Remove tests on gcc version.  Instead use ATTRIBUTE_UNUSED for\r
4815         prototypes.\r
4816 \r
4817         From Ryan Bradetich  <rbradetich@uswest.net>\r
4818         * libhppa.h (hppa_opcode_type): New enum to replace #define's.\r
4819         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to\r
4820         suit above.\r
4821         From  David Huggins-Daines  <dhd@linuxcare.com>\r
4822         * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants\r
4823         to the new OP_* ones.\r
4824 \r
4825         * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on\r
4826         error exit.  Bail out earlier on plabel relocs that we aren't\r
4827         interested in.  Don't tell elf32_hppa_stub_hash_lookup to copy\r
4828         string, and then don't free our copy.\r
4829         (elf32_hppa_build_one_stub): Make insn unsigned int.\r
4830 \r
4831         * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only\r
4832         available with BL, not BE and BLE.\r
4833 \r
4834         * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example\r
4835         code for elf arg relocs.\r
4836         (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local\r
4837         argument with elf_link_hash_entry h.  Handle undefined weak\r
4838         symbols.  Move $global$ lookup from here...\r
4839         (elf32_hppa_relocate_section): ...to here.  Return correct error\r
4840         message for non-handled relocs.\r
4841         (elf32_hppa_size_of_stub): Correctly test branch range.  Previous\r
4842         wrong test was -0x3ffff to +0x40000.\r
4843 \r
4844         * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,\r
4845         R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;\r
4846         Handle them as such.\r
4847         (elf_hppa_relocate_insn): Fix a typo.\r
4848 \r
4849         * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.\r
4850         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,\r
4851         assemble_17, assemble_21): Delete.\r
4852         Supply defines for all 64 possible opcodes.\r
4853         (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode\r
4854         formats.  Handle COMICLR.\r
4855         (hppa_rebuild_insn): Delete bfd argument.  Handle formats 10, -11,\r
4856         -10, -16, 16, 22.\r
4857 \r
4858         * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.\r
4859         (elf32_hppa_bfd_final_link_relocate): Major rewrite.\r
4860         (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls\r
4861         to suit.\r
4862         (elf32_hppa_size_stubs): Don't free stub_name twice.  Read in all\r
4863         the local syms - did this code get deleted accidentally?  Ignore\r
4864         undefined and undefweak syms.\r
4865 \r
4866         * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost\r
4867         block.  Use it instead of elf64_hppa_hash_table (info).\r
4868         (elf_hppa_final_link_relocate): Use hppa_info instead of\r
4869         elf64_hppa_hash_table (info).\r
4870 \r
4871         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,\r
4872         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.\r
4873         (hppa_rebuild_insn): Mask immediate bits here instead.\r
4874         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.\r
4875 \r
4876 2000-07-08  Alan Modra  <alan@linuxcare.com.au>\r
4877 \r
4878         * section.c (struct sec): Add id field.  Tidy comment formatting.\r
4879         (bfd_make_section_anyway): Set id.\r
4880         (STD_SECTION): Init id too.\r
4881         Change CONST to const throughout.\r
4882         * archures.c (bfd_arch_info): Tidy comment.\r
4883         (bfd_arch_list): Change a CONST to const.\r
4884         * libbfd-in.h: Tidy comments and replace CONST with const.\r
4885         * elf-bfd.h: Likewise.\r
4886         * libbfd.h: Regenerate.\r
4887         * bfd-in2.h: Regenerate.\r
4888         * libcoff.h: Regenerate.\r
4889 \r
4890 2000-07-07  DJ Delorie  <dj@redhat.com>\r
4891 \r
4892         * archive.c (_bfd_write_archive_contents): Add an informative\r
4893         comment.\r
4894 \r
4895 2000-07-06  Kazu Hirata  <kazu@hxi.com>\r
4896 \r
4897         * srec.c: Fix formatting.\r
4898 \r
4899 2000-06-05  DJ Delorie  <dj@redhat.com>\r
4900 \r
4901         * MAINTAINERS: new\r
4902 \r
4903 2000-07-04  Alexandre Oliva  <aoliva@redhat.com>\r
4904 \r
4905         * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol\r
4906         value of PC-relative offsets.\r
4907 \r
4908 2000-07-03  Jim Wilson  <wilson@cygnus.com>\r
4909 \r
4910         * elf64-alpha.c (alpha_elf_size_info): New.\r
4911         (elf_backend_size_info): Define to alpha_elf_size_info.\r
4912         * elfcode.h (elf_size_info): Change hash bucket size to 4.\r
4913 \r
4914 2000-07-03  Ulf Carlsson  <ulfc@engr.sgi.com>\r
4915 \r
4916         * elf32-mips.c: Include elf32-target.h again for the traditional\r
4917         MIPS targets.\r
4918 \r
4919 2000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>\r
4920 \r
4921         * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):\r
4922         Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.\r
4923         (avr_info_to_howto_rela): Likewise.\r
4924         (elf32_avr_gc_mark_hook): Likewise.\r
4925         (elf32_avr_gc_sweep_hook): Likewise.\r
4926         (elf32_avr_relocate_section): Likewise.\r
4927 \r
4928 2000-07-03  Mark Elbrecht  <snowball3@bigfoot.com>\r
4929 \r
4930         * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into\r
4931         an external symbol for a non-shared, non-relocatable link.\r
4932 \r
4933 2000-07-03  Nick Clifton  <nickc@redhat.com>\r
4934 \r
4935         * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol\r
4936         is an external symbol.\r
4937         (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak\r
4938         external symbol.\r
4939 \r
4940 2000-07-03  Kazu Hirata  <kazu@hxi.com>\r
4941 \r
4942         * reloc16.c: Fix formatting.\r
4943 \r
4944 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>\r
4945 \r
4946         * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*\r
4947         to add a new target for traditional mips i.e\r
4948         bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.\r
4949         * configure.in: Likewise.\r
4950         * configure: Rebuild.\r
4951         * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in\r
4952         bfd_target_vector.\r
4953         (bfd_elf32_tradlittlemips_vec): Likewise.\r
4954         * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test\r
4955         to see that elfNN_bed does not get redefined even if the target file\r
4956         is included twice for a chip. See elf32-mips.c.\r
4957 \r
4958 2000-07-01  Alan Modra  <alan@linuxcare.com.au>\r
4959 \r
4960         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed\r
4961         (CLEANFILES): Add DEPA.\r
4962         * Makefile.in: Regenerate.\r
4963 \r
4964 2000-06-30  DJ Delorie  <dj@cygnus.com>\r
4965 \r
4966         * peicode.h (coff_swap_filehdr_in): can't use e_magic because we\r
4967         can't assume the PE header is at 0x80.\r
4968 \r
4969 2000-06-29  Mark Elbrecht  <snowball3@bigfoot.com>\r
4970 \r
4971         * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.\r
4972 \r
4973 2000-06-28  Mark Elbrecht  <snowball3@bigfoot.com>\r
4974 \r
4975         * go32stub.h: Update stub.\r
4976 \r
4977 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>\r
4978 \r
4979         * archures.c (bfd_mach_avr5): Define.\r
4980         * bfd-in2.h (bfd_mach_avr5): Define.\r
4981         * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to\r
4982         bfd_mach_avr5, add bfd_mach_avr4.  Update comments.\r
4983         (compatible): Update comment.  Add missing test.\r
4984         * elf32-avr.c (avr_final_link_relocate): Support 8K wrap\r
4985         for avr2 and avr4.  Simplify 8K wrap code.\r
4986         (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.\r
4987         (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.\r
4988 \r
4989 2000-06-26  Kazu Hirata  <kazu@hxi.com>\r
4990 \r
4991         * coff-h8300.c: Fix formatting.\r
4992         * cpu-h8300.c: Likewise.\r
4993 \r
4994 2000-06-24  Alexandre Oliva  <aoliva@redhat.com>\r
4995 \r
4996         * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'\r
4997         for local symbols whose names are unknown.\r
4998 \r
4999 2000-06-22  Alan Modra  <alan@linuxcare.com.au>\r
5000 \r
5001         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we\r
5002         find one.\r
5003         * Makefile.in: Regenerate.\r
5004         * doc/Makefile.in: Regenerate.\r
5005 \r
5006 2000-06-20  H.J. Lu  <hjl@gnu.org>\r
5007 \r
5008         * Makefile.am: Rebuild dependency.\r
5009         * Makefile.in: Rebuild.\r
5010 \r
5011 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>\r
5012 \r
5013         * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.\r
5014         (elf_backend_copy_indirect_symbol): Map to the new function.\r
5015 \r
5016 2000-06-20  Alan Modra  <alan@linuxcare.com.au>\r
5017 \r
5018         * archive.c (normalize): Correct pointer comparison when checking\r
5019         for backslashes.\r
5020         (bfd_bsd_truncate_arname): Likewise.\r
5021         (bfd_gnu_truncate_arname): Likewise.\r
5022 \r
5023 2000-06-20  Ulf Carlsson  <ulfc@engr.sgi.com>\r
5024 \r
5025         * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual\r
5026         sections elf_{text,data}_{section,symbol}.\r
5027         * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.\r
5028         (_bfd_mips_elf_hide_symbol): New function.\r
5029         (elf_backend_hide_symbol): Map to the new function.\r
5030         (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD\r
5031         definitions of mips_elf_{text,data}_{section,symbol}.\r
5032         (mips_elf_local_relocation_p): Try to find the direct symbol\r
5033         based on new check_forced argument.\r
5034         (mips_elf_calculate_relocation): Use new version of\r
5035         mips_elf_local_relocation_p.\r
5036         (mips_elf_relocate_section): Likewise.\r
5037         (_bfd_mips_elf_relocate_section): Likewise.\r
5038         (mips_elf_sort_hash_table): Only assert that have enough GOT\r
5039         space.\r
5040         (mips_elf_got16_entry): Match all 32 bits to the existing GOT\r
5041         entry if the relocation based on the new external argument.\r
5042         (mips_elf_create_dynamic_relocation): Assert that we have a\r
5043         section contents allocated where we can swap out the dynamic\r
5044         relocations.\r
5045         (mips_elf_calculate_relocation): Find the real hash-table entry\r
5046         correctly by using h->root.root.type.  Only create a dynamic\r
5047         relocation entry if the symbol is defined in a shared library.\r
5048         Create an external GOT entry for the GOT16 relocation if the\r
5049         symbol was forced local.\r
5050         (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a\r
5051         dynamic index if the symbol was forced local.\r
5052 \r
5053 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>\r
5054 \r
5055         * elf32-mips.c: Fix typos in comments.\r
5056 \r
5057 2000-06-19  Mark Kettenis  <kettenis@gnu.org>\r
5058 \r
5059         * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef\r
5060         CORE_VERSION_1.\r
5061 \r
5062 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>\r
5063 \r
5064         * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.\r
5065         * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,\r
5066         BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.\r
5067         * configure.in (bfd_elf32_m68hc12_vec): Recognize.\r
5068         (bfd_elf32_m68hc11_vec): Likewise.\r
5069         * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.\r
5070         Supports 68hc11 & 68hc12  at the same time.\r
5071         * targets.c (bfd_elf32_m68hc12_vec): Declare and put in\r
5072         bfd_target_vector.\r
5073         (bfd_elf32_m68hc11_vec): Likewise.\r
5074         * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.\r
5075         * archures.c (bfd_m68hc12_arch): Define and register in global list\r
5076         (bfd_m68hc11_arch): Likewise.\r
5077         * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,\r
5078         BFD_RELOC_M68HC11_3B): Define.\r
5079         * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.\r
5080         * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.\r
5081 \r
5082 2000-06-18  Ulf Carlsson  <ulfc@engr.sgi.com>\r
5083 \r
5084         * elf_bfd.h (struct elf_backend_data): Add info argument to\r
5085         elf_backend_hide_symbol.\r
5086         (_bfd_elf_link_hash_hide_symbol): Likewise.\r
5087         * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.\r
5088         * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.\r
5089         * elflink.h (elf_link_add_object_symbols): Likewise.\r
5090         (elf_link_assign_sym_version): Likewise.\r
5091 \r
5092 2000-06-18  H.J. Lu  <hjl@gnu.org>\r
5093 \r
5094         * coff-i386.c (coff_i386_reloc): Don't return in case of\r
5095         output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.\r
5096         Compensate PE relocations when linking with non-PE object\r
5097         files to generate a non-PE executable.\r
5098 \r
5099 2000-06-17  Ulf Carlsson  <ulfc@engr.sgi.com>\r
5100 \r
5101         * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write\r
5102         GOT entries if we're doing a static link or -Bsymbolic link.\r
5103 \r
5104 2000-06-15  Ulf Carlsson  <ulfc@engr.sgi.com>\r
5105 \r
5106         * elflink.h (elf_link_adjust_relocs): Check for and call backend\r
5107         specifific swap_reloc_{in,out} and swap_reloca_{in,out} if\r
5108         available.\r
5109         (elf_link_output_relocs): Likewise.\r
5110         (elf_reloc_link_order): Likewise.\r
5111 \r
5112 2000-06-16  Nicholas Duffek  <nsd@redhat.com>\r
5113 \r
5114         * archures.c (enum bfd_architecture): #define constants for\r
5115         PowerPc and RS6000 machine numbers.\r
5116         * bfd-in2.h: Regenerate.\r
5117         * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch\r
5118         to bfd_arch_powerpc instead of bfd_arch_rs6000.  Refer to PowerPc\r
5119         and RS6000 machine numbers using #defined constants from\r
5120         archures.c.\r
5121         * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000\r
5122         machine numbers using #defined constants from archures.c.  Add\r
5123         entries for EC603e, 630, A35, RS64II, RS64III, 7400.  Specify\r
5124         64-bit words in 620 entry.\r
5125         * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,\r
5126         RSC, and RS2.\r
5127         (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).\r
5128 \r
5129 2000-06-16  Nicholas Duffek  <nsd@cygnus.com>\r
5130 \r
5131         * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.\r
5132         * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.\r
5133         * libcoff.h (struct xcoff_tdata): Define xcoff64 field.\r
5134 \r
5135 2000-06-16  Nicholas Duffek  <nsd@redhat.com>\r
5136 \r
5137         * bfd-in.h (bfd_family_coff): Define.\r
5138         * bfd-in2.h: Regenerate.\r
5139         * coffgen.c (coff_count_linenumbers, coff_symbol_from,\r
5140         coff_find_nearest_line): Check COFFness using bfd_family_coff()\r
5141         instead of bfd_target_coff_flavour.\r
5142         * cofflink.c (_bfd_coff_final_link): Likewise.\r
5143         * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to\r
5144         exclude XCOFF files.\r
5145         * reloc.c (bfd_perform_relocation, bfd_install_relocation):\r
5146         Likewise.\r
5147         * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.\r
5148         * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.\r
5149         * xcofflink.c (XCOFF_XVECP): Delete.\r
5150         (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,\r
5151         bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,\r
5152         bfd_xcoff_record_link_assignment,\r
5153         bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with\r
5154         check for bfd_target_xcoff_flavour.\r
5155 \r
5156 2000-06-16  Nicholas Duffek  <nsd@redhat.com>\r
5157 \r
5158         * rs6000-core.c: Support 64-bit core files, support pre-4.3 core\r
5159         files on AIX 4.3.\r
5160         (read_hdr): New function.\r
5161         (rs6000coff_core_p): Store mstsave or __context64 struct instead\r
5162         of trying to extract individual registers.  Set abfd->arch_info\r
5163         to match the architecture that created the core file.\r
5164         (rs6000coff_get_section_contents): Delete.\r
5165         * xcoff-target.h (rs6000coff_get_section_contents): Delete.\r
5166 \r
5167 2000-06-14  H.J. Lu  <hjl@gnu.org>\r
5168 \r
5169         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)\r
5170         is NULL.\r
5171 \r
5172 2000-06-13  H.J. Lu  <hjl@gnu.org>\r
5173 \r
5174         * configure: Regenerate.\r
5175 \r
5176 2000-06-13  J"orn Rennecke <amylaar@cygnus.co.uk>\r
5177 \r
5178         * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of\r
5179         armpei_little_vec.\r
5180 \r
5181 2000-06-08  David O'Brien  <obrien@FreeBSD.org>\r
5182 \r
5183         * configure.in (VERSION): Update to show this is the CVS mainline.\r
5184 \r
5185 2000-06-07  Alan Modra  <alan@linuxcare.com.au>\r
5186 \r
5187         * elf32-d10v.c: Include elf/d10v.h\r
5188         (enum reloc_type): Delete.\r
5189         * elf32-d30v.c: Include elf/d30v.h\r
5190         (enum reloc_type): Delete.\r
5191 \r
5192         * Makefile.am: Run "make dep-am" to regenerate dependencies.\r
5193         * Makefile.in: Regenerate.\r
5194 \r
5195         * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.\r
5196         (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and\r
5197         move HOWTOs into elf_howto_table.\r
5198         (R_386_standard, R_386_ext_offset): Define.\r
5199         (R_386_ext, R_386_vt_offset, R_386_vt): Define.\r
5200         (elf_i386_reloc_type_lookup): Modify calculation of index into\r
5201         elf_howto_table since we've removed the padding.\r
5202         (elf_i386_info_to_howto_rel): Likewise.\r
5203         (elf_i386_relocate_section): Likewise.\r
5204 \r
5205 2000-06-06  Michael Snyder  <msnyder@seadog.cygnus.com>\r
5206 \r
5207         * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.\r
5208 \r
5209 2000-06-05  H.J. Lu  <hjl@gnu.org>\r
5210 \r
5211         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag\r
5212         an error when seeing an undefined symbol with hidden/internal\r
5213         attribute. It is handled in *_relocate_section ().\r
5214 \r
5215 2000-06-05  H.J. Lu  <hjl@gnu.org>\r
5216 \r
5217         * elflink.h (elf_fix_symbol_flags): Follow the link for the\r
5218         indirect symbol for the ELF_LINK_NON_ELF bit.\r
5219         (elf_link_output_extsym): Don't output the indirect symbol even\r
5220         if the ELF_LINK_NON_ELF bit is set.\r
5221 \r
5222 2000-06-01  J.T. Conklin  <jtc@redback.com>\r
5223 \r
5224         * config.bfd (i[3456]86-*-netbsdelf*): New target.\r
5225         (i[3456]86-*-netbsdaout*): New target.\r
5226         (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.\r
5227         (i[3456]86-*-openbsd*): Likewise.\r
5228 \r
5229 2000-05-30  Andrew Cagney  <cagney@b1.cygnus.com>\r
5230 \r
5231         * trad-core.c: From hpux-core.c, include <dirent.h> or\r
5232         <sys/ndir.h> when possible.\r
5233 \r
5234 2000-05-31  Ulrich Drepper  <drepper@redhat.com>\r
5235 \r
5236         * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version\r
5237         definitions.  We must not assume they are sorted in the file\r
5238         according to their index numbers.\r
5239 \r
5240 2000-05-31  Alan Modra  <alan@linuxcare.com.au>\r
5241 \r
5242         * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field\r
5243         selector for R_PARISC_PCREL17R.  R_PARISC_DIR17R and\r
5244         R_PARISC_DIR17F are for absolute branches; Handle them as such.\r
5245 \r
5246 2000-05-30  Nick Clifton  <nickc@cygnus.com>\r
5247 \r
5248         * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,\r
5249         80960CA, 80960MC as valid machine names.\r
5250 \r
5251 2000-05-30  H.J. Lu  <hjl@gnu.org>\r
5252 \r
5253         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the\r
5254         visibility bits if the symbol is undefined. Correctly handle\r
5255         weak undefined symbols with hidden and internal attributes.\r
5256 \r
5257         * elflink.h (elf_link_add_object_symbols): Always turn the\r
5258         symbol into local if it has the hidden or internal attribute.\r
5259 \r
5260 2000-05-29  Philip Blundell  <philb@gnu.org>\r
5261 \r
5262         * ppcboot.c:  Add packed attribute if compiling with GCC.\r
5263 \r
5264 2000-05-29  Anatoly Vorobey  <mellon@pobox.com>\r
5265 \r
5266         * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.\r
5267 \r
5268 2000-05-26  Michael Snyder  <msnyder@seadog.cygnus.com>\r
5269 \r
5270         * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,\r
5271         elfcore_grok_psinfo): Add code to allow debugging a 32-bit\r
5272         corefile on a 64-bit (Sparc Solaris) host.  Also clean up\r
5273         a few old comments.\r
5274 \r
5275 2000-05-26  Alan Modra  <alan@linuxcare.com.au>\r
5276 \r
5277         * Makefile.am: Update dependencies with "make dep-am"\r
5278         * Makefile.in: Regenerate.\r
5279 \r
5280         * sysdep.h (gettext, dgettext, dcgettext, textdomain,\r
5281         bindtextdomain): Replace defines with those from intl/libgettext.h\r
5282         to quieten gcc warnings.\r
5283 \r
5284 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>\r
5285 \r
5286         * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.\r
5287 \r
5288         * archive.c (normalize, bfd_bsd_truncate_arname,\r
5289         bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support\r
5290         file names with backslashes.\r
5291 \r
5292         * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file\r
5293         before opening it.\r
5294 \r
5295         * sysdep.h: Include filenames.h.\r
5296 \r
5297 2000-05-26  Alan Modra  <alan@linuxcare.com.au>\r
5298 \r
5299         * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.\r
5300 \r
5301 2000-05-26  Jakub Jelinek  <jakub@redhat.com>\r
5302 \r
5303         * elf64-sparc.c (sparc64_elf_relax_section): New.\r
5304         (sparc64_elf_relocate_section): Optimize tail call into branch always\r
5305         if possible.\r
5306         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.\r
5307         (elf32_sparc_relax_section): New.\r
5308 \r
5309 2000-05-26  Jakub Jelinek  <jakub@redhat.com>\r
5310 \r
5311         * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.\r
5312         Remove unusued variables.\r
5313         (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.\r
5314         (sparc64_elf_merge_private_bfd_data): Fix shared library case from\r
5315         previous fix, so that shared libs really don't influence targets\r
5316         extension mask and memory model.\r
5317 \r
5318 2000-05-23  H.J. Lu  <hjl@gnu.org>\r
5319 \r
5320         * elf64-alpha.c (elf64_alpha_relocate_section): Check\r
5321         h->root.other not h->other.\r
5322         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.\r
5323 \r
5324         * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.\r
5325 \r
5326 2000-05-23  H.J. Lu  <hjl@gnu.org>\r
5327 \r
5328         * elf32-i386.c (elf_i386_relocate_section): Don't allow the\r
5329         undefined symbol with the non-default visibility attributes.\r
5330         * elf-hppa.h (elf_hppa_relocate_section): Likewise.\r
5331         * elf32-arm.h (elf32_arm_relocate_section): Likewise.\r
5332         * elf32-i370.c (i370_elf_relocate_section): Likewise.\r
5333         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.\r
5334         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.\r
5335         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.\r
5336         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.\r
5337         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.\r
5338         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.\r
5339         * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.\r
5340         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.\r
5341 \r
5342 2000-05-22  Richard Henderson  <rth@cygnus.com>\r
5343 \r
5344         * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,\r
5345         PCREL22, PCREL64I.  Zero size of special relocs.\r
5346         (elf64_ia64_reloc_type_lookup): Likewise.\r
5347         (USE_BRL, oor_brl, oor_ip): New.\r
5348         (elf64_ia64_relax_section): New.\r
5349         (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.\r
5350         (elf64_ia64_install_value): Likewise, plus PCREL21BI.\r
5351         (elf64_ia64_relocate_section): Likewise.\r
5352         (bfd_elf64_bfd_relax_section): New.\r
5353         * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.\r
5354         (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.\r
5355         * bfd-in2.h, libbfd.h: Regenerate.\r
5356 \r
5357 2000-05-22  Nick Clifton  <nickc@cygnus.com>\r
5358 \r
5359         * configure.in : Add peigen.lo to MIPS PE targets.\r
5360         * configure: Regenerate.\r
5361 \r
5362 2000-05-22  Momchil Velikov  <velco@fadata.bg>\r
5363 \r
5364         * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess\r
5365         only if it is known for both input and output bfds. Separate\r
5366         error message strings as in some languages, it may be necessary\r
5367         to change more than one place in the string to change between\r
5368         'big' and 'little'.\r
5369 \r
5370         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline\r
5371         endianess checks, call _bfd_generic_verify_endian_match() instead.\r
5372 \r
5373         * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.\r
5374 \r
5375         * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.\r
5376 \r
5377         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify\r
5378         endianess before checking bfd flavours.\r
5379 \r
5380 2000-05-22  H.J. Lu  <hjl@gnu.org>\r
5381 \r
5382         * elflink.h (elf_link_output_extsym): Clear the visibility\r
5383         field for symbols not defined locally.\r
5384 \r
5385 2000-05-18  Alan Modra  <alan@linuxcare.com.au>\r
5386 \r
5387         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,\r
5388         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.\r
5389         (hppa_rebuild_insn): Mask immediate bits here instead.\r
5390         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.\r
5391 \r
5392 2000-05-18  Momchil Velikov <velco@fadata.bg>\r
5393 \r
5394         * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting\r
5395         relocs for an executable, ensure that they are virtual addresses.\r
5396 \r
5397 2000-05-18  Jeffrey A Law  (law@cygnus.com)\r
5398 \r
5399         * config.bfd (hppa*64*-*-hpux11*): New target triplet.\r
5400 \r
5401 2000-05-17  S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>\r
5402             Rick Gorton             <gorton@scrugs.lkg.dec.com>\r
5403 \r
5404         * elflink.h: Add emitrelocations support: when enabled, relocation\r
5405         information and relocation sections are put into final output\r
5406         executables.  If the emitrelocations flag is set, do the following:\r
5407         (elf_bfd_final_link): Emit relocation sections.\r
5408         (elf_link_input_bfd): Compute relocation section contents.\r
5409         (elf_gc_sections): Don't clean relocation sections.\r
5410 \r
5411 2000-05-16  Catherine Moore  <clm@cygnus.com>\r
5412 \r
5413         * som.c (som_decode_symclass):  Recognize weak symbols.\r
5414 \r
5415 2000-05-16  Szabolcs Szakacsits <szaka@F-Secure.com>\r
5416 \r
5417         * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that\r
5418         read idata section only from dataoff.\r
5419         (pe_print_edata): Correctly check for valid eat_member.\r
5420 \r
5421 2000-05-16  J"orn Rennecke <amylaar@cygnus.co.uk>\r
5422 \r
5423         * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.\r
5424 \r
5425 2000-05-14  Philip Blundell  <philb@gnu.org>\r
5426 \r
5427         * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.\r
5428 \r
5429 2000-05-12  Alan Modra  <alan@linuxcare.com.au>\r
5430 \r
5431         * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec\r
5432 \r
5433         * peigen.c (pe_print_idata): Look for .idata section and print\r
5434         info even if data directory has zero entries.  Read idata section\r
5435         starting from dataoff, and adjust all data offsets to suit.  Cast\r
5436         all bfd_vma vars to unsigned long before passing to fprintf.\r
5437         * peigen.c (pe_print_edata): Similarly, look for .edata section\r
5438         and print info even if data directory has zero entries.  Cast\r
5439         all bfd_vma vars to unsigned long before passing to fprintf.\r
5440 \r
5441         From Szabolcs Szakacsits <szaka@F-Secure.com>\r
5442         * peigen.c (pe_print_idata): Use bfd_section_size rather than data\r
5443         directory size which may be bogus.\r
5444         * peigen.c (pe_print_edata): Similarly.\r
5445 \r
5446 2000-05-09  Alan Modra  <alan@linuxcare.com.au>\r
5447 \r
5448         * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela\r
5449         section is empty.\r
5450         (copy_private_bfd_data): Allow for space possibly taken up by elf\r
5451         headers when calculating segment physical address from lma.\r
5452 \r
5453 2000-05-08  Alan Modra  <alan@linuxcare.com.au>\r
5454 \r
5455         * versados.c (versados_scan): Init stringlen and pass_2_done.\r
5456 \r
5457         * trad-core.c (trad_unix_core_file_p): Return\r
5458         bfd_error_wrong_format rather than bfd_error_file_truncated.\r
5459 \r
5460         * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to\r
5461         add_data_entry.  DataDirectory virtual address is relative.\r
5462         (pe_print_idata): Account for relative DataDirectory virtual\r
5463         addresses.  Don't trash datasize inside POWERPC_LE_PE code.\r
5464         (pe_print_edata): Similarly.\r
5465 \r
5466         From Szabolcs Szakacsits <szaka@F-Secure.com>\r
5467         * peigen.c (dir_names): Add Delay Import Directory.\r
5468         (pe_print_idata):  Always search for bfd section containing\r
5469         idata address rather than looking up section name.  Print this\r
5470         section name rather than .idata.\r
5471         (pe_print_edata): Similarly.  Also print some fields as %08lx.\r
5472         (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as\r
5473         Win32Version.\r
5474 \r
5475 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>\r
5476 \r
5477         * xcoff.h: Rename to xcoff-target.h\r
5478         * Makefile.am: Change all instances of xcoff.h to xcoff-target.h\r
5479         * coff-rs6000.c: Ditto.\r
5480         * coff64-rs6000.c: Ditto.\r
5481         * coff-pmac.c: Ditto.\r
5482         * Makefile.in: Regenerate.\r
5483 \r
5484 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>\r
5485 \r
5486         * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):\r
5487         Change U802TOC64MAGIC to U803XTOCMAGIC.\r
5488 \r
5489 2000-05-04  Michael Snyder  <msnyder@seadog.cygnus.com>\r
5490 \r
5491         * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.\r
5492         * bfd-in.h: Prototype bfd_elf_get_arch_size.\r
5493         * bfd-in2.h: Prototype bfd_elf_get_arch_size.\r
5494 \r
5495 2000-05-04  Alan Modra  <alan@linuxcare.com.au>\r
5496 \r
5497         * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.\r
5498 \r
5499 2000-05-03  Martin v. L\81öwis  <loewis@informatik.hu-berlin.de>\r
5500 \r
5501         * elflink.h (elf_link_add_object_symbols): Reset dynindx for\r
5502         hidden and internal symbols.\r
5503         (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with\r
5504         visibility.\r
5505         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not\r
5506         assign a PLT or GOT entry to symbols with hidden and\r
5507         internal visibility.\r
5508 \r
5509 2000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>\r
5510 \r
5511         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for\r
5512         the .bss section.\r
5513         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.\r
5514 \r
5515 2000-05-02  H.J. Lu  <hjl@gnu.org>\r
5516 \r
5517         * elf.c (prep_headers): Use ELFOSABI_NONE instead of\r
5518         ELFOSABI_SYSV.\r
5519 \r
5520 2000-05-02  Alan Modra  <alan@linuxcare.com.au>\r
5521 \r
5522         * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.\r
5523         * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo.  Regenerate\r
5524         dependencies.\r
5525         * Makefile.in: Regenerate.\r
5526 \r
5527 2000-05-01  Jim Wilson  <wilson@cygnus.com>\r
5528 \r
5529         * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.\r
5530         (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.\r
5531         (BFD64_BACKENDS): Delete coff-ia64.lo.  Add efi-app-ia64.lo.\r
5532         (BFD64_BACKENDS_CFILES): Delete coff-ia64.c.  Add efi-app-ia64.c.\r
5533         * Makefile.in: Rebuild.\r
5534 \r
5535 2000-05-02  Alan Modra  <alan@linuxcare.com.au>\r
5536 \r
5537         * config.bfd: Re-enable elf32-hppa.  It now compiles, even if it\r
5538         doesn't work very well.\r
5539 \r
5540         * elf-hppa.h (elf_hppa_internal_shdr): Define.\r
5541         (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.\r
5542         Set hdr->s_type to 1 if ARCH_SIZE == 32.\r
5543         (_bfd_elf_hppa_gen_reloc_type): Add prototype.\r
5544         (elf_hppa_info_to_howto): Likewise.\r
5545         (elf_hppa_info_to_howto_rel): Likewise.\r
5546         (elf_hppa_reloc_type_lookup): Likewise.\r
5547         (elf_hppa_is_local_label_name): Likewise.\r
5548         (elf_hppa_fake_sections): Likewise.\r
5549         (elf_hppa_final_write_processing): Likewise.\r
5550         (elf_hppa_howto_table): Fully initialise all entries.\r
5551         (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.\r
5552         (elf_hppa_info_to_howto): Likewise.\r
5553         (elf_hppa_info_to_howto_rel): Likewise.\r
5554         (elf_hppa_reloc_type_lookup): Likewise.\r
5555         (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,\r
5556         elf_hppa_unmark_useless_dynamic_symbols,\r
5557         elf_hppa_remark_useless_dynamic_symbols,\r
5558         elf_hppa_record_segment_addrs, elf_hppa_final_link,\r
5559         elf_hppa_relocate_section, elf_hppa_final_link_relocate,\r
5560         elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until\r
5561         elf32-hppa.c mess is cleaned up.\r
5562         (elf_hppa_final_link_relocate): Make insn and r_type unsigned\r
5563         int.  Delete r_field.  In case R_PARISC_PCREL21L, don't set\r
5564         r_field then call hppa_field_adjust inline func with variable\r
5565         r_field arg, instead call hppa_field_adjust with fixed arg.\r
5566         In case R_PARISC_PCREL22F, don't set r_field.\r
5567         (elf_hppa_relocate_insn): Change args and return type to unsigned\r
5568         int.  Call re_assemble_* funcs to do the work.\r
5569 \r
5570         * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when\r
5571         sign extending.\r
5572 \r
5573         * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign\r
5574         extending.\r
5575         (sign_extend): Mask first before sign extending.\r
5576         (low_sign_extend): Rewrite without condition expression.\r
5577         (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,\r
5578         dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.\r
5579         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,\r
5580         assemble_17, assemble_21, sign_unext, low_sign_unext): Return\r
5581         result as function return value rather than through pointer arg.\r
5582         Accept unsigned int args, and return unsigned int.\r
5583         (re_assemble_3): New.  Combines function of dis_assemble_3 with\r
5584         re-assembly of opcode and immediate.\r
5585         (re_assemble_12): Likewise.\r
5586         (re_assemble_16): Likewise.\r
5587         (re_assemble_17): Likewise.\r
5588         (re_assemble_21): Likewise.\r
5589         (re_assemble_22): Likewise.\r
5590         (hppa_field_adjust): Rewrite and document, paying attention to\r
5591         size of types and signed/unsigned issues.\r
5592         (get_opcode): Shift before masking.\r
5593         (FDLW): Rename to FLDW.\r
5594         (bfd_hppa_insn2fmt): Change arg to unsigned int.  Delete fmt.\r
5595         (hppa_rebuild_insn): Change args and return value to unsigned\r
5596         int.  Make use of re_assemble_*.  Correct case 11.\r
5597 \r
5598         * dep-in.sed: Handle ../opcodes/.\r
5599         * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,\r
5600         elf64-hppa.h, hppa_stubs.h, xcoff.h.\r
5601         (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.\r
5602         Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,\r
5603         elfarm-nabi.lo dependencies outside of auto-dependency area.\r
5604         Regenerate dependencies.\r
5605         * Makefile.in: Regenerate.\r
5606 \r
5607         * configure.in (TRAD_HEADER): Test non-null before\r
5608         AC_DEFINE_UNQUOTED.\r
5609         * configure: Regenerate.\r
5610 \r
5611         * reloc.c: Fix mis-spelling in comment.\r
5612 \r
5613 2000-05-01  Alan Modra  <alan@linuxcare.com.au>\r
5614 \r
5615         * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.\r
5616         * vms.c (vms_openr_next_archived_file): Return NULL.\r
5617 \r
5618 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>\r
5619 \r
5620         * coffcode.h Copy changes mistakenly done to libcoff.h in\r
5621         4/24/2000 patch.\r
5622 \r
5623 2000-04-29  Andreas Jaeger  <aj@suse.de>\r
5624 \r
5625         * libbfd-in.h: Correctly check GCC version.\r
5626         * bfd-in.h: Likewise.\r
5627         * libhppa.h: Likewise.\r
5628         * libbfd.h: Regenerate.\r
5629         * bfd-in2.h: Regenerate.\r
5630 \r
5631 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>\r
5632 \r
5633         * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add\r
5634         coffdu-rs6000.{lo,c}.\r
5635         (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency\r
5636         on xcoff.h\r
5637         * Makefile.in: Regenerate.\r
5638         * xcoff.h: New file.\r
5639         * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.\r
5640         * coff-rs6000.c: Move all declarations and defines that are\r
5641         common to the xcoff backends into xcoff.h\r
5642         * coff64-rs6000.c: Ditto,\r
5643 \r
5644 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>\r
5645 \r
5646         * coff-mips.c (mips_ecoff_backend_data):  Add initialization of\r
5647         _bfd_coff_force_symnames in strings and\r
5648         _bfd_coff_debug_string_prefix_length to their default values.\r
5649         * coff-sh.c: (bfd_coff_small_swap_table): Ditto.\r
5650 \r
5651 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>\r
5652 \r
5653         * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of\r
5654         _bfd_coff_force_symnames in strings and\r
5655         _bfd_coff_debug_string_prefix_length to their default values.\r
5656 \r
5657 2000-04-27  Alan Modra  <alan@linuxcare.com.au>\r
5658 \r
5659         * elf32-m68k.c (elf_m68k_gc_sweep_hook):  Return if dynobj NULL.\r
5660         Check local_got_refcounts before dereferencing.\r
5661 \r
5662         * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL\r
5663         before deciding we don't need R_PPC_PLT32 relocation.\r
5664         (ppc_elf_gc_sweep_hook): Check local_got_refcounts before\r
5665         dereferencing.\r
5666 \r
5667         * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.\r
5668 \r
5669         * elf32-i386.c (elf_i386_check_relocs): Reference count .got and\r
5670         .plt entries.\r
5671         (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.\r
5672         (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.\r
5673         (elf_i386_relocate_section): Allow for .plt to go missing.\r
5674         (elf_i386_finish_dynamic_symbol): Use same test to decide if we\r
5675         can use a relative reloc for got as elf_i386_relocate_section.\r
5676         (bfd_elf32_bfd_final_link): Define to use gc form of final link.\r
5677 \r
5678 2000-04-26  Clinton Popetz  <cpopetz@cygnus.com>\r
5679 \r
5680         * config.bfd: Remove extraneous bfd_powerpc_64_arch.\r
5681 \r
5682 2000-04-24  Clinton Popetz  <cpopetz@cygnus.com>\r
5683 \r
5684         * Makefile.am (coff64-rs6000.lo): New rule.\r
5685         * Makefile.in: Regenerate.\r
5686         * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,\r
5687         xcoff_is_local_label_name, xcoff_rtype2howto,\r
5688         xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,\r
5689         xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,\r
5690         xcoff_write_archive_contents): No longer static, and prefix with _bfd_.\r
5691         (NO_COFF_SYMBOLS): Define.\r
5692         (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,\r
5693         xcoff64_swap_aux_out): New functions; handle xcoff symbol tables\r
5694         internally.\r
5695         (MINUS_ONE): New macro.\r
5696         (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS\r
5697         relocation.\r
5698         (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,\r
5699         coff_SWAP_aux_out): Map to the new functions.\r
5700         * coff64-rs6000.c: New file.\r
5701         * libcoff.h (bfd_coff_backend_data): Add new fields\r
5702         _bfd_coff_force_symnames_in_strings and\r
5703         _bfd_coff_debug_string_prefix_length.\r
5704         (bfd_coff_force_symnames_in_strings,\r
5705         bfd_coff_debug_string_prefix_length): New macros for above fields.\r
5706         * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.\r
5707         Set machine to 620 for XCOFF64.  Use bfd_coff_swap_sym_in instead\r
5708         of using coff_swap_sym_in directly.\r
5709         (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.\r
5710         (coff_set_flags) Set magic for XCOFF64.\r
5711         (coff_compute_section_file_positions): Add symbol name length to\r
5712         string section length if bfd_coff_debug_string_prefix_length is\r
5713         true.\r
5714         (coff_write_object_contents): Don't do reloc overflow for XCOFF64.\r
5715         (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of\r
5716         using coff_swap_lineno_in directly.\r
5717         (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings\r
5718         and _bfd_coff_debug_string_prefix_length fields.\r
5719         * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force\r
5720         symbol names into strings table when\r
5721         bfd_coff_force_symnames_in_strings is true.\r
5722         * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,\r
5723         SET_RELOC_VADDR): New macros.\r
5724         (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.\r
5725         (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C\r
5726         code.\r
5727         (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64\r
5728         changes within RS6000COFF_C specific code.\r
5729         (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,\r
5730         MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.\r
5731         * reloc.c (bfd_perform_relocation, bfd_install_relocation):\r
5732         Extend existing hack on target name.\r
5733         * xcofflink.c (XCOFF_XVECP): Extend existing hack on\r
5734         target name.\r
5735         * coff-tic54x.c (ticof): Keep up to date with new fields\r
5736         in bfd_coff_backend_data.\r
5737         * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define\r
5738         targ_selvecs to include rs6000coff64_vec for rs6000.\r
5739         * configure.in: Add rs6000coff64_vec case.\r
5740         * cpu-powerpc.c: New bfd_arch_info_type.\r
5741 \r
5742 2000-04-24  Jeffrey A Law  (law@cygnus.com)\r
5743 \r
5744         * config.bfd: Only disable elf32-hppa vectors, not all of the\r
5745         BSD and OSF configuration support.  Provide (disabled) clauses\r
5746         for PA64 support.\r
5747         * configure.in: Add clause for PA64 support.\r
5748         * configure: Rebuilt.\r
5749 \r
5750         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.\r
5751         (bfd_elf64_hppa_vec): Declare.\r
5752 \r
5753         * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo\r
5754         (BFD64_BACKENDS_CFILES): Add elf64-hppa.c\r
5755         (elf64-hppa.lo): Add dependencies.\r
5756         * Makefile.in: Rebuilt.\r
5757 \r
5758         * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.\r
5759 \r
5760 2000-04-24  Jason Eckhardt  <jle@cygnus.com>\r
5761 \r
5762         * libhppa.h (dis_assemble_16): New function.\r
5763         (pa_arch): Added pa20w element.\r
5764 \r
5765 2000-04-24  Ulrich Drepper  <drepper@cygnus.com>\r
5766 \r
5767         * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,\r
5768         bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and\r
5769         bfd_elf64_slurp_reloc_table.\r
5770 \r
5771         * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New\r
5772         definitions to get external names.\r
5773         (elf_write_relocs): Renamed from write_relocs and make global.\r
5774         (elf_slurp_reloc_table): Make global.\r
5775         (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.\r
5776 \r
5777         * archive.c (hpux_uid_gid_encode): New function.\r
5778         (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is\r
5779         defined and the ID is greater than 99999.\r
5780         (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode\r
5781         special uid/gid fields into 32 bit values.\r
5782 \r
5783 2000-04-21  Matthew Green  <mrg@cygnus.com>\r
5784 \r
5785         * config.bfd: Add NetBSD/sparc64 support.\r
5786 \r
5787 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>\r
5788                           David Mosberger  <davidm@hpl.hp.com>\r
5789                           Timothy Wall <twall@cygnus.com>\r
5790                           Jim Wilson  <wilson@cygnus.com>\r
5791 \r
5792         * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.\r
5793         (ALL_MACHINES_CFILES): Add cpu-ia64.c.\r
5794         (BFD64_BACKENDS): Add elf64-ia64.lo.\r
5795         (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.\r
5796         (cpu-ia64.lo, elf64-ia64.lo): New rules.\r
5797         * Makefile.in: Rebuild.\r
5798         * archures.c (enum bfd_architecture): Add bfd_arch_ia64.\r
5799         (bfd_ia64_arch): Declare.\r
5800         (bfd_archures_list): Add bfd_ia64_arch.\r
5801         * bfd-in2.h: Rebuild.\r
5802         * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.\r
5803         * configure: Rebuild.\r
5804         * configure.host: (ia64-*-linux*): New host.\r
5805         * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,\r
5806         bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.\r
5807         * elf.c (prep_headers): Add bfd_arch_ia64.\r
5808         * libbfd.h: Rebuild.\r
5809         * reloc.c: Add IA-64 relocations.\r
5810         * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):\r
5811         Declare.\r
5812         (bfd_target_vect): Add bfd_elf64_ia64_little_vec.\r
5813         * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.\r
5814 \r
5815 2000-04-21  Richard Henderson  <rth@cygnus.com>\r
5816 \r
5817         * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section\r
5818         contents when performing a partial link.\r
5819         (bfd_elf_d30v_reloc_21): Likewise.\r
5820 \r
5821 2000-04-20  H.J. Lu  <hjl@gnu.org>\r
5822 \r
5823         * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10\r
5824         patch to symbols defined by a shared object.\r
5825         * elf32-ppc.c (ppc_elf_relocate_section): Similarly.\r
5826 \r
5827 2000-04-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>\r
5828 \r
5829         K&R compiler fixes.\r
5830         * dwarf2.c (concat_filename): Avoid string literal concatenation.\r
5831         * ieee.c (ieee_get_symtab): Don't initialise union in struct.\r
5832 \r
5833 Mon Apr 17 19:14:36 2000  David Mosberger  <davidm@hpl.hp.com>\r
5834 \r
5835         * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.\r
5836         (BFD64_BACKENDS_CFILES): Mention coff-ia64.c\r
5837         (coff-ia64.lo): Add dependency.\r
5838         * Makefile.in: Regenerate.\r
5839         * coff-ia64.c: New file.\r
5840         * efi-app-ia32.c: Ditto.\r
5841         * efi-app-ia64.c: Ditto.\r
5842         * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.\r
5843         (coff_set_flags): Ditto.\r
5844         (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.\r
5845         * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.\r
5846         * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.\r
5847         * configure: Regenerate.\r
5848         * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.\r
5849         (PUT_OPTHDR_IMAGE_BASE): Ditto.\r
5850         (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.\r
5851         (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.\r
5852         (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.\r
5853         (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.\r
5854         (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.\r
5855         (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.\r
5856         (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.\r
5857         (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.\r
5858         (GET_PDATA_ENTRY): Ditto.\r
5859         * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read\r
5860         data_start.  Use above macros to read fields that are 64 bit wide for\r
5861         COFF_WITH_PEP64.  Don't truncate entry and text_start to 32 bits.\r
5862         (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force\r
5863         FileAlignment and SectionAlignment to minimum alignment if they\r
5864         are zero.\r
5865         (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set\r
5866         Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.\r
5867         (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.\r
5868         Use above macros to write fields that are 64 bit wide for\r
5869         COFF_WITH_PEP64.\r
5870         (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,\r
5871         5*4 otherwise.  This should be right for IA-32 and IA-64, but may\r
5872         be wrong for platforms.  Use PDATA_ROW_SIZE instead of hardcoded\r
5873         value of 20 bytes.  Modify printing for COFF_WITH_PEP64 to print\r
5874         begin address, end address, and unwind info address only.  Use\r
5875         GET_PDATA_ENTRY() to read .pdata entries.  Use fprintf_vma() to\r
5876         print addresses.\r
5877         (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and\r
5878         HIGH3ADJ relocation names.\r
5879         (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.\r
5880         * targets.c: Declare bfd_efi_app_ia32_vec and\r
5881         bfd_efi_app_ia64_vec.\r
5882         (bfd_target_vector): Mention bfd_efi_app_ia32_vec and\r
5883         bfd_efi_app_ia64_vec.\r
5884 \r
5885 2000-04-17  Timothy Wall  <twall@cygnus.com>\r
5886 \r
5887         * bfd-in2.h: Add prototypes for tic54x load page access.\r
5888         * bfd-in.h: Regenerate.\r
5889         * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown\r
5890         in customized _set_arch_mach function.\r
5891         * coffcode.h (coff_set_alignment_hook): Set section load page if\r
5892         the appropriate macro is defined.\r
5893         (write_object_contents): Read section load page.\r
5894 \r
5895 2000-04-13  Alan Modra  <alan@linuxcare.com.au>\r
5896 \r
5897         * elf32-hppa.h: Update copyright date.\r
5898 \r
5899         * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.\r
5900         * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.\r
5901 \r
5902         * elf32-d30v.c (MAX32): Don't use LL suffix.\r
5903         (MIN32): Define in terms of MAX32.\r
5904         (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.\r
5905 \r
5906         * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise\r
5907         expression.\r
5908 \r
5909         * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.\r
5910 \r
5911 2000-04-12  Alan Modra  <alan@linuxcare.com.au>\r
5912 \r
5913         * dep-in.sed: Match space before file name, not after.\r
5914         * Makefile.am: Regenerate dependencies.\r
5915         * Makefile.in: Regenerate.\r
5916 \r
5917         * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield\r
5918         case, allow address wrap-around stupidly removed 2000-03-17.  Sign\r
5919         extend without an if statement.\r
5920 \r
5921 2000-04-11  Alan Modra  <alan@linuxcare.com.au>\r
5922 \r
5923         * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using\r
5924         signed quantites.\r
5925         * elf32-mips.c (gprel16_with_gp): Likewise.\r
5926         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range\r
5927         here using -0x40000, not (int)0xfffc0000.\r
5928         (elf32_hppa_size_of_stub): Likewise.\r
5929 \r
5930 2000-04-11  Timothy Wall  <twall@cygnus.com>\r
5931 \r
5932         * coff-tic54x.c: Now builds with all targets.\r
5933         * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.\r
5934         * Makefile.in: Regenerate.\r
5935         * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on\r
5936         unitialized variable.\r
5937 \r
5938 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>\r
5939 \r
5940         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add\r
5941         --enable-build-warnings option.\r
5942         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.\r
5943         * Makefile.in, configure: Re-generate.\r
5944 \r
5945 2000-04-07  Nick Clifton  <nickc@cygnus.com>\r
5946 \r
5947         * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and\r
5948         BFD_RELOC_THUMB_PCREL_BLX.\r
5949 \r
5950         * elf32-arm.h (elf32_arm_final_link_relocate): Handle\r
5951         R_ARM_XPC25 and R_ARM_THM_PC22.\r
5952 \r
5953         * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of\r
5954         R_ARM_XPC25 and R_ARM_THM_XPC22.\r
5955         (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to\r
5956         R_ARM_[XPC25|THM_XPC22].\r
5957 \r
5958         * elfarm-oabi.c: Define OLD_ARM_ABI and change include from\r
5959         elf/arm-oabi.h to elf/arm.h\r
5960 \r
5961         * Makefile.am: Fix dependency for elfarm-oabi.c\r
5962         * Makefile.in: Regenerate.\r
5963 \r
5964         * bfd-in2.h: Regenerate.\r
5965         * libbfd.h: Regenerate.\r
5966 \r
5967 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>\r
5968 \r
5969         * elfcore.h (elf_core_file_p): preserve value of tdata at entry,\r
5970         and restore it on failure.  Release newly allocated tdata on\r
5971         failure.\r
5972 \r
5973 Fri Apr  7 11:33:47 2000  Jim Wilson  <wilson@cygnus.com>\r
5974 \r
5975         * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.\r
5976         (decode_line_info): Set it.  Report error if unit->line_offset is\r
5977         equal to or larger than it.\r
5978 \r
5979 2000-04-07  Timothy Wall  <twall@cygnus.com>\r
5980 \r
5981         * targets.c: Added vecs for tic54x.\r
5982         * reloc.c: Added relocs for tic54x.\r
5983         * libbfd.h: Regenerated.\r
5984         * configure: Add TI COFF vecs for tic54x.\r
5985         * configure.in: Ditto.\r
5986         * config.bfd (targ_cpu): Recognize new tic54x target.\r
5987         * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.\r
5988         * bfd-in2.h: Add tic54x target and relocations.\r
5989         * Makefile.am, Makefile.in: Add tic54x target.\r
5990         * archures.c (bfd_archures_list): Add tic54x target.\r
5991         * coff-tic54x.c: New.\r
5992         * cpu-tic54x.c: New.\r
5993 \r
5994 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>\r
5995 \r
5996         * elfcore.h (elf_core_file_p): call backend_object_p which\r
5997         thereby gets an opportunity to update the arch/machine type.\r
5998 \r
5999 2000-04-06  Timothy Wall  <twall@cygnus.com>\r
6000 \r
6001         * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage\r
6002         class.  Handle SEC_CLINK and SEC_BLOCK flags.\r
6003         * section.c: Add SEC_CLINK and SEC_BLOCK flags.\r
6004         * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.\r
6005 \r
6006 2000-04-06  Nick Clifton  <nickc@cygnus.com>\r
6007 \r
6008         * elf32-arm.h (elf32_arm_set_private_flags): Only check for\r
6009         EF_INTERWORK if this is an unknown EABI.\r
6010         (elf32_arm_merge_private_bfd_data): Check EABI version\r
6011         numbers.  Only check EF_xxx flags if the EABI version number\r
6012         is unknown.\r
6013         (elf32_arm_check_private_bfd_data): Only check EF_xxx flags\r
6014         if the EABI version number is unknown.\r
6015         (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags\r
6016         if the EABI version number is unknown.\r
6017 \r
6018 Wed Apr  5 22:04:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>\r
6019 \r
6020         * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and\r
6021         BFD_RELOC_SH_LOOP_END.\r
6022         * elf32-sh.c (sh_elf_howto_tab): Change special_func to\r
6023         sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.\r
6024         Add entries for R_SH_LOOP_START and R_SH_LOOP_END.\r
6025         (sh_elf_reloc_loop): New function.\r
6026         (sh_elf_reloc): No need to test for always-to-be-ignored relocs\r
6027         any more.\r
6028         (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.\r
6029         (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.\r
6030         * bfd-in2.h, libbfd.h: Regenerate.\r
6031 \r
6032 2000-04-04  Alan Modra  <alan@linuxcare.com.au>\r
6033 \r
6034         * po/bfd.pot: Regenerate.\r
6035 \r
6036         * Makefile.am: Remove extraneous mkdep comment.\r
6037         (MKDEP): Use gcc -MM rather than mkdep.\r
6038         (DEP): Quote when passing vars to sub-make.  Add warning\r
6039         message to end.\r
6040         (DEP1): Rewrite for "gcc -MM".\r
6041         (CLEANFILES): Add DEP2.\r
6042         Update dependencies.\r
6043         * Makefile.in: Regenerate.\r
6044 \r
6045 2000-04-03  Kevin Buettner  <kevinb@redhat.com>\r
6046 \r
6047         * configure.in: Added corefile support for AIX 4.3.  In particular,\r
6048         AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when\r
6049         compiling rs6000-core.c.\r
6050         * configure: Regenerated.\r
6051 \r
6052 2000-04-03  H.J. Lu  <hjl@gnu.org>\r
6053 \r
6054         * cache.c (bfd_open_file): Unlink the output file only if\r
6055         it has non-zero size.\r
6056 \r
6057 2000-04-01  Ken Block USG  <block@zk3.dec.com>\r
6058 \r
6059         * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit\r
6060         relative relocations for non-loaded sections in shared objects.\r
6061         (elf64_alpha_check_relocs): Similarly.\r
6062 \r
6063 Mon Apr  3 13:37:15 2000  Hans-Peter Nilsson  <hp@axis.com>\r
6064 \r
6065         * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and\r
6066         BFD_RELOC_16 to switch for extended relocs.\r
6067         (MY_swap_ext_reloc_in): New.\r
6068         (MY_swap_ext_reloc_out): New.\r
6069         (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather\r
6070         than NAME(aout,swap_ext_reloc_in) for extended relocs.\r
6071         (NAME(aout,squirt_out_relocs)): Similarly use\r
6072         MY_swap_ext_reloc_out.\r
6073         (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.\r
6074 \r
6075 2000-04-03  Kazu Hirata  <kazu@hxi.com>\r
6076 \r
6077         * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to\r
6078         the R_PCRWORD_B case.\r
6079 \r
6080 2000-03-31  Thomas de Lellis  <tdel@wrs.com>\r
6081 \r
6082         * srec.c : Set CHUNK size to 16 bytes to prevent download failures\r
6083         on some targets.\r
6084         * ihex.c : Ditto.\r
6085 \r
6086 Wed Mar 30 15:28:00 2000  Donald Lindsay  <dlindsay@cygnus.com>\r
6087 \r
6088         * elf32-m32r.c (m32r_elf_generic_reloc): new function.  All\r
6089         HOWTO references to bfd_elf_generic_reloc, that have\r
6090         partial_inplace == true, now use the new function.  The function\r
6091         is based on the recent rewrite of m32r_elf_lo16_reloc(), and\r
6092         extends its fixes to the R_M32R_{16,24,32} relocs.\r
6093         The new logic in m32r_elf_lo16_reloc() has been removed, and\r
6094         it instead calls the new routine to obtain that functionality.\r
6095 \r
6096 2000-03-27  Alan Modra  <alan@linuxcare.com.au>\r
6097 \r
6098         * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,\r
6099         elf32_avr_check_relocs, avr_final_link_relocate,\r
6100         elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,\r
6101         elf32_avr_object_p): Add prototypes.\r
6102         (elf32_avr_gc_mark_hook): Add default for h->root.type.\r
6103         (bfd_elf_avr_final_write_processing): Make static.\r
6104 \r
6105 2000-03-27  Denis Chertykov  <denisc@overta.ru>\r
6106 \r
6107         * cpu-avr.c: New file.  BFD support routines for AVR architecture.\r
6108         * archures.c (bfd_architecture): Add AVR architecture.\r
6109         (bfd_archures_list): Add reference to AVR architecture info.\r
6110         * elf.c (prep_headers): Handle bfd_arch_avr.\r
6111         * reloc.c: Add various AVR relocation enums.\r
6112         * targets.c (bfd_elf32_avr_vec): Declare and add to target vector\r
6113         list.\r
6114         * Makefile.am: Add support for AVR elf.\r
6115         * configure.in: Likewise.\r
6116         * config.bfd: Likewise.\r
6117         * Makefile.in: Regenerate.\r
6118         * configure: This too.\r
6119         * bfd-in2.h: And this.\r
6120         * libbfd.h: And this.\r
6121 \r
6122 2000-03-24  H.J. Lu  <hjl@gnu.org>\r
6123 \r
6124         * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.\r
6125         (elf64_alpha_find_reloc_at_ofs): Likewise.\r
6126 \r
6127 2000-03-17  Alan Modra  <alan@linuxcare.com.au>\r
6128 \r
6129         * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,\r
6130         flag an overflow if the bitfield is outside -2**n to 2**n-1.  The\r
6131         allowable range used to be -2**(n-1) to 2**n-1.\r
6132         * reloc.c (_bfd_relocate_contents): Same here.  Also replace\r
6133         "boolean overflow" with "bfd_reloc_status_type flag".\r
6134 \r
6135 2000-03-14  Doug Evans  <dje@casey.transmeta.com>\r
6136 \r
6137         * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.\r
6138 \r
6139 2000-03-14  Kazu Hirata  <kazu@hxi.com>\r
6140 \r
6141         * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number\r
6142         of shrinks properly, including the last reloc.\r
6143 \r
6144 2000-03-13  Kazu Hirata  <kazu@hxi.com>\r
6145 \r
6146         * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity\r
6147         check for R_MOVL2.\r
6148 \r
6149 2000-03-11  Alan Modra  <alan@linuxcare.com.au>\r
6150 \r
6151         * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on\r
6152         a format mismatch rather than an "error" from bfd_read such as\r
6153         bfd_error_file_truncated.\r
6154 \r
6155 2000-03-10  Geoff Keating  <geoffk@cygnus.com>\r
6156 \r
6157         * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper\r
6158         sign-extension and big-endian compensation for\r
6159         R_MIPS_64 even in ld -r.\r
6160 \r
6161 2000-03-10  Geoffrey Keating  <geoffk@cygnus.com>\r
6162 \r
6163         * elf32-mips.c (mips_elf_next_relocation): Rename from\r
6164         mips_elf_next_lo16_relocation, and generalize to look\r
6165         for any relocation type.\r
6166         (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.\r
6167         (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.\r
6168         (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.\r
6169         (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.\r
6170         (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.\r
6171         (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.\r
6172         (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.\r
6173         (mips_rtype_to_howto): Likewise.\r
6174         (mips_elf_calculate_relocation): Handle new relocs.\r
6175         (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs\r
6176         are paired.  The addend for R_MIPS_GNU_REL16_S2\r
6177         is shifted right two bits.\r
6178 \r
6179 2000-03-10  Alan Modra  <alan@linuxcare.com.au>\r
6180 \r
6181         * reloc.c (bfd_perform_relocation): Undo emacs formatting of\r
6182         comment, and ensure it doesn't happen again.\r
6183         (bfd_install_relocation): Same here.\r
6184         (_bfd_relocate_contents): Don't bother assigning unused signmask\r
6185         shift result.  Fix typos in comments.\r
6186         Remove trailing whitespace throughout file.\r
6187 \r
6188 2000-03-07  Doug Evans  <dje@casey.transmeta.com>\r
6189 \r
6190         * reloc.c (reloc_howto_struct): Fix partial_inplace comment.\r
6191         * bfd-in2.h: Rebuild.\r
6192 \r
6193 2000-03-06  Nick Clifton  <nickc@cygnus.com>\r
6194 \r
6195         * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and\r
6196         sym_ptr_ptr fields.\r
6197         (SIZEOF_ILF_SYM_PTR_TABLE): Define.\r
6198         (SIZEOF_ILF_STRINGS): Redefine.\r
6199         (pe_ILF_make_a_symbol-reloc): New function.  Creates a symbol\r
6200         relative reloc, as opposed to a section relative reloc.\r
6201         (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT\r
6202         not C_LABEL.\r
6203         Add length of symbol's prefix to string pointer.\r
6204         Store a pointer to the symbol in the symbol pointer table.\r
6205         (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.\r
6206         Initialise the symbol pointer table.\r
6207         Store the hint in the Hint/Name table.\r
6208         Make the jump reloc be symbol realtive, not section relative.\r
6209         Create an import symbol for imported code.\r
6210 \r
6211 2000-03-06  Catherine Moore  <clm@cygnus.com>\r
6212 \r
6213         * elf.c (swap_out_syms):  Check for null type_ptr.\r
6214 \r
6215 2000-03-01  Hans-Peter Nilsson  <hp@axis.com>\r
6216 \r
6217         * aout-target.h (MY(write_object_contents)): Remove unused\r
6218         and unusable "#if CHOOSE_RELOC_SIZE".\r
6219         * pc532-mach.c (MY(write_object_contents)): Ditto.\r
6220         * netbsd.h (MY(write_object_contents)): Ditto.\r
6221         * hp300hpux.c (MY(write_object_contents)): Ditto.\r
6222         * freebsd.h (MY(write_object_contents)): Ditto.\r
6223         * aout-tic30.c (tic30_aout_write_object_contents): Ditto.\r
6224 \r
6225 2000-02-29  H.J. Lu  <hjl@gnu.org>\r
6226 \r
6227         * peicode.h (jtab): Make it static.\r
6228 \r
6229         * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is\r
6230         defined and COFF_IMAGE_WITH_PE is not defined.\r
6231         (_bfd_sh_align_load_span): Defined as sh_align_load_span if\r
6232         COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.\r
6233 \r
6234 2000-03-01  Nick Clifton  <nickc@cygnus.com>\r
6235 \r
6236         * coff-arm.c (bfd_arm_process_before_allocation): Make\r
6237         'symndx' signed to prevent compile time warning.\r
6238 \r
6239         * coff-mcore.c: Remove unused prototype for pe_object_p.\r
6240 \r
6241         * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static\r
6242         functions that are not used when COFF_IMAGE_WITH_PE is\r
6243         defined.\r
6244         (struct sh_opcode): Change type of 'flags' field to unsigned\r
6245         long so that it can hold the USESAS flag.\r
6246 \r
6247         * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.\r
6248 \r
6249         * elf-m10300.c (mn10300_elf_relax_section): Initialise\r
6250         'sym_sec'.\r
6251 \r
6252         * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function\r
6253         parameters.\r
6254         Remove unusued variables and code.\r
6255         (elf_backend_add_symbol_hook): Fix prototype.\r
6256 \r
6257         * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and\r
6258         'srelgot'.\r
6259 \r
6260         * elf32-mcore.c (mcore_elf_relocate_section): Initialise\r
6261         'oldinst'.\r
6262 \r
6263         * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function\r
6264         parameters.\r
6265         Remove unusued variables and code.\r
6266         (elf_backend_add_symbol_hook): Fix prototype.\r
6267 \r
6268         * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.\r
6269 \r
6270         * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED\r
6271         to unused function parameter.\r
6272 \r
6273         * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function\r
6274         parameters.\r
6275         Use EMPTY_HOWTO to initialise empty howto slots.\r
6276         Remove unused variables.\r
6277 \r
6278         * peicode.h (pe_ILF_build_a_bfd): Initialise id6.\r
6279 \r
6280 2000-03-01  H.J. Lu  <hjl@gnu.org>\r
6281 \r
6282         * aoutx.h (aout_link_input_section_std): Pass "true" to\r
6283         the undefined_symbol callback.\r
6284         (aout_link_input_section_ext): Likewise.\r
6285         * bout.c (get_value): Likewise.\r
6286         * coff-a29k.c (coff_a29k_relocate_section): Likewise.\r
6287         * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):\r
6288         Likewise.\r
6289         (alpha_relocate_section): Likewise.\r
6290         * coff-arm.c (coff_arm_relocate_section): Likewise.\r
6291         * coff-i960.c (coff_i960_relocate_section): Likewise.\r
6292         * coff-mcore.c (coff_mcore_relocate_section): Likewise.\r
6293         * coff-mips.c (mips_relocate_section): Likewise.\r
6294         * coff-ppc.c (coff_ppc_relocate_section): Likewise.\r
6295         * coff-sh.c (sh_relocate_section): Likewise.\r
6296         * coff-tic80.c (coff_tic80_relocate_section): Likewise.\r
6297         * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.\r
6298         * elf-m10200.c (mn10200_elf_relocate_section): Likewise.\r
6299         * elf-m10300.c (mn10300_elf_relocate_section): Likewise.\r
6300         * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.\r
6301         * elf32-fr30.c (fr30_elf_relocate_section): Likewise.\r
6302         * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.\r
6303         * elf32-i370.c (i370_elf_relocate_section): Likewise.\r
6304         * elf32-m32r.c (m32r_elf_relocate_section): Likewise.\r
6305         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.\r
6306         * elf32-sh.c (sh_elf_relocate_section): Likewise.\r
6307         * elf32-v850.c (v850_elf_relocate_section): Likewise.\r
6308         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.\r
6309         * elflink.h (elf_link_output_extsym): Likewise.\r
6310         * pe-mips.c (coff_pe_mips_relocate_section): Likewise.\r
6311         * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.\r
6312         * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.\r
6313 \r
6314         * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the\r
6315         undefined_symbol callback when building shared library with\r
6316         -Bsymbolic and undefined symbols are allowed. Otherwise, pass\r
6317         "true".\r
6318         * elf32-arm.h (elf32_arm_relocate_section): Likewise.\r
6319         * elf32-i386.c (elf_i386_relocate_section): Likewise.\r
6320         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.\r
6321         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.\r
6322         (elf32_mips_get_relocated_section_content): Likewise.\r
6323         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.\r
6324         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.\r
6325         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.\r
6326         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.\r
6327 \r
6328 2000-02-28  Nick Clifton  <nickc@cygnus.com>\r
6329 \r
6330         * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.\r
6331         * Makefile.in: Regenerate.\r
6332 \r
6333         * configure.in: Add support for mips and sh pe vectors.\r
6334         * configure: regenerate.\r
6335 \r
6336         * config.bfd: Add support for arm-wince, mips-pe and sh-pe\r
6337         targets.\r
6338 \r
6339         * targets.c: Add mips and sh pe vectors.\r
6340 \r
6341         * libpei.h (coff_final_link_postscript): Only define if not\r
6342         already defined.\r
6343 \r
6344         * coffcode.h: Add support for WinCE magic numbers.\r
6345 \r
6346         * peigen.c (pe_print_reloc): Update comment and rearrange\r
6347         appending of newline character.\r
6348 \r
6349         * peicode.h: Add support for Image Library Format.\r
6350         (pe_ILF_vars): Structure containing data used by ILF code.\r
6351         (pe_ILF_make_a_section): New function.  Create a section based\r
6352         on ILF data.\r
6353         (pe_ILF_make_a_reloc): New function.  Create a reloc based on\r
6354         ILF data.\r
6355         (pe_ILF_make_a_symbol): New function.  Create a symbol based\r
6356         on ILF data.\r
6357         (pe_ILF_save_relocs): New function.  Store the relocs created\r
6358         by pe_ILF_make_a_reloc in a section.\r
6359         (pe_ILF_build_a_bfd): New function.  Create a BFD describing\r
6360         an ILF object.\r
6361         (pe_ILF_object_p): New function.  Return a bfd_target pointer\r
6362         for an ILF object.\r
6363         (pe_bfd_object_p): If an ILF object is detected call\r
6364         pe_ILF_object_p on it.\r
6365 \r
6366         * coff-arm.c: Add support for WinCE relocs which are different\r
6367         from normal ARM COFF relocs.\r
6368         * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.\r
6369 \r
6370         * coff-sh.c: Add support for sh-pe target.\r
6371         * pe-sh.c: New file.  Support code for sh-pe target.\r
6372         * pei-sh.c: New file.  Support code for sh-pe target.\r
6373 \r
6374         * pe-mips.c: New file.  Support code for mips-pe target.\r
6375         * pei-mips.c: New file.  Support code for mips-pe target.\r
6376 \r
6377 2000-02-27  Jakub Jelinek  <jakub@redhat.com>\r
6378 \r
6379         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump\r
6380         architecture if the object causing the bump is dynamic.\r
6381         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,\r
6382         and also don't it for memory ordering.\r
6383         (sparc64_elf_write_relocs): Take src_rela out of the loop.\r
6384 \r
6385 2000-02-27  Ian Lance Taylor  <ian@zembu.com>\r
6386 \r
6387         * dwarf2.c (read_abbrevs): Use _raw_size directly rather than\r
6388         calling bfd_get_section_size_before_reloc.\r
6389         (decode_line_info): Likewise.\r
6390         (_bfd_dwarf2_find_nearest_line): Likewise.\r
6391 \r
6392 2000-02-27  Eli Zaretskii  <eliz@is.elta.co.il>\r
6393 \r
6394         * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the\r
6395         name of the libtool directory.\r
6396         * Makefile.in: Rebuild.\r
6397 \r
6398 Fri Feb 25 18:39:26 2000  Rodney Brown (RodneyBrown@pmsc.com)\r
6399 \r
6400         * som.c (SOM_HOWTO): Define.\r
6401         (som_hppa_howto_table): Use it.\r
6402 \r
6403 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>\r
6404 \r
6405         * config.bfd: Enable 64 bit support for GNU/Linux/sparc.\r
6406 \r
6407         * config.bfd: Enable 64 bit support for Solaris7+/sparc.\r
6408 \r
6409 2000-02-24  Catherine Moore  <clm@cygnus.com>\r
6410 \r
6411         * som.c (som_misc_symbol_info):  Add field\r
6412         secondary_def.\r
6413         (som_bfd_derive_misc_symbol_info):  Initialize\r
6414         secondary_def.\r
6415         (som_build_and_write_symbol_table): Keep track\r
6416         of secondary_def field.\r
6417         (som_slurp_symbol_table): Set BSF_WEAK symbol flag\r
6418         if secondary_def field is set.\r
6419         (som_bfd_ar_write_symbol_stuff): Initialize\r
6420         secondary_def.\r
6421 \r
6422 2000-02-23  Stephane Carrez  <stcarrez@worldnet.fr>\r
6423 \r
6424         * dwarf2.c (read_address): Read 16-bits addresses.\r
6425         (parse_comp_unit): Accept addr_size == 2.\r
6426 \r
6427 2000-02-23  Alan Modra  <alan@spri.levels.unisa.edu.au>\r
6428 \r
6429         * bfd-in.h: Update copyright date.\r
6430 \r
6431 2000-02-23  Linas Vepstas <linas@linas.org>\r
6432 \r
6433         * cpu-i370.c: New file.\r
6434         * elf32-i370.c:  New file.\r
6435         * archures.c (enum bfd_architecture): Add bfd_arch_i370.\r
6436         (bfd_i370_arch): New.\r
6437         (bfd_archures_list): Add bfd_i370_arch.\r
6438         * elf.c (prep_headers): Add bfd_arch_i370.\r
6439         * Makefile.am: Add support for IBM 370 elf.\r
6440         * config.bfd: Likewise.\r
6441         * configure.in: Likewise.\r
6442         * libbfd.h (bfd_reloc_code_real_names): Likewise.\r
6443         * reloc.c (bfd_reloc_code_type): Likewise.\r
6444         * targets.c: Likewise.\r
6445 \r
6446         * Makefile.in: Regenerate.\r
6447         * configure: Regenerate.\r
6448         * bfd-in2.h: Regenerate.\r
6449 \r
6450 2000-02-22  Ian Lance Taylor  <ian@zembu.com>\r
6451 \r
6452         * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for\r
6453         invalid relocation types, and change them to R_386_NONE.\r
6454 \r
6455 2000-02-22  H.J. Lu  <hjl@gnu.org>\r
6456 \r
6457         * elflink.h (elf_link_add_object_symbols): If a version symbol is\r
6458         not defined, don't add a second ELF_VER_CHR.\r
6459 \r
6460         * elflink.h (elf_bfd_final_link): Call output_extsym for global\r
6461         symbols converted to local symbols even when stripping all\r
6462         symbols.\r
6463         (elf_link_output_extsym): Process global symbols converted to\r
6464         local symbols even if they are being stripped.\r
6465 \r
6466 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>\r
6467 \r
6468         * archures.c (bfd_octets_per_byte): Return unsigned int.\r
6469         (bfd_arch_mach_octets_per_byte): Ditto.\r
6470         * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned\r
6471         comparison warning.\r
6472         * section.c (bfd_get_section_size_before_reloc): Quell signed\r
6473         vs. unsigned comparison warning.\r
6474         (bfd_get_section_size_after_reloc): Same here.  Fix parentheses too.\r
6475         * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27\r
6476         change.  What was I thinking?\r
6477         * bfd-in2.h: Regenerate.\r
6478 \r
6479         * elflink.h (elf_gc_sweep): Skip non-elf input bfds.\r
6480         (elf_gc_sections): Same here.\r
6481         (elf_gc_common_finalize_got_offsets): And here.\r
6482 \r
6483 2000-02-21  Ian Lance Taylor  <ian@zembu.com>\r
6484 \r
6485         ELF HPPA doesn't work at present; remove it until it does.\r
6486         * config.bfd: Comment out setting targ_defvec to\r
6487         bfd_elf32_hppa_vec.\r
6488         * Makefile.am: Rebuild dependencies.\r
6489         (BFD32_BACKENDS): Remove elf32-hppa.lo.\r
6490         (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.\r
6491         (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.\r
6492         * Makefile.in: Rebuild.\r
6493         * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.\r
6494 \r
6495 2000-02-18  Geoff Keating  <geoffk@cygnus.com>\r
6496 \r
6497         * coffcode.h (coff_set_arch_mach_hook): Use free(), because there\r
6498         is no bfd_free().  Revert bfd_free part of previous change.\r
6499 \r
6500 2000-02-18  Geoff Keating  <geoffk@cygnus.com>\r
6501 \r
6502         * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size\r
6503         arrays.\r
6504         (coff_compute_section_file_positions): Use bfd_free to pair\r
6505         bfd_malloc.\r
6506         (coff_write_object_contents): Likewise.\r
6507 \r
6508         * coff-rs6000.c (xcoff_howto_table_16): New variable.\r
6509         (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.\r
6510 \r
6511 2000-02-18  Ulrich Drepper  <drepper@cygnus.com>\r
6512 \r
6513         * coff-rs6000.c (XCOFFARMAGBIG): New macro.\r
6514         (xcoff_ar_file_hdr_big): New structure.\r
6515         (SIZEOF_AR_FILE_HDR_BIG): New macro.\r
6516         (xcoff_ar_hdr_big): New structure.\r
6517         (SIZEOF_AR_HDR_BIG): New macro.\r
6518         (xcoff_big_format_p): New macro.\r
6519         (xcoff_ardata_big): New macro.\r
6520         (arch_xhdr_big): New macro.\r
6521         (xcoff_slurp_armap): Handle large archives.\r
6522         (xcoff_archive_p): Detect large archives.\r
6523         (xcoff_read_ar_hdr): Handle large archives.\r
6524         (xcoff_openr_next_archived_file): Handle large archives.\r
6525         (xcoff_generic_stat_arch_elt): Handle large archives.\r
6526         (xcoff_write_armap_old): Rename from xcoff_write_armap.\r
6527         (xcoff_write_armap_big): New function.\r
6528         (xcoff_write_armap): New function, dispatch to _old or _big.\r
6529         (xcoff_write_archive_contents_old): Rename from\r
6530         xcoff_write_archive_contents.\r
6531         (xcoff_write_archive_contents_big): New function.\r
6532         (xcoff_write_archive_contents): New function, dispatch to _old or\r
6533         _big.\r
6534 \r
6535 2000-02-18  Richard Henderson  <rth@cygnus.com>\r
6536 \r
6537         * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect\r
6538         and hide_symbol members.\r
6539         (elf_link_hash_copy_indirect): Remove.\r
6540         (elf_link_hash_hide_symbol): Remove.\r
6541         (struct elf_backend_data): Add elf_backend_copy_indirect_symbol\r
6542         and elf_backend_hide_symbol.\r
6543         (_bfd_elf_link_hash_copy_indirect): Declare.\r
6544         (_bfd_elf_link_hash_hide_symbol): Declare.\r
6545         * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.\r
6546         (_bfd_elf_link_hash_hide_symbol): Likewise.\r
6547         (_bfd_elf_link_hash_table_init): Don't init killed members.\r
6548         * elflink.h (elf_link_add_object_symbols): Use the bed function\r
6549         pointers not elf_link_hash_{copy_indirect,hide_symbol}.\r
6550         (elf_link_assign_sym_version): Likewise.\r
6551         * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.\r
6552         (elf_backend_hide_symbol): Likewise.\r
6553         (elfNN_bed): Update for new members.\r
6554 \r
6555 2000-02-17  Kevin Buettner  <kevinb@redhat.com>\r
6556 \r
6557         * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,\r
6558         STACK_END_ADDR): Define for new core file format.\r
6559         (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines\r
6560         for handling the vagaries of the various core file structures used\r
6561         by AIX over the years.\r
6562         (rs6000coff_core_p, rs6000coff_core_file_matches_executable,\r
6563         Rs6kCorData): Use above defines to adapt code to use AIX 4.3's\r
6564         core_dumpx structure.\r
6565 \r
6566 Thu Feb 17 00:04:48 2000  J"orn Rennecke <amylaar@cygnus.co.uk>\r
6567 \r
6568         * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.\r
6569         (bfd_mach_sh3_dsp): Likewise.\r
6570         (bfd_mach_sh4): Reinstate.\r
6571         (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.\r
6572         * bfd-in2.h: Regenerate.\r
6573         * coff-sh.c (struct sh_opcode): flags is no longer short.\r
6574         (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.\r
6575         (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.\r
6576         (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.\r
6577         (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.\r
6578         (sh_opcodes): No longer const.\r
6579         (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.\r
6580         (sh_insn_uses_reg): Check for USESAS and USESR8.\r
6581         (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.\r
6582         (_bfd_sh_align_load_span): Return early for SH4.\r
6583         Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.\r
6584         Take into account that field b of a parallel processing insn\r
6585         could be mistaken for a separate insn.\r
6586         * cpu-sh.c (arch_info_struct): New array elements for\r
6587         sh2, sh-dsp and sh3-dsp.\r
6588         Reinstate element for sh4.\r
6589         (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.\r
6590         (SH4_NEXT): Reinstate.\r
6591         (SH3_NEXT, SH3E_NEXT): Adjust.\r
6592         * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.\r
6593         * elf32-sh.c (sh_elf_set_private_flags): New function.\r
6594         (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.\r
6595         (sh_elf_merge_private_data): New function.\r
6596         (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.\r
6597         (bfd_elf32_bfd_copy_private_bfd_data): Define.\r
6598         (bfd_elf32_bfd_merge_private_bfd_data): Change to\r
6599         sh_elf_merge_private_data.\r
6600 \r
6601 2000-02-13  Richard Henderson  <rth@cygnus.com>\r
6602 \r
6603         * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and\r
6604         hide_symbol members.\r
6605         (elf_link_hash_copy_indirect): New.\r
6606         (elf_link_hash_hide_symbol): New.\r
6607         * elflink.h (elf_link_add_object_symbols): Break out copy from\r
6608         indirect new new symbol to elf.c.\r
6609         (elf_link_assign_sym_version): Break out privatization of\r
6610         non-exported symbol to elf.c.\r
6611         * elf.c (_bfd_elf_link_hash_copy_indirect): New.\r
6612         (_bfd_elf_link_hash_hide_symbol): New.\r
6613         (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.\r
6614 \r
6615 2000-02-13  Ian Lance Taylor  <ian@zembu.com>\r
6616 \r
6617         * section.c (_bfd_strip_section_from_output): Add info parameter.\r
6618         If it passed as non-NULL, use it to check whether any input BFD\r
6619         has an input section which uses this output section.  Change all\r
6620         callers.\r
6621         * bfd-in2.h: Rebuild.\r
6622 \r
6623         * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and\r
6624         bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of\r
6625         1999-11-29.\r
6626         * bfd-in2.h: Rebuild.\r
6627 \r
6628 2000-02-10  Timothy Wall  <twall@cygnus.com>\r
6629 \r
6630         * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to\r
6631         allow final modifications of swapped-in symbol.\r
6632         (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.\r
6633         * coffcode.h (coff_write_relocs): Use macro\r
6634         SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether\r
6635         symbol index should be set to -1.\r
6636 \r
6637 Thu Feb 10 20:07:50 GMT 2000  Toshiyasu Morita (toshi.morita@sega.com)\r
6638 \r
6639         * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,\r
6640         USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.\r
6641         * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.\r
6642         * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,\r
6643         sh_insns_uses_or_sets_freg): New functions.\r
6644         * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.\r
6645         * (sh_insns_conflict): Use new functions and new macros to\r
6646         detect conflicts when two instructions both set same integer registers,\r
6647         both set same fp register, and both set special register.\r
6648 \r
6649 2000-02-09  Timothy Wall  <twall@cygnus.com>\r
6650 \r
6651         * coffgen.c (coff_real_object_p): Set arch/mach info prior to\r
6652         swapping in sections, so that the swapping routines have access to\r
6653         the arch/mach info.\r
6654 \r
6655 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>\r
6656 \r
6657         * coff-go32.c: Update comment. Update copyright.\r
6658 \r
6659 2000-01-27  Thomas de Lellis  <tdel@windriver.com>\r
6660 \r
6661         * syms.c (bfd_decode_symclass)\r
6662         Two new class characters were added - 'V' and 'v'.  The\r
6663         meaning of 'W' is now restricted to just weak non-object\r
6664         symbols.  This allows differentiation between, for example,\r
6665         weak functions vs weak objects.  nm for example now dumps:\r
6666         'W' = weak global\r
6667         'w' = weak unresolved\r
6668         'V' = weak global object\r
6669         'v' = weak unresolved object\r
6670 \r
6671         (bfd_is_undefined_symclass): New function.  Return true if the\r
6672         given symbol class represents and undefined/unresolved symbol.\r
6673 \r
6674         (bfd_symbol_info): Use bfd_is_undefined_symclass to check for\r
6675         unresolved symbols.\r
6676 \r
6677         * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().\r
6678 \r
6679         * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the\r
6680         STT_ARM_16BIT flag set, but it is not attached to a data object\r
6681         return STT_ARM_16BIT so that it will be treated as code by the\r
6682         disassembler.\r
6683 \r
6684 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>\r
6685 \r
6686         * coff-i386.c (i3coff_object_p): Remove prototype.\r
6687         Update copyright.\r
6688 \r
6689         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const\r
6690         to name.  Update copyright.\r
6691 \r
6692         * trad-core.c (trad_unix_core_file_p): Cast core_regsec\r
6693         assignment to avoid warning.  Update copyright.\r
6694 \r
6695 2000-01-24  Robert Lipe  (robertl@sco.com)\r
6696 \r
6697         * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc\r
6698         instead of using GNU C extension.\r
6699 \r
6700 2000-01-21  Nick Clifton  <nickc@cygnus.com>\r
6701 \r
6702         * libbfd.c (bfd_read): Do not attempt to get a negativly sized\r
6703         amount from a bfd_in_memory structure.\r
6704         (bfd_seek): Do not allow seeks past the end of a bfd_in_memory\r
6705         structure.\r
6706 \r
6707 2000-01-14  Nick Clifton  <nickc@cygnus.com>\r
6708 \r
6709         * linker.c (default_indirect_link_order): oops - fix incorrectly\r
6710         applied patch from Tim Wall.\r
6711 \r
6712 2000-01-13  Timothy Wall (twall@tiac.net>\r
6713 \r
6714         * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx\r
6715         = scnhsz, filhsz, relsz, aoutsz, etc)\r
6716 \r
6717         * coffswap.h: Ditto.\r
6718 \r
6719 2000-01-13  Nick Clifton  <nickc@cygnus.com>\r
6720 \r
6721         * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to\r
6722         interwork thumb to arm stub.\r
6723 \r
6724 2000-01-13  Timothy Wall (twall@tiac.net>\r
6725 \r
6726         * archures.c (bfd_octets_per_byte): New function: Return\r
6727         target byte size.\r
6728         (bfd_arch_mach_octets_per_byte): New function: Return target\r
6729         byte size.\r
6730 \r
6731         * section.c: Distinguish between octets and bytes for usage of\r
6732         _cooked_size,  _raw_size, and output_offset.  Clarify\r
6733         description of bfd_set_section_contents.\r
6734 \r
6735         * bfd-in2.h: Regenerate.\r
6736 \r
6737         * coffgen.c: Indicate that the offset parameter is in bytes, not\r
6738         octets.\r
6739 \r
6740         * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte\r
6741         where appropriate to get the octet offset when calling\r
6742         bfd_set_section_contents.\r
6743         (bfd_coff_reloc_link_order): Ditto.\r
6744 \r
6745         * linker.c (bfd_generic_reloc_link_order): Ditto.\r
6746         (_bfd_default_link_order): Ditto.\r
6747 \r
6748         * reloc.c (bfd_perform_relocation):  Distinguish between octets\r
6749         and bytes.  Use octets when indexing into octet data; use bytes\r
6750         when calculating target addresses.\r
6751         (bfd_install_relocation): Ditto.\r
6752 \r
6753         * srec.c (srec_write_section): Ditto.\r
6754 \r
6755 2000-01-13  Nick Clifton  <nickc@cygnus.com>\r
6756 \r
6757         * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from\r
6758         3 to 2.  This allows 4 byte sized sections, which is necessary for\r
6759         dlltool to build functioning DLLs.\r
6760 \r
6761 2000-01-10  Philip Blundell  <pb@futuretv.com>\r
6762 \r
6763         * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.\r
6764         (arm*-*-conix*): New target.\r
6765 \r
6766 2000-01-10  Egor Duda  <deo@logos-m.ru>\r
6767 \r
6768         * config.bfd: Include elf32_i386 vector to target list for cygwin\r
6769         and mingw.\r
6770 \r
6771         * config.in: Undefine HAVE_WIN32_PSTATUS_T.\r
6772         * configure.in: Test for structure win32_pstatus_t in\r
6773         <sys/procfs.h>\r
6774         * configure: Regenerate.\r
6775 \r
6776         * elf.c (elfcore_grok_win32pstatus): New function: process\r
6777         win32_pstatus_t notes in elf core file.\r
6778         (elfcore_grok_note): Detect win32_pstatus notes.\r
6779 \r
6780 2000-01-03  Martin v. Loewis  <loewis@informatik.hu-berlin.de>\r
6781 \r
6782         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol\r
6783         visibility.\r
6784         * elflink.h (elf_link_add_object_symbols): Combine visibilities.\r
6785         * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.\r
6786 \r
6787 For older changes see ChangeLog-9899\r
6788 \f\r
6789 Local Variables:\r
6790 mode: change-log\r
6791 left-margin: 8\r
6792 fill-column: 74\r
6793 version-control: never\r
6794 End:\r