* Makefile.am (elf32-h8300.lo): New target.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
e01b0e69
JR
1Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
2
3 * Makefile.am (elf32-h8300.lo): New target.
4 * config.bfd (h8300*-*-elf): New case.
5 * configure.in (bfd_elf32_h8300_vec): New case.
6 * elf.c (prep_headers): Add case for bfd_arch_h8300.
7 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
8 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
9 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
10 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
11 * elf32-h8300.c: New file.
12 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
13
42ef282f
NC
142001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
15
16 * sparclynx.c: Add missing prototypes.
17 * coff-mcore.c: Add missing prototypes.
18 * elf32-pj.c: Add missing prototypes.
19 * nlm32-sparc.c: Add missing prototypes.
20 * oasys.c: Add missing prototypes.
21 * pdp11.c: Add missing prototypes.
22 * pe-mips.c: Add missing prototypes.
23 * riscix.c: Add missing prototypes.
24
2e67030c
DJ
252001-08-27 Daniel Jacobowitz <drow@mvista.com>
26
27 * elf32-i386.c: Add missing prototypes.
28 * elf32-ppc.c: Likewise.
29 * elf32-sh-lin.c: Likewise.
30 * elfarm-nabi.c: Likewise.
31
c5fccbec
DJ
322001-08-27 Daniel Jacobowitz <drow@mvista.com>
33
34 * elf32-i386.c (elf_i386_grok_prstatus): New function.
35 (elf_i386_grok_psinfo): New function.
36 (elf_backend_grok_prstatus): Define.
37 (elf_backend_grok_psinfo): Likewise.
38 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
39 (ppc_elf_grok_psinfo): New function.
40 (elf_backend_grok_prstatus): Define.
41 (elf_backend_grok_psinfo): Likewise.
42 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
43 (elf32_shlin_grok_psinfo): New function.
44 (elf_backend_grok_prstatus): Define.
45 (elf_backend_grok_psinfo): Likewise.
46 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
47 (elf32_arm_nabi_grok_psinfo): New function.
48 (elf_backend_grok_prstatus): Define.
49 (elf_backend_grok_psinfo): Likewise.
50
14d5043a
L
512001-08-27 H.J. Lu <hjl@gnu.org>
52
53 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
54 sanity check.
55 (mips_elf_calculate_relocation): Create dynamic relocation for
56 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
57 bit is not set.
58
9e80ff3a
L
592001-08-27 H.J. Lu <hjl@gnu.org>
60
61 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
62 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
63 (_bfd_elf32_mips_grok_prstatus): Likewise.
64 (_bfd_elf32_mips_grok_psinfo): Likewise.
65 (_bfd_mips_elf_hide_symbol): Make it static and cast to
66 `struct mips_elf_link_hash_entry *'.
67 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
68
e4b17274
NC
692001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
70
71 * mipsbsd.c: Add missing prototypes.
72 * hp300hpux.c: Add missing prototypes.
73 * i386aout.c: Add missing prototypes.
74 * i386lynx.c: Add missing prototypes.
75 * i386mach3.c: Add missing prototypes.
76 * i386msdos.c: Add missing prototypes.
77 * i386os9k.c: Add missing prototypes.
78
5bd4f169
AM
792001-08-27 Linus Nordberg <linus@swox.se>
80 Torbjorn Granlund <tege@swox.com>
81 Staffan Ulfberg <staffanu@swox.se>
82 Alan Modra <amodra@bigpond.net.au>
83
84 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
85 targ64_selvecs for 32 bit powerpc targets.
86 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
87 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
88 Run "make dep-am".
89 * Makefile.in: Regenerate.
90 * configure.in: Add elf64_powerpc vecs.
91 * configure: Regenerate.
92 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
93 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
94 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
95 * elf64-ppc.c: New file.
96 * reloc.c: Add powerpc64 relocs.
97 * libbfd.h: Regenerate.
98 * bfd-in2.h: Regenerate.
99
aa91b392
AS
1002001-08-27 Andreas Schwab <schwab@suse.de>
101
102 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
103 reloc is against read-only section.
104 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
105 looking up section names for DT_TEXTREL.
106 (elf32_m68k_reloc_type_class): New function.
107 (elf_backend_reloc_type_class): Define.
108
29c2fb7c
AJ
1092001-08-27 Andreas Jaeger <aj@suse.de>
110
111 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
112 reloc is against read-only section.
113 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
114 looking up section names for DT_TEXTREL.
115 (elf_s390_reloc_type_class): New.
116 (elf_backend_reloc_type_class): Define.
117
118 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
119 reloc is against read-only section.
120 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
121 looking up section names for DT_TEXTREL.
122 (elf_s390_reloc_type_class): New.
123 (elf_backend_reloc_type_class): Define.
124
125 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
126 is against read-only section.
127 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
128 looking up section names for DT_TEXTREL.
129 (ppc_elf_reloc_type_class): New.
130 (elf_backend_reloc_type_class): Define.
131
99e4ae17
AJ
1322001-08-26 Andreas Jaeger <aj@suse.de>
133
134 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
135 reloc is against read-only section.
136 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
137 looking up section names for DT_TEXTREL.
138 (elf_cris_reloc_type_class): New.
139 (elf_backend_reloc_type_class): Define.
140
141 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
142 against read-only section.
143 (elf_backend_reloc_type_class): Define.
144 (sh_elf_reloc_type_class): New.
145 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
146 looking up section names for DT_TEXTREL.
147
148 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
149 reloc is against read-only section.
150 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
151 looking up section names for DT_TEXTREL.
152 (elf32_arm_reloc_type_class): New.
153 (elf_backend_reloc_type_class): Define.
154
24a35864
AJ
1552001-08-25 Andreas Jaeger <aj@suse.de>
156
157 * oasys.c: Add missing prototypes.
158
159 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
160 attribute for parameter.
161 * elf.c (_bfd_elf_reloc_type_class): Likewise.
162
163 * versados.c (get_4): Make static.
164 (get_10): Make static.
165 Add missing prototypes.
166 (process_esd): Fix call to versados_new_symbol.
167
917583ad
NC
1682001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
169
170 * coff-a29k.c: Add missing prototypes.
171 * coff-apollo.c: Add missing prototypes.
172 * coff-arm.c: Add missing prototypes.
173 * coff-i860.c: Add missing prototypes.
174 * coff-rs6000.c: Add missing prototypes.
175 * coff-tic80.c: Add missing prototypes.
176 * elf-m10200.c: Add missing prototypes.
177 * elf-m10300.c: Add missing prototypes.
178 * elf32-arm.h: Add missing prototypes.
179 * elf32-d10v.c: Add missing prototypes.
180 * elf32-m32r.c: Add missing prototypes.
181 * elf32-mcore.c: Add missing prototypes.
182 * elf32-openrisc.c: Add missing prototypes.
183 * elf32-sh.c: Add missing prototypes.
184 * elf32-sparc.c: Add missing prototypes.
185 * elf32-v850.c: Add missing prototypes.
186 * elfarm-nabi.c: Add missing prototypes.
187 * elfarm-oabi.c: Add missing prototypes.
188
aee61b13
TS
1892001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
190
191 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
192 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
193
b0f35f36
L
1942001-08-24 H.J. Lu <hjl@gnu.org>
195
196 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
197 hash structure.
198
8ea2e4bd
NC
1992001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
200
201 * elf-bfd.h (elf_hash_table): Revert definition.
202 (is_elf_hash_table): New macro.
203 * elflink.h (elf_link_add_object_symbols): Test
204 is_elf_hash_table before accessing ELF only fields in hash
205 structure.
206 (elf_link_create_dynamic_sections): Fail if not using an ELF
207 hash structure.
208 (elf_add_dynamic_entry): Fail if not using an ELF hash
209 structure.
210 (elf_link_record_local_dynamic_symbol): Fail if not using an
211 ELF hash structure.
212 (size_dynamic_sections): Fail if not using an ELF hash
213 structure.
214 (elf_adjust_dynamic_symbol): Fail if not using an ELF
215 hash structure.
216 (elf_bfd_final_link): Fail if not using an ELF hash
217 structure.
218
2192001-08-24 H.J. Lu <hjl@gnu.org>
220
221 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
222 table is not an ELF linker hash table.
223
224 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
225 table type to bfd_link_elf_hash_table.
226
227 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
228 the last change.
229
230 * linker.c (_bfd_link_hash_table_init): Set the linker hash
231 table type to bfd_link_generic_hash_table.
232
8c98ec7d
AO
2332001-08-24 Alexandre Oliva <aoliva@redhat.com>
234
235 * bfd.c (bfd_alt_mach_code): New function.
236 * bfd-in2.h: Rebuilt.
237
17ea6349
AO
2382001-08-24 Alexandre Oliva <aoliva@redhat.com>
239
240 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
241 `type' field in the hash entry when deciding whether to follow a
242 link.
243
fcfbdf31
JJ
2442001-08-24 Jakub Jelinek <jakub@redhat.com>
245
246 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
247 last.
248 (elf_link_sort_relocs): Adjust accordingly.
249
250 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
251 (elf64_alpha_check_relocs): Set it if section this reloc is against
252 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
253 read-only section.
254 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
255 is is against read-only section.
256 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
257 check section names.
258 (elf64_alpha_reloc_type_class): New.
259 (elf_backend_reloc_type_class): Define.
260
f6be24f9
TS
2612001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
262
263 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
264 by bfd_malloc().
265
8df9fc9d
AJ
2662001-08-23 Andreas Jaeger <aj@suse.de>
267
268 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
269 the reloc is against read-only section.
270 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
271 of looking up section names for DT_TEXTREL.
272 (elf64_x86_64_reloc_type_class): New.
273 (elf_backend_reloc_type_class): Define.
274
60b89a18
L
2752001-08-23 H.J. Lu <hjl@gnu.org>
276
277 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
278 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
279
280 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
281 bfd_print_symbol_vandf.
282 * coffgen.c (coff_print_symbol): Likewise.
283 * elf.c (bfd_elf_print_symbol): Likewise.
284 * ieee.c (ieee_print_symbol): Likewise.
285 * nlmcode.h (nlm_print_symbol): Likewise.
286 * oasys.c (oasys_print_symbol): Likewise.
287 * pdp11.c (NAME(aout,print_symbol)): Likewise.
288 * som.c (som_print_symbol): Likewise.
289 * srec.c (srec_print_symbol): Likewise.
290 * tekhex.c (tekhex_print_symbol): Likewise.
291 * versados.c (versados_print_symbol): Likewise.
292 * vms.c (vms_print_symbol): Likewise.
293
294 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
295 with bfd_fprintf_vma.
296 (bfd_elf_print_symbol): Likewise.
297 * syms.c (bfd_print_symbol_vandf): Likewise.
298
67a374a5
NC
2992001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
300
301 * aoutf1.h (sunos_write_object_contents): Silence compile time
302 warning.
fcfbdf31 303 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
67a374a5
NC
304
305 * bout.c: Add missing function prototypes. Fix formatting.
f4ffd778
NC
306 * coff-z8k.c: Add missing function prototypes. Fix formatting.
307 * coff-w65.c: Add missing function prototypes. Fix formatting.
308 * coff-h8500.c: Add missing function prototypes. Fix formatting.
309 * coff-h8300.c: Add missing function prototypes. Fix formatting.
310 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
311 * coff-tic30.c: Add missing function prototypes. Fix formatting.
312 * coff-m68k.c: Add missing function prototypes. Fix formatting.
313 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
314 * coff-sh.c: Add missing function prototypes. Fix formatting.
67a374a5 315
db6751f2
JJ
3162001-08-23 Jakub Jelinek <jakub@redhat.com>
317
318 * elf-bfd.h (enum elf_reloc_type_class): New.
319 (struct elf_backend_data): Add elf_backend_reloc_type_class.
320 (_bfd_elf_reloc_type_class): New.
321 * elfxx-target.h (elf_backend_reloc_type_class): Define.
322 (elfNN_bed): Add elf_backend_reloc_type_class.
323 * elf.c (_bfd_elf_reloc_type_class): New.
324 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
325 is against read-only section.
326 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
327 looking up section names for DT_TEXTREL.
328 (elf_i386_reloc_type_class): New.
329 (elf_backend_reloc_type_class): Define.
330 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
331 reloc is against read-only section.
332 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
333 looking up section names for DT_TEXTREL.
334 (elf32_sparc_reloc_type_class): New.
335 (elf_backend_reloc_type_class): Define.
336 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
337 reloc is against read-only section.
338 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
339 looking up section names for DT_TEXTREL.
340 (sparc64_elf_reloc_type_class): New.
341 (elf_backend_reloc_type_class): Define.
342 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
343 (elfNN_ia64_hash_table_create): Clear ia64_info.
344 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
345 section.
346 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
347 instead of looking up section names for DT_TEXTREL.
348 (elfNN_ia64_reloc_type_class): New.
349 (elf_backend_reloc_type_class): Define.
350 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
351 (struct elf_link_sort_rela): New.
352 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
353 (elf_bfd_final_link): Call elf_link_sort_relocs.
354 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
355 necessary.
356
7e3b3466
NC
3572001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
358
359 * configure.in (x86-bsdi): No corefile support.
360 * configure: Regenerate.
361
26cd54bf
NC
3622001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
363
364 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
365 comma.
366
a7bda527
DD
3672001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
368
4f6fbb1a
DD
369 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
370 the alignment of dwarf2 linkonce sections to 0.
a7bda527
DD
371 * coff-sto32.c: Likewise.
372
5a65713f
AJ
3732001-08-20 Andreas Jaeger <aj@suse.de>
374
375 * coff-sparc.c: Add missing prototypes.
376 * elf32-s390.c: Likewise.
377 * elf32-i960.c: Likewise.
378 * aout-target.h: Likewise.
379
4e89ac30
L
3802001-08-20 H.J. Lu <hjl@gnu.org>
381
382 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
383 (elf_num_section_syms): New for num_section_syms.
384
385 * elf.c (elf_map_symbols): Set num_section_syms.
386 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
387 the section symbol index.
388
28db233b
NC
3892001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
390
391 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
392 select the generic has table creator. All elf backends need elf
393 specific fields in the hash table.
394
ba3ef70e
AM
3952001-08-20 Alan Modra <amodra@bigpond.net.au>
396
397 * archive.c (offsetof): Remove define.
398 * elf.c: Likewise.
399 * oasys.c: Likewise
400 * sysdep.h (offsetof): Define.
401
c0846b23
AM
4022001-08-17 Alan Modra <amodra@bigpond.net.au>
403
404 * bfd.c (bfd_get_gp_size): Return an unsigned int.
405 (bfd_set_gp_size): Make param unsigned.
406 * bfd-in2.h: Regenerate.
407 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
408 than calling bfd_get_gp_size.
409 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
410 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
411
0ac450b6
AM
4122001-08-17 Alan Modra <amodra@bigpond.net.au>
413
414 * linker.c (default_fill_link_order): Handle four byte fill value.
415
3619ad04
AM
4162001-08-17 Alan Modra <amodra@bigpond.net.au>
417
5d964dfa
AM
418 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
419 prototype.
420 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
421
5e572849
AM
422 * elf64-mips.c (UNUSED_RELOC): Define.
423 (mips_elf64_howto_table_rel): Use it.
424 (mips_elf64_howto_table_rela): Here too.
425 (mips_elf64_write_relocs): Fix signed/unsigned warning.
426
cea4409c
AM
427 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
428 silence warning.
429 * coffgen.c (coff_print_symbol): Fix warnings.
430 (coff_find_nearest_line): Likewise.
431 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
432 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
433 * format.c (bfd_check_format_matches): Likewise.
434 (bfd_set_format): Likewise.
435 * coff-ia64.c: Add missing prototypes.
436 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
437 signed to silence warnings.
438 (elf64_alpha_relocate_section): Likewise.
439 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
440 (elf64_alpha_add_symbol_hook): Likewise.
441 (elf64_alpha_final_link): Likewise.
442 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
443 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
444 (elf64_alpha_size_got_sections): Likewise.
445 * elfxx-ia64.c: Add missing prototypes.
446 (elfNN_ia64_relocate_section): Fix warning.
447 (elfNN_ia64_unwind_entry_compare): Make params const.
448
0ac450b6
AM
4492001-08-17 Alan Modra <amodra@bigpond.net.au>
450
e9e69f5a
AM
451 * config.bfd (targ64_selvecs): New.
452 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
453
69263e90
AM
454 * bfd-in.h (BFD_VERSION): Remove wrong comment.
455 (BFD_DEFAULT_TARGET_SIZE): New.
456 (BFD_ARCH_SIZE): Comment.
457 * configure.in (target_size): New. Set instead of target64 in
458 selvecs case statement. Set target64 from it.
459 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
460 * bfd-in2.h: Regenerate.
461 * configure: Regenerate.
462
0ac450b6
AM
4632001-08-17 Alan Modra <amodra@bigpond.net.au>
464
3619ad04
AM
465 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
466 (bfd_errmsgs): Add corresponding message.
467 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
468 finding an archive that contains different format object files.
469 Return bfd_error_wrong_object_format for this case.
470 * format.c: Formatting fixes. s/CONST/const/.
471 (bfd_check_format_matches): Accept archives that give
472 bfd_error_wrong_object_format if no full match is found. Tidy
473 code handling matching_vector. Don't return a pointer to freed
474 memory in `matching'. Handle ambiguous matches as for partial
475 archive matches.
476 * bfd-in2.h: Regenerate.
477
47fda0d3
AM
4782001-08-15 Alan Modra <amodra@bigpond.net.au>
479
480 * libieee.h (common_header_type): Add last_byte field.
481
482 * ieee.c: Add missing prototypes. Some format fixes.
483 (struct output_buffer_struct): Move for availability to prototypes.
484 (ieee_part_after): New function.
485 (ieee_slurp_debug): Use it here.
486 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
487 ieee_part_after to set last_byte to one past end of current part.
488 Update callers.
489 (ieee_pos): Pass in ieee_data_struct rather than bfd.
490 Update callers.
491 (parse_expression): Don't go beyond the end of the current part.
492 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
493 (ieee_get_symtab_upper_bound, ieee_get_symtab,
494 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
495 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
496 ieee_set_section_contents, ieee_write_object_contents,
497 ieee_make_empty_symbol): Make static.
498 (ieee_archive_p): Correct comments regarding bfd_read.
499 (ieee_object_p): Similarly.
500 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
501 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
502 input_bfd, output_bfd, output_buffer.
503 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
504 do_with_relocs, ie. as a symbol for relocatable files.
505 (ieee_vec): Add comments showing functions referenced by macros.
5a65713f 506
1725a96e
NC
5072001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
508
509 * aout-tic30.c: Add missing prototypes. Fix formatting.
510 * aout-ns32k.c: Add missing prototypes. Fix formatting.
511 * peXXigen.c: Add missining prototypes. Fix formatting.
512 * aout-adobe.c: Add missining prototypes. Fix formatting.
513
fa645acb
NC
5142001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
515
516 * elf32-v850.c: Add missing function prototypes.
517 Fix some formatting.
1725a96e 518
fa645acb
NC
519 * cpu-v850.c: Add missing function prototype.
520 Fix some formatting.
521
4e771d61
NC
5222001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
523
524 * elf-bfd.h (struct elf_backend_data): Add new fields
525 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
526 (bfd_elf_sprintf_vma): Rename function prototype to
527 '_bfd_elf_sprintf_vma'.
528 (bfd_elf_fprintf_vma): Rename function prototype to
529 '_bfd_elf_fprintf_vma'.
530 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
531 directly, instead indirect via the elf_backend_data structure.
532 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
533 instead indirect via the elf_backend_data structure.
534 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
535 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
536 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
537 already defined.
538 (elf_backend_fprintf_vma): Initialise if not already defined.
fcfbdf31 539 (struct elf_backend_data): Initialise the
4e771d61
NC
540 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
541
99c79b2e
AJ
5422001-08-10 Andreas Jaeger <aj@suse.de>
543
544 * elf64-sparc.c: Add missing prototypes.
545 * elf32-cris.c: Likewise.
546 * elf32-i370.c: Likewise.
547 * elf64-hppa.c: Likewise.
548 * elf64-s390.c: Likewise.
549
1e1b3bc2
AJ
5502001-08-10 Andreas Jaeger <aj@suse.de>
551
552 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
553 Add prototypes where needed.
554
ef071f24
L
5552001-08-10 H.J. Lu <hjl@gnu.org>
556
557 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
558 (bfd_fprintf_vma): Likewise.
559
5c36c02b
L
5602001-08-10 H.J. Lu <hjl@gnu.org>
561
562 * bfd.c (bfd_sprintf_vma): Don't return void.
563 (bfd_fprintf_vma): Likewise.
564
0218d1e4
AJ
5652001-08-10 Andreas Jaeger <aj@suse.de>
566
567 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
568 to build warnings.
569 * configure: Regenerate.
570
814fa6ab
AM
5712001-08-10 Alan Modra <amodra@bigpond.net.au>
572
cc55aec9
AM
573 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
574 warning if not BFD64. Add braces so emacs auto format works.
575 (bfd_elf_fprintf_vma): Likewise.
576
814fa6ab
AM
577 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
578 of _xcoff_swap_ld*.
579 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
580 param to agree with libxcoff.h.
581 (xcoff_swap_ldhdr_out): Likewise.
582 (xcoff_swap_ldsym_in): Likewise.
583 (xcoff_swap_ldsym_out): Likewise.
584 (xcoff_swap_ldrel_in): Likewise.
585 (xcoff_swap_ldrel_out): Likewise.
586 (xcoff_create_csect_from_smclas): Likewise.
587 * coff64-rs6000.c: Add missing prototypes.
588 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
589 with libxcoff.h.
590 (xcoff64_swap_ldhdr_out): Likewise.
591 (xcoff64_swap_ldsym_in): Likewise.
592 (xcoff64_swap_ldsym_out): Likewise.
593 (xcoff64_swap_ldrel_in): Likewise.
594 (xcoff64_swap_ldrel_out): Likewise.
595 (xcoff64_ppc_relocate_section): Make static.
596 (xcoff64_slurp_armap): Likewise.
597 (xcoff64_archive_p): Likewise.
598 (xcoff64_openr_next_archived_file): Likewise.
599 (xcoff64_sizeof_headers): Likewise.
600 (xcoff64_is_lineno_count_overflow): Likewise.
601 (xcoff64_is_reloc_count_overflow): Likewise.
602 (xcoff64_loader_symbol_offset): Likewise.
603 (xcoff64_loader_reloc_offset): Likewise.
604 * elf64-gen.c: Add missing prototypes.
605
d3b05f8d
L
6062001-08-09 H.J. Lu <hjl@gnu.org>
607
608 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
609 (bfd_elf_fprintf_vma): Likewise.
610
d69bb69b
L
6112001-08-09 H.J. Lu <hjl@gnu.org>
612
613 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
614 to ...
615 * elf-bfd.h: Here.
616 * bfd-in2.h: Regenerated.
617
ae4221d7
L
6182001-08-09 H.J. Lu <hjl@gnu.org>
619
620 * bfd-in.h (bfd_sprintf_vma): New prototype.
621 (bfd_fprintf_vma): Likewise.
622 (bfd_elf_sprintf_vma): Likewise.
623 (bfd_elf_fprintf_vma): Likewise.
624 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
625 * bfd-in2.h: Regenerated.
626
627 * bfd.c (bfd_sprintf_vma): New. Defined.
628 (bfd_fprintf_vma): Likewise.
629
630 * elf.c (bfd_elf_sprintf_vma): New. Defined.
631 (bfd_elf_fprintf_vma): Likewise.
632
a7b97311
AM
6332001-08-09 Alan Modra <amodra@bigpond.net.au>
634
635 * coff-rs6000.c: Add missing prototypes.
636 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
637 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
638 xcoff_loader_reloc_offset): Make static.
639 * dwarf1.c: Add missing prototypes.
640 * dwarf2.c: Add missing prototypes.
641 (struct abbrev_info): Move definition.
642 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
643 * elf.c: Add missing prototypes.
644 * elf32-gen.c: Likewise.
645 * elf32-i386.c: Likewise.
646 * elf32-ppc.c: Likewise.
647 (ppc_elf_sort_rela): Use PTR instead of "void *".
648 * elflink.h: Add missing prototypes. Formatting fixes.
649 * merge.c: Add missing prototypes.
650 (last4_eq): Use PTR instead of "void *".
651 (last_eq): Likewise.
652 * syms.c: Add missing prototypes.
653
55ab10f0
NC
6542001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
655
656 * bfd.c: Fix formatting.
657 * bfd-in2.h: Regenerate.
658
1c26dc27
NC
6592001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
660
661 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
662 true (this target uses REL relocations) and 'pcrel_offset' to
663 false (the PC is implied, not stored in the offset).
664
2517a57f
AM
6652001-08-08 Alan Modra <amodra@bigpond.net.au>
666
667 1999-10-19 Linus Nordberg <linus@swox.se>
668 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
669 * elfxx-target.h (elf_backend_want_got_sym): Define.
670 (elfNN_bed): Add elf_backend_want_got_sym.
671 * elflink.c (_bfd_elf_create_got_section): Define
672 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
673
f2363ce5
AO
6742001-08-08 Alexandre Oliva <aoliva@redhat.com>
675
676 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
677 (find_rela_addend): New function.
678 (parse_comp_unit): Call it to find the abbrev offset addend.
679 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
680 members of dwarf2_debug as debugging information is read.
681
993e9275
NC
6822001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
683
684 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
685 targets as well as sh-pe.
686
62efb346
NC
6872001-08-03 Ben Harris <bjh21@netbsd.org>
688
689 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
690 reloc from start of section when computing value for R_ARM_REL32
691 reloc.
692
8e1d4bbb
AM
6932001-08-03 Alan Modra <amodra@bigpond.net.au>
694
695 From H.J. Lu <hjl@gnu.org>
696 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
697 keep relocs for undefined syms if there are no dynamic sections in
698 executable.
699 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
700
8ceb7a1b
CW
7012001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
702
703 * cofflink.c (coff_link_check_ar_symbols): also search for
704 __imp__symbol as well as _symbol.
705 * linker.c (_bfd_generic_link_add_archive_symbols): also
706 search for __imp__symbol as well as _symbol.
707
00a7cdc5
NC
7082001-08-01 Adam Nemet <anemet@lnxw.com>
709
710 * elf.c (elf_sort_sections): Return zero only as the last step.
711
d8adc60f
NC
7122001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
713
714 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
715 ARM_COFF_BUGFIX.
716 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
717 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
718 ARM_COFF_BUGFIX.
719
407c2b92
NC
7202001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
721
722 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
723 to match corresponding bfd_coff_backend data member.
724
8a5cc6be
AM
7252001-07-24 Alan Modra <amodra@bigpond.net.au>
726
727 * Makefile.am: Update dependencies with "make dep-am".
728 * Makefile.in: Regenerate
729
01467f2a
L
7302001-07-15 H.J. Lu <hjl@gnu.org>
731
732 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
733 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
734 * Makefile.in: Regenerate.
735
824e2cb4
L
7362001-07-11 H.J. Lu <hjl@gnu.org>
737
738 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
739 flags when creating the reloc section if the ALLOC flag in the
740 source section is set.
741
a4bd8390
JW
7422001-07-11 Steve Ellcey <sje@cup.hp.com>
743
744 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
745 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
746 * bfd-in2.h: Regenerate.
747 * libbfd.h: Regenerate.
748 * elfxx-ia64.c (ia64_howto_table): Define how to handle
749 new relocations.
750 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
751 (elfNN_ia64_check_relocs): Likewise.
752 (elfNN_ia64_install_value): Likewise.
753 (elfNN_ia64_relocate_section): Likewise.
754
20278fa3
JJ
7552001-07-11 Jakub Jelinek <jakub@redhat.com>
756
757 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
758 R_SPARC_UA64.
759 (elf32_sparc_check_relocs): Likewise.
760 Only create .rela section for alloced sections in shared libraries.
761 (elf32_sparc_relocate_section): Likewise.
762 Remove redundant check.
763 Optimize unaligned reloc usage.
764 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
765 check.
766
067a7d17
L
7672001-07-11 H.J. Lu <hjl@gnu.org>
768
769 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
770 ALLOC|LOAD flags as the source section for debugging sections
771 when creating the reloc section.
772
a78f18dc
JW
7732001-07-05 Jim Wilson <wilson@redhat.com>
774
0a2afbc1
JW
775 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
776 the section of the bigger symbol.
777
a78f18dc
JW
778 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
779
0515494a
NC
7802001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
781
782 * peicode.h (coff_swap_scnhdr_in): For sections containing
783 uninitialised data, only set their size to s_paddr if this does
784 not reset their size to zero. MS's latest compilers will set
785 s_paddr to zero.
786
5e7079af
L
7872001-07-04 H.J. Lu <hjl@gnu.org>
788
789 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
790 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
791 bfd_mach_mips5000.
792
440c4607
NC
7932001-07-03 Mark Elbrecht <snowball3@softhome.net>
794
f47e5071
NC
795 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
796
440c4607
NC
797 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
798 sections being discarded.
799
936e320b
AM
8002001-06-30 Alan Modra <amodra@bigpond.net.au>
801
802 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
803 instead of _bfd_elfcore_section_from_phdr.
804 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
805 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
806 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
807 (elfcore_grok_prstatus): Likewise.
808 (elfcore_grok_lwpstatus): Likewise.
809 (bfd_get_elf_phdr_upper_bound): Likewise.
810 (elfcore_make_note_pseudosection): Formatting.
811 (_bfd_elfcore_strndup): Formatting.
812 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
813 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
814
bb0082d6
AM
8152001-06-29 Daniel Jacobowitz <drow@mvista.com>
816
817 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
818 and _bfd_elfcore_strndup.
819 (struct elf_backend_data): Add elf_backend_grok_prstatus
820 and elf_backend_grok_psinfo.
821 * elf.c (_bfd_elfcore_make_pseudosection): New function.
822 (elfcore_grok_prstatus): Use it.
823 (elfcore_make_note_pseudosection): Likewise.
824 (elfcore_strndup): Rename to...
825 (_bfd_elfcore_strndup): Here, and make global.
826 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
827 (elfcore_grok_note): Call elf_backend_grok_prstatus
828 and elf_backend_grok_psinfo if available.
829 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
830 (_bfd_elf32_mips_grok_psinfo): New function.
831 (elf_backend_grok_prstatus): Define.
832 (elf_backend_grok_psinfo): Define.
833 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
834 (elf_backend_grok_psinfo): Likewise.
835 (elfNN_bed): Include elf_backend_grok_prstatus and
836 elf_backend_grok_psinfo.
837
b64977c5
L
8382001-06-29 H.J. Lu <hjl@gnu.org>
839
840 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
8e1d4bbb 841 hplink->sgot is NULL before filling GOT. Check if hplink->splt
b64977c5
L
842 is NULL before filling PLT.
843
e45bf863
AM
8442001-06-29 Alan Modra <amodra@bigpond.net.au>
845
846 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
847
5a15f56f
AM
8482001-06-27 Alan Modra <amodra@bigpond.net.au>
849
446f2863
AM
850 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
851 here..
852 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
853 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
854 after gc has run.
855
856 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
857 (IS_ABSOLUTE_RELOC): Define.
858 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
859 (hppa_link_hash_newfunc): Always init it.
860 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
861 create COPY relocs only when the reloc is in a read-only section.
862 Instead, allocate space for a dynamic reloc to reference the
863 library symbol directly. Keep track of space we allocate using
864 relocs_entries.
865 (hppa_discard_copies): Delete, and move code to..
866 (allocate_plt_and_got): ..here. Rename to
867 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
868 relocs for non-shared link.
869 (elf32_hppa_size_dynamic_sections): Update calls to above.
870 (elf32_hppa_relocate_section): Write out the dynamic relocs used
871 in lieu of COPY relocs.
872
5a15f56f
AM
873 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
874 here..
875 (elf_i386_adjust_dynamic_symbol): ..nor here..
876 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
877 after gc has run.
878 (elf_i386_size_dynamic_sections): Fix a comment.
879 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
880 involved in writing reloc out.
881
866b3400
AM
8822001-06-25 Alan Modra <amodra@bigpond.net.au>
883
28d0b90e
AM
884 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
885 Ensure syms are dynamic if we might be emitting a reloc.
886 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
887 for undefweak or undefined syms..
888 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
889
866b3400
AM
890 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
891 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
892 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
893 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
894
6cbac8b9
L
8952001-06-24 H.J. Lu <hjl@gnu.org>
896
897 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
898 strncasecmp/strcasecmp instead of strncmp/strcmp.
899
62b7d3f1
L
9002001-06-23 H.J. Lu <hjl@gnu.org>
901
866b3400
AM
902 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
903 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
62b7d3f1
L
904 in the regular object file and treat the weak definition as
905 the normal one.
906
12d0ee4a
AM
9072001-06-23 Alan Modra <amodra@bigpond.net.au>
908
8c694914
AM
909 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
910 unresolved_reloc test to exclude cases where we use "relocation"
911 before setting it to point into the .got. Reinstate fudge for
912 unresolved relocs in debugging sections.
913
83be169b
AM
914 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
915 complicated tests for unresolvable relocs with a simple direct
916 scheme using "unresolved_reloc" var.
917
ffb2e45b
AM
918 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
919 elf_i386_dyn_relocs. Update comment.
920 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
921 dyn_relocs.
922 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
923 others to aborts.
924 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
925 abort.
926 (elf_i386_size_dynamic_sections): Likewise.
927 (elf_i386_finish_dynamic_symbol): Likewise.
928 (elf_i386_finish_dynamic_sections): Likewise.
929 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
930 handling code.
931
12d0ee4a
AM
932 Avoid creating COPY relocs if possible.
933 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
934 which .got created. Mark symbols used by R_386_32 and R_386_PC32
935 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
936 reloc is in a read-only section. Instead, allocate space for a
937 dynamic reloc to reference the library symbol directly. Keep
938 track of space we allocate using pcrel_relocs_copied.
939 (discard_copies): Delete, and move code to ..
940 (allocate_plt_and_got): ..here. Rename to
941 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
942 relocs for non-shared link.
943 (elf_i386_size_dynamic_sections): Update calls to above functions.
944 (elf_i386_relocate_section): Write out the dynamic relocs. Add
945 more ugly logic to avoid "unresolvable relocation" error. Use
946 htab shortcut in place of elf_hash_table macro.
947 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
948 not always be created now.
949
f631948d
AJ
9502001-06-20 Bo Thorsen <bo@suse.co.uk>
951
952 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
953 shared libraries.
954
89084430
NC
9552001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
956
957 * configure.host (mips64-*-linux): Reformat.
958
68fb2e56
AM
9592001-06-21 Alan Modra <amodra@bigpond.net.au>
960
961 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
962 allocate local .got space. Use shortcuts from hash table for .got
963 and .plt rather than comparing section names.
964 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
965 adjusting index into local_got_refcounts to document what we are
966 really doing.
967 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
968 Tidy .got and .plt error checking.
969
9317eacc
CM
9702001-06-20 Catherine Moore <clm@redhat.com>
971
bb0082d6
AM
972 * elf-bfd.h (struct elf_backend_data):
973 elf_backend_emit_relocs: New field: Function for emitting
974 relocs.
975 elf_backend_count_relocs: New field: Function for determining
976 the number of relocs to be emitted.
977 * elfxx-target.h: Provide default (NULL) values for
978 elf_backend_emit_relocs and elf_backend_count_relocs.
979 * elflink.h (elf_link_size_reloc_section): Make the hash table
980 big enough to hold the relocs counted by either reloc_count or
981 o->reloc_count.
982 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
983 should be emitted, either because of a command line option
984 stored in the info structure or because the target provides a
985 special reloc emitting function.
986 If the target provides a reloc counting function use it,
987 unless performing a relocatable link or emitting all relocs.
988 Also set the SEC_RELOC flag on any output section which will
989 contain relocs.
990 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
991 should be emitted, either because of a command line option
992 stored in the info structure or because the target provides a
993 special reloc emitting function.
994 If the target provides a reloc emitting function, use it,
995 unless performing a relocatable link or emitting all relocs.
9317eacc 996
161d71a6
L
9972001-06-20 H.J. Lu <hjl@gnu.org>
998
999 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
1000 allocate local .got space.
1001
fd8ab9e5
AJ
10022001-06-19 Andreas Jaeger <aj@suse.de>
1003
1004 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
1005 dynamic symbols.
1006
99293407
HPN
10072001-06-18 Hans-Peter Nilsson <hp@axis.com>
1008
1009 * elflink.h (struct elf_assign_sym_version_info): Remove member
1010 export_dynamic. All users changed to use info member.
1011 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
1012 export_dynamic, instead use member in parameter info.
1013 * bfd-in.h (bfd_elf32_size_dynamic_sections,
1014 bfd_elf64_size_dynamic_sections): Update prototype.
1015 * bfd-in2.h: Regenerate.
1016
bc2b6df7
L
10172001-06-18 H.J. Lu <hjl@gnu.org>
1018
1019 * elflink.h (elf_info_failed): Add a new field, verdefs.
1020 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
1021 elf_export_symbol.
1022 (elf_export_symbol): Check eif->verdefs to decide if a symbol
1023 should be exported.
1024
43917054
L
10252001-06-17 H.J. Lu <hjl@gnu.org>
1026
1027 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
1028 readonly_reloc, to record if a relocation in the .rel.dyn
f631948d 1029 section is against a read-only section.
43917054
L
1030 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
1031 field to false.
1032 (_bfd_mips_elf_check_relocs): Record if there is a relocation
1033 in the .rel.dyn section against a read-only section by setting
1034 DF_TEXTREL or readonly_reloc.
1035 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
1036 it is true.
1037 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
1038 there is a relocation in the .rel.dyn section against a
1039 read-only section.
1040 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
1041 DF_TEXTREL is set.
1042
7c8ca0e4
NC
10432001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1044
1045 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
1046 function. Move flagword result into parameter list. Remove
1047 comment about setting bfd_error_handler to intercept failure
1048 results.
bb0082d6 1049 * coffgen.c (make_a_section_from_file): Examine result of
7c8ca0e4
NC
1050 calling bfd_coff_styp_to_sec_flags and pass a failure back to
1051 caller.
bb0082d6 1052 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
7c8ca0e4 1053 function. Move flagword result into parameter list.
bb0082d6
AM
1054 * libcoff.h: Regenerate.
1055 * libecoff.h: Regenerate.
7c8ca0e4 1056
dee0a8f4
NC
10572001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
1058
1059 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
1060 section is going to follow it.
1061
0d1ea5c0
CM
10622001-06-12 Catherine Moore <clm@redhat.com>
1063
bb0082d6
AM
1064 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
1065 with the file_align entry from elf_backend_data.
1066 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1067 (elf_gc_record_vtentry): Likewise.
0d1ea5c0 1068
4e8a9624
AM
10692001-06-10 Alan Modra <amodra@bigpond.net.au>
1070
1071 * elflink.h: Whitespace changes.
1072 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
1073 rather than "unsigned char".
1074 (elf_link_output_relocs): Likewise.
1075 (elf_link_input_bfd): Likewise.
1076 (elf_reloc_link_order): LIkewise.
1077 * elf.c: s/CONST/const/. Whitespace changes.
1078 * elf32-mips.c: Formatting fix.
1079
1080 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
1081 * Makefile.in: Regenerate.
1082 * po/Make-in: Remove trailing tab.
1083
7a25cd3e
PB
10842001-06-09 Philip Blundell <philb@gnu.org>
1085
1086 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
1087 change.
1088 (elf32_arm_plt_entry): Likewise.
1089
3f5a136d
L
10902001-06-08 H.J. Lu <hjl@gnu.org>
1091
1092 * elf.c (swap_out_syms): Keep names for global section symbols.
1093
d8fe1fed
L
10942001-06-07 H.J. Lu <hjl@gnu.org>
1095
1096 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
1097 MIPS-based machines need it.
1098
c36e006f
L
10992001-06-07 H.J. Lu <hjl@gnu.org>
1100
1101 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
1102 for SGI only.
1103
1104 * config.bfd: Remove ecoff from Linux/mips.
1105
cc78d0af
AJ
11062001-06-07 Andreas Jaeger <aj@suse.de>
1107
1108 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
1109 assertion.
1110 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
1111 alignment of 8 for .rela sections; handle further relocations.
1112
879db8be
NC
11132001-06-06 Christian Groessler <cpg@aladdin.de>
1114
bb0082d6 1115 * coff-z8k.c: Fix formatting.
879db8be
NC
1116 Fix howtos: howto->size was always 1.
1117
cbb1fd50
NC
11182001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1119
1120 * configure.host (mips64*-*-linux*): Define.
1121
73a74a62
AM
11222001-06-05 Alan Modra <amodra@bigpond.net.au>
1123
6725bdbf
AM
1124 * elf32-i386.c (elf_i386_discard_copies): Rename to
1125 discard_copies, and use elf_link_hash_entry arg rather than
1126 elf_i386_link_hash_entry.
1127 (elf_i386_link_hash_traverse): Delete.
1128 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
1129 Tidy sizing of dynamic sections.
1130 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
1131 possible .plt entries.
1132 (elf_i386_gc_sweep_hook): Likewise.
1133 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
1134 everything with plt.refcount <= 0.
1135
1136 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
1137 .relgot space here.
1138 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 1139 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
1140 .rel.plt here..
1141 (allocate_plt_and_got): ..instead do it all here. New function.
1142 (elf_i386_size_dynamic_sections): Allocate local .got space and
1143 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
1144 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
1145 rather than gc variety).
1146 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1147 (elf_i386_relocate_section): Use it here and correct handling of
1148 R_386_GOT32. Provide section and offset for "unresolvable
1149 relocation" error message.
1150 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
1151
1152 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
1153 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
1154 (elf_i386_link_hash_table_create): Init them.
1155 (create_got_section): New function.
1156 (elf_i386_create_dynamic_sections): New function.
1157 (elf_backend_create_dynamic_sections): Set to above.
1158 (elf_i386_check_relocs): Use shortcuts from hash table rather than
1159 calling bfd_get_section_by_name.
1160 (elf_i386_gc_sweep_hook): Likewise.
1161 (elf_i386_adjust_dynamic_symbol): Likewise.
1162 (elf_i386_size_dynamic_sections): Likewise.
1163 (elf_i386_relocate_section): Likewise.
1164 (elf_i386_finish_dynamic_sections): Likewise.
1165
73a74a62
AM
1166 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
1167
24a5e751
L
11682001-06-02 H.J. Lu <hjl@gnu.org>
1169
1170 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
1171 and ELFOSABI_HPUX.
1172 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
1173
15103188
L
11742001-06-02 H.J. Lu <hjl@gnu.org>
1175
1176 * aout-cris.c (MACHTYPE_OK): New. Defined.
1177
2f484710
HPN
11782001-06-02 Hans-Peter Nilsson <hp@axis.com>
1179
1180 * section.c (_bfd_strip_section_from_output): Handle NULL
1181 output_section.
1182
a5ac692b
L
11832001-06-02 H.J. Lu <hjl@gnu.org>
1184
1185 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
1186 rs6000coff64_vec only if BFD64 is defined.
1187 (powerpc64-*-aix*): Enable only if BFD64 is defined.
1188
27e53099
L
11892001-06-02 H.J. Lu <hjl@gnu.org>
1190
1191 * coff-ia64.c (ia64coff_object_p): Rewrite with
1192 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
1193
80643fbc
AJ
11942001-06-01 Andreas Jaeger <aj@suse.de>
1195
1196 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
1197 relocation, small reformatting.
1198
6b3db546
AJ
11992001-05-29 Andreas Jaeger <aj@suse.de>
1200
1201 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
1202 (elf64_x86_64_relocate_section): Likewise.
1203
4dc86686
AM
12042001-05-30 Alan Modra <amodra@one.net.au>
1205
1206 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
1207 millicode. Don't allocate .got and .rela.got space here..
1208 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
1209 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
1210 .rela.plt here..
1211 (hppa_handle_PIC_calls): ..nor here..
1212 (allocate_plt_and_got): ..instead do it all here. New function.
1213 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
1214 call allocate_plt_and_got. No need to zap .got if not dynamic.
1215 (elf32_hppa_final_link): Call regular bfd_final_link instead of
1216 gc_common_final_link.
1217 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1218 (elf32_hppa_relocate_section): Use it here.
1219 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
1220 dynamic_sections_created.
1221 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
1222
de41dcd8
AJ
12232001-05-28 Andreas Jaeger <aj@suse.de>
1224
1225 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
1226 generic version since we want a hashsize of 4.
1227 (elf_backend_size_info): Likewise.
1228
209f668e
NC
12292001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1230
209f668e
NC
1231 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
1232 a zeroing loop.
1233 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
1234 (elf_link_input_bfd): Likewise.
1235 (elf_reloc_link_order): Likewise.
1236 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
1237 relocations correctly.
1238
f7a74f8c
NC
12392001-05-28 Nicolas Pitre <nico@cam.org>
1240
1241 * elf32-arm.h: fix PLT generation for big endian ARM
1242
8dea1268
AM
12432001-05-28 Alan Modra <amodra@one.net.au>
1244
1245 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
1246 for symbols forced local that need plabels.
1247 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
1248 .plt.rela for local syms if non-shared.
1249 (hppa_build_one_stub): Mask lsb of plt.offset.
1250 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
1251 (clobber_millicode_symbols): Correct comment.
1252 (elf32_hppa_relocate_section): Likewise.
1253 (elf32_hppa_finish_dynamic_symbol): Likewise.
1254
0f2712ed
NC
12552001-05-28 Jeff Sturm <jsturm@one-point.com>
1256
1257 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
1258 * bfd-in2.h: Regenerate.
1259 * libbfd.h: Regenerate.
1260 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
1261 and BFD_RELOC_SPARC_UA64 mapping
1262 * elf64-sparc.c: Likewise.
de41dcd8 1263
6768c14a
L
12642001-05-25 H.J. Lu <hjl@gnu.org>
1265
1266 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
1267 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
1268 (coff-rs6000.lo): Remove the old dependency.
1269 * Makefile.in: Rebuild.
1270
1271 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
1272 coff-rs6000.lo.
1273
b55039f4
L
12742001-05-25 H.J. Lu <hjl@gnu.org>
1275
1276 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
1277 rs6000coff_core_file_matches_executable_p,
1278 rs6000coff_core_file_failing_command and
1279 rs6000coff_core_file_failing_signal only if AIX_CORE is
1280 defined.
1281 (pmac_xcoff_vec): Likewise.
1282 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1283
64e9ece0
TW
12842001-05-25 Timothy Wall <twall@redhat.com>
1285
1286 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
1287 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
1288
f34d8777
L
12892001-05-25 H.J. Lu <hjl@gnu.org>
1290
1291 * bfd-in2.h: Regenerated.
1292 * libcoff.h: Likewise.
1293
49e9d0d3
AM
12942001-05-25 Alan Modra <amodra@one.net.au>
1295
1296 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
1297 undefined millicode syms in shared libs.
1298 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
1299 (elf32_hppa_check_relocs): Likewise.
1300 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1301 (elf32_hppa_size_dynamic_sections): Likewise.
1302 (elf32_hppa_relocate_section): Likewise.
1303 (elf32_hppa_finish_dynamic_symbol): Likewise.
1304 (elf32_hppa_finish_dynamic_sections): Likewise.
1305
beb1bf64
TR
13062001-05-24 Tom Rix <trix@redhat.com>
1307
bb0082d6 1308 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
beb1bf64
TR
1309 xcoff-target.h not used to define rs6000 or ppc bfd.
1310 * Makefile.in same
1311
1312 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
1313 to 64 bit.
1314
1315 * coff-rs6000.c : Many changes for 64 bit support. Move common
1316 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
1317 and pmac_xcoff_vec
1318
1319 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
1320 linker now supported. Explictly define the rs6000coff64_vec.
1321
1322 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 1323 (coff_print_aux) same
beb1bf64
TR
1324 (coff_write_object_contents) same
1325 (coff_slurp_line_table) same
1326
1327 * coffgen.c : (coff_fix_symbol_name) formatting
1328 (coff_mangle_symbols) xcoff 64 bit support
1329 (coff_write_symbol) same
1330 (coff_write_alien_symbol) same
1331 (coff_write_native_symbol) same
1332 (coff_write_symbols) same
1333 (coff_get_symbol_info) same
1334 (bfd_coff_get_syment) same
1335 (coff_print_symbol) same
1336
1337 * config.bfd : add powerpc64-*-aix* target
1338
1339 * libcoff-in.h : formatting
1340
1341 * libcoff.h : move xcoff extern declarations to libxcoff.h
1342
1343 * libxcoff.h : New file
1344
de41dcd8
AJ
1345 * xcofflink.c : Many changes for xcoff64 support. Move common
1346 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
1347 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
1348 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
1349
1350 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
1351 aix4.2+ -binitfini.
1352
1353 (xcoff_build_ldsyms) : handle special __rtinit symbol.
1354
e90fdc1a
AO
13552001-05-23 Alexandre Oliva <aoliva@redhat.com>
1356
1357 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1358 s/ENTIRES/ENTRIES/.
1359
d1cf510e
NC
13602001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1361
c2feb664
NC
1362 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
1363 * libbfd.h: Regenerate.
4e8a9624 1364 * bfd-in2.h: Regenerate.
c2feb664 1365
d1cf510e
NC
1366 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
1367 * archures.c (bfd_mach_mips12000): Define.
1368 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
1369 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
1370 support.
1371 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
1372 * bfd-in2.h: Regenerate.
1373 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
1374
6c426cf3
NC
13752001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
1376
1377 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
1378 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1379 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1380 that is used by GCC.
1381
d9bc7a44
NC
13822001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1383
1384 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1385 of entries in a structured section.
bb0082d6
AM
1386 * elf.c: Use new macro.
1387 * elf32-i386.c: Use new macro.
1388 * elf32-mips.c: Use new macro.
1389 * elf64-alpha.c: Use new macro.
1390 * elf64-sparc.c: Use new macro.
1391 * elfcode.h: Use new macro.
1392 * elflink.h: Use new macro.
d9bc7a44
NC
1393
13942001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1395
1396 * bfdint.texi: Replace -oformat with --oformat.
1397
f5198f61
AJ
13982001-05-21 Andreas Jaeger <aj@suse.de>
1399
1400 * dwarf2.c (decode_line_info): Fix error message.
1401 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1402 adjust error message.
1403
7913c838
L
14042001-05-18 H.J. Lu <hjl@gnu.org>
1405
1406 * elflink.h (elf_link_add_object_symbols): Revert the last
1407 change.
1408
e0522e89
AM
14092001-05-17 Alan Modra <amodra@one.net.au>
1410
1411 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1412 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1413 (hppa_build_one_stub): Add an assert to check plt.offset.
1414
96fd004e
L
14152001-05-17 H.J. Lu <hjl@gnu.org>
1416
1417 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1418 version definition to basename of the output filename.
1419
f3876d8b
L
14202001-05-17 H.J. Lu <hjl@gnu.org>
1421
1422 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1423 basename of the bfd filename.
1424
d1778b88
AM
14252001-05-16 Alan Modra <amodra@one.net.au>
1426
1427 * section.c (asection): Add linker_has_input field.
1428 (STD_SECTION): Adjust initialization to suit.
1429 * ecoff.c (bfd_debug_section): Likewise.
1430 * bfd-in2.h: Regenerate.
1431
2a0fa943
AO
14322001-05-15 Alexandre Oliva <aoliva@redhat.com>
1433
1434 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1435 negative 32-bit operands to 16 operands when the operand is
1436 going to be zero-extended by the modified opcode.
1437
bcee8eb8
AM
14382001-05-12 Peter Targett <peter.targett@arccores.com>
1439
1440 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1441 name for 'arc5' core versions.
1442 (bfd_arc_arch): Make bfd_mach_arc_6 default.
1443
1444 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1445 architecture.
1446 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1447
579f31ac
JJ
14482001-05-11 Jakub Jelinek <jakub@redhat.com>
1449
1450 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1451 sections as well.
1452 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1453 to .gnu.linkonce.t.FOO text section.
1454
8550eb6e
JJ
14552001-05-11 Jakub Jelinek <jakub@redhat.com>
1456
1457 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1458 fields, change sec into secinfo.
1459 (struct sec_merge_info): Add chain, remove last fields.
1460 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1461 (sec_merge_hash_lookup): If lookup could not use a string only
1462 because it has bad alignment, mark the old string for deletion.
1463 (sec_merge_add): Add secinfo argument. Don't compute entry's
1464 position, instead record the section.
1465 (sec_merge_emit): Update for the sec into secinfo change in
1466 struct sec_merge_hash_entry.
1467 (_bfd_merge_section): Only record the section for merging, defer
1468 putting strings into the hash table.
1469 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1470 _bfd_merge_sections): New functions.
1471 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1472 changes.
1473 * libbfd-in.h (_bfd_merge_sections): Add prototype.
1474 (_bfd_nolink_bfd_merge_sections): Define.
1475 * libbfd.h: Likewise.
1476 (bfd_generic_merge_sections): Add prototype.
1477 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1478 (struct bfd_target): Likewise.
1479 * bfd.c (bfd_merge_sections): Define.
1480 * bfd-in2.h: Rebuilt.
1481 * elf.c (_bfd_elf_merge_sections): New function.
1482 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1483 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1484 * reloc.c (bfd_generic_merge_sections): New function.
1485 * vms.c (vms_bfd_merge_sections): New function.
1486 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1487 * aout-target.h (MY_bfd_merge_sections): Define.
1488 * aout-tic30.c (MY_bfd_merge_sections): Define.
1489 * binary.c (binary_bfd_merge_sections): Define.
1490 * bout.c (b_out_bfd_merge_sections): Define.
1491 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1492 * coffcode.c (coff_bfd_merge_sections): Define.
1493 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1494 * i386msdos.c (msdos_bfd_merge_sections): Define.
1495 * i386os9k.c (os9k_bfd_merge_sections): Define.
1496 * ieee.c (ieee_bfd_merge_sections): Define.
1497 * ihex.c (ihex_bfd_merge_sections): Define.
1498 * nlm-target.h (nlm_bfd_merge_sections): Define.
1499 * oasys.c (oasys_bfd_merge_sections): Define.
1500 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1501 * som.c (som_bfd_merge_sections): Define.
1502 * srec.c (srec_bfd_merge_sections): Define.
1503 * tekhex.c (tekhex_bfd_merge_sections): Define.
1504 * versados.c (versados_bfd_merge_sections): Define.
1505 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1506
1548c54f
NC
15072001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1508
1509 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1510 to be unsigned long, in order to match its use.
1511
689effed
L
15122001-05-10 H.J. Lu <hjl@gnu.org>
1513
1514 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1515 indirect symbols.
1516
6e5222be
L
15172001-05-09 H.J. Lu <hjl@gnu.org>
1518
1519 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1520 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1521 Remove the unused veriable `dynver'.
1522
8e191bd3
ILT
15232001-05-08 Ian Lance Taylor <ian@zembu.com>
1524
1525 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1526 NULL or is not COFF.
1527 (coff_i386_rtype_to_howto): Don't dump core if output section
1528 owner is not COFF.
1529
062e2358
AM
15302001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1531
1532 * ecoff.c (bfd_debug_section): Fix initialization.
1533 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1534 is always a positive integer. Cast away sign mismatch.
1535 * elf32-mips.c: Fix misleading comment and typo.
1536 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1537 correct data type.
1538 * elflink.c: Fix typo.
1539 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1540 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1541
16b65e4e
RH
15422001-05-04 Richard Henderson <rth@redhat.com>
1543
1544 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1545
cac15327
NC
15462001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
1547
1548 * elf32-arm.h (elf32_arm_final_link_relocate): Set
bb0082d6 1549 EF_ARM_HASENTRY if the start address is set.
cac15327 1550
966b3e0b
NC
15512001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1552
1553 * targets.c (_bfd_target_vector_entries): Compute value based on
1554 the size of the _bfd_target_vector and not bfd_target_vector.
1555
210ba1e8
L
15562001-05-03 H.J. Lu <hjl@gnu.org>
1557
1558 * elfcode.h: Include "libiberty.h".
1559
1560 * elflink.h (elf_link_add_object_symbols): Set
1561 elf_dt_name (abfd) to basename of the bfd filename.
1562 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1563 of the bfd filename.
1564
56fc028e
AJ
15652001-05-03 Andreas Jaeger <aj@suse.de>
1566
1567 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1568 (elf_generic_info_to_howto_rel): Likewise.
1569 * coff-alpha.c (reloc_nil): Likewise.
1570 (alpha_ecoff_bad_format_hook): Likewise.
1571 (alpha_adjust_reloc_out): Likewise.
1572 (alpha_bfd_reloc_type_lookup): Likewise.
1573 (alpha_convert_external_reloc): Likewise.
1574 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1575 (elf64_alpha_reloc_bad): Likewise.
1576 (elf64_alpha_reloc_gpdisp): Likewise.
1577 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1578 (elf64_alpha_info_to_howto): Likewise.
1579 (elf64_alpha_add_symbol_hook): Likewise.
1580 (elf64_alpha_create_got_section): Likewise.
1581 (elf64_alpha_is_local_label_name): Likewise.
1582 (elf64_alpha_merge_ind_symbols): Likewise.
1583 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1584 (mips_elf64_get_reloc_upper_bound): Likewise.
1585 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1586 (nlm_alpha_get_public_offset): Likewise.
1587
c7e40348
NC
15882001-05-02 Johan Rydberg <jrydberg@opencores.org>
1589
bb0082d6 1590 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
c7e40348 1591 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 1592 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 1593
5fba655a
L
15942001-04-30 H.J. Lu <hjl@gnu.org>
1595
1596 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1597 only for ELF_LINK_FORCED_LOCAL.
1598 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1599 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1600 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1601
1602 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1603 if the symbol has hidden or internal visibility.
1604
db20fd76
AM
16052001-04-30 Alan Modra <amodra@one.net.au>
1606
1607 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1608 calls to undefined weak symbols.
1609
6a2bda3f
AJ
16102001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1611
1612 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1613 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1614
053579d7
AJ
16152001-04-27 Andreas Jaeger <aj@suse.de>
1616
1617 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1618 out handled entries.
1619 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1620 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1621 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1622 GOT32.
1623
87748b32
NC
16242001-04-27 Sean McNeil <sean@mcneil.com>
1625
1626 * config.bfd: Add arm-vxworks target.
1627 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1628 addend (fro VXworks targets).
1629
f5f31454
L
16302001-04-26 H.J. Lu <hjl@gnu.org>
1631
1632 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1633 valid.
1634
d436a9b3
FCE
16352001-04-25 Frank Ch. Eigler <fche@redhat.com>
1636
1637 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1638 * bfd-in2.h: Regenerated.
1639
a531bbd2
JJ
16402001-04-24 Jakub Jelinek <jakub@redhat.com>
1641
1642 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1643 (struct sec_merge_hash): Remove alignment_power.
1644 (sec_merge_hash_newfunc): Clear alignment.
1645 (sec_merge_hash_lookup): Pass alignment as argument.
1646 Use hashp->root.next, not hashp->next to walk the hash chain.
1647 If a string already in the hashtable does not have required
1648 alignment, create a new hashtable entry.
1649 (sec_merge_init): Remove alignment_power argument.
1650 (sec_merge_add): Add alignment argument.
1651 (sec_merge_emit): Alignment is now a per-entity thing, not per
1652 section.
1653 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1654 for proper alignment.
1655 Pass alignment information to sec_merge_add.
1656
6840198f
NC
16572001-04-24 Christian Groessler <cpg@aladdin.de>
1658
1659 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1660 and R_REL16 reloc types; accept odd values for R_REL16 type
1661
b3baf5d0
NC
16622001-04-24 Johan Rydberg <jrydberg@opencores.org>
1663
1664 * cpu-openrisc.c: New file.
1665 * elf32-openrisc.c: Likewise.
1666
1667 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1668 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1669 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1670 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1671 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1672 * Makefile.in: Regenerated.
1673 * config.bfd: (openrisc-*-elf): New target.
053579d7 1674 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
1675 * configure: Regenerated.
1676 * libbfd.h: Regenerated.
1677 * bfd-in2.h: Regenerated.
1678 * reloc.c: Add OpenRISC relocations.
053579d7 1679 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
1680 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1681 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1682 (bfd_openrisc_arch): Declare.
1683 (bfd_archures_list): Add bfd_openrisc_arch.
1684 * elf.c (prep_headers): Add bfd_arch_openrisc.
1685
fe4770f4
AJ
16862001-04-23 Bo Thorsen <bo@suse.de>
1687
1688 * elf64-x86-64.c: Add c++ vtable hack.
1689 Small whitespace and comment changes.
1690
653165cc
AJ
16912001-04-19 Andreas Jaeger <aj@suse.de>
1692
1693 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1694 (elf64_x86_64_plt_entry): Likewise.
1695 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1696 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1697
4d96d128
HPN
16982001-04-17 Hans-Peter Nilsson <hp@axis.com>
1699
1700 * elf32-cris.c: Tweak comments related to dynamic linking.
1701 (cris_elf_relocate_section): When not creating shared object, fill
1702 in the .got table for any symbol not in the dynamic symbol table.
1703 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1704 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1705 table.
1706 (cris_elf_check_relocs): Use variable r_type in all places rather
1707 than the original expression. Add default case in switch for
1708 reloc types.
1709 (elf_cris_size_dynamic_sections): Iterate over
1710 elf_cris_discard_excess_program_dynamics when not creating shared
1711 library.
653165cc 1712 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
1713 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1714 (elf_cris_discard_excess_program_dynamics): New.
1715
3ed30d29
DD
17162001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1717
1718 * coffcode.h (coff_write_object_contents): Use
1719 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1720
a80f6941
L
17212001-04-14 H.J. Lu <hjl@gnu.org>
1722
1723 * bfd-in2.h: Regenerate.
1724
767e4b0d
JJ
17252001-04-14 Jakub Jelinek <jakub@redhat.com>
1726
1727 * section.c (STD_SECTION): Add entsize.
1728
2dd439c5
L
17292001-04-13 H.J. Lu <hjl@gnu.org>
1730
1731 * section.c (SEC_MERGE): Define new flag for merging.
1732 (SEC_STRINGS): Likewise.
1733 (entsize): New field.
1734
baf80c32
DD
17352001-04-13 Roger Sayle <roger@metaphorics.com>
1736
1737 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1738 flag on pe-i386 targets.
1739
f5fa8ca2
JJ
17402001-04-13 Jakub Jelinek <jakub@redhat.com>
1741
1742 * libbfd-in.h (_bfd_merge_section): New.
1743 (_bfd_write_merged_section): New.
1744 (_bfd_merged_section_offset): New.
1745 * libbfd.h: Rebuilt.
1746 * linker.c (_bfd_generic_link_output_symbols): Handle
1747 discard_sec_merge.
1748 * aoutx.h (aout_link_write_symbols): Likewise.
1749 * pdp11.c (aout_link_write_symbols): Likewise.
1750 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1751 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1752 sections.
1753 (elf_link_sec_merge_syms): New.
1754 (elf_link_input_bfd): Call _bfd_merged_section_offset
1755 and _bfd_write_merged_section.
1756 Handle discard_sec_merge.
1757 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1758 field.
1759 (struct bfd_elf_section_data): Likewise.
1760 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1761 SEC_STRINGS section flags and entsize from their ELF counterparts.
1762 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1763 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1764 from their BFD counterparts.
1765 * merge.c: New file.
1766 * Makefile.am: Add strtab.lo.
1767 * Makefile.in: Rebuilt.
1768
d954b040
HPN
17692001-04-09 Hans-Peter Nilsson <hp@axis.com>
1770
1771 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1772 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1773
fdbafa10
L
17742001-04-05 Steven J. Hill <sjhill@cotw.com>
1775
1776 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1777 endian MIPS ELF target.
1778 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1779 MIPS ELF target.
1780
1781 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1782 64bit big endian MIPS ELF target.
653165cc 1783 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
1784 endian MIPS ELF target.
1785 * configure: Regenerated.
1786
1787 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1788 little endian targets.
1789 (mips_elf_sym_is_global): Handle traditional targets.
1790
1791 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1792 64bit big endian MIPS ELF target.
1793 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1794 endian MIPS ELF target.
1795
1796 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1797 and bfd_elf64_tradlittlemips_vec.
1798
dd484e5c
L
17992001-04-05 David Mosberger <davidm@hpl.hp.com>
1800
1801 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1802 ordinary "progbits" section.
1803
391a809a
AM
18042001-04-04 Alan Modra <alan@linuxcare.com.au>
1805
1806 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1807 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1808
5854c633
L
18092001-04-03 David Mosberger <davidm@hpl.hp.com>
1810
1811 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1812
8b4b0fac
L
18132001-03-30 H.J. Lu <hjl@gnu.org>
1814
1815 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1816 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1817
eb4a6e4f
L
18182001-03-26 H.J. Lu <hjl@gnu.org>
1819
1820 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1821 if there are any relocations for generic ELF.
1822 (bfd_elf32_bfd_link_add_symbols): Defined to
1823 elf32_generic_link_add_symbols.
1824 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1825 if there are any relocations for generic ELF.
1826 (bfd_elf64_bfd_link_add_symbols): Defined to
1827 elf64_generic_link_add_symbols.
1828
55c80943
NC
18292001-03-23 Nick Clifton <nickc@redhat.com>
1830
1831 * Makefile.am (BUILD_CFILES): New variable: List of C source
bb0082d6
AM
1832 files created in build directory.
1833 (BUILD_HFILES): New variable: List of header files created in
1834 build directory.
1835 (POTFILES): Delete.
1836 (po/POTFILES.in): Replace rule with empty entry.
1837 (po/SRC-POTFILES.in): New rule: Create a list of source files
1838 in the source directory.
1839 (po/BLD-POTFILES.in): New rule: Create a list of source files
1840 in the build directory.
1841 (MOSTLYCLEAN): Do not delete source files created in build
1842 directory.
1843 * Makefile.in: Regenerate.
1844 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1845 into po/Makefile.
1846 * configure: Regenerate.
1847
1848 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1849 and BLD_POTFILES.
55c80943 1850 Add .. to the search path when building bfd.pot.
bb0082d6
AM
1851 Delete POTFILES when performing distclean.
1852 Add comment describing why distclean is broken in maintainer mode.
55c80943
NC
1853 * po/POTFILES.in: Delete.
1854 * po/SRC-POTFILES.in: New file.
1855 * po/BLD-POTFILES.in: New file.
bb0082d6 1856 * po/bfd.pot: Regenerate.
55c80943 1857
58d29fc3
HPN
18582001-03-22 Hans-Peter Nilsson <hp@axis.com>
1859
915e5146
HPN
1860 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1861 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1862 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1863 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1864 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1865 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1866 functions.
1867 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1868 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1869 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1870 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1871 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1872 New HOWTO members for new relocs.
1873 (cris_reloc_map): Map new relocs.
1874 (ELF_DYNAMIC_INTERPRETER): Define.
1875 (PLT_ENTRY_SIZE): Define.
1876 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1877 elf_cris_pic_plt_entry): New, PLT templates.
1878 (struct elf_cris_pcrel_relocs_copied, struct
1879 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1880 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1881 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1882 positive values. Adjust PCREL relocs to be relative to location
1883 after relocation.
1884 (cris_elf_relocate_section): Handle relocations to dynamic
1885 objects. Handle new relocations. Call error handler when seeing
1886 non-PIC relocation for read-only sections while generating shared
1887 object.
1888 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1889 entries.
1890 (bfd_elf32_bfd_link_hash_table_create,
1891 elf_backend_adjust_dynamic_symbol,
1892 elf_backend_size_dynamic_sections,
1893 elf_backend_finish_dynamic_symbol,
1894 elf_backend_finish_dynamic_sections,
1895 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1896 elf_backend_hide_symbol, elf_backend_want_got_plt,
1897 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1898 elf_backend_got_header_size, elf_backend_plt_header_size):
1899 Define.
1900
58d29fc3
HPN
1901 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1902 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1903 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1904 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1905 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1906 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1907 * bfd-in2.h, libbfd.h: Regenerate.
1908
7a65545d
DN
19092001-03-21 Diego Novillo <dnovillo@redhat.com>
1910
1911 (_bfd_mips_elf_relocate_section): Give a better error message when
1912 a relocation is not recognized.
1913
b32b5d6e
AM
19142001-03-21 Alan Modra <alan@linuxcare.com.au>
1915
1916 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1917 non-NULL before attempting to dereference.
1918
f4fbb4a3
L
19192001-03-20 H.J. Lu <hjl@gnu.org>
1920
1921 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1922 * configure: Rebuild.
1923
95fc45e6
AS
19242001-03-20 Andreas Schwab <schwab@suse.de>
1925
1926 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1927 relocation value when resolving a reference from a debugging
1928 section.
1929
03d411a9
NC
19302001-03-16 Scott Thomason <SThomaso@hii.com>
1931
1932 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1933 (xcoff64_swap_sym_out): Fix syntax errors.
1934
d1659392
NC
19352001-03-16 Richard Sandiford <rsandifo@redhat.com>
1936
1937 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1938
12cca0d2
AM
19392001-03-15 Alan Modra <alan@linuxcare.com.au>
1940
1941 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1942 (hppa_link_hash_newfunc): Init it.
1943 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1944 section appears to be non-PIC.
1945 (final_link_relocate): Likewise.
1946 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1947 possible candidate function, and set pic_call for those that will
1948 only have a .plt entry for the PIC call stub.
1949 (hppa_handle_PIC_calls): Set maybe_pic_call.
1950
cd6ec716
DD
19512001-03-12 DJ Delorie <dj@redhat.com>
1952
1953 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1954 R_SH_DIR8WP* relocs if they're against external symbols, else
1955 they're just for relaxing. Validate the reloc values.
1956
43a0748c
NC
19572001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1958
1959 * binary.c (bfd_external_binary_architecture): Declare.
1960 (binary_object_p): If bfd_external_binary_architecture is defined,
1961 set the architecture to this string.
1962
d982ba73
PB
19632001-03-11 Philip Blundell <philb@gnu.org>
1964
1965 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1966 entries that could serve as a definition for a weak symbol.
1967
7898deda
NC
19682001-03-08 Nick Clifton <nickc@redhat.com>
1969
1970 * Most files: Update copyright notices using Perl script created
1971 by Kevin Buettner <kevinb@redhat.com>.
653165cc 1972
df425bc0
NC
19732001-03-07 Nick Clifton <nickc@redhat.com>
1974
1975 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1976 prior patch on ! defined OLD_ARM_ABI.
1977
bcdd92f3
AJ
19782001-03-07 Andreas Jaeger <aj@suse.de>
1979
1980 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1981 some relocation values.
1982
4f3c3dbb
NC
19832001-03-06 Nick Clifton <nickc@redhat.com>
1984
1985 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1986 of offset in BLX(1) instruction.
1987 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1988 offset in BLX(1) instruction.
bb0082d6 1989 Fix formatting.
4f3c3dbb 1990
f8f3c6cc
NC
19912001-03-06 Nick Clifton <nickc@redhat.com>
1992
1993 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1994 BFD_RELOC_THUMB_PCREL_BLX.
1995
3cac17ae
NC
19962001-03-06 Igor Shevlyakov <igor@windriver.com>
1997
1998 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1999 * bfd-in2.h: Regenerate.
2000 * cpu-m68k.c: Add Coldfire CPUs for arch table.
2001 * ieee.c (ieee_write_processor): Set proper id for
2002 Coldfire CPUs.
2003
d1b17ab0
NC
20042001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
2005
2006 * configure.in: Add s390 target.
2007 * configure: Regenerate.
2008
5608e05b
AJ
20092001-02-28 Andreas Jaeger <aj@suse.de>
2010
2011 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
2012 to addend.
2013
fd2ec330
PB
20142001-02-28 Philip Blundell <pb@futuretv.com>
2015
2016 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 2017 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 2018
920581c5
L
20192001-02-27 H.J. Lu <hjl@gnu.org>
2020
2021 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
2022 abfd->tdata.aout_data == NULL.
2023
27b7e12d
AM
20242001-02-27 Alan Modra <alan@linuxcare.com.au>
2025
3ee1d854
AM
2026 * elf32-hppa.c: Correct field selector in stub comments.
2027 (clobber_millicode_symbols): Formatting fix.
2028
27b7e12d
AM
2029 * configure.in: Bump version to 2.11.90.
2030 * configure: Regenerate.
2031 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
2032 (CFILES): $SOURCE_CFILES + generated C files.
2033 (POTFILES): Include $HFILES not $SOURCE_HFILES.
2034 Run "make dep-am"
2035 * Makefile.in: Regenerate.
2036 * doc/Makefile.in: This too.
2037
10d1e03a
TW
20382001-02-26 Timothy Wall <twall@cygnus.com>
2039
2040 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 2041 comments.
10d1e03a 2042
1276aefa
NC
20432001-02-26 Nick Clifton <nickc@redhat.com>
2044
2045 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
2046 up, replacing multiple if statements with a switch.
bb0082d6 2047 (handle_COMDAT): New function.
1276aefa
NC
2048
20492001-02-26 H.J. Lu <hjl@gnu.org>
2050
2051 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
2052 a warning for section flags we do not handle instead of
2053 aborting.
2054
4a73f21b
AJ
20552001-02-26 Andreas Jaeger <aj@suse.de>
2056
2057 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
2058
7b6dab7f
TW
20592001-02-22 Timothy Wall <twall@cygnus.com>
2060
2061 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
2062 * configure.in: Add objects for elf64_ia64_aix vectors.
2063 * configure: Regenerated.
2064 * configure.host: Recognize ia64-*-aix*.
2065 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
2066 for AIX. AIX5 requires most relocations to be dynamic (*all*
2067 binaries are somewhat similar to shared libraries).
2068 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 2069
87f8eb97
JW
20702001-02-21 David Mosberger <davidm@hpl.hp.com>
2071
2072 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
2073 C8 said "1" instead of "8". Clarify error string for IMM22:
2074 "signed integer" instead of just "integer".
2075
05aa1441
AJ
20762001-02-20 Andreas Jaeger <aj@suse.de>
2077
2078 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
2079 PLT entries that could serve as a definition for a weak symbol.
2080
8701c1bc
JJ
20812001-02-19 Jakub Jelinek <jakub@redhat.com>
2082
2083 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
2084 entries that could serve as a definition for a weak symbol.
2085 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
2086
d4af9775
DB
20872001-02-18 David O'Brien <obrien@FreeBSD>
2088
2089 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
2090 FreeBSD/i386-CURRENT differently until I can figure out the needed
2091 corefile changes.
2092 * configure: Regenerate.
2093 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
2094 FreeBSD/PowerPC, and FreeBSD/sparc64.
2095
e135f41b
NC
20962001-02-18 lars brinkhoff <lars@nocrew.org>
2097
2098 * Makefile.am: Add PDP-11 a.out target.
2099 * config.bfd: Likewise.
2100 * configure.in: Likewise.
2101 * targets.c: Likewise.
2102 * archures.c: Likewise.
2103 * bfd-in2.h: Likewise. Add PDP-11 relocations.
2104 * libbfd.h: Add PDP-11 relocations.
2105 * reloc.c: Likewise.
2106 * cpu-pdp11.c: New file.
2107 * pdp11.c: New file.
2108
2109 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
2110 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2111 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2112 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
2113 (GET_MAGIC): New macro.
2114 (PUT_MAGIC): Likewise.
2115 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
2116
dc3febfa
NC
21172001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
2118
2119 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
2120 multiarch needs it).
2121
ea412e04
L
21222001-02-18 H.J. Lu <hjl@gnu.org>
2123
2124 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
2125 index.
2126
47eee8a9
KH
21272001-02-18 Kazu Hirata <kazu@hxi.com>
2128
2129 * vms-misc.c: Fix formatting.
2130
8a0c27cd
KH
21312001-02-16 Kazu Hirata <kazu@hxi.com>
2132
2133 * vms.c: Fix formatting.
2134
d1fad7c6
NC
21352001-02-14 H.J. Lu <hjl@gnu.org>
2136
2137 * elf.c (elf_find_function): New function.
2138 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
2139 the file name and function name.
2140
825b47db
NC
21412001-02-14 Nick Clifton <nickc@redhat.com>
2142
51d7ee16
NC
2143 * ecoff.c (bfd_debug_section): Update to initialise new fields in
2144 asection structure.
2145
825b47db
NC
2146 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
2147 (BFD64_BACKENDS): Add pepigen.c
2148 Add rules to create peigen.c and pepigen.c from peXXigen.c.
2149
2150 * Makefile.in: Regenerate.
2151 * configure: Regenerate.
2152 * po/POTFILES.in: Regenerate.
2153 * po/bfd.pot: Regenerate.
2154
ea36a178
L
21552001-02-14 H.J. Lu <hjl@gnu.org>
2156
2157 * libcoff-in.h (pe_tdata): Add members target_subsystem and
2158 force_minimum_alignment.
2159
407443a3
AJ
21602001-02-14 Bo Thorsen <bo@suse.de>
2161
2162 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
2163 (elf64_86_64_size_info): Struct added to fix a problem
2164 with the hashtable string entries.
2165 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
2166 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
2167 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
2168 remove the FIXME for this.
2169 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
2170 section. Also removed the FIXME for it.
2171 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
2172 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
2173 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
2174
b4adccfd
RH
21752001-02-13 Richard Henderson <rth@redhat.com>
2176
2177 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
2178 and not user provided.
2179
9635981a
KH
21802001-02-13 Kazu Hirata <kazu@hxi.com>
2181
2182 * vms.c (vms_print_symbol): Remove unreachable code.
2183
6a125b16
KH
2184 * rs6000-core.c: Fix formatting.
2185
cbff5e0d
DD
21862001-02-13 David Mosberger <davidm@hpl.hp.com>
2187
2188 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
2189 as _bfd_XXi_only_swap_filehdr_out.
2190 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
2191 pe->force_minimum_alignment to TRUE.
2192 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
2193 PEI_TARGET_SUBSYSTEM.
2194 (pe_print_private_bfd_data): Call
2195 _bfd_XX_print_private_bfd_data_common() instead of
2196 _bfd_pe_print_private_bfd_data_common().
2197 (pe_bfd_copy_private_bfd_data): Call
2198 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
2199 _bfd_pe_bfd_copy_private_bfd_data_common().
2200 (coff_bfd_copy_private_section_data): Define as
2201 _bfd_XX_bfd_copy_private_section_data instead of
2202 _bfd_pe_bfd_copy_private_section_data.
2203 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
2204 of a _bfd_pe_get_symbol_info.
2205
2206 * peigen.c: Delete.
2207
2208 * peXXigen.c: Renamed from peigen.c.
2209 (COFF_WITH_XX): Define this macro (will get expanded into
2210 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
2211 compiled as peigen.c or pepigen.c.
2212 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
2213 define the canonical PEP structures and definitions.
2214 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
2215 effect, enforce minimum file and section alignments. If
2216 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
2217 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
2218 so, by default, this is a no-op).
2219
2220 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
2221 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
2222 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
2223 _bfd_pefoo if it's not defined. Use these macros to define
2224 coff swap macros.
2225
2226 * libcoff.h (pe_tdata): Add members target_subsystem and
2227 force_minimum_alignment.
2228
2229 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
2230 COFF_WITH_pep.
2231 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
2232
2233 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
2234 peigen.lo.
2235
2236 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
2237 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
2238 PEPAOUTHDR.
2239
2240 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
2241 (BFD64_BACKENDS_CFILES): Mention pepigen.c
2242 (peigen.c): Add rule to generate from peXXigen.c.
2243 (pepigen.c): Ditto.
2244 (pepigen.lo): List dependencies for pepigen.lo.
2245
df8634e3
AM
22462001-02-13 Alan Modra <alan@linuxcare.com.au>
2247
2248 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
2249 $global$ referenced but not defined, set its value here.
2250
51e0a107
JH
22512001-02-09 Bo Thorsen <bo@suse.de>
2252
2253 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
2254 alignment to 3.
2255 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
2256 and relocation.
2257 (elf64_x86_64_relocate_section): Fix formatting.
2258 (elf64_x86_64_relocate_section): Fix addend for relocation of
2259 R_X86_64_(8|16|32|PC8|PC16|PC32).
2260
d1fad7c6 22612001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
2262
2263 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
2264
f0e1d18a
L
22652001-02-11 H.J. Lu <hjl@gnu.org>
2266
6757257f 2267 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
2268 alignment.
2269
9117d219
NC
22702001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2271
2272 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
2273 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
2274 relocations against dynsym symbols.
2275
2276 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
2277 the R_MIPS_26 relocation.
2278 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
2279 the R_MIPS_26 relocation.
2280 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
2281 relocation.
2282 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
2283 the R_MIPS_26 relocation.
2284 (mips_elf64_howto_table_rela): Likewise.
2285
2286 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
2287 member to mark symbols that have non-CALL relocations against
2288 them.
2289 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
2290 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
2291 R_MIPS_GOT16.
2292 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
2293 non-CALL relocation against it is encountered.
2294 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
2295 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
2296 no_fn_stub is not set.
2297
2298 * elf32-mips.c (mips_elf_output_extsym): Get the output section
2299 information from the real symbol for indirect ones.
2300 Check no_fn_stub to find out if a symbol has a function stub
2301 indeed.
2302
9f93bca5
MS
23032001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2304
2305 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
2306 * Makefile.in: Regenerate.
2307
81545d45
RH
23082001-02-09 David Mosberger <davidm@hpl.hp.com>
2309
2310 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
2311 true if section name is an unwind table section name.
2312 (elfNN_ia64_additional_program_headers): Count each unwind section
2313 separately.
2314 (elfNN_ia64_modify_segment_map): Install one unwind program header
2315 for each unwind separate section. Note: normally the linker
2316 script merges the unwind sections that go into a single segment,
2317 so this still generates at most one unwind program header per
2318 segment.
2319
2320 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
2321 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
2322 (elfNN_ia64_fake_sections): Mark sections with names that start
2323 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
2324 unwind section.
2325
2326 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
2327 Use it to make sh_info in unwind section point to the text section
2328 it applies to.
2329
a85d7ed0
NC
23302001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2331
2332 * Makefile.am: Add linux target for S/390.
2333 * archures.c: Likewise.
2334 * bfd-in2.h: Likewise.
2335 * config.bfd: Likewise.
2336 * configure.in: Likewise.
2337 * elf.c: Likewise.
2338 * libbfd.h: Likewise.
2339 * targets.c: Likewise.
2340 * cpu-s390.c: New file.
2341 * elf32-s390.c: New file.
2342 * elf64-s390.c: New file.
2343
356d255d
NC
23442001-02-09 Nick Clifton <nickc@redhat.com>
2345
2346 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
2347 ImageBase. This has already been done by coff_swap_hdr_in.
2348
069f40e5
JJ
23492001-02-09 Jakub Jelinek <jakub@redhat.com>
2350
2351 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2352
eadfa8ab
JJ
23532001-02-09 Jakub Jelinek <jakub@redhat.com>
2354
2355 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
2356 (sparc64_elf_relocate_section): Likewise.
2357
9fc54e19
MK
23582001-02-09 Mark Kettenis <kettenis@gnu.org>
2359
2360 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
2361 similar to R_SPARC_32.
2362 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2363
1f655a09
L
23642001-02-08 H.J. Lu <hjl@gnu.org>
2365
2366 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
2367 relocation entries for weak definitions when building DSO with
2368 -Bsymbolic.
2369
ca88208a
RH
23702001-02-08 Richard Henderson <rth@redhat.com>
2371
2372 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
2373 before visibility. Locally defined protected symbols are not
2374 dynamic.
2375
4603e845
GK
23762001-02-08 Geoffrey Keating <geoffk@redhat.com>
2377
2378 * config.bfd: Enable coff64 for rs6000-*. Patch from
2379 <hzoli@austin.ibm.com>.
2380
4ca29a6a
NC
23812001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
2382
2383 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2384 found, do not attempt to find dwarf2 info before returning.
2385
7da9d88f
NC
23862001-02-07 Jakub Jelinek <jakub@redhat.com>
2387
2388 * elflink.h (is_global_symbol_definition): Rename to
2389 is_global_data_symbol_definition and have it reject function
2390 symbols.
2391 (elf_link_is_defined_archive_symbol): Use renamed function.
2392
7340082d
NC
23932001-02-07 Todd Vierling <tv@wasabisystems.com>
2394
2395 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2396 * libbfd.h (bfd_target_vector): Likewise.
2397 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 2398 make static; create pointer reference named bfd_target_vector.
7340082d
NC
2399 (_bfd_target_vector_entries): Calculate this based on the array
2400 typed _bfd_target_vector.
2401
2719f880
L
24022001-02-06 H.J. Lu <hjl@gnu.org>
2403
2404 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2405 internal symbols are not dynamic.
2406 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2407
175aa013
NC
24082001-02-06 Nick Clifton <nickc@redhat.com>
2409
2410 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2411 that it will not be pulled into the list of files that make up
2412 po/POTFILES.in.
2413 * Makefile.in: Regenerate.
2414 * po/bfd.pot: Regenerate.
2415
15e0ecd9
L
24162001-02-06 H.J. Lu <hjl@gnu.org>
2417
7898deda 2418 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
2419 checking.
2420 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2421 external_PEI_IMAGE_hdr.
2422
27def10f
KH
24232001-02-06 Kazu Hirata <kazu@hxi.com>
2424
2425 * elf-m10200.c: Fix formatting.
2426
a0f2e916
NC
24272001-02-04 Nick Clifton <nickc@redhat.com>
2428
2429 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2430 rel, it will be handled later on.
2431
d96031fb
NC
24322001-02-02 Fred Fish <fnf@ninemoons.com>
2433
2434 * Makefile.in: Fix typo.
2435
010ac81f
KH
24362001-02-01 Kazu Hirata <kazu@hxi.com>
2437
2438 * elf-m10300.c: Fix formatting.
2439
3fab46d0
AM
24402001-01-30 Alan Modra <alan@linuxcare.com.au>
2441
2442 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2443 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
2444 (elf64_hppa_object_p): Set architecture and machine from elf
2445 header flags.
3fab46d0 2446
95404643
RH
24472001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
2448
2449 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2450 before mdebug.
2451
8fb35fed
RH
24522001-01-26 Richard Henderson <rth@redhat.com>
2453
2454 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2455 for non-default visibility.
2456 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2457 delete ugly macro and replace with pretty function.
2458
a4f68544
NC
24592001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
2460
2461 * coff-go32.c: Update copyright.
2462 * coff-stgo32.c: Likewise.
2463 * coff-go32.c (COFF_LONG_FILENAMES): Define.
2464 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2465 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2466 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2467
c02e7c3e
KH
24682001-01-25 Kazu Hirata <kazu@hxi.com>
2469
2470 * bfd-in2.h: Rebuild.
2471 * libbfd.h: Likewise.
2472
541389e2
L
24732001-01-23 H.J. Lu <hjl@gnu.org>
2474
2475 * bfd-in2.h: Rebuild.
2476
0007625f
L
24772001-01-23 H.J. Lu <hjl@gnu.org>
2478
2479 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2480 is NULL or PRIV(vms_rec) is outside of the buffer.
2481
b653e1b1
KH
24822001-01-23 Kazu Hirata <kazu@hxi.com>
2483
2484 * coff64-rs6000.c: Fix formatting.
2485 * coff-arm.c: Likewise.
2486 * coffgen.c: Likewise.
2487 * cofflink.c: Likewise.
2488 * coff-mcore.c: Likewise.
2489 * coff-mips.c: Likewise.
2490 * coff-pmac.c: Likewise.
2491 * coff-ppc.c: Likewise.
2492 * coff-rs6000.c: Likewise.
2493 * elf32.c: Likewise.
2494 * elf32-fr30.c: Likewise.
2495 * elf32-i370.c: Likewise.
2496 * elf32-i860.c: Likewise.
2497 * elf32-m32r.c: Likewise.
2498 * elf32-m68k.c: Likewise.
2499 * elf32-mcore.c: Likewise.
2500 * elf32-ppc.c: Likewise.
2501 * elf32-sh.c: Likewise.
2502 * elf32-v850.c: Likewise.
2503 * elf64-alpha.c: Likewise.
2504 * elf64-sparc.c: Likewise.
2505 * elflink.c: Likewise.
2506 * elflink.h: Likewise.
2507 * elf-m10200.c: Likewise.
2508 * elf-m10300.c: Likewise.
2509 * elfxx-ia64.c: Likewise.
2510
3fde5a36
KH
2511 * aoutx.h: Fix formatting.
2512 * bfd.c: Likewise.
2513 * bfd-in2.h: Likewise.
2514 * bfd-in.h: Likewise.
2515 * cpu-i386.c: Likewise.
2516 * cpu-m68hc11.c: Likewise.
2517 * dwarf2.c: Likewise.
2518 * elf64-x86-64.c: Likewise.
2519 * format.c: Likewise.
2520 * freebsd.h: Likewise.
2521 * hash.c: Likewise.
2522 * hp300hpux.c: Likewise.
2523 * hppabsd-core.c: Likewise.
2524 * hpux-core.c: Likewise.
2525
70256ad8
AJ
25262001-01-22 Bo Thorsen <bo@suse.de>
2527
2528 * elf64-x86-64.c: Added PIC support for X86-64.
2529 (elf64_x86_64_link_hash_newfunc): Function added.
2530 (elf64_x86_64_link_hash_table_create): Likewise.
2531 (elf64_x86_64_check_relocs): Likewise.
2532 (elf64_x86_64_gc_mark_hook): Likewise.
2533 (elf64_x86_64_gc_sweep_hook): Likewise.
2534 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2535 (elf64_x86_64_size_dynamic_sections): Likewise.
2536 (elf64_x86_64_discard_copies): Likewise.
2537 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2538 (elf64_x86_64_finish_dynamic_sections): Likewise.
2539 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2540
ee0bebb8
AJ
25412001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2542
2543 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2544 * Makefile.in: Regenerate.
2545
2a38f751
KH
25462001-01-21 Kazu Hirata <kazu@hxi.com>
2547
2548 * coff-a29k.c: Fix formatting.
2549
c8492176
L
25502001-01-19 H.J. Lu <hjl@gnu.org>
2551
2552 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2553 relocation section names.
2554 (elf_i386_relocate_section): Report files with bad relocation
2555 section names and return false.
2556
a5377ec0
AJ
25572001-01-17 Bo Thorsen <bo@suse.de>
2558
2559 * targets.c: Alphabetize list of xvecs.
2560
b352eebf
AM
25612001-01-14 Alan Modra <alan@linuxcare.com.au>
2562
d952f17a
AM
2563 * config.bfd: Add linux target variant for elfxx-hppa.
2564 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2565 bfd_elf64_hppa_linux_vec.
2566 * configure: Regenerate.
2567 * elf64-hppa.c: Include elf64-target.h again to support linux
2568 target variant.
2569 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2570 * elf32-hppa.c: Include elf32-target.h again to support linux
2571 target variant.
2572 (elf32_hppa_post_process_headers): New function.
2573 (elf_backend_post_process_headers): Define.
2574 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2575 bfd_elf32_hppa_linux_vec.
2576
c46b7515
AM
2577 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2578 and data_segment_base fields.
2579 (elf32_hppa_link_hash_table_create ): Init them.
2580 (elf32_hppa_check_relocs): Update comments.
2581 (hppa_record_segment_addr): New function.
2582 (elf32_hppa_relocate_section): Call it.
2583 (final_link_relocate): Handle R_PARISC_SEGREL32.
2584 (elf32_hppa_final_link): New function.
2585 (bfd_elf32_bfd_final_link): Define to call it.
2586 (hppa_unwind_entry_compare): New function.
2587 * cache.c (bfd_open_file): Create files in write+read mode.
2588
2589 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2590 SEGREL32 and numerous other relocs. Change duplicate
2591 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2592
d768008d
AM
2593 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2594 O_ACCMODE.
2595
150ccafb
AM
2596 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2597 .plt entries for DT_INIT and DT_FINI.
2598 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2599 DT_INIT and DT_FINI.
2600
b352eebf
AM
2601 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2602 offsets for stub .plt access if wide mode. Check offset in range.
2603
b3b9a062
NC
26042001-01-13 Nick Clifton <nickc@redhat.com>
2605
b7ed8fad
NC
2606 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2607 line.
2608
b3b9a062
NC
2609 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2610 line.
2611
6e0b89ee
AM
26122001-01-12 Alan Modra <alan@linuxcare.com.au>
2613
2614 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2615 * configure: Regenerate.
2616
0d2bcfaf
NC
26172001-01-11 Peter Targett <peter.targett@arccores.com>
2618
2619 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2620 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2621 * cpu-arc.c (arch_info_struct): Add entries for variants.
2622 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2623 (arc_get_mach) Don't assume machine names prefixed arc- before
2624 testing.
2625 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2626 selections.
2627 (arc_elf_final_write_processing) Likewise.
2628 (ELF_MACHINE_CODE) Use EM_ARC.
2629
c31c1f70
NC
26302001-01-10 Nick Clifton <nickc@redhat.com>
2631
2758140b 2632 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 2633
5ad083e3
PB
26342001-01-07 Philip Blundell <philb@gnu.org>
2635
2636 * README: Replace `bug-gnu-utils@gnu.org' with
2637 `bug-binutils@gnu.org'.
2638
7eae7d22
KH
26392001-01-04 Kazu Hirata <kazu@hxi.com>
2640
2641 * som.c: Fix formatting.
2642
509945ae
KH
26432001-01-03 Kazu Hirata <kazu@hxi.com>
2644
3e932841
KH
2645 * ecoffswap.h: Fix formatting.
2646 * elf-bfd.h: Likewise.
2647 * elfarm-nabi.c: Likewise.
2648 * elfarm-oabi.c: Likewise.
2649 * elfcode.h: Likewise.
2650 * elfcore.h: Likewise.
2651 * elflink.c: Likewise.
2652 * elflink.h: Likewise.
2653 * elfxx-ia64.c: Likewise.
2654 * elfxx-target.h: Likewise.
2655 * libbfd.c: Likewise
509945ae
KH
2656 * linker.c: Likewise.
2657 * lynx-core.c: Likewise.
2658
892339ee
KH
26592001-01-02 Kazu Hirata <kazu@hxi.com>
2660
2661 * pc532-mach.c: Fix formatting.
2662 * pe-arm.c: Likewise.
2663 * pe-i386.c: Likewise.
2664 * pe-mips.c: Likewise.
2665 * pe-ppc.c: Likewise.
2666 * pe-sh.c: Likewise.
2667 * pei-mips.c: Likewise.
2668 * pei-sh.c: Likewise.
ee91ed79 2669 * peicode.h: Likewise.
892339ee
KH
2670 * ppcboot.c: Likewise.
2671 * ptrace-core.c: Likewise.
2672
3d855632
KH
26732001-01-01 Kazu Hirata <kazu@hxi.com>
2674
2675 * reloc.c: Fix formatting.
2676 * riscix.c: Likewise.
2677 * rs6000-core.c: Likewise.
2678 * xcoff-target.h: Likewise.
2679
a77a9fef
HPN
26802000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2681
2682 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2683 error, by calling bfd_default_set_arch_mach with incoming
2684 values.
2685
558e161f
KH
26862000-12-26 Kazu Hirata <kazu@hxi.com>
2687
2688 * vaxnetbsd.c: Fix formatting.
2689 * versados.c: Likewise.
2690 * vms-gsd.c: Likewise.
2691 * vms-hdr.c: Likewise.
2692 * vms-misc.c: Likewise.
2693
3c579812
AO
26942000-12-25 Alexandre Oliva <aoliva@redhat.com>
2695
2696 * archive.c (coff_write_armap): Don't write more than symbol_count
2697 `archive_member_file_ptr's.
2698
672579e9
KH
26992000-12-25 Kazu Hirata <kazu@hxi.com>
2700
2701 * vms-tir.c: Fix formatting.
2702
55f2d5ed
KH
27032000-12-23 Kazu Hirata <kazu@hxi.com>
2704
2705 * vms.c: Fix formatting.
2706 * vms.h: Likewise.
2707
23ccc829
NC
27082000-12-21 Santeri Paavolainen <santtu@ssh.com>
2709
2710 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2711
2712 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2713
2714 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2715 arithmetic.
2716
2717 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2718
2719 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2720
8c603c85
NC
27212000-12-21 Richard Sandiford <rsandifo@redhat.com>
2722
2723 * libbfd.c (bfd_get_bits): Added
2724 (bfd_put_bits): Likewise
2725 * bfd-in.h: Declared the above.
2726 * bfd-in2.h: Regenerated.
2727
5bff4f56
KH
27282000-12-20 Kazu Hirata <kazu@hxi.com>
2729
2730 * targets.c: Fix formatting.
2731 * tekhex.c: Likewise.
2732 * trad-core.c: Likewise.
2733
7b82c249
KH
27342000-12-19 Kazu Hirata <kazu@hxi.com>
2735
2736 * sco5-core.c: Fix formatting.
2737 * section.c: Likewise.
2738 * sparclinux.c: Likewise.
2739 * sparclynx.c: Likewise.
2740 * sparcnetbsd.c: Likewise.
2741 * srec.c: Likewise.
2742 * stabs.c: Likewise.
2743 * stab-syms.c: Likewise.
2744 * sunos.c: Likewise.
2745 * syms.c: Likewise.
2746 * sysdep.h: Likewise.
2747
f78c5281
NC
27482000-12-18 Nick Clifton <nickc@redhat.com>
2749
2750 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2751 defined.
2752 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2753 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2754
02b89dce
NC
27552000-12-18 Nick Clifton <nickc@redhat.com>
2756
2757 * vms-misc.c (_bfd_vms_get_record): Add default case to
2758 file_format switch.
2759
d20966a7
NC
27602000-12-15 Miloslav Trmac <mitr@volny.cz>
2761
2762 * elfcore.h (elf_core_file_p): Move to the start of the program
2763 headers before attempting to read them.
2764
6fa957a9
KH
27652000-12-14 Kazu Hirata <kazu@hxi.com>
2766
2767 * peigen.c: Fix formatting.
2768 * som.c: Likewise.
2769 * som.h: Likewise.
2770
9602af51
KH
27712000-12-13 Kazu Hirata <kazu@hxi.com>
2772
2773 * peigen.c: Fix formatting.
2774
514829c3
JW
27752000-12-12 Jim Wilson <wilson@redhat.com>
2776
2777 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2778
3a71aec8
NC
27792000-12-08 Mark Salter <msalter@redhat.com>
2780
2781 * binary.c (binary_set_section_contents): Ignore sections
2782 with zero size.
2783
1518639e
KH
27842000-12-12 Kazu Hirata <kazu@hxi.com>
2785
2786 * m68klinux.c: Fix formatting.
2787 * m68knetbsd.c: Likewise.
2788 * mipsbsd.c: Likewise.
2789 * netbsd-core.c: Likewise.
2790 * netbsd.h: Likewise.
2791 * newsos3.c: Likewise.
2792 * nlm32-alpha.c: Likewise.
2793 * nlm32-i386.c: Likewise.
2794 * nlm32-ppc.c: Likewise.
2795 * nlm32-sparc.c: Likewise.
2796 * nlmcode.h: Likewise.
2797 * nlmswap.h: Likewise.
2798 * nlm-target.h: Likewise.
2799 * ns32knetbsd.c: Likewise.
2800
b79e8c78
NC
28012000-12-10 Fred Fish <fnf@be.com>
2802
d952f17a
AM
2803 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2804 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 2805
38b1a46c
NC
28062000-12-12 Nick Clifton <nickc@redhat.com>
2807
2808 * cpu-sh.c: Fix formattng.
2809 * elf.c: Fix formattng.
2810 * elf32-mips.c: Fix formattng.
2811 * elf32-sh.c: Fix formattng.
2812 * elf64-alpha.c: Fix formattng.
2813
857ec808
NC
28142000-12-09 Nick Clifton <nickc@redhat.com>
2815
2816 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2817 dwarf2_find_line_info as last parameter to invocation of
2818 _bfd_dwarf2_find_nearest_line.
2819 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2820 dwarf2_find_line_info as last parameter to invocation of
2821 _bfd_dwarf2_find_nearest_line.
2822
51db3708
NC
28232000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2824
2825 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
2826 (BFD_LIBS): ...to here.
2827 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2828 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
2829 * Makefile.in: Regenerate.
2830 * configure.in: Remove dwarf.lo from the elf shell variable.
2831 * configure: Regenerate.
2832 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2833 * libcoff.h: Regenerate.
d952f17a 2834 * coffgen.c (coff_find_nearest_line): Call
857ec808 2835 _bfd_dwarf2_find_nearest_line.
51db3708 2836 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
2837 accordingly.
2838 (read_abbrevs): Likewise
2839 (decode_line_info): Likewise.
2840 (parse_comp_unit): Likewise.
2841 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
2842 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2843 * libbfd.h: Regenerate.
2844 * elf.c (_bfd_elf_find_nearest_line): Update call.
2845 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2846 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2847 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
2848 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2849 (styp_to_sec_flags): Handle DWARF2 sections.
2850 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2851 to _bfd_find_nearest_line.
2852 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2853 call to _bfd_find_nearest_line.
d952f17a 2854
435b1e90
KH
28552000-12-08 Kazu Hirata <kazu@hxi.com>
2856
2857 * coffgen.c: Fix formatting.
fe8bc63d 2858 * elf-m10300.c: Likewise.
435b1e90
KH
2859 * elf32-i386.c: Likewise.
2860 * elf32-i960.c: Likewise.
2861 * elf32-m68k.c: Likewise.
2862 * elf32-mcore.c: Likewise.
2863 * elf32-ppc.c: Likewise.
2864 * elf32-sh.c: Likewise.
2865 * elf32-sparc.c: Likewise.
2866 * elf32-v850.c: Likewise.
fe8bc63d
KH
2867 * elf64-alpha.c: Likewise.
2868 * elf64-hppa.c: Likewise.
2869 * elf64-mips.c: Likewise.
435b1e90 2870 * elf64-sparc.c: Likewise.
435b1e90 2871
8da6118f
KH
28722000-12-07 Kazu Hirata <kazu@hxi.com>
2873
2874 * elf32-ppc.c: Fix formatting.
2875 * elf64-x86-64.c: Likewise.
2876
a9922e52
UC
28772000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2878
2879 From Ralf Baechle <ralf@gnu.org>
2880
2881 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2882 BFDs containing no sections or empty .text, .data or .bss sections
2883 to be merged, regardless of their flags.
2884
c3668558
KH
28852000-12-06 Kazu Hirata <kazu@hxi.com>
2886
2887 * elf32-m32r.c: Fix formatting.
2888 * elf32-m68hc11.c: Likewise.
2889 * elf32-m68hc12.c: Likewise.
2890 * elf32-m68k.c: Likewise.
2891 * elf32-mcore.c: Likewise.
2892 * elf32-pj.c: Likewise.
2893 * elf32-ppc.c: Likewise.
2894
6609fa74
KH
28952000-12-05 Kazu Hirata <kazu@hxi.com>
2896
2897 * elf32-fr30.c: Fix formatting.
2898 * elf32-hppa.c: Likewise.
2899 * elf32-i370.c: Likewise.
2900 * elf32-i386.c: Likewise.
2901 * elf32-i860.c: Likewise.
2902 * elf32-i960.c: Likewise.
2903
a7c10850
KH
29042000-12-03 Kazu Hirata <kazu@hxi.com>
2905
2906 * elf32-arm.h: Fix formatting.
2907 * elf32-avr.c: Likewise.
2908 * elf32-cris.c: Likewise.
2909 * elf32-d10v.c: Likewise.
2910 * elf32-d30v.c: Likewise.
2911 * elf-hppa.h: Likewise.
2912 * elf-m10200.c: Likewise.
2913 * elf-m10300.c: Likewise.
2914
e7af610e
NC
29152000-12-01 Chris Demetriou <cgd@sibyte.com>
2916
d952f17a
AM
2917 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2918 bfd_mach_mips32_4k. Update FIXME comment.
2919 * archures.c (bfd_mach_mips32): New constant.
2920 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2921 the latter, renumber it.
2922 * bfd-in2.h (bfd_mach_mips32): New constant.
2923 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2924 the latter, renumber it.
2925 * cpu-mips.c (I_mips32): New constant.
2926 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2927 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2928 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2929 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2930 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2931 with E_MIPS_MACH_MIPS32_4K.
2932 (_bfd_mips_elf_final_write_processing): Replace
2933 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2934 bfd_mach_mips32 case.
2935 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2936 comparison with support for MIPS32.
2937 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2938 MIPS32.
2939
2940 * aoutx.h (NAME(aout,machine_type)): Add cases for
2941 bfd_mach_mips5 and bfd_mach_mips64.
2942 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2943 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2944 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2945 (arch_info_struct): Add entries for bfd_mach_mips5 and
2946 bfd_mach_mips64.
2947 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2948 _bfd_mips_elf_print_private_bfd_data): Add cases for
2949 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2950 (_bfd_mips_elf_final_write_processing): Add cases for
2951 bfd_mach_mips5 and bfd_mach_mips64.
2952
7898deda 2953 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 2954 bfd_mach_mips_sb1 case.
7898deda
NC
2955 * archures.c (bfd_mach_mips_sb1): New constant.
2956 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2957 * cpu-mips.c (I_sb1): New constant.
d952f17a 2958 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 2959 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
2960 E_MIPS_MACH_SB1.
2961 (_bfd_mips_elf_final_write_processing): Add case for
2962 bfd_mach_mips_sb1.
2963
29642000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
2965
2966 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2967 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2968 (sparc*-*-rtems*): Switched from a.out to ELF.
2969
8d88c4ca 29702000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
2971
2972 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2973 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2974 (elf64-x86-64.lo): Add dependencies.
2975 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2976 bfd_mach_x86_64_intel_syntax.
2977 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2978 * config.bfd (x86_64): Add.
2979 * configure.in: Add support for bfd_elf64_x86_64_vec.
2980 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2981 (bfd_i386_arch, i8086_ar): Link in.
2982 * elf64-x86-64.c: New file.
2983 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2984 * targets.c (bfd_elf64_x86_64_vec): Add.
2985 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 2986
fbc4fff4
KH
29872000-11-30 Kazu Hirata <kazu@hxi.com>
2988
2989 * xcofflink.c: Fix formatting.
2990
e60b52c6
KH
29912000-11-28 Kazu Hirata <kazu@hxi.com>
2992
2993 * aoutx.h: Fix formatting.
2994 * bfd-in.h: Likewise.
2995 * bfd-in2.h: Likewise.
2996 * cache.c: Likewise.
2997 * cisco-core.c: Likewise.
2998 * coff64-rs6000.c: Likewise.
2999 * coffcode.h: Likewise.
3000 * coffswap.h: Likewise.
3001 * corefile.c: Likewise.
be3ccd9c 3002 * elf32-mips.c: Likewise.
e60b52c6 3003
336eced2
KH
30042000-11-27 Kazu Hirata <kazu@hxi.com>
3005
3006 * aout-adobe.c: Fix formatting.
244148ad
KH
3007 * coff64-rs6000.c: Likewise.
3008 * coffgen.c: Likewise.
3009 * cofflink.c: Likewise.
336eced2 3010
d71f672e
PB
30112000-11-27 Philip Blundell <pb@futuretv.com>
3012
3013 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
3014 (obj_coff_strings_written): New accessor macro for above.
3015 * libcoff.h: Regenerate.
3016 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
3017 strings.
3018 * coffcode.h (coff_write_object_contents): No need to write out
3019 the string table if it's already been done.
3020
bc7a577d
PB
30212000-11-22 Philip Blundell <pb@futuretv.com>
3022
d952f17a 3023 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
3024 weak undefined symbols.
3025
077b8428
NC
30262000-11-24 Nick Clifton <nickc@redhat.com>
3027
3028 * archures.c (bfd_mach_arm_5TE): Define.
3029 (bfd_mach_arm+XScale): Define.
3030 * bfd-in2.h: Regenerate.
3031
3032 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
3033 BFD_RELOC_ARM_PCREL_BLX.
3034
3035 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
3036 XScale machine numbers.
3037
3038 * config.bfd (xscale-elf): Add target.
3039 (xscale-coff): Add target.
3040
3041 * cpu-arm.c: Add xscale machine name.
3042 Add v5t, v5te and XScale machine numbers.
3043
e9e41bd9
KH
30442000-11-23 Kazu Hirata <kazu@hxi.com>
3045
3046 * aix386-core.c: Fix formatting.
3047
64bf6ae6
JW
30482000-11-22 Jim Wilson <wilson@redhat.com>
3049
3050 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
3051 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
3052 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
3053 (ins_imms_scaled): Initialize sign_bit at function entry.
3054 (elf64_ia64_operands): Add missing initializers.
3055 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
3056 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
3057 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
3058 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
3059 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
3060 parameters.
3061 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
3062 and free_extsyms at function entry.
3063 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
3064 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
3065 (get_got): Delete unused local srel.
3066 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
3067 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 3068
1abaf976
KH
30692000-11-21 Kazu Hirata <kazu@hxi.com>
3070
6e301b2b
KH
3071 * coff-a29k.c: Fix formatting.
3072 * coff-h8500.c: Likewise.
3073 * coff-i960.c: Likewise.
3074 * coff-ppc.c: Likewise.
3075 * coff-rs6000.c: Likewise.
3076 * coff-stgo32.c: Likewise.
3077 * coff-tic54x.c: Likewise.
3078 * coff-w65.c: Likewise.
3079 * cpu-h8500.c: Likewise.
3080 * cpu-hppa.c: Likewise.
3081 * cpu-ns32k.c: Likewise.
3082 * ecoff.c: Likewise.
1abaf976
KH
3083 * ecofflink.c: Likewise.
3084
a0fc8ba1
NC
30852000-11-21 Nick Clifton <nickc@redhat.com>
3086
3087 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
3088 remove possibility of infinite loop.
3089
beb0d161
KH
30902000-11-20 Kazu Hirata <kazu@hxi.com>
3091
3092 * aix386-core.c: Fix formatting.
3093 * aout-adobe.c: Likewise.
3094 * aout-arm.c: Likewise.
3095 * aout-encap.c: Likewise.
3096 * aout-ns32k.c: Likewise.
3097 * aout-target.h: Likewise.
3098 * aout-tic30.c: Likewise.
3099 * aoutf1.h: Likewise.
3100 * aoutx.h: Likewise.
3101 * archive.c: Likewise.
eb6e10cb
KH
3102 * bfd-in.h: Likewise.
3103 * bfd-in2.h: Likewise.
3104 * bfd.c: Likewise.
3105 * bout.c: Likewise.
beb0d161 3106
2c2475db
JW
31072000-11-17 H.J. Lu <hjl@gnu.org>
3108
3109 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
3110 pltoff entries for DT_INIT and DT_FINI.
3111 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
3112 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
3113 entries.
3114
18b27f17
RH
31152000-11-16 Richard Henderson <rth@redhat.com>
3116
3117 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
3118 (allocate_dynrel_entries): Likewise.
3119 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
3120 (set_pltoff_entry): Likewise.
3121 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
3122 (elfNN_ia64_reloc_type_lookup): Likewise.
3123 (elfNN_ia64_install_value): Likewise.
3124 (elfNN_ia64_relocate_section): Likewise.
3125 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
3126 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
3127
98591c73
KH
31282000-11-16 Kazu Hirata <kazu@hxi.com>
3129
71f6b586
KH
3130 * cpu-a29k.c: Fix formatting.
3131 * cpu-alpha.c: Likewise.
3132 * cpu-arm.c: Likewise.
3133 * cpu-avr.c: Likewise.
3134 * cpu-d10v.c: Likewise.
3135 * cpu-h8500.c: Likewise.
3136 * cpu-hppa.c: Likewise.
3137 * cpu-i370.c: Likewise.
3138 * cpu-i386.c: Likewise.
3139 * cpu-i960.c: Likewise.
3140 * cpu-ia64-opc.c: Likewise.
3141 * cpu-ia64.c: Likewise.
3142 * cpu-m32r.c: Likewise.
3143 * cpu-m68hc11.c: Likewise.
3144 * cpu-m68hc12.c: Likewise.
3145 * cpu-m68k.c: Likewise.
3146 * cpu-m88k.c: Likewise.
3147 * cpu-mips.c: Likewise.
3148 * cpu-ns32k.c: Likewise.
3149 * cpu-pj.c: Likewise.
3150 * cpu-powerpc.c: Likewise.
3151 * cpu-sh.c: Likewise.
3152 * cpu-sparc.c: Likewise.
3153 * cpu-tic54x.c: Likewise.
3154 * cpu-v850.c: Likewise.
3155 * cpu-vax.c: Likewise.
3156 * cpu-w65.c: Likewise.
3157 * cpu-we32k.c: Likewise.
3158 * cpu-z8k.c: Likewise.
3159 * dwarf1.c: Likewise.
98591c73
KH
3160 * dwarf2.c: Likewise.
3161
c5930ee6
KH
31622000-11-15 Kazu Hirata <kazu@hxi.com>
3163
3164 * coff-arm.c: Fix formatting.
3165 * coff-ppc.c: Likewise.
3166 * coff-rs6000.c: Likewise.
cbfe05c4
KH
3167 * coff-sh.c: Likewise.
3168 * coff-sparc.c: Likewise.
3169 * coff-tic30.c: Likewise.
3170 * coff-tic54x.c: Likewise.
3171 * coff-tic80.c: Likewise.
3172 * coff-w65.c: Likewise.
3173 * coff-we32k.c: Likewise.
3174 * coff-z8k.c: Likewise.
c5930ee6 3175
dac544a8
RH
31762000-11-15 Richard Henderson <rth@redhat.com>
3177
3178 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
3179 section with the same ALLOC|LOAD flags as the source section.
3180
c810873d
JJ
31812000-11-14 Jakub Jelinek <jakub@redhat.com>
3182
3183 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
3184 by STO_ALPHA constants.
3185
43646c9d
KH
31862000-11-14 Kazu Hirata <kazu@hxi.com>
3187
3188 * coff-pmac.c: Fix formatting.
3189 * coff-ppc.c: Likewise.
3190
051b8577
L
31912000-11-13 H.J. Lu <hjl@gnu.org>
3192
3193 * elflink.h (elf_link_add_object_symbols): Also add indirect
3194 symbols for common symbols with the default version.
3195
90460d97
PB
31962000-11-09 Philip Blundell <pb@futuretv.com>
3197
3198 * section.c (STD_SECTION): Set gc_mark flag.
3199
b48499ec
KH
32002000-11-11 Kazu Hirata <kazu@hxi.com>
3201
3202 * coff-i960.c: Likewise.
3203 * coff-m68k.c: Likewise.
3204 * coff-m88k.c: Likewise.
3205 * coff-mcore.c: Likewise.
3206 * coff-mips.c: Likewise.
3207
c5aeb40f
AO
32082000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
3209
3210 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
3211
5fcfd273
KH
32122000-11-10 Kazu Hirata <kazu@hxi.com>
3213
3214 * coff-h8300.c: Fix formatting.
3215 * coff-h8500.c: Likewise.
3216 * coff-i386.c: Likewise.
3217 * coff-i860.c: Likewise.
3218 * coff-i960.c: Likewise.
3219 * coff-ia64.c: Likewise.
3220
047066e1
KH
32212000-11-09 Kazu Hirata <kazu@hxi.com>
3222
3223 * archive.c: Fix formatting.
3224 * archures.c: Likewise.
3225
9a951beb
RH
32262000-11-07 Richard Henderson <rth@redhat.com>
3227
3228 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
3229 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
3230 * section.c (bfd_set_section_contents): Call memcpy if
3231 section->contents set and location not equal to contents plus offset.
3232
aebad5fe
KH
32332000-11-08 Kazu Hirata <kazu@hxi.com>
3234
8546af74
KH
3235 * bfd-in.h: Fix formatting.
3236 * bfd-in2.h: Likewise.
3237 * bfd.c: Likewise.
aebad5fe
KH
3238 * binary.c: Likewise.
3239 * bout.c: Likewise.
346ceb11
KH
3240 * coff-a29k.c: Likewise.
3241 * coff-alpha.c: Likewise.
3242 * coff-apollo.c: Likewise.
3243 * coff-aux.c: Likewise.
aebad5fe 3244
0ef5a5bd
KH
32452000-11-07 Kazu Hirata <kazu@hxi.com>
3246
3247 * aix386-core.c: Fix formatting.
3248 * aoutf1.h: Likewise.
3249 * aoutx.h: Likewise.
3250 * archures.c: Likewise.
3251 * armnetbsd.c: Likewise.
3252
d562d2fb
AM
32532000-11-07 Alan Modra <alan@linuxcare.com.au>
3254
3255 * coff-h8300.c (special): Adjust reloc address.
3256
bbe66d08
JW
32572000-11-06 Steve Ellcey <sje@cup.hp.com>
3258
4efc3e05 3259 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
3260 to differentiate elf32 and elf64 on ia64.
3261 * bfd-in2.h: Regenerate.
3262 * config.bfd: Add target for "ia64*-*-hpux*".
3263 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
3264 * configure: Regenerate.
4efc3e05 3265 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
3266 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
3267
3268 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
3269 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
3270 * Makefile.in: Regnerate.
4efc3e05 3271 * elf64-ia64.c: Deleted.
bbe66d08
JW
3272 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
3273
c4dfa77f
KH
32742000-11-06 Kazu Hirata <kazu@hxi.com>
3275
3276 * aout-adobe.c: Fix formatting.
3277 * aout-arm.c: Likewise.
3278 * aout-cris.c: Likewise.
3279 * aout-encap.c: Likewise.
3280 * aout-ns32k.c: Likewise.
3281 * aout-target.h: Likewise.
3282 * aout-tic30.c: Likewise.
3283
cf919dfd
PB
32842000-11-05 Philip Blundell <philb@gnu.org>
3285
3286 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
3287 BFDs containing no sections to be merged, regardless of their flags.
3288
32892000-11-04 Philip Blundell <philb@gnu.org>
3290
3291 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
3292 if a relocation for an undefined symbol also results in an
3293 overflow.
3294
8d88c4ca 32952000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
3296
3297 * config.bfd: Add support for Sun Chorus.
3298
46d59bfa
DB
32992000-11-05 David O'Brien <obrien@FreeBSD.org>
3300
3301 * configure.in: Recognize alpha-*-freebsd*.
3302 * configure: Regenerate.
3303
d952f17a 33042000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
3305
3306 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
3307 (Chunk): New global variable set by a parameter in objcopy.c.
3308 (S3Forced): New global variable set by a parameter in
3309 objcopy.c.
3310 (srec_set_section_contents): If S3Forced is true, always generate
3311 S3 records.
3312 (srec_write_section): Use 'Chunk' to limit maximum length of S
3313 records.
3314
59ff2774
NC
33152000-11-02 Per Lundberg <plundis@chaosdev.org>
3316
3317 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
3318 * Makefile.in: Regenerate.
3319 * bfd-in2.h: Regenerate.
3320 * po/bfd.pot: Regenerate.
d952f17a 3321
ee43f35e
PB
33222000-10-31 Philip Blundell <philb@gnu.org>
3323
3324 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
3325 EF_SOFT_FLOAT if it is defined.
3326
1006ba19
PB
33272000-10-27 Philip Blundell <philb@gnu.org>
3328
3329 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
3330 attempts to mix PIC code with non-PIC, just mark the output as
3331 being position dependent.
d952f17a
AM
3332 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
3333 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 3334 all mismatches, not just the first one.
d952f17a 3335
c4920b97
NC
33362000-10-25 Chris Demetriou <cgd@sibyte.com>
3337
3338 * ieee.c (ieee_archive_p): Plug one of many possible
3339 memory leaks in error handling.
3340
19f7b010
JJ
33412000-10-20 Jakub Jelinek <jakub@redhat.com>
3342
3343 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
3344 elf32_sparc_object_p, elf32_sparc_final_write_processing):
3345 Support v8plusb.
3346 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
3347 sparc64_elf_object_p): Support v9b.
3348 * archures.c: Declare v8plusb and v9b machines.
3349 * bfd-in2.h: Ditto.
3350 * cpu-sparc.c: Ditto.
3351
e1e0340b
GK
33522000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3353
ea5fbc67
GK
3354 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
3355 of a GOT reloc.
3356
e1e0340b
GK
3357 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
3358 (SYMBOL_CALLS_LOCAL): New macro.
3359 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
3360 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
3361 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
3362 (ppc_elf_relocate_section): Use flag variable to determine
3363 whether the relocation refers to a local symbol.
3364 Test whether a PLTREL24 reloc will produce a reloc by looking
3365 to see whether a PLT entry was made.
3366
a4b120e1
GK
33672000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3368
3369 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
3370 entries that could serve as a definition for a weak symbol.
3371
5af5b85b
UC
33722000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
3373
3374 From Ralf Baechle <ralf@gnu.org>
3375
3376 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
3377 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
3378 against local symbols.
3379 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 3380
3ef20aaa
AM
33812000-10-12 Alan Modra <alan@linuxcare.com.au>
3382
24376d1b
AM
3383 * section.c (struct sec): Add kept_section.
3384 (struct bfd_comdat_info): Remove sec, we can use above.
3385 (STD_SECTION): Add initializer.
3386 (bfd_make_section_anyway): Init here too.
3387
3388 * bfd-in2.h: Regenerate.
3389
3390 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 3391 zeroing of `flags'.
24376d1b
AM
3392 (elf_link_input_bfd): Set all asection->symbol->value's here, and
3393 fudge values for discarded link-once section symbols.
3394
3ef20aaa
AM
3395 * elf64-hppa.c: Include alloca-conf.h
3396
c0e219cc
AM
33972000-10-11 Alan Modra <alan@linuxcare.com.au>
3398
d01e2a23
AM
3399 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3400
c0e219cc
AM
3401 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3402
fe268b66
AM
34032000-10-10 Alan Modra <alan@linuxcare.com.au>
3404
3405 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3406
4d7ce4dd
AM
34072000-10-10 Tom Rix <trix@redhat.com>
3408
d952f17a 3409 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
3410 newsect->symbol fails to alloc. Use bfd_release instead of free.
3411
f3b6f7c3
RH
34122000-10-09 Richard Henderson <rth@cygnus.com
3413
3414 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3415 (elf64_ia64_unwind_entry_compare): New.
3416 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3417
44852b19
AM
34182000-10-07 Alan Modra <alan@linuxcare.com.au>
3419
fc8c40a0
AM
3420 * elflink.h (size_dynamic_sections): Don't create various tags if
3421 .dynstr is excluded from the link. Don't set first dynsym entry
3422 if dynsymcount is zero.
3423 (elf_bfd_final_link): Don't try to swap out dynamic syms if
3424 .dynsym excluded from the link. Don't try to write any dynamic
3425 sections excluded from the link.
3426
44852b19
AM
3427 * elf.c (swap_out_syms): Handle global section symbols.
3428
3e4554a2
DD
34292000-10-05 DJ Delorie <dj@redhat.com>
3430
3431 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3432 * coffcode.h (coff_set_alignment_hook): read extended reloc count
3433 (coff_write_relocs): write extended reloc count
3434 (coff_write_object_contents): account for extended relocs
3435
fa152c49
JW
34362000-10-05 Jim Wilson <wilson@cygnus.com>
3437
3438 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3439 field.
3440 * elf.c (_bfd_elf_make_section_from_shdr): Call the
3441 elf_backend_section_flags function.
3442 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3443 code.
3444 (elf64_ia64_section_flags): New function containing flag conversion
3445 code.
3446 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3447 * elfxx-target.h (elf_backend_section_flags): Define.
3448 (elfNN_bed): Initialize elf_backend_section_flags field.
3449
36605136
AM
34502000-10-02 Alan Modra <alan@linuxcare.com.au>
3451
3452 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3453 _bfd_elf32_gc_record_vtable. Correct a comment.
3454
4b6609a0
UC
34552000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
3456
3457 From Ralf Baechle <ralf@gnu.org>
3458
3459 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3460 produces binaries with got[1] = 0x80000001 to differenciate them
3461 for the dynamic linker from the broken binaries produced by old
3462 versions.
36605136 3463
f572a39d
AM
34642000-09-30 Petr Sorfa <petrs@sco.com>
3465
3466 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3467 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3468 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3469 * configure: Regenerate.
3470
4da81684
HPN
34712000-09-27 Hans-Peter Nilsson <hp@axis.com>
3472
3473 Define two bfd_targets for absence and presence of leading
3474 underscore on symbols. Make sure to only link same kind.
3475 * elf32-cris.c (cris_elf_object_p,
3476 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3477 cris_elf_merge_private_bfd_data): New.
3478 (elf_backend_object_p, elf_backend_final_write_processing,
3479 bfd_elf32_bfd_print_private_bfd_data,
3480 bfd_elf32_bfd_merge_private_bfd_data): Define.
3481 <Target vector definition>: Include elf32-target.h twice with
3482 different macro settings:
3483 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3484 bfd_elf32_us_cris_vec.
3485 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3486 (elf_symbol_leading_char): First as 0, then '_'.
3487 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3488 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3489 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3490 * configure: Regenerate.
3491 * targets.c: Declare bfd_elf32_us_cris_vec.
3492 * po/bfd.pot: Regenerate.
3493
9a5aca8c
AM
34942000-09-29 Momchil Velikov <velco@fadata.bg>
3495
3496 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3497 R_ARM_THM_PC22 relocations.
3498
512a2384
AM
34992000-09-29 NIIBE Yutaka <gniibe@chroot.org>
3500
3501 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3502
6c99a5c3
AM
35032000-09-29 Momchil Velikov <velco@fadata.bg>
3504
3505 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3506 is has the SEC_HAS_CONTENTS flag set.
3507