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