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