c683b4d9071568f32135060cb5e1f6ac5ee003a9
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2000-10-07 Alan Modra <alan@linuxcare.com.au>
2
3 * elflink.h (size_dynamic_sections): Don't create various tags if
4 .dynstr is excluded from the link. Don't set first dynsym entry
5 if dynsymcount is zero.
6 (elf_bfd_final_link): Don't try to swap out dynamic syms if
7 .dynsym excluded from the link. Don't try to write any dynamic
8 sections excluded from the link.
9
10 * elf.c (swap_out_syms): Handle global section symbols.
11
12 2000-10-05 DJ Delorie <dj@redhat.com>
13
14 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
15 * coffcode.h (coff_set_alignment_hook): read extended reloc count
16 (coff_write_relocs): write extended reloc count
17 (coff_write_object_contents): account for extended relocs
18
19 2000-10-05 Jim Wilson <wilson@cygnus.com>
20
21 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
22 field.
23 * elf.c (_bfd_elf_make_section_from_shdr): Call the
24 elf_backend_section_flags function.
25 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
26 code.
27 (elf64_ia64_section_flags): New function containing flag conversion
28 code.
29 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
30 * elfxx-target.h (elf_backend_section_flags): Define.
31 (elfNN_bed): Initialize elf_backend_section_flags field.
32
33 2000-10-02 Alan Modra <alan@linuxcare.com.au>
34
35 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
36 _bfd_elf32_gc_record_vtable. Correct a comment.
37
38 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
39
40 From Ralf Baechle <ralf@gnu.org>
41
42 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
43 produces binaries with got[1] = 0x80000001 to differenciate them
44 for the dynamic linker from the broken binaries produced by old
45 versions.
46
47 2000-09-30 Petr Sorfa <petrs@sco.com>
48
49 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
50 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
51 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
52 * configure: Regenerate.
53
54 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
55
56 Define two bfd_targets for absence and presence of leading
57 underscore on symbols. Make sure to only link same kind.
58 * elf32-cris.c (cris_elf_object_p,
59 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
60 cris_elf_merge_private_bfd_data): New.
61 (elf_backend_object_p, elf_backend_final_write_processing,
62 bfd_elf32_bfd_print_private_bfd_data,
63 bfd_elf32_bfd_merge_private_bfd_data): Define.
64 <Target vector definition>: Include elf32-target.h twice with
65 different macro settings:
66 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
67 bfd_elf32_us_cris_vec.
68 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
69 (elf_symbol_leading_char): First as 0, then '_'.
70 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
71 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
72 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
73 * configure: Regenerate.
74 * targets.c: Declare bfd_elf32_us_cris_vec.
75 * po/bfd.pot: Regenerate.
76
77 2000-09-29 Momchil Velikov <velco@fadata.bg>
78
79 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
80 R_ARM_THM_PC22 relocations.
81
82 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
83
84 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
85
86 2000-09-29 Momchil Velikov <velco@fadata.bg>
87
88 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
89 is has the SEC_HAS_CONTENTS flag set.
90
91 2000-09-28 Örjan Friberg <orjanf@axis.com>
92 Hans-Peter Nilsson <hp@axis.com>
93
94 * aout-cris.c (N_TXTADDR): Define.
95
96 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
97
98 * som.c: Include alloca-conf.h.
99 * Makefile.am: "make dep-am"
100 * Makefile.in: Regenerate.
101
102 2000-09-27 Alan Modra <alan@linuxcare.com.au>
103
104 * elf32-hppa.c (plt_stub): New.
105 (PLT_STUB_ENTRY): Define.
106 (elf32_hppa_link_hash_table): Change multi_subspace to packed
107 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
108 (elf32_hppa_link_hash_table_create): Init to suit.
109 (elf32_hppa_check_relocs): Set has_12bit_branch and
110 has_17bit_branch as appropriate.
111 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
112 non-local functions.
113 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
114 Add space for plt_stub as needed.
115 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
116 functions at plt_stub.
117 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
118 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
119
120 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
121 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
122 of fixed size, and if negative, disable handling of input sections
123 before stub section. Set up default stub group size depending
124 on detected branch relocs.
125 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
126 ensure different offsets from sym_value aren't rounded to
127 different 2k blocks. Use lrsel and rrsel for other stubs too for
128 consistency rather than necessity.
129 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
130 (final_link_relocate): Likewise.
131 (elf32_hppa_relocate_section): Likewise.
132
133 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
134 (_bfd_elf_hppa_gen_reloc_type): Generate them.
135 (elf_hppa_final_link_relocate): Handle them.
136 (elf_hppa_relocate_insn): Likewise.
137 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
138
139 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
140
141 * elfcode.h (elf_object_p): Preserve and clear abfd section
142 information. Restore at error.
143
144 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
145
146 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
147 is empty, make sure that its rva also 0. NT loader dislikes
148 having otherwise.
149
150 2000-09-26 Steve Ellcey <sje@cup.hp.com>
151
152 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
153 global by default.
154
155 2000-09-21 Alan Modra <alan@linuxcare.com.au>
156
157 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
158 currently unused RELATIVE_DYNAMIC_RELOCS code.
159 (hppa_discard_copies): Likewise.
160 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
161 comments. Don't check non-code output sections for stub grouping.
162
163 2000-09-20 Alan Modra <alan@linuxcare.com.au>
164
165 * section.c (bfd_get_unique_section_name): Return NULL if
166 bfd_malloc fails.
167
168 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
169
170 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
171 instruction sequence to actually work.
172 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
173 accordingly.
174
175 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
176
177 * elf32-sh.c (sh_elf_relocate_section): Use
178 _bfd_final_link_relocate to apply the relocation against a section
179 symbol, when doing relocatable links.
180
181 2000-09-18 Alan Modra <alan@linuxcare.com.au>
182
183 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
184 to id_sec.
185 (stub_hash_newfunc): Here too.
186 (hppa_add_stub): And here.
187 (elf32_hppa_link_hash_table): Remove stub_section_created,
188 reloc_section_created, first_init_sec and first_fini_sec. Add
189 stub_group.
190 (elf32_hppa_link_hash_table_create): Init to suit.
191 (hppa_get_stub_entry): Add support for grouping stub sections.
192 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
193 section code. Index stub vars by section->id.
194 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
195 exit paths. Zap allocation of above removed vars. Refine
196 link-once test.
197
198 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
199 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
200 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
201 rather than pointer to bfd_link_info.
202 (hppa_add_stub): Likewise.
203 (final_link_relocate): Likewise.
204
205 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
206
207 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
208 link-once sections.
209
210 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
211
212 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
213 ld/emulparams/shelf.sh.
214
215 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
216
217 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
218 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
219 * bfd-in2.h: Regenerate.
220
221 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
222
223 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
224 LITUSE relocations incorrectly if -relax is specified on the ld
225 command line and the displacement field of the load or store
226 instruction is non-zero. (Patch by paul.winalski@compaq.com)
227
228 2000-09-15 Alan Modra <alan@linuxcare.com.au>
229
230 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
231 first_fini_sec here.
232 (elf32_hppa_size_stubs): Instead correctly find the first .init
233 and .fini section here.
234
235 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
236
237 * elf32-hppa.c (clobber_millicode_symbols): New function.
238 (elf32_hppa_size_dynamic_sections): Call it.
239
240 2000-09-14 Alan Modra <alan@linuxcare.com.au>
241
242 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
243 packed. Add plabel, plt_abs packed booleans.
244 (hppa_link_hash_newfunc): Init new fields.
245 (PLABEL_PLT_ENTRY_SIZE): Define.
246 (hppa_stub_name): Use size_t len vars.
247 (hppa_add_stub): Likewise.
248 (elf32_hppa_build_stubs): Likewise.
249 (hppa_build_one_stub): Kill some compiler warnings.
250 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
251 if dynamic linking. Munge the local plt offsets into
252 local_got_refcounts. Set h->plabel for all global PLABELs. Use
253 size_t len vars. Add assert for plabel addend.
254 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
255 (elf32_hppa_hide_symbol): New function.
256 (elf_backend_hide_symbol): Define.
257 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
258 with h->plabel set. Don't make plt entries to have dynamic syms
259 when they have been forced local. If plt entry is used by a
260 plabel, make it PLABEL_PLT_ENTRY_SIZE.
261 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
262 Set up .plt offsets for local syms.
263 (elf32_hppa_relocate_section): Initialise plt entries for local
264 syms. Leave weak undefined plabels zero. Make global plabel
265 relocs against function symbol, and leave the addend zero.
266 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
267 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
268 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
269 relocs instead of SEGREL32 for dynamic got relocs.
270 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
271 (elf_backend_got_header_size): Adjust.
272 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
273
274 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
275 (hppa_type_of_stub): Use it instead of #if 0
276 (hppa_discard_copies): Use it here too.
277 (elf32_hppa_size_dynamic_sections): And here.
278
279 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
280 (elf32_hppa_link_hash_table_create): And here.
281 (hppa_build_one_stub): And here. Instead keep track of stub
282 offset using _raw_size.
283 (elf32_hppa_size_stubs): Likewise.
284 (elf32_hppa_build_stubs): Likewise.
285 (hppa_size_one_stub): Likewise. Resize reloc section too.
286
287 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
288 first_fini_sec handling. Don't search for reloc section or set
289 hplink->reloc_section_created here.
290 (elf32_hppa_size_stubs): Instead search for reloc sections, and
291 set reloc_section_created here.
292 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
293 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
294 and DT_FINI.
295 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
296
297 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
298 with `hplink->root.'.
299 (elf32_hppa_check_relocs): Likewise.
300 (elf32_hppa_gc_sweep_hook): Likewise.
301 (elf32_hppa_adjust_dynamic_symbol): Likewise.
302 (hppa_handle_PIC_calls): Likewise.
303 (elf32_hppa_size_dynamic_sections): Likewise.
304 (elf32_hppa_set_gp): Likewise.
305 (elf32_hppa_relocate_section): Likewise.
306 (elf32_hppa_finish_dynamic_symbol): Likewise.
307 (elf32_hppa_finish_dynamic_sections): Likewise.
308
309 From David Huggins-Daines <dhd@linuxcare.com>
310 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
311 defined weak symbols in shared links.
312 (final_link_relocate): Calls to defined weak symbols in shared
313 objects must go via import stubs, as the target might not be known
314 at link time.
315
316 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
317
318 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
319 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
320 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
321 the original entries with EMPTY_HOWTOs, and added new ones to fill
322 in the gap.
323 (sh_elf_info_to_howto): Make sure the new gap isn't used.
324 (sh_elf_relocate_section): Likewise.
325
326 2000-09-13 Anders Norlander <anorland@acc.umu.se>
327
328 * cpu-mips.c (arch_info_struct): Add mips:4K
329 * bfd-in2.h (bfd_mach_mips4K): New define.
330 * archures.c: Add bfd_mach_mips4K to comment.
331 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
332 E_MIPS_ARCH_2 for bfd_mach_mips4K.
333
334 Wed Sep 13 19:31:39 2000 Marco Franzen <marcof@thyron.com>
335
336 * som.c (som_write_symbol_strings): Do not used fixed buffers,
337 use size_t as a counter.
338 (som_write_space_strings): Similarly.
339
340 2000-09-12 Jason Eckhardt <jle@cygnus.com>
341
342 * elf32-i860.c (elf32_i860_relocate_pc26): New function
343 and prototype.
344 (elf32_i860_relocate_section): Invoke new function from here.
345
346 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
347
348 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
349 static.
350
351 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
352
353 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
354 target section name instead of dumping core when the target symbol is
355 undefined.
356
357 2000-09-09 Kazu Hirata <kazu@hxi.com>
358
359 * riscix.c: Remove DEFUN.
360
361 2000-09-08 Nick Clifton <nickc@redhat.com>
362
363 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
364 initialise flags in output bfd if the input bfd is the default
365 architecture with the default flags.
366
367 2000-09-08 Kazu Hirata <kazu@hxi.com>
368
369 * archive.c: Fix formatting.
370 * coff-arm.c: Likewise.
371 * doc/chew.c: Likewise.
372
373 2000-09-08 Alan Modra <alan@linuxcare.com.au>
374
375 * section.c (bfd_get_unique_section_name): Put a dot before the
376 numeric suffix.
377
378 2000-09-07 Kazu Hirata <kazu@hxi.com>
379
380 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
381 * elf.c: Fix formatting.
382
383 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
384
385 * config.bfd (sh-*-linux*): Added.
386 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
387 * targets.c: Declare them.
388 * elf32-sh-lin.c: New file.
389 * Makefile.am: Compile it.
390 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
391 * configure, Makefile.in: Rebuilt.
392
393 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
394
395 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
396 pseduo-section when determining where the TOC ends.
397
398 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
399 output x_tvndx as it is only two bytes wide.
400
401 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
402 reloc is 26 or 32 bits wide.
403
404 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
405 for relocs that don't change anything. Also look at the full
406 6 bits of bitsize.
407
408 2000-09-06 Philip Blundell <philb@gnu.org>
409
410 * config.bfd (arm*-*-uclinux*): New target.
411
412 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
413
414 * configure: Rebuilt with new libtool.m4.
415
416 2000-09-06 Alan Modra <alan@linuxcare.com.au>
417
418 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
419 word for variable name.
420 * bfd-in2.h: Regenerate.
421
422 2000-09-05 Nick Clifton <nickc@redhat.com>
423
424 * config.in: Regenerate.
425 * libbfd.h: Regenerate.
426 * po/bfd.pot: Regenerate.
427 * doc/bfdint.texi: Remove CVS date string - it foils compares with
428 local versions.
429
430 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
431
432 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
433
434 2000-09-05 Alan Modra <alan@linuxcare.com.au>
435
436 Shared library and PIC support.
437 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
438 (GOT_ENTRY_SIZE): New.
439 (ELF_DYNAMIC_INTERPRETER): New.
440 (STUB_SUFFIX): Define.
441 (LONG_BRANCH_PIC_IN_SHLIB): Define.
442 (RELATIVE_DYNAMIC_RELOCS): Define.
443 (enum elf32_hppa_stub_type): New.
444 (struct elf32_hppa_stub_hash_entry): Rename offset to
445 stub_offset. Add a number of new fields.
446 (struct elf32_hppa_link_hash_entry): New.
447 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
448 global_value.
449 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
450 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
451 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
452 new fields.
453 (hppa_link_hash_newfunc): New function.
454 (elf32_hppa_link_hash_table_create): Use above function. Init new
455 fields.
456 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
457 instead of addend, and remove sym_name from args. Don't use
458 symbol name for local syms, instead use sym index.
459 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
460 stub type rather than size. Pass in hash and handle import stub
461 case. Also pass in reloc instead of offset so we can calculate
462 PCREL22F and PCREL12F branches properly.
463 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
464 import and export stubs too.
465 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
466 import and export stub sizing.
467 (elf32_hppa_check_relocs): New function.
468 (elf32_hppa_adjust_dynamic_symbol): New function.
469 (hppa_discard_copies): New function.
470 (elf32_hppa_size_dynamic_sections): New function.
471 (elf_backend_size_dynamic_sections): Define.
472 (elf32_hppa_finish_dynamic_symbol): New function.
473 (elf_backend_finish_dynamic_symbol): Define.
474 (elf32_hppa_size_stubs): Stash params in link hash table, and move
475 some local vars into the link hash table too. For shared links,
476 trundle over function syms, generating export stubs. Handle
477 PCREL22F branches. Break out stub creation code from here..
478 (hppa_add_stub): .. to here. New function.
479 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
480 call the bfd linker. Use elf_gp to record global pointer.
481 Calculate a value from sections if $global$ is missing.
482 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
483 (elf32_hppa_gc_mark_hook): New function.
484 (elf_backend_gc_mark_hook): Define.
485 (elf32_hppa_gc_sweep_hook): New function.
486 (elf_backend_gc_sweep_hook): Define.
487 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
488 Add rel to args, and remove howto, input_bfd, offset, addend,
489 sym_name as we can recalculate these locally. Handle calls to
490 dynamic objects, extra PIC relocs, PCREL22F branches. Change
491 handling of undefined weak syms. Check that stubs are in range.
492 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
493 message on hitting a DPREL21L reloc that needs fixing. Subtract
494 off PC for PCREL14F. Break out code that does a stub lookup from
495 here..
496 (hppa_get_stub_entry): ..to here. New function.
497 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
498 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
499 relocs, etc. etc.
500 (elf32_hppa_finish_dynamic_sections): New function.
501 (elf_backend_finish_dynamic_sections): Define.
502 (elf_backend_final_write_processing) Define.
503 (hppa_handle_PIC_calls): New function.
504 (elf32_hppa_build_stubs): Call it. Pass link_info to
505 hppa_build_one_stub.
506 (elf32_hppa_create_dynamic_sections): New function
507 to create .plt and .got then set .plt flags correctly.
508 (elf_backend_create_dynamic_sections): Define.
509 (elf32_hppa_object_p): New function.
510 (elf_backend_object_p): Define.
511 (elf32_hppa_elf_get_symbol_type): New function.
512 (elf_backend_get_symbol_type): Define.
513 (elf_backend_can_gc_sections): Define.
514 (elf_backend_want_got_plt): Define.
515 (elf_backend_plt_alignment): Set to 2.
516 (elf_backend_plt_readonly): Define.
517 (elf_backend_want_plt_sym): Define.
518 (elf_backend_got_header_size): Reserve one entry.
519
520 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
521 (elf32_hppa_size_stubs): Pass in multi_subspace.
522 (elf32_hppa_set_gp): Declare.
523
524 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
525 (bfd_get_unique_section_name): New function.
526 * bfd_in2.h: Regenerate.
527
528 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
529 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
530 comment.
531
532 From David Huggins-Daines <dhd@linuxcare.com>
533 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
534 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
535 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
536 been updated in finish_dynamic_symbol before modifying function
537 symbol.
538
539 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
540 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
541 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
542 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
543 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
544 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
545 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
546 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
547
548 From David Huggins-Daines <dhd@linuxcare.com>
549 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
550 style of local labels as well.
551
552 2000-09-03 Philip Blundell <philb@gnu.org>
553
554 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
555 references to undefined symbols in debugging sections.
556
557 2000-09-02 H.J. Lu <hjl@gnu.org>
558
559 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
560 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
561 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
562 section.
563
564 2000-09-02 Jason Eckhardt <jle@cygnus.com>
565
566 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
567 (elf32_i860_is_local_label_name): New function and prototype.
568
569 2000-09-02 Nick Clifton <nickc@redhat.com>
570
571 * configure.in: Increase version number to 2.10.91.
572 * configure: Regenerate.
573 * aclocal.m4: Regenerate.
574 * config.in: Regenerate.
575 * po/bfd.pot: Regenerate.
576
577 2000-09-02 Daniel Berlin <dberlin@redhat.com>
578
579 * elf.c (_bfd_elf_make_section_from_shdr): Add
580 .gnu.linkobce.wi. to the list of debug section names.
581
582 2000-09-02 Nick Clifton <nickc@redhat.com>
583
584 * dwarf2.c (find_debug_info): New function: Locate a section
585 containing dwarf2 debug information.
586 (bfd_dwarf2_find_nearest_line): Find all sections containing
587 debug information and include them in the stash.
588
589 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
590
591 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
592 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
593 (sh_reloc_map): Add new relocs.
594 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
595 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
596 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
597 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
598 functions.
599 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
600 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
601 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
602 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
603 New array constants.
604 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
605 New variables.
606 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
607 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
608 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
609 elf_sh_plt_reloc_offset): Define.
610 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
611 elf_sh_link_hash_table): New structs.
612 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
613 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
614 relocation types.
615 (elf_backend_create_dynamic_sections,
616 bfd_elf32_bfd_link_hash_table_create,
617 elf_backend_adjust_dynamic_symbol,
618 elf_backend_size_dynamic_sections,
619 elf_backend_finish_dynamic_symbol,
620 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
621 elf_backend_plt_readonly, elf_backend_want_plt_sym,
622 elf_backend_got_header_size, elf_backend_plt_header_size):
623 Define.
624 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
625 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
626 New relocs.
627 * bfd-in2.h, libbfd.h: Rebuilt.
628
629 2000-09-01 Alan Modra <alan@linuxcare.com.au>
630
631 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
632 change.
633
634 Thu Aug 31 22:49:30 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
635
636 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
637 not initialized, set them to indicate the SH1 instruction set.
638
639 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
640
641 * acinclude.m4: Include libtool and gettext macros from the
642 top level.
643 * aclocal.m4, configure: Rebuilt.
644
645 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
646
647 * elf.c: Eliminate references to __sparcv9 macro; replace with
648 autoconf variables HAVE_PSINFO32_T etc.
649 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
650 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
651 * config.in: Ditto.
652 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
653 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
654 * aclocal.m4: Ditto.
655 * configure: Regenerate.
656
657 2000-08-27 Alan Modra <alan@linuxcare.com.au>
658
659 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
660 for any shared link, not just shared -Bsymbolic.
661 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
662 any shared link, and pass link info to it.
663 (elf_i386_size_dynamic_sections): Update comment.
664 (elf_i386_discard_copies): Modify to discard relocs for symbols
665 that have been forced local.
666 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
667 that have been forced local.
668
669 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
670
671 * elflink.h (elf_link_add_object_symbols): Allow common
672 symbols to have an alignment of 1 if explicitly requested, and
673 not overridden by other definitions.
674
675 2000-08-22 Doug Kwan <dkwan@transmeta.com>
676
677 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
678 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
679
680 2000-08-22 H.J. Lu <hjl@gnu.org>
681
682 * elf-bfd.h (elf_link_hash_table): Add runpath.
683
684 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
685 * bfd-in2.h: Rebuilt.
686
687 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
688 "runpath" field to NULL.
689 (bfd_elf_get_runpath_list): New function.
690
691 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
692 DT_RUNPATH entries.
693
694 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
695
696 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
697 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
698 explicitly. Improve validation of r_type.
699
700 2000-08-21 H.J. Lu <hjl@gnu.org>
701
702 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
703 dynamic allocated content space. Add a comment to remind us that
704 one day this ought to be fixed.
705 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
706 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
707 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
708
709 2000-08-21 Jason Eckhardt <jle@cygnus.com>
710
711 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
712 field with the newly relocated value instead of adding it to the
713 existing immediate field.
714 (elf32_i860_relocate_splitn): Likewise.
715 (elf32_i860_relocate_highadj): Likewise.
716
717 2000-08-16 Jason Eckhardt <jle@cygnus.com>
718
719 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
720 was previously just a stub).
721
722 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
723
724 * elflink.c (_bfd_elf_create_got_section): Don't abort().
725 Formatting fixes.
726 (_bfd_elf_create_dynamic_sections): Likewise.
727
728 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
729
730 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
731 for undefined symbols to be the beginning of the section.
732
733 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
734 four extra entries at the beginning of the .rela.plt section.
735 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
736 section to account for the four reserved entries in the .plt section.
737
738 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
739
740 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
741 to the list of NOPs we recognize after a branch-and-link.
742 Use the ori NOP when one is needed.
743
744 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
745 for large archives.
746
747 2000-08-14 Jim Wilson <wilson@cygnus.com>
748
749 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
750 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
751 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
752 EF_IA_64_ABSOLUTE.
753
754 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
755
756 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
757
758 2000-08-10 Jason Eckhardt <jle@cygnus.com>
759
760 * elf32-i860.c (elf32_i860_relocate_section): New function.
761 (i860_final_link_relocate): New function.
762 (elf32_i860_relocate_splitn): New function.
763 (elf32_i860_relocate_pc16): New function.
764 (elf32_i860_relocate_highadj): New function.
765 (elf32_i860_howto): Minor adjustments to some relocations.
766 (elf_info_to_howto_rel): Define.
767 (elf_backend_relocate_section): Define.
768
769 2000-08-10 Nick Clifton <nickc@cygnus.com>
770
771 * elf32-arm.h: Fix formatting.
772
773 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
774
775 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
776
777 2000-08-08 Jason Eckhardt <jle@cygnus.com>
778
779 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
780
781 2000-08-07 Kazu Hirata <kazu@hxi.com>
782
783 * ieee.c (ieee_write_debug_part): Rewrite a comment.
784 * elf64-ia64.c: Fix a typo.
785
786 2000-08-05 Jason Eckhardt <jle@cygnus.com>
787
788 * elf32-i860 (elf32_i860_howto_table): New structure.
789 (lookup_howto): New function.
790 (elf32_i860_reloc_type_lookup): New function.
791 (elf32_i860_info_to_howto_rela): New function.
792 (elf_code_to_howto_index): New structure.
793 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
794 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
795 elf32_i860_reloc_type_lookup.
796
797 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
798
799 * som.c (struct fixup_format): Constify `format'.
800 (som_hppa_howto_table): Use SOM_HOWTO macro.
801 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
802 (som_bfd_reloc_type_lookup): Likewise.
803 (compare_subspaces): Remove unused `count1', `count2'.
804 (som_begin_writing): Remove unused `total_reloc_size'.
805 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
806 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
807 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
808 (som_find_nearest_line): Decorate unused parameter(s).
809 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
810 (som_bfd_link_split_section): Likewise.
811
812 2000-08-03 Nick Clifton <nickc@cygnus.com>
813
814 * section.c: Restore backed out code.
815 * elf.c: Restore backed out code.
816 (copy_private_bfd_data): Fix bug preventing stipped dynamic
817 binaries from working.
818 * bfd-in2.h: Regenerate.
819
820 2000-08-03 H.J. Lu <hjl@gnu.org>
821
822 * section.c: Back out the change made by Nick Clifton
823 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
824 binaries.
825 * bfd-in2.h: Likewise.
826 * elf.c: Likewise.
827
828 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
829
830 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
831
832 2000-07-31 Jason Eckhardt <jle@cygnus.com>
833
834 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
835 * bfd-in2.h, libbfd.h: Regenerate.
836
837 2000-07-31 Nick Clifton <nickc@cygnus.com>
838
839 * section.c (struct sec): Add new boolean field 'segment_mark'.
840 (STD_SECTION): Initialise new field to zero.
841
842 * bfd-in2.h: Regenerate.
843
844 * elf.c (copy_private_bfd_data): Reorganise section to segment
845 mapping to cope with moved sections requiring new segments,
846 and overlapping segments.
847 (SEGMENT_END): New macro: Return the end address of a segment.
848 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
849 contains a section by comparing their VMA addresses.
850 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
851 contains a section by comparing their LMA addresses.
852 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
853 section should be included in a segment.
854 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
855 follows another in memory.
856 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
857 segments overlap.
858
859 2000-07-22 Jason Eckhardt <jle@cygnus.com>
860
861 * cpu-i860.c: Added comments.
862
863 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
864 bfd_elf32_i860_little_vec.
865 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
866 (ELF_MAXPAGESIZE): Changed to 4096.
867
868 * targets.c (bfd_elf32_i860_little_vec): Declaration of
869 new target.
870 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
871
872 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
873 config for little endian elf32 i860.
874 (targ_defvec): Define for the new config above
875 as "bfd_elf32_i860_little_vec".
876 (targ_selvecs): Define for the new config above
877 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
878
879 * configure.in (bfd_elf32_i860_little_vec): Added recognition
880 of new target vec.
881
882 * configure: Regenerated.
883
884 2000-07-27 H.J. Lu <hjl@gnu.org>
885
886 * elflink.h (elf_merge_symbol): Take one more argument,
887 dt_needed, to indicate if the symbol comes from a DT_NEEDED
888 entry. Don't overide the existing weak definition if dt_needed
889 is true.
890 (elf_link_add_object_symbols): Pass dt_needed to
891 elf_merge_symbol ().
892
893 2000-07-27 Nick Clifton <nickc@cygnus.com>
894
895 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
896 allocated contents.
897
898 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
899
900 * configure.host (*-*-aix*): AIX has 'long long' always.
901
902 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
903 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
904 (xcoff_write_archive_contents_big): Don't update the offset
905 of the symbol table, xcoff_write_armap will do it.
906
907 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
908
909 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
910 of dynobj for SGI_COMPAT checks.
911
912 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
913
914 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
915 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
916 * bfd-in2.h: Regenerate.
917
918 2000-07-21 Nick Clifton <nickc@cygnus.com>
919
920 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
921 range symbol indices in relocs and issue an error message.
922
923 2000-07-20 H.J. Lu <hjl@gnu.org>
924
925 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
926 info->new_dtags when setting DT_FLAGS_1. It will only be set
927 by the new linker options. It shouldn't break anything.
928
929 2000-07-20 H.J. Lu <hjl@gnu.org>
930
931 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
932 only if info->new_dtags is true.
933
934 2000-07-20 H.J. Lu <hjl@gnu.org>
935
936 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
937 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
938
939 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
940
941 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
942 (ALL_MACHINES_CFILES): Add cpu-cris.c.
943 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
944 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
945 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
946 * Makefile.in: Rebuild.
947 * aclocal.m4: Rebuild.
948 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
949 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
950 (bfd_cris_arch): Declare.
951 (bfd_archures_list): Add bfd_cris_arch.
952 * bfd-in2.h: Rebuild.
953 * config.bfd: (cris-*-*): New target.
954 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
955 * configure: Rebuild.
956 * elf.c (prep_headers): Add bfd_arch_cris.
957 * libbfd.h: Rebuild.
958 * libaout.h (enum machine_type): Add M_CRIS.
959 * reloc.c: Add CRIS relocations.
960 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
961 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
962 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
963 * po/POTFILES.in, po/bfd.pot: Regenerate.
964
965 2000-07-19 H.J. Lu <hjl@gnu.org>
966
967 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
968 DF_TEXTREL if DT_TEXTREL is set.
969 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
970 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
971 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
972 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
973 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
974 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
975 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
976 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
977 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
978 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
979
980 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
981 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
982 DT_RPATH is set.
983 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
984
985 2000-07-19 H.J. Lu <hjl@gnu.org>
986
987 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
988 * bfd-in2.h: Rebuild.
989
990 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
991 (elf_dt_soname): New.
992
993 * elf.c (bfd_elf_set_dt_needed_soname): New.
994
995 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
996 entry if the shared object loaded by DT_NEEDED is used to
997 resolve the reference in a regular object.
998
999 2000-07-19 H.J. Lu <hjl@gnu.org>
1000
1001 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
1002 DT_DEPAUDIT and DT_AUDIT as strings.
1003
1004 2000-07-19 Nick Clifton <nickc@cygnus.com>
1005
1006 * format.c: Fix formatting.
1007
1008 2000-07-19 H.J. Lu <hjl@gnu.org>
1009
1010 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
1011
1012 2000-07-19 H.J. Lu <hjl@gnu.org>
1013
1014 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
1015 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
1016 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
1017 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
1018 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
1019 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
1020 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
1021
1022 Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
1023
1024 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
1025 renamed functions from here...
1026 (assign_section_numbers): Use renamed functions.
1027 (prep_headers): Use renamed functions.
1028
1029 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
1030 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
1031 * bfd-in2.h: Regenerate.
1032
1033 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
1034
1035 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
1036 parenthesis in if statement.
1037
1038 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
1039
1040 Enable the support for Traditional MIPS.
1041 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
1042 return ict_none appropriately for traditional mips targets.
1043 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
1044 (STUB_MOVE): Conditionalize for traditonal mips.
1045 (STUB_LI16): Likewise.
1046 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
1047 room for RTPROC header.
1048 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
1049 the permission for the PT_DYNAMIC as read, write and execute.
1050 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
1051 for traditonal mips.
1052 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
1053 _DYNAMIC_LINKING for traditonal mips.
1054 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
1055 in case of traditonal mips.
1056 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
1057 entry is required. For a function if PLT is not required then set the
1058 corresponding hash table entry to 0.
1059 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
1060 traditonal mips.
1061 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
1062 shared object set the value to 0.
1063 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
1064 _DYNAMIC_LINKING for traditonal mips.
1065 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
1066 for traditonal mips.
1067
1068 2000-07-15 H.J. Lu <hjl@gnu.org>
1069
1070 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
1071
1072 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1073
1074 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
1075 out a structure that is BFD_IN_MEMORY.
1076
1077 2000-07-11 Alan Modra <alan@linuxcare.com.au>
1078
1079 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
1080 bfd pointer. Print section id instead of bfd pointer for local
1081 syms. Prefix addend with `+' for global syms as well as local.
1082 Correct calculation of name component lengths.
1083 (elf64_hppa_check_relocs): Update call to get_dyn_name.
1084
1085 From David Huggins-Daines <dhd@linuxcare.com>
1086 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
1087 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
1088 (elf64_hppa_modify_segment_map): Likewise.
1089
1090 Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
1091
1092 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
1093 addresses to be "naturally" sign extended. Return -1 if unknown.
1094 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
1095 * bfd-in2.h: Regenerate.
1096
1097 Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
1098
1099 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
1100 and ECOF_SIGNED_64 to list ways to extract an offset.
1101 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
1102 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
1103 Update.
1104 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
1105 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
1106
1107 Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
1108
1109 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
1110 bfd_get_start_address.
1111 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
1112 (elf_swap_ehdr_out): Ditto.
1113
1114 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
1115
1116 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
1117 compatibility with older binutils.
1118
1119 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1120
1121 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
1122 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
1123
1124 From Ryan Bradetich <rbradetich@uswest.net>
1125 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
1126 (parse_line_table): Ditto.
1127 (_bfd_dwarf1_find_nearest_line): Ditto.
1128 * syms.c (cmpindexentry): Remove extra `*' from params.
1129
1130 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
1131
1132 * elf32-mips.c (sort_dynamic_relocs): New Function.
1133 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
1134 via qsort to sort the dynamic relocations in increasing r_symndx
1135 value.
1136
1137 2000-07-09 Alan Modra <alan@linuxcare.com.au>
1138
1139 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
1140 ATTRIBUTE_UNUSED to unused args.
1141 (get_opd): Likewise.
1142 (get_plt): Likewise.
1143 (get_dlt): Likewise.
1144 (get_stub): Likewise.
1145 (elf64_hppa_adjust_dynamic_symbol): Likewise.
1146 (elf64_hppa_link_output_symbol_hook): Likewise.
1147 (elf64_hppa_check_relocs): Delete unused var.
1148 (elf64_hppa_size_dynamic_sections): Likewise.
1149 (elf64_hppa_finalize_opd): Likewise.
1150 (elf64_hppa_finalize_dynreloc): Likewise.
1151 (elf64_hppa_modify_segment_map): Likewise.
1152 (elf64_hppa_finish_dynamic_sections): Likewise.
1153
1154 * elf-hppa.h (elf_hppa_final_write_processing): Add
1155 ATTRIBUTE_UNUSED to unused args.
1156 (elf_hppa_final_link_relocate): Likewise.
1157 (elf_hppa_record_segment_addrs): Add paretheses.
1158 (elf_hppa_relocate_section): Constify dyn_name.
1159
1160 From David Huggins-Daines <dhd@linuxcare.com>
1161 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
1162 rearrange case statement so that it gets preferred to 32-bit ones.
1163
1164 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
1165 asection->id instead of address of asection structure.
1166 (elf32_hppa_size_stubs): Likewise.
1167
1168 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
1169 for .init* and .fini*.
1170
1171 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
1172 and addends used in stub names to 32 bits.
1173 (elf32_hppa_size_stubs): Likewise.
1174
1175 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
1176 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
1177 not bfd_put_64. Fix minor comment typo and formatting.
1178
1179 Changes to create multiple linker stubs, positioned immediately
1180 before the section where they are required.
1181 * elf32-hppa.c: Don't include hppa_stubs.h.
1182 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
1183 (elf32_hppa_stub_hash_table): Delete.
1184 (elf32_hppa_link_hash_entry): Delete.
1185 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
1186 stub_hash_table, and store the struct here rather than a pointer.
1187 Delete output_symbol_count. Add offset array. Change
1188 global_value to a bfd_vma.
1189 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
1190 (elf32_hppa_stub_hash_traverse): Delete.
1191 (elf32_hppa_name_of_stub): Delete.
1192 (elf32_hppa_link_hash_lookup): Delete.
1193 (elf32_hppa_link_hash_traverse): Delete.
1194 (elf32_hppa_stub_hash_table_init): Delete.
1195 (elf32_hppa_size_of_stub): Pass input section and offset rather
1196 than location and calculate location here. Don't pass name as all
1197 stubs are now the same size.
1198 (elf32_hppa_stub_hash_newfunc): Init new fields.
1199 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
1200 too.
1201 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
1202 comparing against ints. Rewrite stub handling code.
1203 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
1204 Case enums to int before comparing against ints. Remove
1205 bfd_reloc_dangerous case.
1206 (elf32_hppa_build_one_stub): Rewrite.
1207 (elf32_hppa_size_one_stub): New function.
1208 (elf32_hppa_build_stubs): Rewrite.
1209 (elf32_hppa_size_stubs): Pass in linker call-back functions.
1210 Rewrite stub-handling specific code.
1211
1212 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
1213
1214 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
1215
1216 * hppa_stubs.h: Delete.
1217 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
1218 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
1219 * Makefile.in: Regenerate.
1220
1221 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
1222 e_nlrsel.
1223
1224 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
1225
1226 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
1227 and section name for bfd_reloc_notsupported error message.
1228 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
1229 bfd_reloc_notsupported.
1230 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
1231
1232 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
1233 undefined weak symbols for all relocs.
1234 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
1235 offsets are relative to one past the delay slot.
1236 (elf32_hppa_size_stubs): Account for reloc addend when calculating
1237 branch destination. Put addend into stub name too.
1238 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
1239 adjust by 8 when deciding whether a linker stub is needed. Put
1240 addend into stub name as for above.
1241
1242 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
1243 various args and vars.
1244 (elf32_hppa_bfd_final_link_relocate): Here too.
1245 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
1246 inner block var to avoid shadowing.
1247
1248 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
1249 unsigned.
1250 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
1251 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
1252 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
1253
1254 * libhppa.h: Change practically all unsigned ints to plain ints.
1255 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
1256 prototypes.
1257
1258 From Ryan Bradetich <rbradetich@uswest.net>
1259 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
1260 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
1261 suit above.
1262 From David Huggins-Daines <dhd@linuxcare.com>
1263 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
1264 to the new OP_* ones.
1265
1266 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
1267 error exit. Bail out earlier on plabel relocs that we aren't
1268 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
1269 string, and then don't free our copy.
1270 (elf32_hppa_build_one_stub): Make insn unsigned int.
1271
1272 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
1273 available with BL, not BE and BLE.
1274
1275 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
1276 code for elf arg relocs.
1277 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
1278 argument with elf_link_hash_entry h. Handle undefined weak
1279 symbols. Move $global$ lookup from here...
1280 (elf32_hppa_relocate_section): ...to here. Return correct error
1281 message for non-handled relocs.
1282 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
1283 wrong test was -0x3ffff to +0x40000.
1284
1285 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
1286 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
1287 Handle them as such.
1288 (elf_hppa_relocate_insn): Fix a typo.
1289
1290 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
1291 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
1292 assemble_17, assemble_21): Delete.
1293 Supply defines for all 64 possible opcodes.
1294 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
1295 formats. Handle COMICLR.
1296 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
1297 -10, -16, 16, 22.
1298
1299 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
1300 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
1301 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
1302 to suit.
1303 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
1304 the local syms - did this code get deleted accidentally? Ignore
1305 undefined and undefweak syms.
1306
1307 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
1308 block. Use it instead of elf64_hppa_hash_table (info).
1309 (elf_hppa_final_link_relocate): Use hppa_info instead of
1310 elf64_hppa_hash_table (info).
1311
1312 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
1313 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
1314 (hppa_rebuild_insn): Mask immediate bits here instead.
1315 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
1316
1317 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1318
1319 * section.c (struct sec): Add id field. Tidy comment formatting.
1320 (bfd_make_section_anyway): Set id.
1321 (STD_SECTION): Init id too.
1322 Change CONST to const throughout.
1323 * archures.c (bfd_arch_info): Tidy comment.
1324 (bfd_arch_list): Change a CONST to const.
1325 * libbfd-in.h: Tidy comments and replace CONST with const.
1326 * elf-bfd.h: Likewise.
1327 * libbfd.h: Regenerate.
1328 * bfd-in2.h: Regenerate.
1329 * libcoff.h: Regenerate.
1330
1331 2000-07-07 DJ Delorie <dj@redhat.com>
1332
1333 * archive.c (_bfd_write_archive_contents): Add an informative
1334 comment.
1335
1336 2000-07-06 Kazu Hirata <kazu@hxi.com>
1337
1338 * srec.c: Fix formatting.
1339
1340 2000-06-05 DJ Delorie <dj@redhat.com>
1341
1342 * MAINTAINERS: new
1343
1344 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
1345
1346 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
1347 value of PC-relative offsets.
1348
1349 2000-07-03 Jim Wilson <wilson@cygnus.com>
1350
1351 * elf64-alpha.c (alpha_elf_size_info): New.
1352 (elf_backend_size_info): Define to alpha_elf_size_info.
1353 * elfcode.h (elf_size_info): Change hash bucket size to 4.
1354
1355 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
1356
1357 * elf32-mips.c: Include elf32-target.h again for the traditional
1358 MIPS targets.
1359
1360 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
1361
1362 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
1363 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
1364 (avr_info_to_howto_rela): Likewise.
1365 (elf32_avr_gc_mark_hook): Likewise.
1366 (elf32_avr_gc_sweep_hook): Likewise.
1367 (elf32_avr_relocate_section): Likewise.
1368
1369 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
1370
1371 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
1372 an external symbol for a non-shared, non-relocatable link.
1373
1374 2000-07-03 Nick Clifton <nickc@redhat.com>
1375
1376 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
1377 is an external symbol.
1378 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
1379 external symbol.
1380
1381 2000-07-03 Kazu Hirata <kazu@hxi.com>
1382
1383 * reloc16.c: Fix formatting.
1384
1385 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
1386
1387 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
1388 to add a new target for traditional mips i.e
1389 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
1390 * configure.in: Likewise.
1391 * configure: Rebuild.
1392 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
1393 bfd_target_vector.
1394 (bfd_elf32_tradlittlemips_vec): Likewise.
1395 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
1396 to see that elfNN_bed does not get redefined even if the target file
1397 is included twice for a chip. See elf32-mips.c.
1398
1399 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1400
1401 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1402 (CLEANFILES): Add DEPA.
1403 * Makefile.in: Regenerate.
1404
1405 2000-06-30 DJ Delorie <dj@cygnus.com>
1406
1407 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
1408 can't assume the PE header is at 0x80.
1409
1410 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
1411
1412 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
1413
1414 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
1415
1416 * go32stub.h: Update stub.
1417
1418 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1419
1420 * archures.c (bfd_mach_avr5): Define.
1421 * bfd-in2.h (bfd_mach_avr5): Define.
1422 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
1423 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
1424 (compatible): Update comment. Add missing test.
1425 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
1426 for avr2 and avr4. Simplify 8K wrap code.
1427 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
1428 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
1429
1430 2000-06-26 Kazu Hirata <kazu@hxi.com>
1431
1432 * coff-h8300.c: Fix formatting.
1433 * cpu-h8300.c: Likewise.
1434
1435 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
1436
1437 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
1438 for local symbols whose names are unknown.
1439
1440 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1441
1442 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1443 find one.
1444 * Makefile.in: Regenerate.
1445 * doc/Makefile.in: Regenerate.
1446
1447 2000-06-20 H.J. Lu <hjl@gnu.org>
1448
1449 * Makefile.am: Rebuild dependency.
1450 * Makefile.in: Rebuild.
1451
1452 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1453
1454 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
1455 (elf_backend_copy_indirect_symbol): Map to the new function.
1456
1457 2000-06-20 Alan Modra <alan@linuxcare.com.au>
1458
1459 * archive.c (normalize): Correct pointer comparison when checking
1460 for backslashes.
1461 (bfd_bsd_truncate_arname): Likewise.
1462 (bfd_gnu_truncate_arname): Likewise.
1463
1464 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
1465
1466 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
1467 sections elf_{text,data}_{section,symbol}.
1468 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
1469 (_bfd_mips_elf_hide_symbol): New function.
1470 (elf_backend_hide_symbol): Map to the new function.
1471 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
1472 definitions of mips_elf_{text,data}_{section,symbol}.
1473 (mips_elf_local_relocation_p): Try to find the direct symbol
1474 based on new check_forced argument.
1475 (mips_elf_calculate_relocation): Use new version of
1476 mips_elf_local_relocation_p.
1477 (mips_elf_relocate_section): Likewise.
1478 (_bfd_mips_elf_relocate_section): Likewise.
1479 (mips_elf_sort_hash_table): Only assert that have enough GOT
1480 space.
1481 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
1482 entry if the relocation based on the new external argument.
1483 (mips_elf_create_dynamic_relocation): Assert that we have a
1484 section contents allocated where we can swap out the dynamic
1485 relocations.
1486 (mips_elf_calculate_relocation): Find the real hash-table entry
1487 correctly by using h->root.root.type. Only create a dynamic
1488 relocation entry if the symbol is defined in a shared library.
1489 Create an external GOT entry for the GOT16 relocation if the
1490 symbol was forced local.
1491 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
1492 dynamic index if the symbol was forced local.
1493
1494 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1495
1496 * elf32-mips.c: Fix typos in comments.
1497
1498 2000-06-19 Mark Kettenis <kettenis@gnu.org>
1499
1500 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
1501 CORE_VERSION_1.
1502
1503 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1504
1505 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
1506 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
1507 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
1508 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
1509 (bfd_elf32_m68hc11_vec): Likewise.
1510 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
1511 Supports 68hc11 & 68hc12 at the same time.
1512 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
1513 bfd_target_vector.
1514 (bfd_elf32_m68hc11_vec): Likewise.
1515 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
1516 * archures.c (bfd_m68hc12_arch): Define and register in global list
1517 (bfd_m68hc11_arch): Likewise.
1518 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
1519 BFD_RELOC_M68HC11_3B): Define.
1520 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
1521 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
1522
1523 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
1524
1525 * elf_bfd.h (struct elf_backend_data): Add info argument to
1526 elf_backend_hide_symbol.
1527 (_bfd_elf_link_hash_hide_symbol): Likewise.
1528 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
1529 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
1530 * elflink.h (elf_link_add_object_symbols): Likewise.
1531 (elf_link_assign_sym_version): Likewise.
1532
1533 2000-06-18 H.J. Lu <hjl@gnu.org>
1534
1535 * coff-i386.c (coff_i386_reloc): Don't return in case of
1536 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
1537 Compensate PE relocations when linking with non-PE object
1538 files to generate a non-PE executable.
1539
1540 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
1541
1542 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
1543 GOT entries if we're doing a static link or -Bsymbolic link.
1544
1545 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
1546
1547 * elflink.h (elf_link_adjust_relocs): Check for and call backend
1548 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
1549 available.
1550 (elf_link_output_relocs): Likewise.
1551 (elf_reloc_link_order): Likewise.
1552
1553 2000-06-16 Nicholas Duffek <nsd@redhat.com>
1554
1555 * archures.c (enum bfd_architecture): #define constants for
1556 PowerPc and RS6000 machine numbers.
1557 * bfd-in2.h: Regenerate.
1558 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
1559 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
1560 and RS6000 machine numbers using #defined constants from
1561 archures.c.
1562 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
1563 machine numbers using #defined constants from archures.c. Add
1564 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
1565 64-bit words in 620 entry.
1566 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
1567 RSC, and RS2.
1568 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
1569
1570 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
1571
1572 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
1573 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
1574 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
1575
1576 2000-06-16 Nicholas Duffek <nsd@redhat.com>
1577
1578 * bfd-in.h (bfd_family_coff): Define.
1579 * bfd-in2.h: Regenerate.
1580 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
1581 coff_find_nearest_line): Check COFFness using bfd_family_coff()
1582 instead of bfd_target_coff_flavour.
1583 * cofflink.c (_bfd_coff_final_link): Likewise.
1584 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
1585 exclude XCOFF files.
1586 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
1587 Likewise.
1588 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
1589 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
1590 * xcofflink.c (XCOFF_XVECP): Delete.
1591 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
1592 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
1593 bfd_xcoff_record_link_assignment,
1594 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
1595 check for bfd_target_xcoff_flavour.
1596
1597 2000-06-16 Nicholas Duffek <nsd@redhat.com>
1598
1599 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
1600 files on AIX 4.3.
1601 (read_hdr): New function.
1602 (rs6000coff_core_p): Store mstsave or __context64 struct instead
1603 of trying to extract individual registers. Set abfd->arch_info
1604 to match the architecture that created the core file.
1605 (rs6000coff_get_section_contents): Delete.
1606 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
1607
1608 2000-06-14 H.J. Lu <hjl@gnu.org>
1609
1610 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
1611 is NULL.
1612
1613 2000-06-13 H.J. Lu <hjl@gnu.org>
1614
1615 * configure: Regenerate.
1616
1617 Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1618
1619 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
1620 armpei_little_vec.
1621
1622 2000-06-08 David O'Brien <obrien@FreeBSD.org>
1623
1624 * configure.in (VERSION): Update to show this is the CVS mainline.
1625
1626 2000-06-07 Alan Modra <alan@linuxcare.com.au>
1627
1628 * elf32-d10v.c: Include elf/d10v.h
1629 (enum reloc_type): Delete.
1630 * elf32-d30v.c: Include elf/d30v.h
1631 (enum reloc_type): Delete.
1632
1633 * Makefile.am: Run "make dep-am" to regenerate dependencies.
1634 * Makefile.in: Regenerate.
1635
1636 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
1637 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
1638 move HOWTOs into elf_howto_table.
1639 (R_386_standard, R_386_ext_offset): Define.
1640 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
1641 (elf_i386_reloc_type_lookup): Modify calculation of index into
1642 elf_howto_table since we've removed the padding.
1643 (elf_i386_info_to_howto_rel): Likewise.
1644 (elf_i386_relocate_section): Likewise.
1645
1646 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
1647
1648 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
1649
1650 2000-06-05 H.J. Lu <hjl@gnu.org>
1651
1652 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
1653 an error when seeing an undefined symbol with hidden/internal
1654 attribute. It is handled in *_relocate_section ().
1655
1656 2000-06-05 H.J. Lu <hjl@gnu.org>
1657
1658 * elflink.h (elf_fix_symbol_flags): Follow the link for the
1659 indirect symbol for the ELF_LINK_NON_ELF bit.
1660 (elf_link_output_extsym): Don't output the indirect symbol even
1661 if the ELF_LINK_NON_ELF bit is set.
1662
1663 2000-06-01 J.T. Conklin <jtc@redback.com>
1664
1665 * config.bfd (i[3456]86-*-netbsdelf*): New target.
1666 (i[3456]86-*-netbsdaout*): New target.
1667 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
1668 (i[3456]86-*-openbsd*): Likewise.
1669
1670 Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
1671
1672 * trad-core.c: From hpux-core.c, include <dirent.h> or
1673 <sys/ndir.h> when possible.
1674
1675 2000-05-31 Nick Clifton <nickc@cygnus.com>
1676
1677 * opintl.h (_(String)): Explain why dgettext is used instead
1678 of gettext.
1679
1680 2000-05-31 Ulrich Drepper <drepper@redhat.com>
1681
1682 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
1683 definitions. We must not assume they are sorted in the file
1684 according to their index numbers.
1685
1686 2000-05-31 Alan Modra <alan@linuxcare.com.au>
1687
1688 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
1689 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
1690 R_PARISC_DIR17F are for absolute branches; Handle them as such.
1691
1692 2000-05-30 Nick Clifton <nickc@cygnus.com>
1693
1694 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
1695 80960CA, 80960MC as valid machine names.
1696
1697 2000-05-30 H.J. Lu <hjl@gnu.org>
1698
1699 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
1700 visibility bits if the symbol is undefined. Correctly handle
1701 weak undefined symbols with hidden and internal attributes.
1702
1703 * elflink.h (elf_link_add_object_symbols): Always turn the
1704 symbol into local if it has the hidden or internal attribute.
1705
1706 2000-05-29 Philip Blundell <philb@gnu.org>
1707
1708 * ppcboot.c: Add packed attribute if compiling with GCC.
1709
1710 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
1711
1712 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
1713
1714 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
1715
1716 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
1717 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
1718 corefile on a 64-bit (Sparc Solaris) host. Also clean up
1719 a few old comments.
1720
1721 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1722
1723 * Makefile.am: Update dependencies with "make dep-am"
1724 * Makefile.in: Regenerate.
1725
1726 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
1727 bindtextdomain): Replace defines with those from intl/libgettext.h
1728 to quieten gcc warnings.
1729
1730 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1731
1732 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
1733
1734 * archive.c (normalize, bfd_bsd_truncate_arname,
1735 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
1736 file names with backslashes.
1737
1738 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
1739 before opening it.
1740
1741 * sysdep.h: Include filenames.h.
1742
1743 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1744
1745 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
1746
1747 2000-05-26 Jakub Jelinek <jakub@redhat.com>
1748
1749 * elf64-sparc.c (sparc64_elf_relax_section): New.
1750 (sparc64_elf_relocate_section): Optimize tail call into branch always
1751 if possible.
1752 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1753 (elf32_sparc_relax_section): New.
1754
1755 2000-05-26 Jakub Jelinek <jakub@redhat.com>
1756
1757 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
1758 Remove unusued variables.
1759 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
1760 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
1761 previous fix, so that shared libs really don't influence targets
1762 extension mask and memory model.
1763
1764 2000-05-23 H.J. Lu <hjl@gnu.org>
1765
1766 * elf64-alpha.c (elf64_alpha_relocate_section): Check
1767 h->root.other not h->other.
1768 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1769
1770 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
1771
1772 2000-05-23 H.J. Lu <hjl@gnu.org>
1773
1774 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
1775 undefined symbol with the non-default visibility attributes.
1776 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
1777 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
1778 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1779 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1780 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1781 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1782 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1783 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1784 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1785 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
1786 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1787
1788 2000-05-22 Richard Henderson <rth@cygnus.com>
1789
1790 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
1791 PCREL22, PCREL64I. Zero size of special relocs.
1792 (elf64_ia64_reloc_type_lookup): Likewise.
1793 (USE_BRL, oor_brl, oor_ip): New.
1794 (elf64_ia64_relax_section): New.
1795 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
1796 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
1797 (elf64_ia64_relocate_section): Likewise.
1798 (bfd_elf64_bfd_relax_section): New.
1799 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
1800 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
1801 * bfd-in2.h, libbfd.h: Regenerate.
1802
1803 2000-05-22 Nick Clifton <nickc@cygnus.com>
1804
1805 * configure.in : Add peigen.lo to MIPS PE targets.
1806 * configure: Regenerate.
1807
1808 2000-05-22 Momchil Velikov <velco@fadata.bg>
1809
1810 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
1811 only if it is known for both input and output bfds. Separate
1812 error message strings as in some languages, it may be necessary
1813 to change more than one place in the string to change between
1814 'big' and 'little'.
1815
1816 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
1817 endianess checks, call _bfd_generic_verify_endian_match() instead.
1818
1819 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
1820
1821 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
1822
1823 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
1824 endianess before checking bfd flavours.
1825
1826 2000-05-22 H.J. Lu <hjl@gnu.org>
1827
1828 * elflink.h (elf_link_output_extsym): Clear the visibility
1829 field for symbols not defined locally.
1830
1831 2000-05-18 Alan Modra <alan@linuxcare.com.au>
1832
1833 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
1834 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
1835 (hppa_rebuild_insn): Mask immediate bits here instead.
1836 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
1837
1838 2000-05-18 Momchil Velikov <velco@fadata.bg>
1839
1840 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
1841 relocs for an executable, ensure that they are virtual addresses.
1842
1843 Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
1844
1845 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
1846
1847 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1848 Rick Gorton <gorton@scrugs.lkg.dec.com>
1849
1850 * elflink.h: Add emitrelocations support: when enabled, relocation
1851 information and relocation sections are put into final output
1852 executables. If the emitrelocations flag is set, do the following:
1853 (elf_bfd_final_link): Emit relocation sections.
1854 (elf_link_input_bfd): Compute relocation section contents.
1855 (elf_gc_sections): Don't clean relocation sections.
1856
1857 2000-05-16 Catherine Moore <clm@cygnus.com>
1858
1859 * som.c (som_decode_symclass): Recognize weak symbols.
1860
1861 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
1862
1863 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
1864 read idata section only from dataoff.
1865 (pe_print_edata): Correctly check for valid eat_member.
1866
1867 Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1868
1869 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
1870
1871 2000-05-14 Philip Blundell <philb@gnu.org>
1872
1873 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
1874
1875 2000-05-12 Alan Modra <alan@linuxcare.com.au>
1876
1877 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
1878
1879 * peigen.c (pe_print_idata): Look for .idata section and print
1880 info even if data directory has zero entries. Read idata section
1881 starting from dataoff, and adjust all data offsets to suit. Cast
1882 all bfd_vma vars to unsigned long before passing to fprintf.
1883 * peigen.c (pe_print_edata): Similarly, look for .edata section
1884 and print info even if data directory has zero entries. Cast
1885 all bfd_vma vars to unsigned long before passing to fprintf.
1886
1887 From Szabolcs Szakacsits <szaka@F-Secure.com>
1888 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
1889 directory size which may be bogus.
1890 * peigen.c (pe_print_edata): Similarly.
1891
1892 2000-05-09 Alan Modra <alan@linuxcare.com.au>
1893
1894 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
1895 section is empty.
1896 (copy_private_bfd_data): Allow for space possibly taken up by elf
1897 headers when calculating segment physical address from lma.
1898
1899 2000-05-08 Alan Modra <alan@linuxcare.com.au>
1900
1901 * versados.c (versados_scan): Init stringlen and pass_2_done.
1902
1903 * trad-core.c (trad_unix_core_file_p): Return
1904 bfd_error_wrong_format rather than bfd_error_file_truncated.
1905
1906 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
1907 add_data_entry. DataDirectory virtual address is relative.
1908 (pe_print_idata): Account for relative DataDirectory virtual
1909 addresses. Don't trash datasize inside POWERPC_LE_PE code.
1910 (pe_print_edata): Similarly.
1911
1912 From Szabolcs Szakacsits <szaka@F-Secure.com>
1913 * peigen.c (dir_names): Add Delay Import Directory.
1914 (pe_print_idata): Always search for bfd section containing
1915 idata address rather than looking up section name. Print this
1916 section name rather than .idata.
1917 (pe_print_edata): Similarly. Also print some fields as %08lx.
1918 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
1919 Win32Version.
1920
1921 Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
1922
1923 * xcoff.h: Rename to xcoff-target.h
1924 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
1925 * coff-rs6000.c: Ditto.
1926 * coff64-rs6000.c: Ditto.
1927 * coff-pmac.c: Ditto.
1928 * Makefile.in: Regenerate.
1929
1930 Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
1931
1932 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
1933 Change U802TOC64MAGIC to U803XTOCMAGIC.
1934
1935 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
1936
1937 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
1938 * bfd-in.h: Prototype bfd_elf_get_arch_size.
1939 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
1940
1941 2000-05-04 Alan Modra <alan@linuxcare.com.au>
1942
1943 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
1944
1945 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1946
1947 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
1948 hidden and internal symbols.
1949 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
1950 visibility.
1951 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
1952 assign a PLT or GOT entry to symbols with hidden and
1953 internal visibility.
1954
1955 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
1956
1957 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
1958 the .bss section.
1959 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1960
1961 2000-05-02 H.J. Lu <hjl@gnu.org>
1962
1963 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
1964 ELFOSABI_SYSV.
1965
1966 2000-05-02 Alan Modra <alan@linuxcare.com.au>
1967
1968 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
1969 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
1970 dependencies.
1971 * Makefile.in: Regenerate.
1972
1973 Mon May 1 16:56:47 2000 Jim Wilson <wilson@cygnus.com>
1974
1975 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
1976 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
1977 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
1978 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
1979 * Makefile.in: Rebuild.
1980
1981 2000-05-02 Alan Modra <alan@linuxcare.com.au>
1982
1983 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
1984 doesn't work very well.
1985
1986 * elf-hppa.h (elf_hppa_internal_shdr): Define.
1987 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
1988 Set hdr->s_type to 1 if ARCH_SIZE == 32.
1989 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
1990 (elf_hppa_info_to_howto): Likewise.
1991 (elf_hppa_info_to_howto_rel): Likewise.
1992 (elf_hppa_reloc_type_lookup): Likewise.
1993 (elf_hppa_is_local_label_name): Likewise.
1994 (elf_hppa_fake_sections): Likewise.
1995 (elf_hppa_final_write_processing): Likewise.
1996 (elf_hppa_howto_table): Fully initialise all entries.
1997 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
1998 (elf_hppa_info_to_howto): Likewise.
1999 (elf_hppa_info_to_howto_rel): Likewise.
2000 (elf_hppa_reloc_type_lookup): Likewise.
2001 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
2002 elf_hppa_unmark_useless_dynamic_symbols,
2003 elf_hppa_remark_useless_dynamic_symbols,
2004 elf_hppa_record_segment_addrs, elf_hppa_final_link,
2005 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
2006 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
2007 elf32-hppa.c mess is cleaned up.
2008 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
2009 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
2010 r_field then call hppa_field_adjust inline func with variable
2011 r_field arg, instead call hppa_field_adjust with fixed arg.
2012 In case R_PARISC_PCREL22F, don't set r_field.
2013 (elf_hppa_relocate_insn): Change args and return type to unsigned
2014 int. Call re_assemble_* funcs to do the work.
2015
2016 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
2017 sign extending.
2018
2019 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
2020 extending.
2021 (sign_extend): Mask first before sign extending.
2022 (low_sign_extend): Rewrite without condition expression.
2023 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
2024 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
2025 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2026 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
2027 result as function return value rather than through pointer arg.
2028 Accept unsigned int args, and return unsigned int.
2029 (re_assemble_3): New. Combines function of dis_assemble_3 with
2030 re-assembly of opcode and immediate.
2031 (re_assemble_12): Likewise.
2032 (re_assemble_16): Likewise.
2033 (re_assemble_17): Likewise.
2034 (re_assemble_21): Likewise.
2035 (re_assemble_22): Likewise.
2036 (hppa_field_adjust): Rewrite and document, paying attention to
2037 size of types and signed/unsigned issues.
2038 (get_opcode): Shift before masking.
2039 (FDLW): Rename to FLDW.
2040 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
2041 (hppa_rebuild_insn): Change args and return value to unsigned
2042 int. Make use of re_assemble_*. Correct case 11.
2043
2044 * dep-in.sed: Handle ../opcodes/.
2045 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
2046 elf64-hppa.h, hppa_stubs.h, xcoff.h.
2047 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
2048 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
2049 elfarm-nabi.lo dependencies outside of auto-dependency area.
2050 Regenerate dependencies.
2051 * Makefile.in: Regenerate.
2052
2053 * configure.in (TRAD_HEADER): Test non-null before
2054 AC_DEFINE_UNQUOTED.
2055 * configure: Regenerate.
2056
2057 * reloc.c: Fix mis-spelling in comment.
2058
2059 2000-05-01 Alan Modra <alan@linuxcare.com.au>
2060
2061 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
2062 * vms.c (vms_openr_next_archived_file): Return NULL.
2063
2064 Fri Apr 28 21:34:44 2000 Clinton Popetz <cpopetz@cygnus.com>
2065
2066 * coffcode.h Copy changes mistakenly done to libcoff.h in
2067 4/24/2000 patch.
2068
2069 2000-04-29 Andreas Jaeger <aj@suse.de>
2070
2071 * libbfd-in.h: Correctly check GCC version.
2072 * bfd-in.h: Likewise.
2073 * libhppa.h: Likewise.
2074 * libbfd.h: Regenerate.
2075 * bfd-in2.h: Regenerate.
2076
2077 Fri Apr 28 14:58:37 2000 Clinton Popetz <cpopetz@cygnus.com>
2078
2079 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
2080 coffdu-rs6000.{lo,c}.
2081 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
2082 on xcoff.h
2083 * Makefile.in: Regenerate.
2084 * xcoff.h: New file.
2085 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
2086 * coff-rs6000.c: Move all declarations and defines that are
2087 common to the xcoff backends into xcoff.h
2088 * coff64-rs6000.c: Ditto,
2089
2090 Fri Apr 28 08:35:21 2000 Clinton Popetz <cpopetz@cygnus.com>
2091
2092 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
2093 _bfd_coff_force_symnames in strings and
2094 _bfd_coff_debug_string_prefix_length to their default values.
2095 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
2096
2097 Fri Apr 28 08:05:12 2000 Clinton Popetz <cpopetz@cygnus.com>
2098
2099 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
2100 _bfd_coff_force_symnames in strings and
2101 _bfd_coff_debug_string_prefix_length to their default values.
2102
2103 2000-04-27 Alan Modra <alan@linuxcare.com.au>
2104
2105 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
2106 Check local_got_refcounts before dereferencing.
2107
2108 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
2109 before deciding we don't need R_PPC_PLT32 relocation.
2110 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
2111 dereferencing.
2112
2113 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
2114
2115 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
2116 .plt entries.
2117 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
2118 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
2119 (elf_i386_relocate_section): Allow for .plt to go missing.
2120 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
2121 can use a relative reloc for got as elf_i386_relocate_section.
2122 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
2123
2124 Wed Apr 26 16:31:28 2000 Clinton Popetz <cpopetz@cygnus.com>
2125
2126 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
2127
2128 Mon Apr 24 15:20:35 2000 Clinton Popetz <cpopetz@cygnus.com>
2129
2130 * Makefile.am (coff64-rs6000.lo): New rule.
2131 * Makefile.in: Regenerate.
2132 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
2133 xcoff_is_local_label_name, xcoff_rtype2howto,
2134 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
2135 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
2136 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
2137 (NO_COFF_SYMBOLS): Define.
2138 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
2139 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
2140 internally.
2141 (MINUS_ONE): New macro.
2142 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
2143 relocation.
2144 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
2145 coff_SWAP_aux_out): Map to the new functions.
2146 * coff64-rs6000.c: New file.
2147 * libcoff.h (bfd_coff_backend_data): Add new fields
2148 _bfd_coff_force_symnames_in_strings and
2149 _bfd_coff_debug_string_prefix_length.
2150 (bfd_coff_force_symnames_in_strings,
2151 bfd_coff_debug_string_prefix_length): New macros for above fields.
2152 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
2153 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
2154 of using coff_swap_sym_in directly.
2155 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
2156 (coff_set_flags) Set magic for XCOFF64.
2157 (coff_compute_section_file_positions): Add symbol name length to
2158 string section length if bfd_coff_debug_string_prefix_length is
2159 true.
2160 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
2161 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
2162 using coff_swap_lineno_in directly.
2163 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
2164 and _bfd_coff_debug_string_prefix_length fields.
2165 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
2166 symbol names into strings table when
2167 bfd_coff_force_symnames_in_strings is true.
2168 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
2169 SET_RELOC_VADDR): New macros.
2170 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
2171 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
2172 code.
2173 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
2174 changes within RS6000COFF_C specific code.
2175 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
2176 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
2177 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2178 Extend existing hack on target name.
2179 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
2180 target name.
2181 * coff-tic54x.c (ticof): Keep up to date with new fields
2182 in bfd_coff_backend_data.
2183 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
2184 targ_selvecs to include rs6000coff64_vec for rs6000.
2185 * configure.in: Add rs6000coff64_vec case.
2186 * cpu-powerpc.c: New bfd_arch_info_type.
2187
2188 Mon Apr 24 02:17:31 2000 Jeffrey A Law (law@cygnus.com)
2189
2190 * config.bfd: Only disable elf32-hppa vectors, not all of the
2191 BSD and OSF configuration support. Provide (disabled) clauses
2192 for PA64 support.
2193 * configure.in: Add clause for PA64 support.
2194 * configure: Rebuilt.
2195
2196 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
2197 (bfd_elf64_hppa_vec): Declare.
2198
2199 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
2200 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
2201 (elf64-hppa.lo): Add dependencies.
2202 * Makefile.in: Rebuilt.
2203
2204 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
2205
2206 Mon Apr 24 02:14:29 2000 Jason Eckhardt <jle@cygnus.com>
2207
2208 * libhppa.h (dis_assemble_16): New function.
2209 (pa_arch): Added pa20w element.
2210
2211 Mon Apr 24 01:49:03 2000 Ulrich Drepper <drepper@cygnus.com>
2212
2213 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
2214 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
2215 bfd_elf64_slurp_reloc_table.
2216
2217 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
2218 definitions to get external names.
2219 (elf_write_relocs): Renamed from write_relocs and make global.
2220 (elf_slurp_reloc_table): Make global.
2221 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
2222
2223 * archive.c (hpux_uid_gid_encode): New function.
2224 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
2225 defined and the ID is greater than 99999.
2226 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
2227 special uid/gid fields into 32 bit values.
2228
2229 2000-04-21 Matthew Green <mrg@cygnus.com>
2230
2231 * config.bfd: Add NetBSD/sparc64 support.
2232
2233 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2234 David Mosberger <davidm@hpl.hp.com>
2235 Timothy Wall <twall@cygnus.com>
2236 Jim Wilson <wilson@cygnus.com>
2237
2238 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
2239 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
2240 (BFD64_BACKENDS): Add elf64-ia64.lo.
2241 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
2242 (cpu-ia64.lo, elf64-ia64.lo): New rules.
2243 * Makefile.in: Rebuild.
2244 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
2245 (bfd_ia64_arch): Declare.
2246 (bfd_archures_list): Add bfd_ia64_arch.
2247 * bfd-in2.h: Rebuild.
2248 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
2249 * configure: Rebuild.
2250 * configure.host: (ia64-*-linux*): New host.
2251 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
2252 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
2253 * elf.c (prep_headers): Add bfd_arch_ia64.
2254 * libbfd.h: Rebuild.
2255 * reloc.c: Add IA-64 relocations.
2256 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
2257 Declare.
2258 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
2259 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
2260
2261 2000-04-21 Richard Henderson <rth@cygnus.com>
2262
2263 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
2264 contents when performing a partial link.
2265 (bfd_elf_d30v_reloc_21): Likewise.
2266
2267 2000-04-20 H.J. Lu <hjl@gnu.org>
2268
2269 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
2270 patch to symbols defined by a shared object.
2271 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
2272
2273 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2274
2275 K&R compiler fixes.
2276 * dwarf2.c (concat_filename): Avoid string literal concatenation.
2277 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
2278
2279 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
2280
2281 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
2282 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
2283 (coff-ia64.lo): Add dependency.
2284 * Makefile.in: Regenerate.
2285 * coff-ia64.c: New file.
2286 * efi-app-ia32.c: Ditto.
2287 * efi-app-ia64.c: Ditto.
2288 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
2289 (coff_set_flags): Ditto.
2290 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
2291 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
2292 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
2293 * configure: Regenerate.
2294 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
2295 (PUT_OPTHDR_IMAGE_BASE): Ditto.
2296 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
2297 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
2298 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
2299 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
2300 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
2301 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
2302 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
2303 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
2304 (GET_PDATA_ENTRY): Ditto.
2305 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
2306 data_start. Use above macros to read fields that are 64 bit wide for
2307 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
2308 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
2309 FileAlignment and SectionAlignment to minimum alignment if they
2310 are zero.
2311 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
2312 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
2313 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
2314 Use above macros to write fields that are 64 bit wide for
2315 COFF_WITH_PEP64.
2316 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
2317 5*4 otherwise. This should be right for IA-32 and IA-64, but may
2318 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
2319 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
2320 begin address, end address, and unwind info address only. Use
2321 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
2322 print addresses.
2323 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
2324 HIGH3ADJ relocation names.
2325 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
2326 * targets.c: Declare bfd_efi_app_ia32_vec and
2327 bfd_efi_app_ia64_vec.
2328 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
2329 bfd_efi_app_ia64_vec.
2330
2331 2000-04-17 Timothy Wall <twall@cygnus.com>
2332
2333 * bfd-in2.h: Add prototypes for tic54x load page access.
2334 * bfd-in.h: Regenerate.
2335 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
2336 in customized _set_arch_mach function.
2337 * coffcode.h (coff_set_alignment_hook): Set section load page if
2338 the appropriate macro is defined.
2339 (write_object_contents): Read section load page.
2340
2341 2000-04-13 Alan Modra <alan@linuxcare.com.au>
2342
2343 * elf32-hppa.h: Update copyright date.
2344
2345 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
2346 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
2347
2348 * elf32-d30v.c (MAX32): Don't use LL suffix.
2349 (MIN32): Define in terms of MAX32.
2350 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
2351
2352 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
2353 expression.
2354
2355 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
2356
2357 2000-04-12 Alan Modra <alan@linuxcare.com.au>
2358
2359 * dep-in.sed: Match space before file name, not after.
2360 * Makefile.am: Regenerate dependencies.
2361 * Makefile.in: Regenerate.
2362
2363 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
2364 case, allow address wrap-around stupidly removed 2000-03-17. Sign
2365 extend without an if statement.
2366
2367 2000-04-11 Alan Modra <alan@linuxcare.com.au>
2368
2369 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
2370 signed quantites.
2371 * elf32-mips.c (gprel16_with_gp): Likewise.
2372 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
2373 here using -0x40000, not (int)0xfffc0000.
2374 (elf32_hppa_size_of_stub): Likewise.
2375
2376 2000-04-11 Timothy Wall <twall@cygnus.com>
2377
2378 * coff-tic54x.c: Now builds with all targets.
2379 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
2380 * Makefile.in: Regenerate.
2381 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
2382 unitialized variable.
2383
2384 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
2385
2386 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
2387 --enable-build-warnings option.
2388 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2389 * Makefile.in, configure: Re-generate.
2390
2391 2000-04-07 Nick Clifton <nickc@cygnus.com>
2392
2393 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
2394 BFD_RELOC_THUMB_PCREL_BLX.
2395
2396 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
2397 R_ARM_XPC25 and R_ARM_THM_PC22.
2398
2399 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
2400 R_ARM_XPC25 and R_ARM_THM_XPC22.
2401 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
2402 R_ARM_[XPC25|THM_XPC22].
2403
2404 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
2405 elf/arm-oabi.h to elf/arm.h
2406
2407 * Makefile.am: Fix dependency for elfarm-oabi.c
2408 * Makefile.in: Regenerate.
2409
2410 * bfd-in2.h: Regenerate.
2411 * libbfd.h: Regenerate.
2412
2413 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
2414
2415 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
2416 and restore it on failure. Release newly allocated tdata on
2417 failure.
2418
2419 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
2420
2421 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
2422 (decode_line_info): Set it. Report error if unit->line_offset is
2423 equal to or larger than it.
2424
2425 2000-04-07 Timothy Wall <twall@cygnus.com>
2426
2427 * targets.c: Added vecs for tic54x.
2428 * reloc.c: Added relocs for tic54x.
2429 * libbfd.h: Regenerated.
2430 * configure: Add TI COFF vecs for tic54x.
2431 * configure.in: Ditto.
2432 * config.bfd (targ_cpu): Recognize new tic54x target.
2433 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
2434 * bfd-in2.h: Add tic54x target and relocations.
2435 * Makefile.am, Makefile.in: Add tic54x target.
2436 * archures.c (bfd_archures_list): Add tic54x target.
2437 * coff-tic54x.c: New.
2438 * cpu-tic54x.c: New.
2439
2440 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
2441
2442 * elfcore.h (elf_core_file_p): call backend_object_p which
2443 thereby gets an opportunity to update the arch/machine type.
2444
2445 2000-04-06 Timothy Wall <twall@cygnus.com>
2446
2447 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
2448 class. Handle SEC_CLINK and SEC_BLOCK flags.
2449 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
2450 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
2451
2452 2000-04-06 Nick Clifton <nickc@cygnus.com>
2453
2454 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
2455 EF_INTERWORK if this is an unknown EABI.
2456 (elf32_arm_merge_private_bfd_data): Check EABI version
2457 numbers. Only check EF_xxx flags if the EABI version number
2458 is unknown.
2459 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
2460 if the EABI version number is unknown.
2461 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
2462 if the EABI version number is unknown.
2463
2464 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2465
2466 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
2467 BFD_RELOC_SH_LOOP_END.
2468 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
2469 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
2470 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
2471 (sh_elf_reloc_loop): New function.
2472 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
2473 any more.
2474 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
2475 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
2476 * bfd-in2.h, libbfd.h: Regenerate.
2477
2478 2000-04-04 Alan Modra <alan@linuxcare.com.au>
2479
2480 * po/bfd.pot: Regenerate.
2481
2482 * Makefile.am: Remove extraneous mkdep comment.
2483 (MKDEP): Use gcc -MM rather than mkdep.
2484 (DEP): Quote when passing vars to sub-make. Add warning
2485 message to end.
2486 (DEP1): Rewrite for "gcc -MM".
2487 (CLEANFILES): Add DEP2.
2488 Update dependencies.
2489 * Makefile.in: Regenerate.
2490
2491 2000-04-03 Kevin Buettner <kevinb@redhat.com>
2492
2493 * configure.in: Added corefile support for AIX 4.3. In particular,
2494 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
2495 compiling rs6000-core.c.
2496 * configure: Regenerated.
2497
2498 2000-04-03 H.J. Lu <hjl@gnu.org>
2499
2500 * cache.c (bfd_open_file): Unlink the output file only if
2501 it has non-zero size.
2502
2503 2000-04-01 Ken Block USG <block@zk3.dec.com>
2504
2505 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
2506 relative relocations for non-loaded sections in shared objects.
2507 (elf64_alpha_check_relocs): Similarly.
2508
2509 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
2510
2511 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
2512 BFD_RELOC_16 to switch for extended relocs.
2513 (MY_swap_ext_reloc_in): New.
2514 (MY_swap_ext_reloc_out): New.
2515 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
2516 than NAME(aout,swap_ext_reloc_in) for extended relocs.
2517 (NAME(aout,squirt_out_relocs)): Similarly use
2518 MY_swap_ext_reloc_out.
2519 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
2520
2521 2000-04-03 Kazu Hirata <kazu@hxi.com>
2522
2523 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
2524 the R_PCRWORD_B case.
2525
2526 2000-03-31 Thomas de Lellis <tdel@wrs.com>
2527
2528 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
2529 on some targets.
2530 * ihex.c : Ditto.
2531
2532 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
2533
2534 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
2535 HOWTO references to bfd_elf_generic_reloc, that have
2536 partial_inplace == true, now use the new function. The function
2537 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
2538 extends its fixes to the R_M32R_{16,24,32} relocs.
2539 The new logic in m32r_elf_lo16_reloc() has been removed, and
2540 it instead calls the new routine to obtain that functionality.
2541
2542 2000-03-27 Alan Modra <alan@linuxcare.com.au>
2543
2544 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
2545 elf32_avr_check_relocs, avr_final_link_relocate,
2546 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
2547 elf32_avr_object_p): Add prototypes.
2548 (elf32_avr_gc_mark_hook): Add default for h->root.type.
2549 (bfd_elf_avr_final_write_processing): Make static.
2550
2551 2000-03-27 Denis Chertykov <denisc@overta.ru>
2552
2553 * cpu-avr.c: New file. BFD support routines for AVR architecture.
2554 * archures.c (bfd_architecture): Add AVR architecture.
2555 (bfd_archures_list): Add reference to AVR architecture info.
2556 * elf.c (prep_headers): Handle bfd_arch_avr.
2557 * reloc.c: Add various AVR relocation enums.
2558 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
2559 list.
2560 * Makefile.am: Add support for AVR elf.
2561 * configure.in: Likewise.
2562 * config.bfd: Likewise.
2563 * Makefile.in: Regenerate.
2564 * configure: This too.
2565 * bfd-in2.h: And this.
2566 * libbfd.h: And this.
2567
2568 2000-03-24 H.J. Lu <hjl@gnu.org>
2569
2570 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
2571 (elf64_alpha_find_reloc_at_ofs): Likewise.
2572
2573 2000-03-17 Alan Modra <alan@linuxcare.com.au>
2574
2575 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
2576 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
2577 allowable range used to be -2**(n-1) to 2**n-1.
2578 * reloc.c (_bfd_relocate_contents): Same here. Also replace
2579 "boolean overflow" with "bfd_reloc_status_type flag".
2580
2581 2000-03-14 Doug Evans <dje@casey.transmeta.com>
2582
2583 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
2584
2585 2000-03-14 Kazu Hirata <kazu@hxi.com>
2586
2587 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
2588 of shrinks properly, including the last reloc.
2589
2590 2000-03-13 Kazu Hirata <kazu@hxi.com>
2591
2592 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
2593 check for R_MOVL2.
2594
2595 2000-03-11 Alan Modra <alan@linuxcare.com.au>
2596
2597 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
2598 a format mismatch rather than an "error" from bfd_read such as
2599 bfd_error_file_truncated.
2600
2601 2000-03-10 Geoff Keating <geoffk@cygnus.com>
2602
2603 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
2604 sign-extension and big-endian compensation for
2605 R_MIPS_64 even in ld -r.
2606
2607 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
2608
2609 * elf32-mips.c (mips_elf_next_relocation): Rename from
2610 mips_elf_next_lo16_relocation, and generalize to look
2611 for any relocation type.
2612 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
2613 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
2614 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
2615 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
2616 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
2617 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
2618 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
2619 (mips_rtype_to_howto): Likewise.
2620 (mips_elf_calculate_relocation): Handle new relocs.
2621 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
2622 are paired. The addend for R_MIPS_GNU_REL16_S2
2623 is shifted right two bits.
2624
2625 2000-03-10 Alan Modra <alan@linuxcare.com.au>
2626
2627 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
2628 comment, and ensure it doesn't happen again.
2629 (bfd_install_relocation): Same here.
2630 (_bfd_relocate_contents): Don't bother assigning unused signmask
2631 shift result. Fix typos in comments.
2632 Remove trailing whitespace throughout file.
2633
2634 2000-03-07 Doug Evans <dje@casey.transmeta.com>
2635
2636 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
2637 * bfd-in2.h: Rebuild.
2638
2639 2000-03-06 Nick Clifton <nickc@cygnus.com>
2640
2641 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
2642 sym_ptr_ptr fields.
2643 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
2644 (SIZEOF_ILF_STRINGS): Redefine.
2645 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
2646 relative reloc, as opposed to a section relative reloc.
2647 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
2648 not C_LABEL.
2649 Add length of symbol's prefix to string pointer.
2650 Store a pointer to the symbol in the symbol pointer table.
2651 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
2652 Initialise the symbol pointer table.
2653 Store the hint in the Hint/Name table.
2654 Make the jump reloc be symbol realtive, not section relative.
2655 Create an import symbol for imported code.
2656
2657 2000-03-06 Catherine Moore <clm@cygnus.com>
2658
2659 * elf.c (swap_out_syms): Check for null type_ptr.
2660
2661 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
2662
2663 * aout-target.h (MY(write_object_contents)): Remove unused
2664 and unusable "#if CHOOSE_RELOC_SIZE".
2665 * pc532-mach.c (MY(write_object_contents)): Ditto.
2666 * netbsd.h (MY(write_object_contents)): Ditto.
2667 * hp300hpux.c (MY(write_object_contents)): Ditto.
2668 * freebsd.h (MY(write_object_contents)): Ditto.
2669 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
2670
2671 2000-02-29 H.J. Lu <hjl@gnu.org>
2672
2673 * peicode.h (jtab): Make it static.
2674
2675 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
2676 defined and COFF_IMAGE_WITH_PE is not defined.
2677 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
2678 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
2679
2680 2000-03-01 Nick Clifton <nickc@cygnus.com>
2681
2682 * coff-arm.c (bfd_arm_process_before_allocation): Make
2683 'symndx' signed to prevent compile time warning.
2684
2685 * coff-mcore.c: Remove unused prototype for pe_object_p.
2686
2687 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
2688 functions that are not used when COFF_IMAGE_WITH_PE is
2689 defined.
2690 (struct sh_opcode): Change type of 'flags' field to unsigned
2691 long so that it can hold the USESAS flag.
2692
2693 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
2694
2695 * elf-m10300.c (mn10300_elf_relax_section): Initialise
2696 'sym_sec'.
2697
2698 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
2699 parameters.
2700 Remove unusued variables and code.
2701 (elf_backend_add_symbol_hook): Fix prototype.
2702
2703 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
2704 'srelgot'.
2705
2706 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
2707 'oldinst'.
2708
2709 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
2710 parameters.
2711 Remove unusued variables and code.
2712 (elf_backend_add_symbol_hook): Fix prototype.
2713
2714 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
2715
2716 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
2717 to unused function parameter.
2718
2719 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
2720 parameters.
2721 Use EMPTY_HOWTO to initialise empty howto slots.
2722 Remove unused variables.
2723
2724 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
2725
2726 2000-03-01 H.J. Lu <hjl@gnu.org>
2727
2728 * aoutx.h (aout_link_input_section_std): Pass "true" to
2729 the undefined_symbol callback.
2730 (aout_link_input_section_ext): Likewise.
2731 * bout.c (get_value): Likewise.
2732 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
2733 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
2734 Likewise.
2735 (alpha_relocate_section): Likewise.
2736 * coff-arm.c (coff_arm_relocate_section): Likewise.
2737 * coff-i960.c (coff_i960_relocate_section): Likewise.
2738 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
2739 * coff-mips.c (mips_relocate_section): Likewise.
2740 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
2741 * coff-sh.c (sh_relocate_section): Likewise.
2742 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
2743 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
2744 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
2745 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
2746 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
2747 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
2748 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
2749 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2750 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
2751 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2752 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2753 * elf32-v850.c (v850_elf_relocate_section): Likewise.
2754 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
2755 * elflink.h (elf_link_output_extsym): Likewise.
2756 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
2757 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
2758 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
2759
2760 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
2761 undefined_symbol callback when building shared library with
2762 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
2763 "true".
2764 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2765 * elf32-i386.c (elf_i386_relocate_section): Likewise.
2766 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2767 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2768 (elf32_mips_get_relocated_section_content): Likewise.
2769 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2770 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2771 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2772 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2773
2774 2000-02-28 Nick Clifton <nickc@cygnus.com>
2775
2776 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
2777 * Makefile.in: Regenerate.
2778
2779 * configure.in: Add support for mips and sh pe vectors.
2780 * configure: regenerate.
2781
2782 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
2783 targets.
2784
2785 * targets.c: Add mips and sh pe vectors.
2786
2787 * libpei.h (coff_final_link_postscript): Only define if not
2788 already defined.
2789
2790 * coffcode.h: Add support for WinCE magic numbers.
2791
2792 * peigen.c (pe_print_reloc): Update comment and rearrange
2793 appending of newline character.
2794
2795 * peicode.h: Add support for Image Library Format.
2796 (pe_ILF_vars): Structure containing data used by ILF code.
2797 (pe_ILF_make_a_section): New function. Create a section based
2798 on ILF data.
2799 (pe_ILF_make_a_reloc): New function. Create a reloc based on
2800 ILF data.
2801 (pe_ILF_make_a_symbol): New function. Create a symbol based
2802 on ILF data.
2803 (pe_ILF_save_relocs): New function. Store the relocs created
2804 by pe_ILF_make_a_reloc in a section.
2805 (pe_ILF_build_a_bfd): New function. Create a BFD describing
2806 an ILF object.
2807 (pe_ILF_object_p): New function. Return a bfd_target pointer
2808 for an ILF object.
2809 (pe_bfd_object_p): If an ILF object is detected call
2810 pe_ILF_object_p on it.
2811
2812 * coff-arm.c: Add support for WinCE relocs which are different
2813 from normal ARM COFF relocs.
2814 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
2815
2816 * coff-sh.c: Add support for sh-pe target.
2817 * pe-sh.c: New file. Support code for sh-pe target.
2818 * pei-sh.c: New file. Support code for sh-pe target.
2819
2820 * pe-mips.c: New file. Support code for mips-pe target.
2821 * pei-mips.c: New file. Support code for mips-pe target.
2822
2823 2000-02-27 Jakub Jelinek <jakub@redhat.com>
2824
2825 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
2826 architecture if the object causing the bump is dynamic.
2827 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
2828 and also don't it for memory ordering.
2829 (sparc64_elf_write_relocs): Take src_rela out of the loop.
2830
2831 2000-02-27 Ian Lance Taylor <ian@zembu.com>
2832
2833 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
2834 calling bfd_get_section_size_before_reloc.
2835 (decode_line_info): Likewise.
2836 (_bfd_dwarf2_find_nearest_line): Likewise.
2837
2838 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
2839
2840 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
2841 name of the libtool directory.
2842 * Makefile.in: Rebuild.
2843
2844 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
2845
2846 * som.c (SOM_HOWTO): Define.
2847 (som_hppa_howto_table): Use it.
2848
2849 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2850
2851 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
2852
2853 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
2854
2855 2000-02-24 Catherine Moore <clm@cygnus.com>
2856
2857 * som.c (som_misc_symbol_info): Add field
2858 secondary_def.
2859 (som_bfd_derive_misc_symbol_info): Initialize
2860 secondary_def.
2861 (som_build_and_write_symbol_table): Keep track
2862 of secondary_def field.
2863 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
2864 if secondary_def field is set.
2865 (som_bfd_ar_write_symbol_stuff): Initialize
2866 secondary_def.
2867
2868 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
2869
2870 * dwarf2.c (read_address): Read 16-bits addresses.
2871 (parse_comp_unit): Accept addr_size == 2.
2872
2873 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2874
2875 * bfd-in.h: Update copyright date.
2876
2877 2000-02-23 Linas Vepstas <linas@linas.org>
2878
2879 * cpu-i370.c: New file.
2880 * elf32-i370.c: New file.
2881 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
2882 (bfd_i370_arch): New.
2883 (bfd_archures_list): Add bfd_i370_arch.
2884 * elf.c (prep_headers): Add bfd_arch_i370.
2885 * Makefile.am: Add support for IBM 370 elf.
2886 * config.bfd: Likewise.
2887 * configure.in: Likewise.
2888 * libbfd.h (bfd_reloc_code_real_names): Likewise.
2889 * reloc.c (bfd_reloc_code_type): Likewise.
2890 * targets.c: Likewise.
2891
2892 * Makefile.in: Regenerate.
2893 * configure: Regenerate.
2894 * bfd-in2.h: Regenerate.
2895
2896 2000-02-22 Ian Lance Taylor <ian@zembu.com>
2897
2898 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
2899 invalid relocation types, and change them to R_386_NONE.
2900
2901 2000-02-22 H.J. Lu <hjl@gnu.org>
2902
2903 * elflink.h (elf_link_add_object_symbols): If a version symbol is
2904 not defined, don't add a second ELF_VER_CHR.
2905
2906 * elflink.h (elf_bfd_final_link): Call output_extsym for global
2907 symbols converted to local symbols even when stripping all
2908 symbols.
2909 (elf_link_output_extsym): Process global symbols converted to
2910 local symbols even if they are being stripped.
2911
2912 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
2913
2914 * archures.c (bfd_octets_per_byte): Return unsigned int.
2915 (bfd_arch_mach_octets_per_byte): Ditto.
2916 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
2917 comparison warning.
2918 * section.c (bfd_get_section_size_before_reloc): Quell signed
2919 vs. unsigned comparison warning.
2920 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
2921 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
2922 change. What was I thinking?
2923 * bfd-in2.h: Regenerate.
2924
2925 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
2926 (elf_gc_sections): Same here.
2927 (elf_gc_common_finalize_got_offsets): And here.
2928
2929 2000-02-21 Ian Lance Taylor <ian@zembu.com>
2930
2931 ELF HPPA doesn't work at present; remove it until it does.
2932 * config.bfd: Comment out setting targ_defvec to
2933 bfd_elf32_hppa_vec.
2934 * Makefile.am: Rebuild dependencies.
2935 (BFD32_BACKENDS): Remove elf32-hppa.lo.
2936 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
2937 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
2938 * Makefile.in: Rebuild.
2939 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
2940
2941 2000-02-18 Geoff Keating <geoffk@cygnus.com>
2942
2943 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
2944 is no bfd_free(). Revert bfd_free part of previous change.
2945
2946 2000-02-18 Geoff Keating <geoffk@cygnus.com>
2947
2948 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
2949 arrays.
2950 (coff_compute_section_file_positions): Use bfd_free to pair
2951 bfd_malloc.
2952 (coff_write_object_contents): Likewise.
2953
2954 * coff-rs6000.c (xcoff_howto_table_16): New variable.
2955 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
2956
2957 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
2958
2959 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
2960 (xcoff_ar_file_hdr_big): New structure.
2961 (SIZEOF_AR_FILE_HDR_BIG): New macro.
2962 (xcoff_ar_hdr_big): New structure.
2963 (SIZEOF_AR_HDR_BIG): New macro.
2964 (xcoff_big_format_p): New macro.
2965 (xcoff_ardata_big): New macro.
2966 (arch_xhdr_big): New macro.
2967 (xcoff_slurp_armap): Handle large archives.
2968 (xcoff_archive_p): Detect large archives.
2969 (xcoff_read_ar_hdr): Handle large archives.
2970 (xcoff_openr_next_archived_file): Handle large archives.
2971 (xcoff_generic_stat_arch_elt): Handle large archives.
2972 (xcoff_write_armap_old): Rename from xcoff_write_armap.
2973 (xcoff_write_armap_big): New function.
2974 (xcoff_write_armap): New function, dispatch to _old or _big.
2975 (xcoff_write_archive_contents_old): Rename from
2976 xcoff_write_archive_contents.
2977 (xcoff_write_archive_contents_big): New function.
2978 (xcoff_write_archive_contents): New function, dispatch to _old or
2979 _big.
2980
2981 2000-02-18 Richard Henderson <rth@cygnus.com>
2982
2983 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
2984 and hide_symbol members.
2985 (elf_link_hash_copy_indirect): Remove.
2986 (elf_link_hash_hide_symbol): Remove.
2987 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
2988 and elf_backend_hide_symbol.
2989 (_bfd_elf_link_hash_copy_indirect): Declare.
2990 (_bfd_elf_link_hash_hide_symbol): Declare.
2991 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
2992 (_bfd_elf_link_hash_hide_symbol): Likewise.
2993 (_bfd_elf_link_hash_table_init): Don't init killed members.
2994 * elflink.h (elf_link_add_object_symbols): Use the bed function
2995 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
2996 (elf_link_assign_sym_version): Likewise.
2997 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
2998 (elf_backend_hide_symbol): Likewise.
2999 (elfNN_bed): Update for new members.
3000
3001 2000-02-17 Kevin Buettner <kevinb@redhat.com>
3002
3003 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
3004 STACK_END_ADDR): Define for new core file format.
3005 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
3006 for handling the vagaries of the various core file structures used
3007 by AIX over the years.
3008 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
3009 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
3010 core_dumpx structure.
3011
3012 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3013
3014 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
3015 (bfd_mach_sh3_dsp): Likewise.
3016 (bfd_mach_sh4): Reinstate.
3017 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
3018 * bfd-in2.h: Regenerate.
3019 * coff-sh.c (struct sh_opcode): flags is no longer short.
3020 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
3021 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
3022 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
3023 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
3024 (sh_opcodes): No longer const.
3025 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
3026 (sh_insn_uses_reg): Check for USESAS and USESR8.
3027 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
3028 (_bfd_sh_align_load_span): Return early for SH4.
3029 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
3030 Take into account that field b of a parallel processing insn
3031 could be mistaken for a separate insn.
3032 * cpu-sh.c (arch_info_struct): New array elements for
3033 sh2, sh-dsp and sh3-dsp.
3034 Reinstate element for sh4.
3035 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
3036 (SH4_NEXT): Reinstate.
3037 (SH3_NEXT, SH3E_NEXT): Adjust.
3038 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
3039 * elf32-sh.c (sh_elf_set_private_flags): New function.
3040 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
3041 (sh_elf_merge_private_data): New function.
3042 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
3043 (bfd_elf32_bfd_copy_private_bfd_data): Define.
3044 (bfd_elf32_bfd_merge_private_bfd_data): Change to
3045 sh_elf_merge_private_data.
3046
3047 2000-02-13 Richard Henderson <rth@cygnus.com>
3048
3049 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
3050 hide_symbol members.
3051 (elf_link_hash_copy_indirect): New.
3052 (elf_link_hash_hide_symbol): New.
3053 * elflink.h (elf_link_add_object_symbols): Break out copy from
3054 indirect new new symbol to elf.c.
3055 (elf_link_assign_sym_version): Break out privatization of
3056 non-exported symbol to elf.c.
3057 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
3058 (_bfd_elf_link_hash_hide_symbol): New.
3059 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
3060
3061 2000-02-13 Ian Lance Taylor <ian@zembu.com>
3062
3063 * section.c (_bfd_strip_section_from_output): Add info parameter.
3064 If it passed as non-NULL, use it to check whether any input BFD
3065 has an input section which uses this output section. Change all
3066 callers.
3067 * bfd-in2.h: Rebuild.
3068
3069 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
3070 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
3071 1999-11-29.
3072 * bfd-in2.h: Rebuild.
3073
3074 2000-02-10 Timothy Wall <twall@cygnus.com>
3075
3076 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
3077 allow final modifications of swapped-in symbol.
3078 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
3079 * coffcode.h (coff_write_relocs): Use macro
3080 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
3081 symbol index should be set to -1.
3082
3083 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
3084
3085 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
3086 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
3087 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
3088 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
3089 sh_insns_uses_or_sets_freg): New functions.
3090 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
3091 * (sh_insns_conflict): Use new functions and new macros to
3092 detect conflicts when two instructions both set same integer registers,
3093 both set same fp register, and both set special register.
3094
3095 2000-02-09 Timothy Wall <twall@cygnus.com>
3096
3097 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
3098 swapping in sections, so that the swapping routines have access to
3099 the arch/mach info.
3100
3101 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
3102
3103 * coff-go32.c: Update comment. Update copyright.
3104
3105 2000-01-27 Thomas de Lellis <tdel@windriver.com>
3106
3107 * syms.c (bfd_decode_symclass)
3108 Two new class characters were added - 'V' and 'v'. The
3109 meaning of 'W' is now restricted to just weak non-object
3110 symbols. This allows differentiation between, for example,
3111 weak functions vs weak objects. nm for example now dumps:
3112 'W' = weak global
3113 'w' = weak unresolved
3114 'V' = weak global object
3115 'v' = weak unresolved object
3116
3117 (bfd_is_undefined_symclass): New function. Return true if the
3118 given symbol class represents and undefined/unresolved symbol.
3119
3120 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
3121 unresolved symbols.
3122
3123 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
3124
3125 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
3126 STT_ARM_16BIT flag set, but it is not attached to a data object
3127 return STT_ARM_16BIT so that it will be treated as code by the
3128 disassembler.
3129
3130 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3131
3132 * coff-i386.c (i3coff_object_p): Remove prototype.
3133 Update copyright.
3134
3135 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
3136 to name. Update copyright.
3137
3138 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
3139 assignment to avoid warning. Update copyright.
3140
3141 2000-01-24 Robert Lipe (robertl@sco.com)
3142
3143 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
3144 instead of using GNU C extension.
3145
3146 2000-01-21 Nick Clifton <nickc@cygnus.com>
3147
3148 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
3149 amount from a bfd_in_memory structure.
3150 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
3151 structure.
3152
3153 2000-01-14 Nick Clifton <nickc@cygnus.com>
3154
3155 * linker.c (default_indirect_link_order): oops - fix incorrectly
3156 applied patch from Tim Wall.
3157
3158 2000-01-13 Timothy Wall (twall@tiac.net>
3159
3160 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
3161 = scnhsz, filhsz, relsz, aoutsz, etc)
3162
3163 * coffswap.h: Ditto.
3164
3165 2000-01-13 Nick Clifton <nickc@cygnus.com>
3166
3167 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
3168 interwork thumb to arm stub.
3169
3170 2000-01-13 Timothy Wall (twall@tiac.net>
3171
3172 * archures.c (bfd_octets_per_byte): New function: Return
3173 target byte size.
3174 (bfd_arch_mach_octets_per_byte): New function: Return target
3175 byte size.
3176
3177 * section.c: Distinguish between octets and bytes for usage of
3178 _cooked_size, _raw_size, and output_offset. Clarify
3179 description of bfd_set_section_contents.
3180
3181 * bfd-in2.h: Regenerate.
3182
3183 * coffgen.c: Indicate that the offset parameter is in bytes, not
3184 octets.
3185
3186 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
3187 where appropriate to get the octet offset when calling
3188 bfd_set_section_contents.
3189 (bfd_coff_reloc_link_order): Ditto.
3190
3191 * linker.c (bfd_generic_reloc_link_order): Ditto.
3192 (_bfd_default_link_order): Ditto.
3193
3194 * reloc.c (bfd_perform_relocation): Distinguish between octets
3195 and bytes. Use octets when indexing into octet data; use bytes
3196 when calculating target addresses.
3197 (bfd_install_relocation): Ditto.
3198
3199 * srec.c (srec_write_section): Ditto.
3200
3201 2000-01-13 Nick Clifton <nickc@cygnus.com>
3202
3203 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
3204 3 to 2. This allows 4 byte sized sections, which is necessary for
3205 dlltool to build functioning DLLs.
3206
3207 2000-01-10 Philip Blundell <pb@futuretv.com>
3208
3209 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
3210 (arm*-*-conix*): New target.
3211
3212 2000-01-10 Egor Duda <deo@logos-m.ru>
3213
3214 * config.bfd: Include elf32_i386 vector to target list for cygwin
3215 and mingw.
3216
3217 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
3218 * configure.in: Test for structure win32_pstatus_t in
3219 <sys/procfs.h>
3220 * configure: Regenerate.
3221
3222 * elf.c (elfcore_grok_win32pstatus): New function: process
3223 win32_pstatus_t notes in elf core file.
3224 (elfcore_grok_note): Detect win32_pstatus notes.
3225
3226 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
3227
3228 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
3229 visibility.
3230 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
3231 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
3232
3233 1999-12-29 Richard Henderson <rth@cygnus.com>
3234
3235 * elflink.h (bfd_elf,size_dynamic_sections): Don't export all
3236 if no dynamic sections created.
3237
3238 1999-12-27 Nick Clifton <nickc@cygnus.com>
3239
3240 * peicode.h (pe_bfd_object_p): Only define for PE format
3241 targets.
3242
3243 1999-12-17 Nick Clifton <nickc@cygnus.com>
3244
3245 * coff-i386.c (i3coff_object_p): Delete.
3246 (i386coff_vec): Replace reference to i3coff_object_p with a
3247 reference to coff_object_p.
3248
3249 * coff-mcore.c (pe_object_p): Delete.
3250
3251 * peicode.h (pe_bfd_object_p): New function: Detect the
3252 presence of a PE format COFF object file. Also detect and
3253 warn about the presence of LINK6 format Image Library Format
3254 object files.
3255
3256 1999-12-16 Nick Clifton <nickc@cygnus.com>
3257
3258 * coff-arm.c (NUM_ELEM): New macro.
3259 (NUM_RELOCS): New macro: The number of known ARM relocs.
3260 (RTYPE2HOWTO): Return NULL if the reloc type is out of range.
3261 (coff_arm_rtype_to_howto): Return NULL if the reloc type is out
3262 of range.
3263 (bfd_arm_process_before_allocation): Produce a warning message if
3264 an out of range symbol index is encountered.
3265
3266 1999-12-14 Nick Clifton <nickc@cygnus.com>
3267
3268 * elflink.h (is_global_symbol_definition): New Function: Return
3269 true iff the symbol is being given a global definition in this
3270 bfd.
3271 (elf_link_is_defined_archive_symbol): Do not bother processing
3272 symbols for an archive element that has already been included
3273 in the link.
3274 Use is_global_symbol_definition().
3275
3276 1999-12-09 Andrew Cagney <cagney@cygnus.com>
3277
3278 * config.bfd: Add support for sparc-*-netbsdelf* and
3279 sparc-*-netbsdaout*.
3280
3281 1999-12-13 Nick Clifton <nickc@cygnus.com>
3282
3283 * elflink.h (elf_link_is_defined_archive_symbol): Check to see
3284 if the symbol is in the common section.
3285
3286 1999-12-10 Nick Clifton <nickc@cygnus.com>
3287
3288 * elflink.h (elf_link_is_defined_archive_symbol): New
3289 function: Decide if a symbol, in an archive map is there
3290 because it is defined in the archive element, or because it is
3291 just another common declaration of it.
3292 (elf_link_add_archive_symbols): Use
3293 elf_link_is_defined_archive_symbol to decide if an archive
3294 element contain a reference to a common symbol should be
3295 linked in or not.
3296
3297 1999-12-10 Nick Clifton <nickc@cygnus.com>
3298
3299 * elflink.h: Revert previous patch.
3300 * targets.c: Revert previous patch.
3301 * libbfd-in2.h: Revert previous patch.
3302 * libbfd.h: Revert previous patch.
3303 * elfxx-target.h: Revert previous patch.
3304 * archive.c: Revert previous patch.
3305 * aout-target.h: Revert previous patch.
3306 * aout-tic30.h: Revert previous patch.
3307 * bfd.c: Revert previous patch.
3308 * coff-alpha.c: Revert previous patch.
3309 * coff-rs6000.c: Revert previous patch.
3310 * elf64-mips.c: Revert previous patch.
3311 * ieee.c: Revert previous patch.
3312 * libecoff.h: Revert previous patch.
3313 * oasys.c: Revert previous patch.
3314 * som.c: Revert previous patch.
3315 * vms.c: Revert previous patch.
3316
3317 1999-12-09 Nick Clifton <nickc@cygnus.com>
3318
3319 * elflink.h (elf_link_add_archive_symbols): Add an archive
3320 element even if contains a symbol which is currently only
3321 considered to be a common.
3322
3323 * targets.c (struct bfd_target): Add new field
3324 _bfd_allow_commons_in_armap.
3325 * bfd-in2.h:Regenerate.
3326
3327 * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap):
3328 Define.
3329 (_bfd_archive_bsd_allow_commons_in_armap): Define.
3330 * libbfd.h: Regenerate.
3331
3332 * elfxx-target.h: If using COFF archive map, override
3333 definition of allow_commons_in_armap and replace with
3334 bfd_false.
3335
3336 * archive.c (bfd_compute_and_write_armap): Do not place common
3337 symbols into the archive map unless _bfd_allow_commons_in_armap
3338 returns true.
3339
3340 * aout-target.h (MY_allow_commons_in_armap): Define.
3341 * aout-tic30.h (MY_allow_commons_in_armap): Define.
3342 * bfd.c (bfd_allow_commons_in_armap): Define.
3343 * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define.
3344 * coff-rs6000.h (xcoff_allow_commons_in_armap): Define.
3345 * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define.
3346 * ieee.c (ieee_ecoff_allow_commons_in_armap): Define.
3347 * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define.
3348 * oasys.c (oasys_allow_commons_in_armap): Define.
3349 * som.c (som_allow_commons_in_armap): Define.
3350 * vms.c (vms_allow_commons_in_armap): Define.
3351
3352 1999-12-07 Jim Blandy <jimb@cygnus.com>
3353
3354 Add support for SSE registers in ELF core files.
3355 * elf.c (elfcore_make_note_pseudosection): New function.
3356 (elfcore_grok_prfpreg): Use it.
3357 (elfcore_grok_prxfpreg): New function.
3358 (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
3359
3360 1999-12-03 Ian Lance Taylor <ian@zembu.com>
3361
3362 * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16
3363 value by 4 before storing it back in the field. From
3364 Koundinya. K <kk@ddeorg.soft.net>.
3365
3366 Tue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com)
3367
3368 * archures.c (bfd_mach_am33): Define.
3369 * bfd-in2.h: Rebuilt.
3370 * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list
3371 * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions.
3372 (compute_function_info): Handle additional registers saved by
3373 movm on the am33.
3374 (elf_mn10300_mach): Handle E_MN10300_MACH_AM33.
3375 (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
3376
3377 1999-11-29 Jim Blandy <jimb@cygnus.com>
3378
3379 * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
3380 functions.
3381 * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
3382 declarations.
3383
3384 1999-11-27 Michael Meissner <meissner@cygnus.com>
3385
3386 * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for
3387 internal use within gas for alpha explicit relocations.
3388 (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto.
3389 (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto.
3390 (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto.
3391 (BFD_RELOC_ALPHA_USER_GPDISP): Ditto.
3392 (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto.
3393 (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto.
3394
3395 * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for
3396 BFD_RELOC_ALPHA_USER_*.
3397
3398 * bfd-in2.h: Regenerate.
3399 * libbfd.h: Regenerate.
3400
3401 1999-11-26 Fred Fish <fnf@cygnus.com>
3402
3403 * elf.c (elfcore_read_notes): Add prototype for static function.
3404 (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr.
3405 (bfd_section_from_phdr): Replacement function that calls
3406 _bfd_elf_make_section_from_phdr for generic segment types and
3407 backend fucntion pointed to by elf_backend_section_from_phdr for
3408 backend specific segment types.
3409 (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes,
3410 now called by _bfd_elf_make_section_from_phdr. Note that this func
3411 is now just a stub between the caller and bfd_section_from_phdr.
3412
3413 * elf-bfd.h (struct elf_backend_data): Add new function pointer
3414 elf_backend_section_from_phdr.
3415 (elf_backend_section_from_phdr): Add prototype.
3416
3417 * elfxx-target.h (elf_backend_section_from_phdr): Define default.
3418 (elfNN_bed): Add elf_backend_section_from_phdr.
3419
3420 1999-11-25 Nick Clifton <nickc@cygnus.com>
3421
3422 * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
3423 SEC_CODE and SEC_READONLY flags to glue sections.
3424
3425 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
3426 SEC_CODE and SEC_READONLY flags to glue sections.
3427
3428 1999-11-20 Nick Clifton <nickc@cygnus.com>
3429
3430 * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
3431 delta.
3432
3433 1999-11-19 Catherine Moore <clm@cygnus.com>
3434
3435 * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
3436 (elf_cpu32_plt_entry): Likewise.
3437
3438 1999-11-18 Nick Clifton <nickc@cygnus.com>
3439
3440 * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling
3441 for RVA relocs.
3442 (coff_mcore_relocate_section): Initialise addend to 0.
3443 Special case processing of RVA reloc.
3444
3445 1999-11-17 Richard Henderson <rth@cygnus.com>
3446
3447 * elf-bfd.h (struct elf_backend_data): Reorder collect and
3448 type_change_ok; add sign_extend_vma.
3449 * elf32-mips.c (elf_backend_sign_extend_vma): Define.
3450 * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma.
3451 (elf_swap_shdr_in, elf_swap_phdr_in): Likewise.
3452 * elfxx-target.h (elf_backend_sign_extend_vma): Default.
3453 (elfNN_bed): Follow struture changes.
3454
3455 1999-11-09 Ian Lance Taylor <ian@zembu.com>
3456
3457 * libbfd.c (bfd_read): Check result of read against desired result
3458 using !=, not <.
3459 (_bfd_generic_get_section_contents): Set bfd_error if the seek is
3460 invalid compared to the section size.
3461
3462 * ieee.c (ieee_slurp_debug): Get the length of the debug
3463 information right if there is no data part.
3464
3465 Tue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com)
3466
3467 * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND,
3468 R_LINETAB, R_LINETAB_ESC, and R_COMMENT.
3469
3470 1999-10-28 Ian Lance Taylor <ian@zembu.com>
3471
3472 * elflink.h (elf_bfd_final_link): Make last_local signed.
3473
3474 1999-10-27 Ian Lance Taylor <ian@zembu.com>
3475
3476 * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
3477 starts with a zero.
3478
3479 Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
3480
3481 * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
3482 bfd_mach_d10v_ts3.
3483 * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add.
3484 * bfd-in2.h: Regenerate.
3485
3486 1999-10-15 Andrew Haley <aph@cygnus.com>
3487
3488 * dwarf1.c (parse_die): Fail to parse a die if its length is zero.
3489
3490 Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
3491
3492 * libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
3493
3494 1999-10-08 Ian Lance Taylor <ian@zembu.com>
3495
3496 * elflink.h (elf_merge_symbol): When overriding a weak symbol with
3497 a defined symbol in a shared library, clear the DEF_DYNAMIC flag
3498 too.
3499
3500 Fri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com>
3501
3502 * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL
3503 relocs also need the GP value.
3504 (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs
3505 properly. Handle sign-extension for R_MIPS_64 correctly. Correct
3506 the GP value for R_MIPS_LITERAL relocs too. Handle
3507 R_MIPS_64 relocs properly on big-endian MIPS.
3508 (mips_elf_sign_extend): Behave properly with 'long long'.
3509 (mips_elf_highest): Correct typo.
3510
3511 Mon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com>
3512
3513 * cpu-m32r.c (arch_info_struct): New static global.
3514 (bfd_m32r_arch): Refer to it.
3515 * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
3516 (m32r_elf_print_private_bfd_data): Ditto.
3517 (m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
3518 * archures.c (bfd_mach_m32rx): Define it.
3519 * bfd-in2.h: Rebuild.
3520
3521 1999-09-28 Fred Fish <fnf@cygnus.com>
3522
3523 * targets.c (cisco_core_vec): Replaced with two new vecs ...
3524 (cisco_core_big_vec): Add new bigendian vec.
3525 (cisco_core_little_vec): Add new little endian vec.
3526
3527 * cisco-core.c (CRASH_INFO): Fixed offset replaced with ...
3528 (crash_info_locs): Add array of possible offsets.
3529 (MASK_ADDR): Mask to apply to crash info offset.
3530 (crashinfo_external): Add textbase, database, bssbase and
3531 turn into a typedef.
3532 (cisco_core_file_validate): Renamed from cisco_core_file_p.
3533 Many small changes to account for additional hardware versions.
3534 Pick a reasonable size for ".reg" section. Add a ".crash"
3535 section to allow access to crashinfo_external struct.
3536 (cisco_core_file_p): New version of this function that
3537 iterates over crash_info_locs, calling cisco_core_file_validate.
3538 (cisco_core_vec): Old big endian only vec replaced with ...
3539 (cisco_core_big_vec): Add big endian version.
3540 (cisco_core_little_vec): Add little endian version.
3541
3542 * configure.in (cisco_core_vec): Split to two new vectors ...
3543 (cisco_core_big_vec): New target vector.
3544 (cisco_core_little_vec): New target vector.
3545 * configure: Regenerate.
3546 * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec
3547 to cisco_core_big_vec in targ_selvecs.
3548
3549 1999-09-28 Geoffrey Keating <geoffk@cygnus.com>
3550
3551 * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.
3552 (mips_elf_relocate_got_local): Unused, delete.
3553 (mips_elf_relocate_global_got): Unused, delete.
3554
3555 1999-09-24 Fred Fish <fnf@cygnus.com>
3556
3557 * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type
3558 to initialize it to something meaningful. Then use it to generate
3559 more useful segment names.
3560
3561 Sun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com)
3562
3563 * som.c (NO_PCREL_MODES): Define if the system does not define
3564 R_SHORT_PCREL_MODE.
3565 (hppa_som_gen_reloc_type): Handle both short and long pcrel branches.
3566 (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle
3567 R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE
3568 * libhppa.h (dis_assemble_22): New function.
3569 (bfd_hppa_insn2fmt): Handle long branch.
3570
3571 * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found
3572 in PA2.0.
3573
3574 1999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au>
3575
3576 * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16,
3577 BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs.
3578 (reloc_howto_type howto_table): Tidy comments and whitespace.
3579
3580 1999-09-17 Nick Clifton <nickc@cygnus.com>
3581
3582 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo
3583 previous delta. Set sec->gc_mark instead.
3584
3585 Thu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com>
3586
3587 * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0.
3588 (elf_cpu32_plt_entry): Likewise.
3589
3590 Thu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com)
3591
3592 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
3593
3594 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
3595 symbol table, then just compute a suitable value (but do not
3596 create a __gp symbol).
3597
3598 * elf-hppa.h (elf_hppa_relocate_section): Allow undefined
3599 symbols when building shared libraries.
3600 (elf_hppa_final_link_relocate): Correct handling of PCREL
3601 relocations against undefined symbols.
3602
3603 1999-09-16 Nick Clifton <nickc@cygnus.com>
3604
3605 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
3606 interworking sections as linker created so that they will not
3607 be removed by garbage collection.
3608
3609 Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com)
3610
3611 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
3612 (elf_hppa_final_link_relocate): Consistently create an absolute
3613 address, then subtract out the value of __gp.
3614
3615 1999-09-14 Michael Meissner <meissner@cygnus.com>
3616
3617 * configure.in (Canonicalization of target names): Remove adding
3618 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
3619 generates $ac_config_sub with a ${CONFIG_SHELL} already.
3620 * configure: Regenerate.
3621
3622 1999-09-14 Nick Clifton <nickc@cygnus.com>
3623
3624 * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of
3625 Mitsubishi).
3626
3627 Mon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com)
3628
3629 * elf-hppa.h (elf_hppa_record_segment_addrs): New function.
3630 (elf_hppa_final_link): Initialize text_segment_base and
3631 data_segment_base.
3632 (elf_hppa_final_link_relocate): Handle SEGREL relocations.
3633
3634 * elf-hppa.h (elf_hppa_final_link): Remove unused variables.
3635 (elf_hppa_final_link_relocate): Likewise.
3636 (elf_hppa_relocate_insn): Likewise.
3637 (elf_hppa_relocate_section): Initialize HOWTO.
3638
3639 1999-09-13 Donn Terry <donn@interix.com>
3640
3641 * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT
3642 handling to support both GNU and MS objects.
3643
3644 * coffcode.h (coff_write_object_contents): Don't check reloc_count
3645 when determining whether to set F_RELFLG.
3646
3647 1999-09-13 Philip Blundell <pb@nexus.co.uk>
3648
3649 * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check
3650 PC24 relocs if the target is an undefined weak symbol.
3651 (arm_add_to_rel): Fix compiler warning.
3652 (elf32_arm_plt0_entry): Correct comments.
3653
3654 1999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au>
3655
3656 * elfcode.h (write_relocs): Check for the_bfd NULL when handling
3657 an absolute symbol in REL relocs.
3658
3659 Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com)
3660
3661 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
3662 Stub SEGREL32. Return an error for any relocation not handled.
3663
3664 1999-09-12 Ian Lance Taylor <ian@zembu.com>
3665
3666 * cofflink.c (coff_link_add_symbols): Look for special MSVC string
3667 constant symbols, and avoid multiple definition errors on them.
3668
3669 1999-09-12 Donn Terry <donn@interix.com>
3670
3671 * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
3672 significant bit is set.
3673
3674 1999-09-11 Ian Lance Taylor <ian@zembu.com>
3675
3676 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
3677
3678 * elfcode.h (write_relocs): Handle an absolute symbol in REL
3679 relocs as we do for RELA relocs.
3680
3681 1999-09-11 Donn Terry <donn@interix.com>
3682
3683 * libpei.h (_bfd_pei_final_link_postscript): Declare.
3684 (coff_final_link_postscript): Define.
3685 * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data
3686 directory entries here.
3687 (_bfd_pei_final_link_postscript): New function.
3688
3689 * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
3690 section flags based on the section name.
3691
3692 * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the
3693 get the overflow of the s_nlnno field from the s_nreloc field.
3694 * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap
3695 the s_nlnno overflow of the .text section into the s_nreloc
3696 field.
3697
3698 * peigen.c (add_data_entry): Declare.
3699 (pei_swap_aouthdr_out): Get image size right. Set linker version
3700 more intuitively.
3701 (pei_swap_scnhdr_out): Test for UNINIT section, not .bss.
3702 (pe_print_idata): Code cleanup, print more info, get rid of (now)
3703 extraneous ImageBase.
3704 (pe_print_edata): Likewise.
3705 (pe_print_pdata): Likewise. Print exception entries.
3706 (pe_print_reloc): Likewise. Print MIPS_JMPADDR.
3707 (tbl): Make const, add "UNKNOWN".
3708 (_bfd_pe_print_private_bfd_data_common): Print timestamp.
3709 (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted
3710 section data directory.
3711 (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
3712
3713 * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare.
3714 * peigen.c (_bfd_pe_bfd_get_symbol_info): New function.
3715 * peicode.h (coff_get_symbol_info): Define.
3716
3717 * config.bfd (i[3456]86-*-interix*): Set targ_cflags to
3718 -DSTRICT_PE_FORMAT.
3719 * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather
3720 than __INTERIX.
3721 (coff_classify_symbol): Re-revert 1999-08-08 patch if
3722 STRICT_PE_FORMAT.
3723
3724 * libpei.h: New file, broken out of peicode.h.
3725 * peigen.c: New file, broken out of peicode.h.
3726 * peicode.h: A bunch of code moved out to libpei.h and peigen.c.
3727 * configure.in: Add peigen.lo to list of files required for each
3728 PE target.
3729 * Makefile.am: Rebuild dependencies.
3730 (BFD32_BACKENDS): Add peigen.lo.
3731 (BFD32_BACKENDS_CFILES): Add peigen.c.
3732 (SOURCE_HFILES): Add libpei.h.
3733 * configure, Makefile.in: Rebuild.
3734
3735 * peicode.h (coff_swap_scnhdr_in): Don't check for a special
3736 section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA
3737 instead. Don't clear the s_paddr field for an uninitialized data
3738 section.
3739
3740 * coffcode.h (coff_mkobject_hook): Set timestamp field in
3741 coff_data_type to f_timdat.
3742 * peicode.h (pe_mkobject_hook): Likewise.
3743
3744 * peicode.h (coff_swap_filehdr_in): Check the NT executable magic
3745 number if COFF_IMAGE_WITH_PE.
3746
3747 * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
3748 to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
3749 (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
3750 there is no SEC_DEBUGGING section.
3751 * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
3752 IMAGE_FILE_DEBUG_STRIPPED.
3753
3754 * pe-i386.c (COFF_LONG_FILENAMES): Define.
3755 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
3756 * pei-i386.c (COFF_LONG_FILENAMES): Define.
3757 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
3758
3759 * coffswap.h (IMAGE_BASE): Don't define.
3760 * pei-arm.c (IMAGE_BASE): Don't define.
3761 * pei-i386.c (IMAGE_BASE): Don't define.
3762 * pei-mcore.c (IMAGE_BASE): Don't define.
3763 * pei-ppc.c (IMAGE_BASE): Don't define.
3764
3765 * cofflink.c (_bfd_coff_link_input_bfd): When writing out a
3766 symbol, switch on the class when determining whether to modify the
3767 value. For PE, don't modify the value of a C_FCN symbol not named
3768 .bf.
3769
3770 * libbfd-in.h (_bfd_abort): Declare.
3771 (abort): Define.
3772 * bfd.c (_bfd_abort): New function.
3773 * libbfd.h: Rebuild.
3774
3775 * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
3776 special handling.
3777
3778 * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
3779 don't write out the associated line numbers.
3780
3781 * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
3782 aux entries.
3783
3784 * cofflink.c (coff_link_add_symbols): Don't warn about symbol type
3785 changes when the base type is unknown.
3786
3787 * coffgen.c (coff_print_symbol): Fix printing of aux record for
3788 function symbols.
3789
3790 * syms.c (BSF_DEBUGGING_RELOC): Define.
3791 * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING
3792 for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such
3793 symbols named .bf.
3794 * coffgen.c (fixup_symbol_value): Relocate a symbol which has
3795 BSF_DEBUGGING_RELOC set.
3796 * bfd-in2.h: Rebuild.
3797
3798 1999-09-10 Ian Lance Taylor <ian@zembu.com>
3799
3800 * ecoff.c (bfd_debug_section): Update initialization for new
3801 comdat_info field.
3802 (_bfd_ecoff_styp_to_sec_flags): Add section parameter.
3803 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration.
3804
3805 1999-09-10 H.J. Lu <hjl@gnu.org>
3806
3807 * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new
3808 _bfd_filnmlen field.
3809 * coff-mips.c (mips_ecoff_backend_data): Likewise.
3810
3811 Fri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com)
3812
3813 * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
3814 for FPTR relocs involving local symbols.
3815
3816 * elf-hppa.h (elf_hppa_final_link_relocate): Get the right
3817 value for the stub address in a call through a stub.
3818 Install the value for a local symbol directly into the DLT
3819 instead of generating a reloc. Correctly handle FPTR64 relocs.
3820
3821 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
3822 (elf_hppa_remark_useless_dynamic_symbols): Similarly.
3823 (elf_hppa_final_link): Call them.
3824
3825 1999-09-10 Ian Lance Taylor <ian@zembu.com>
3826
3827 * elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
3828 (elf_adjust_dynamic_symbol): ...from here.
3829
3830 Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com)
3831
3832 * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
3833 relocation, remove them. SECREL64->LTOFF16WF.
3834 (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
3835 DIR* relocations.
3836 (elf_hppa_relocate_insn): Similarly.
3837
3838 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
3839 (elf_hppa_relocate_insn): Similarly.
3840
3841 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and
3842 GPREL* relocations.
3843 (elf_hppa_relocate_insn): Similarly.
3844
3845 * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.
3846 Handle LTOFF_TP* relocs.
3847 (elf_hppa_relocate_insn): Similarly.
3848
3849 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.
3850 Consistently deal with addends. Handle DLTIND14F and DLTREL14F.
3851 (elf_hppa_relocate_insn): Handle PCREL* relocs.
3852
3853 * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,
3854 DIR32, DIR64 and FPTR64 relocations.
3855 (elf_hppa_relocate_insn): Similarly.
3856
3857 * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the
3858 address of the .PARISC.global section.
3859 (elf_hppa_relocate_section): Lookup and pass the PA64 hash
3860 table entry elf_hppa_final_link_relocate. Do not give a warning
3861 for a reloc against an external symbol if it has a PA64 hash
3862 table entry.
3863 (elf_hppa_final_link_relocate): Significantly rework. Handle
3864 DLTIND relocations. Compute the final value of the relocation
3865 before passing the value of elf_hppa_relocate_insn.
3866 (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling
3867 relocation support. Handle DLTIND relocation requests just like
3868 DLTREL relocation requests. Simplify branch handling.
3869
3870 1999-09-08 Ulrich Drepper <drepper@cygnus.com>
3871
3872 * elf-hppa.h (elf_hppa_relocate_section): Catch problems with
3873 non-allocated section as done in i386 version.
3874 (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch
3875 statement since this is no know relocation.
3876
3877 Tue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com)
3878
3879 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F
3880 relocs.
3881 (elf_hppa_relocate_insn): Similarly.
3882
3883 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and
3884 DLTREL14WD relocs.
3885 (elf_hppa_relocate_insn): Similarly.
3886
3887 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and
3888 DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn.
3889 Pass the relocate type rather than the insn format to
3890 elf_hppa_relocate_insn.
3891 (elf_hppa_relocate_insn): Make switch dependent on relocation type
3892 rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
3893
3894 1999-09-07 Ian Lance Taylor <ian@zembu.com>
3895
3896 * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field.
3897 (bfd_coff_filnmlen): Define.
3898 (bfd_coff_std_swap_table): Initialize new field.
3899 * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather
3900 than FILNMLEN.
3901 (coff_write_symbols): Likewise.
3902 (coff_get_normalized_symtab): Likewise.
3903 * coff-sh.c (bfd_coff_small_swap_table): Initialize new field.
3904 * libcoff.h: Rebuild.
3905
3906 1999-09-06 Donn Terry <donn@interix.com>
3907
3908 * coffcode.h (sort_by_secaddr): New static function if
3909 COFF_IMAGE_WITH_PE.
3910 (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort
3911 sections by VMA when assigning target_index values. Always set
3912 virt_size.
3913
3914 * libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
3915 * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
3916 pe_flags field.
3917 * libcoff.h: Rebuild.
3918
3919 * coffcode.h (coff_set_custom_section_alignment): Add const to
3920 declaration to match definition.
3921 (coff_write_object_contents): Don't set F_AR32W(R)? if
3922 COFF_WITH_PE.
3923
3924 * coff-i386.c (in_reloc_p): Add declaration.
3925 (i386coff_vec): Simplify initialization of
3926 application_section_flags.
3927
3928 * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
3929 version. Move COFF_WITH_PE specific code to new version.
3930 (stype_to_sec_flags): Likewise. Add section parameter.
3931 * coffgen.c (make_a_section_from_file): Set target_index before
3932 calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
3933 * libcoff.h: Rebuild.
3934
3935 * syms.c (stt): Add some PE/PEI section names.
3936 (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined
3937 symbol.
3938 (bfd_symbol_info): Check for 'w'.
3939
3940 * section.c (struct bfd_comdat_info): Define.
3941 (asection): Add comdat field.
3942 (STD_SECTION): Initialize comdat field.
3943 (bfd_make_section_anyway): Likewise.
3944 * bfd-in2.h: Rebuild.
3945
3946 1999-09-06 Andreas Schwab <schwab@suse.de>
3947
3948 * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag
3949 to version symbols.
3950
3951 1999-09-06 Nick Clifton <nickc@cygnus.com>
3952
3953 * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and
3954 bfd_realloc instead of calloc and realloc.
3955
3956 1999-09-04 Steve Chamberlain <sac@pobox.com>
3957
3958 * cpu-pj.c: New file.
3959 * elf32-pj.c: New file.
3960 * config.bfd (pj*): New cpu.
3961 (pj-*-*, pjl-*-*): New targets.
3962 * configure.in (bfd_elf32_pj_vec): New target vector.
3963 (bfd_elf32_pjl_vec): New target vector.
3964 * archures.c (bfd_arch_pj): Define.
3965 * elf.c (prep_headers): Handle bfd_arch_pj.
3966 * reloc.c: Define BFD_RELOC_PJ_* relocations.
3967 * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add
3968 to target vector list.
3969 * Makefile.am: Rebuild dependencies.
3970 (ALL_MACHINES): Add cpu-pj.lo.
3971 (ALL_MACHINES_CFILES): Add cpu-pj.c.
3972 (BFD32_BACKENDS): Add elf32-pj.lo.
3973 (BFD32_BACKENDS_CFILES): Add elf32-pj.c.
3974 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
3975
3976 1999-09-04 Ian Lance Taylor <ian@zembu.com>
3977
3978 * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
3979 * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
3980 and NON_GOT_REF from weak defined symbol to real symbol.
3981 * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
3982 (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
3983 create a COPY reloc.
3984 * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
3985 (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
3986 don't create a COPY reloc.
3987
3988 1999-09-03 Ian Lance Taylor <ian@zembu.com>
3989
3990 * elflink.h (elf_bfd_final_link): When counting relocations, don't
3991 count those in sections we are not including in the link.
3992
3993 Thu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com)
3994
3995 * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK
3996 field in hpux11 shared libraries.
3997
3998 1999-09-02 Nick Clifton <nickc@cygnus.com>
3999
4000 * elflink.h (elf_gc_record_vtentry): Fix memory leak.
4001
4002 Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com)
4003
4004 * elf-hppa.h (elf_hppa_add_symbol_hook): New function.
4005 (elf_hppa_final_link, elf_hppa_relocate_section): Likewise.
4006 (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
4007
4008 1999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
4009
4010 * elflink.h (record_link_assignment): When possible, keep the
4011 original type of the symbol.
4012
4013 Mon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com)
4014
4015 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both
4016 R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the
4017 tools were configured.
4018 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
4019
4020 1999-08-26 Mark Mitchell <mark@codesourcery.com>
4021
4022 * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local
4023 GOT entries for GOT16 relocations; they're not required.
4024
4025 1999-08-24 Nick Clifton <nickc@cygnus.com>
4026
4027 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
4028
4029 * config.bfd (arm-*-netbsd*): New target.
4030 * configure.in (armnetbsd_vec): New target vector.
4031 * configure: Regenerate
4032 * targets.c (bfd_target_vector): Add &armnetbsd_vec.
4033
4034 * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo.
4035 (ALL_MACHINES_CFILES): Add armnetbsd.c.
4036 (armnetbsd.lo): New rule with deps.
4037 * Makefile.in: Regenerate.
4038
4039 * armnetbsd.c: New file: Definitions specific to arm-netbsd
4040 target.
4041
4042 Tue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com)
4043
4044 * som.c (som_slurp_symbol_table): Fix typo in comment.
4045
4046 Fri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com)
4047
4048 * elf-hppa.h (elf_hppa_fake_sections): Compute section indices
4049 here instead of using elf_section_data...
4050
4051 1999-08-19 Nick Clifton <nickc@cygnus.com>
4052
4053 * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit
4054 relocations into the base file.
4055 (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if
4056 we are building a base file.
4057
4058 1999-08-19 Nick Clifton <nickc@cygnus.com>
4059
4060 * elf32-arm.h (arm_add_to_rel): New function. Add a value to
4061 a REL style reloc.
4062 (elf32_arm_relocate_section): Use arm_add_to_rel to increment
4063 REL relocs when performing a partial relocation.
4064
4065 1999-08-18 Donn Terry <donn@interix.com>
4066
4067 * cofflink.c: Move definitions of N_TMASK, et. al., out of
4068 _bfd_coff_link_input_bfd into top level.
4069
4070 * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
4071 (RTYPE2HOWTO): Return NULL if reloc type is out of range.
4072 (coff_i386_rtype_to_howto): Likewise.
4073 * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
4074 Completely ignore symbols which are all zero.
4075 (dummy_reloc16_estimate): Add return 0.
4076 * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
4077 variable copy to name_copy to avoid shadowing outer scope
4078 variable.
4079 * libcoff-in.h (coff_data_type): Change raw_syment_count field
4080 from unsigned int to unsigned long. Add timestamp field.
4081 * libcoff.h: Rebuild.
4082
4083 1999-08-17 H.J. Lu <hjl@gnu.org>
4084
4085 * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in
4086 macro definition.
4087
4088 1999-08-17 Ian Lance Taylor <ian@zembu.com>
4089
4090 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
4091 for special section symbols.
4092 * elflink.h (elf_merge_symbol): If we have no old BFD, check
4093 BSF_DYNAMIC on the section symbol to see whether the old BFD is
4094 dynamic.
4095
4096 1999-08-15 Mark Mitchell <mark@codesourcery.com>
4097
4098 * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate
4099 coincidence of variable names between old and new code.
4100
4101 1999-08-12 Nick Clifton <nickc@cygnus.com>
4102
4103 * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter
4104 into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'.
4105 (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma
4106 and 'addend' parameter a 'bfd_signed_vma'.
4107 (elf32_arm_final_link_relocate): Do not involve stubs in
4108 R_ARM_THM_PC22 relocs relative to section symbols, they are long
4109 jumps, not function calls.
4110
4111 1999-08-11 Robin Farine <advanc@dial.eunet.ch>
4112
4113 * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow
4114 in R_ARM_PC24 relocs.
4115
4116 Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com)
4117
4118 * elf-hppa.h (elf_hppa_fake_sections): New function.
4119 * elf32-hppa.c (elf_backend_fake_sections): Define.
4120
4121 * elf-hppa.h (elf_hppa_final_write_processing): Update for
4122 recent changes to the arch_info structure.
4123
4124 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
4125 R_HPPA_SEGBASE and R_HPPA_SEGREL32.
4126 * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
4127 list.
4128
4129 Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com>
4130 Ralf Baechle <ralf@uni-koblenz.de>
4131
4132 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always
4133 output DT_MIPS_GOTSYM.
4134 (_bfd_mips_elf_finish_dynamic_sections): Use the same value as
4135 DT_MIPS_SYMTABNO if there are no global GOT symbols.
4136
4137 Tue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com>
4138
4139 * elf32-mips.c (mips_elf_create_dynamic_relocation): Change
4140 prototype. Handle local symbols. Add commentary.
4141 (mips_elf_calculate_relocation): Adjust accordingly.
4142 (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32
4143 relocations.
4144
4145 * elflink.h (elf_bfd_final_link): Tweak last change.
4146
4147 1999-08-09 Mark Mitchell <mark@codesourcery.com>
4148
4149 * elflink.h (elf_link_size_reloc_section): Use the counts in the
4150 elf-section data to allocate just the right amount of relocation
4151 space. Don't allocate the hash space twice.
4152 (elf_bfd_final_link): Calculate the amount of space to allocate in
4153 each relocation section.
4154
4155 Mon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com)
4156
4157 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in
4158 64bit mode, generate a section relative relocation for a 32bit
4159 wide relocation.
4160 (elf_hppa_is_local_label_name): New function.
4161 * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be
4162 shared between 32bit and 64bit port.
4163
4164 1999-08-09 Mark Mitchell <mark@codesourcery.com>
4165
4166 * elf32-mips.c (elf_mips_howto_table): Fix src_mask for
4167 R_MIPS_GOT16 and R_MIPS_CALL16.
4168 (mips_elf_got16_entry): Use mips_elf_high to calculate the value
4169 to use when looking for a preexisting GOT entry.
4170
4171 1999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
4172
4173 * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of
4174 the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug,
4175 not binutils.
4176 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4177
4178 1999-08-09 Geoff Keating <geoffk@cygnus.com>
4179
4180 * elflink.h (elf_link_output_extsym): Don't output a weak
4181 reference to an undefined symbol just because it was defined weak
4182 in a shared object.
4183
4184 1999-08-09 Eli Zaretskii <eliz@is.elta.co.il>
4185
4186 * coffgen.c (coff_find_nearest_line): When looking for file, use
4187 last best match rather than first. If address is beyond last line
4188 number record, don't return the last line as the correct value.
4189
4190 1999-08-08 Ian Lance Taylor <ian@zembu.com>
4191
4192 * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT.
4193 * bfd-in2.h: Rebuild.
4194
4195 1999-08-08 Mark Elbrecht <snowball3@bigfoot.com>
4196
4197 * libcoff-in.h (struct coff_section_alignment_entry): Define.
4198 * coffcode.h (coff_set_custom_section_alignment): New static
4199 function.
4200 (coff_section_alignment_table): New static array.
4201 (coff_new_section_hook): Use coff_set_customer_section_alignment.
4202 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
4203 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
4204 * libcoff.h: Rebuild.
4205
4206 1999-08-08 Ian Lance Taylor <ian@zembu.com>
4207
4208 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
4209 MKDEP.
4210 * Makefile.in: Rebuild.
4211
4212 1999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
4213
4214 * section.c (SEC_SHARED): Define.
4215 * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED.
4216 (styp_to_sec_flags): Likewise.
4217 * peicode.h (coff_swap_scnhdr_out): Likewise.
4218 * bfd-in2.h: Rebuild.
4219
4220 1999-08-08 Ian Lance Taylor <ian@zembu.com>
4221
4222 * coffcode.h (coff_classify_symbol): Comment out part of
4223 1999-08-05 change which breaks cygwin DLLs.
4224
4225 * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*.
4226 * aclocal.m4, configure: Rebuild.
4227
4228 1999-08-06 Ian Lance Taylor <ian@zembu.com>
4229
4230 * section.c (global_syms): Only initialize union field if
4231 __STDC__.
4232
4233 1999-08-04 Mark Mitchell <mark@codesourcery.com>
4234
4235 * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by
4236 the size of a GOT entry here.
4237 (mips_elf_calculate_relocation): Don't create a local GOT entry
4238 for the symbol in a GOT16 relocation; just for it's high-order bit
4239 (_bfd_mips_elf_relocate_section): Fix thinko.
4240
4241 1999-08-05 Ian Lance Taylor <ian@zembu.com>
4242
4243 Based on patches from Donn Terry <donn@interix.com>:
4244 * coffcode.h (enum coff_symbol_classification): Define.
4245 (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to
4246 _bfd_coff_classify_symbol. Change return type.
4247 (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global.
4248 (coff_slurp_symbol_table): Use coff_classify_symbol.
4249 (coff_classify_symbol): New static function.
4250 (coff_sym_is_global): Never define.
4251 (bfd_coff_std_swap_table): Initialize with coff_classify_symbol.
4252 * cofflink.c (coff_link_check_ar_symbols): Use
4253 bfd_coff_classify_symbol rather than bfd_coff_sym_is_global.
4254 (coff_link_add_symbols): Likewise.
4255 (_bfd_coff_link_input_bfd): Likewise.
4256 * coff-sh.c (bfd_coff_small_swap_table): Initialize with
4257 coff_classify_symbol.
4258 * libcoff.h: Rebuild.
4259
4260 Wed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com)
4261
4262 * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors
4263 (e_ltpsel, e_rtpsel): Similarly.
4264
4265 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel
4266 and 14bit ertpsel. Handle 64bit psel.
4267
4268 1999-08-04 Mark Mitchell <mark@codesourcery.com>
4269
4270 * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16
4271 handling for REL relocations. And only left-shift R_MIPS26
4272 relocation addends where necessary.
4273
4274 1999-08-03 Mark Mitchell <mark@codesourcery.com>
4275
4276 * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ...
4277 (mips_elf_next_lo16_relocation): Don't compute the addend here.
4278 Just return the relocation found.
4279 (mips_elf_relocate_section): Pull the LO16 addend out of the
4280 section itself when using REL relocations.
4281
4282 * elf32-mips.c (mips_elf_calculate_relocation): Restore
4283 _DYNAMIC_LINK handling and handling of undefined symbols in shared
4284 libraries.
4285
4286 1999-08-03 Ian Lance Taylor <ian@zembu.com>
4287
4288 * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation
4289 value of a symbol in a SEC_DEBUGGING section. Warn when doing a
4290 relocation against a symbol in an input section with no output
4291 section. From Daniel Jacobowitz <drow@false.org>.
4292
4293 * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used.
4294
4295 * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to
4296 look for generated file correctly.
4297 * aclocal.m4, configure: Rebuild.
4298
4299 1999-08-02 Mark Mitchell <mark@codesourcery.com>
4300
4301 * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26
4302 and R_MIPS16_26 relocations correctly when relocating.
4303 (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16
4304 and R_MIPS_CALL_LO16 are for global symbols.
4305
4306 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
4307
4308 * elflink.h (elf_bfd_final_link): Copy the whole isym, not just
4309 some fields.
4310 * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used
4311 variables and initialize them.
4312
4313 1999-08-01 Mark Mitchell <mark@codesourcery.com>
4314
4315 * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where
4316 there are no global symbols requiring GOT entries.
4317 (_bfd_mips_elf_size_dynamic_sections): Likewise.
4318 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
4319 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
4320
4321 * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak
4322 symbols are considered to have the value zero.
4323 (_bfd_mips_elf_relocate_section): Don't try to perform a
4324 relocation for an undefined symbol.
4325 (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local
4326 GOT16 relocations.
4327
4328 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
4329
4330 * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI
4331 wants ba,a,pt %xcc instead of %icc.
4332 Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots
4333 of large PLT entries.
4334 (sparc64_elf_plt_ptr_offset): Fix calculation.
4335 (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT
4336 addend should be relative to load address, not .plt section start.
4337 (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries.
4338
4339 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
4340
4341 * elf-bfd.h (struct elf_backend_data): Add
4342 print_symbol_all and output_arch_syms backend methods.
4343 * elfxx-target.h: Likewise.
4344 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create,
4345 sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms,
4346 sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New
4347 functions.
4348 (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER
4349 symbols in .dynsym, add their names into .dynstr. Put those symbols
4350 into dynlocal.
4351 (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER
4352 pointers to STT_REGISTER symbols in dynsym section.
4353 (sparc64_elf_print_symbol_all): New function.
4354 * elf.c (bfd_elf_print_symbol): Allow special backend symbol
4355 printing using the print_symbol_all hook.
4356
4357 1999-07-30 Catherine Moore <clm@cygnus.com>
4358
4359 * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for
4360 R_ARM_GNU_VTENTRY.
4361
4362 1999-07-29 Richard Henderson <rth@cygnus.com>
4363
4364 * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if
4365 dynamic_sections_created.
4366
4367 1999-07-29 Richard Henderson <rth@cygnus.com>
4368
4369 * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ...
4370 (mips_rtype_to_howto): ... new function.
4371 (_bfd_mips_elf_relocate_section): Use it.
4372
4373 1999-07-28 Mark Mitchell <mark@codesourcery.com>
4374
4375 * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo.
4376
4377 1999-07-27 Nick Clifton <nickc@cygnus.com>
4378
4379 Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk>
4380
4381 * coff-arm.c (coff_arm_is_local_label_name): Change to strip
4382 out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'.
4383
4384 1999-07-23 Donn Terry <donn@interix.com>
4385
4386 * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags
4387 field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL.
4388 * cofflink.c (coff_link_add_symbols): If PE, handle section
4389 symbols specially.
4390 * libcoff.h: Rebuild.
4391
4392 * config.bfd (i[3456]86-*-interix*): New target.
4393
4394 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
4395
4396 * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and
4397 COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with
4398 .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD.
4399 * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define.
4400 (COFF_SUPPORT_GNU_LINKONCE): Define.
4401 * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define.
4402 (COFF_SUPPORT_GNU_LINKONCE): Define.
4403
4404 1999-07-21 Ian Lance Taylor <ian@zembu.com>
4405
4406 From Mark Elbrecht:
4407 * makefile.dos: Remove; obsolete.
4408 * configure.bat: Remove; obsolete.
4409
4410 1999-07-21 H.J. Lu <hjl@gnu.org>
4411
4412 * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes.
4413
4414 1999-07-21 Philippe De Muyter <phdm@macqel.be>
4415
4416 * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error
4417 message and fail if a symbol index is out of range.
4418
4419 1999-07-21 Ian Lance Taylor <ian@zembu.com>
4420
4421 * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value
4422 when looking at a R_MIPS_GOT16 relocation.
4423
4424 1999-07-20 Nick Clifton <nickc@cygnus.com>
4425
4426 * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC.
4427
4428 Mon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com>
4429
4430 * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP
4431 removed in previous change.
4432 (_bfd_mips_elf_relocate_section): Adjust GP relative relocations
4433 in relocateable output.
4434
4435 1999-07-19 Ian Lance Taylor <ian@zembu.com>
4436
4437 * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target
4438 structure.
4439
4440 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD
4441 if they appear to be specially created by the linker.
4442
4443 1999-07-19 Nick Clifton <nickc@cygnus.com>
4444
4445 * targets.c (alternative_target): New field in bfd_target
4446 structure.
4447 (bfd_search_for_target): New function: Find a target that
4448 satisifies a search function.
4449 * bfd-in2.h: Regenerate.
4450
4451 * elfxx-target.h: Initialise the alternative_target field of
4452 the bfd_target structures to point to the other target (if
4453 defined).
4454 * nlm-target.h: Initialise the alternative_target field of
4455 the bfd_target structures to point to the other target (if
4456 defined).
4457
4458 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro.
4459 (CREATE_LITTLE_COFF_TARGET_VEC): New macro.
4460
4461 * aix386-core.c: Initialise new field of bfd_target structure.
4462 * aout-adobe.c: Initialise new field of bfd_target structure.
4463 * aout-arm.c: Initialise new field of bfd_target structure.
4464 * aout-target.h: Initialise new field of bfd_target structure.
4465 * aout-tic30.c: Initialise new field of bfd_target structure.
4466 * binary.c: Initialise new field of bfd_target structure.
4467 * bout.c: Initialise new field of bfd_target structure.
4468 * cisco-core.c: Initialise new field of bfd_target structure.
4469 * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC.
4470 * coff-alpha.c: Initialise new field of bfd_target structure.
4471 * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC.
4472 * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
4473 * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC.
4474 * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC.
4475 * coff-i386.c: Initialise new field of bfd_target structure.
4476 * coff-i860.c: Initialise new field of bfd_target structure.
4477 * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
4478 * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC.
4479 * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
4480 * coff-mips.c: Initialise new field of bfd_target structure.
4481 * coff-ppc.c: Initialise new field of bfd_target structure.
4482 * coff-rs6000.c: Initialise new field of bfd_target structure.
4483 * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
4484 * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC.
4485 * coff-tic30.c: Initialise new field of bfd_target structure.
4486 * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
4487 * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
4488 * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC.
4489 * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC.
4490 * hppabsd-core.c: Initialise new field of bfd_target structure.
4491 * hpux-core.c: Initialise new field of bfd_target structure.
4492 * i386msdos.c: Initialise new field of bfd_target structure.
4493 * i386os9k.c: Initialise new field of bfd_target structure.
4494 * ieee.c: Initialise new field of bfd_target structure.
4495 * ihex.c: Initialise new field of bfd_target structure.
4496 * irix-core.c: Initialise new field of bfd_target structure.
4497 * mipsbsd.c: Initialise new field of bfd_target structure.
4498 * netbsd-core.c: Initialise new field of bfd_target structure.
4499 * oasys.c: Initialise new field of bfd_target structure.
4500 * osf-core.c: Initialise new field of bfd_target structure.
4501 * ppcboot.c: Initialise new field of bfd_target structure.
4502 * ptrace-core.c: Initialise new field of bfd_target structure.
4503 * sco5-core.c: Initialise new field of bfd_target structure.
4504 * som.c: Initialise new field of bfd_target structure.
4505 * srec.c: Initialise new field of bfd_target structure.
4506 * tekhex.c: Initialise new field of bfd_target structure.
4507 * trad-core.c: Initialise new field of bfd_target structure.
4508 * versados.c: Initialise new field of bfd_target structure.
4509 * vms.c: Initialise new field of bfd_target structure.
4510
4511 1999-07-19 Andreas Schwab <schwab@suse.de>
4512
4513 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash
4514 and rel_hdr.
4515
4516 Sat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com>
4517
4518 * elflink.h (elf_link_adjust_relocs): New function.
4519 (elf_bfd_final_link): Use it.
4520 (elf_link_input_bfd): Deal with the fact that there can be
4521 two relocation sections for a single section.
4522 (elf_reloc_link_order): Likewise.
4523
4524 * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for
4525 a relocateable object.
4526 (_bfd_mips_elf_relocate_section): Handle relocateable links.
4527
4528 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
4529
4530 * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID.
4531 (sparc64_elf_get_reloc_upper_bound,
4532 sparc64_elf_get_dynamic_reloc_upper_bound,
4533 sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
4534 sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs):
4535 New functions.
4536 (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use
4537 ELF64_R_TYPE_ID/DATA where appropriate.
4538
4539 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
4540
4541 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove
4542 DT_SPARC_PLTFMT.
4543
4544 1999-07-16 Ian Lance Taylor <ian@zembu.com>
4545
4546 * elf32-mips.c (mips_elf_local_relocation_p): New static
4547 function.
4548 (mips_elf_next_lo16_addend): Call bfd_set_error on failure.
4549 (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p.
4550 Always set *require_jalxp.
4551 (mips_elf_stub_section_p): Mark abfd parameter as unused.
4552 (_bfd_mips_elf_relocate_section): Only look for LO16 following
4553 GOT16 if the GOT16 is against a local symbol. Don't return false
4554 for an undefined symbol. If there is an overflow, assert that we
4555 have a name.
4556
4557 1999-07-16 Andreas Schwab <schwab@suse.de>
4558
4559 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused
4560 variables `link' and `elfsec'.
4561 (elf_bfd_final_link): Remove unused variable `os'.
4562
4563 Thu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com>
4564
4565 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require
4566 a PT_PHDR program headers.
4567 (_bfd_mips_elf_final_link): Don't assume there are going to be
4568 section symbols when we're not building a shared object.
4569 (_bfd_mips_elf_check_relocs): Make sure we have a GOT when
4570 we need one.
4571
4572 1999-07-15 J.T. Conklin <jtc@redback.com>
4573
4574 * config.bfd (i[3456]86-*-vxworks*): New target.
4575
4576 1999-07-15 Mark Mitchell <mark@codesourcery.com>
4577
4578 * elf32-mips.c (mips_elf_stub_section_p): New function.
4579 (mips_elf_calculate_relocation): Handle MIPS16 stub functions.
4580 (mips_elf_relocate_section): Adjust calling sequence for
4581 mips_elf_calculate_relocation and mips_elf_perform_relocation.
4582 (mips_elf_perform_relocation): Turn `jal' into `jalx' where
4583 required.
4584
4585 1999-07-15 Ian Lance Taylor <ian@zembu.com>
4586
4587 * configure.in: Bump version number to 2.9.5.
4588 * configure: Rebuild.
4589
4590 Thu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com)
4591
4592 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle
4593 64bit format.
4594 (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type
4595 to derive final type instead of hardwiring a selection.
4596
4597 1999-07-14 Mark Mitchell <mark@codesourcery.com>
4598
4599 * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of
4600 things relocated by R_MIPS16_GPREL.
4601 (mips_elf_perform_relocation): Likewise.
4602
4603 Wed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com>
4604
4605 * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss.
4606
4607 1999-07-14 Richard Henderson <rth@cygnus.com>
4608
4609 * elf32-mips.c (struct mips_got_info): Add global_gotno.
4610 (_bfd_mips_elf_size_dynamic_sections): Set it.
4611 (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow.
4612 (mips_elf_sort_hash_table): Set max_non_got_dynindex based off
4613 new argument max_local.
4614
4615 1999-07-14 Mark Mitchell <mark@codesourcery.com>
4616
4617 * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit
4618 subwords when handling an R_MIPS16_26 relocation.
4619 (mips_elf_perform_relocation): Don't be paranoid abour right-shift
4620 semantics.
4621
4622 * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and
4623 dst_mask to match reality.
4624 (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL.
4625 (mips_elf_obtain_contents): Use bfd_get.
4626 (mips_elf_perform_relocation): Handle R_MIPS16_GPREL.
4627 (mips_elf_relocate_section): Likewise.
4628
4629 1999-07-13 Mark Mitchell <mark@codesourcery.com>
4630
4631 * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26.
4632 (mips_elf_relocate_section): Adjust calling sequence for
4633 mips_elf_perform_relocation.
4634 (mips_elf_perform_relocation): Take additional argument. Handle
4635 R_MIPS16_26. Use bfd_put for convenience.
4636
4637 1999-07-13 Richard Henderson <rth@cygnus.com>
4638
4639 * elf.c (assign_file_positions_for_segments): Thinko last change.
4640 Always overwrite p_flags.
4641
4642 1999-07-13 Richard Henderson <rth@cygnus.com>
4643
4644 * elf-bfd.h (struct elf_backend_data): Add want_dynbss.
4645 * elflink.c (_bfd_elf_create_dynamic_sections): Only create
4646 .dynbss and .rel[a].bss if want_dynbss.
4647 * elfxx-target.h (elf_backend_want_dynbss): Provide default.
4648
4649 1999-07-13 Richard Henderson <rth@cygnus.com>
4650
4651 * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
4652
4653 1999-07-13 Richard Henderson <rth@cygnus.com>
4654
4655 * elf-bfd.h (struct elf_link_local_dynamic_entry): New.
4656 (struct elf_link_hash_table): Add dynlocal.
4657 (_bfd_elf_link_lookup_local_dynindx): Prototype.
4658 (_bfd_elf_link_adjust_dynindx): Delete.
4659 (_bfd_elf_link_renumber_dynsyms): Prototype.
4660 (_bfd_elf,link_record_local_dynamic_symbol): Prototype.
4661 * elfcode.h (elf_link_record_local_dynamic_symbol): New alias.
4662 * elflink.c (_bfd_elf_link_adjust_dynindx): Delete.
4663 (_bfd_elf_link_lookup_local_dynindx): New function.
4664 (elf_link_renumber_hash_table_dynsyms): New function.
4665 (_bfd_elf_link_renumber_dynsyms): New function.
4666 * elflink.h (elf_link_record_local_dynamic_symbol): New function.
4667 (struct elf_assign_sym_version_info): Delete removed_dynamic.
4668 (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output
4669 instead of elf_link_remove_section_and_adjust_dynindices.
4670 Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms.
4671 (elf_link_assign_sym_version): Remove removed_dynamic code.
4672 (elf_link_renumber_dynsyms): Delete.
4673 (elf_bfd_final_link): Install section and local symbols into .dynsym.
4674
4675 * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete.
4676 (elf_m68k_size_dynamic_sections): Don't set section dynindicies.
4677 (elf_m68k_finish_dynamic_sections): Don't write section dynsyms.
4678 * elf32-mips.c: Similarly.
4679 * elf32-ppc.c: Similarly.
4680 * elf32-sparc.c: Similarly.
4681 * elf64-alpha.c: Similarly.
4682 * elf64-sparc.c: Similarly.
4683
4684 1999-07-13 Mark Mitchell <mark@codesourcery.com>
4685
4686 * elf32-mips.c (mips_elf_calculate_relocation): Do not complain
4687 when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow
4688 when the relocation is against _gp_disp.
4689
4690 1999-07-12 Mark Mitchell <mark@codesourcery.com>
4691
4692 * dwarf2.c (read_attribute): Support DW_FORM_ref8.
4693 * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs
4694 to possibly_dynamic_relocs. Adjust usage throughout code.
4695 (elf_mips_howto_table): Handle R_MIPS_64 correctly.
4696 (elf_mips_ctor64_howto): Likewise.
4697 (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32.
4698 Adjust indentation.
4699 (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode.
4700 (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32.
4701 Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries.
4702 * elf64-mips.c (elf_backend_may_use_rel_p): Define.
4703
4704 1999-07-12 Ian Lance Taylor <ian@zembu.com>
4705
4706 * Makefile.am: Rebuild dependencies.
4707 * Makefile.in: Rebuild.
4708
4709 * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE.
4710 * bfd-in2.h: Rebuild.
4711
4712 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
4713 as appropriate. Use EMPTY_HOWTO as appropriate. Fill in
4714 structure initializations. Add casts.
4715 * reloc.c (EMPTY_HOWTO): Define.
4716 * bfd-in2.h: Rebuild.
4717 * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless
4718 comparisons against 0.
4719 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change
4720 previous_ibfd_e_flags to unsigned long.
4721 * vms.h (struct vms_private_data_struct): Change section_count to
4722 unsigned.
4723 * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned.
4724 (_bfd_vms_write_gsd): Change symnum to unsigned.
4725 * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned.
4726 * vms-tir.c (etir_sta): Change psect to unsigned.
4727 (alloc_section): Change idx to unsigned.
4728 (tir_sta, tir_ctl): Change psect to unsigned.
4729 (_bfd_vms_write_tir): Change len and before to bfd_size_type.
4730 * vms.c (priv_section_count): Change to unsigned.
4731
4732 1999-07-12 Andreas Schwab <schwab@suse.de>
4733
4734 * elf32-m68k.c: Add some ATTRIBUTE_UNUSED.
4735 * m68klinux.c: Likewise.
4736
4737 1999-07-12 Ian Lance Taylor <ian@zembu.com>
4738
4739 * Many files: Changes to avoid gcc warnings: Remove unused local
4740 variables. Add default case to enum switches.
4741 * coff-arm.c (bfd_arm_allocate_interworking_sections): Only
4742 compile if not COFF_IMAGE_WITH_PE.
4743 (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
4744 (bfd_arm_get_bfd_for_interworking): Likewise.
4745 (bfd_arm_process_before_allocation): Likewise.
4746 * epoc-pei-arm.c: Don't rename bfd_arm functions.
4747 * pei-arm.c: Likewise.
4748 * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
4749 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
4750 (mips_elf_got16_entry): Put parens around & in body of ==.
4751 (mips_elf_calculate_relocation): Correct test for empty string.
4752 * vms-gsd.c: Use _bfd_error_handler rather than fprintf to
4753 stderr.
4754 * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
4755 format.
4756
4757 1999-07-11 Ian Lance Taylor <ian@zembu.com>
4758
4759 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
4760 as appropriate. Fill in structure initializations. Add variable
4761 initializations. Add casts.
4762 * dwarf1.c (parse_line_table): Change eachLine to unsigned long.
4763 (dwarf1_unit_find_nearest_line): Change i to unsigned long.
4764
4765 * elf.c (bfd_elf_hash): Change parameter from unsigned char * to
4766 char *.
4767 * elf-bfd.h (bfd_elf_hash): Update declaration.
4768 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts
4769 when calling bfd_elf_hash.
4770
4771 1999-07-11 Mark Mitchell <mark@codesourcery.com>
4772
4773 * libbfd.c (bfd_put_8): Make it of type `void'.
4774 * bfd-in2.h: Regenerated.
4775 * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize
4776 for 32-bit hosts.
4777 (_bfd_mips_elf_final_link): Likewise.
4778
4779 * elflink.h (elf_link_read_relocs_from_section): Be type-correct.
4780
4781 Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
4782
4783 * config.bfd (hppa*-*-linux-gnu*): New target
4784
4785 1999-07-07 Mark Mitchell <mark@codesourcery.com>
4786
4787 * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify.
4788 (_bfd_mips_elf_create_dynamic_sections): New function.
4789 (_bfd_mips_elf_add_symbol_hook): Likewise.
4790 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise.
4791 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
4792 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
4793 (_bfd_mips_elf_gc_mark_hook): Likewise.
4794 (_bfd_mips_elf_gc_sweep_hook): Likewise.
4795 (_bfd_mips_elf_always_size_sections): Likewise.
4796 (_bfd_mips_elf_size_dynamic_sections): Likewise.
4797 (_bfd_mips_elf_check_relocs): Likewise.
4798 (_bfd_mips_elf_link_hash_table_create): Likewise.
4799 (_bfd_mips_elf_print_private_data): Likewise.
4800 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
4801 (_bfd_mips_elf_final_link): Likewise.
4802 (_bfd_mips_elf_additional_program_headers): Likewise.
4803 (_bfd_mips_elf_modify_segment_map): Likewise.
4804 (_bfd_mips_elf_relocate_section): Likewise.
4805 * elf32-mips.c (mips_elf32_object_p): Move contents into
4806 _bfd_mips_elf_object_p.
4807 (mips_elf_additional_program_headers): Rename to
4808 _bfd_mips_elf_additional_program_headers.
4809 (mips_elf_modify_segment_map): Rename to
4810 _bfd_mips_elf_modify_segment_map.
4811 (elf_mips_abi_name): Change prototype.
4812 (mips_elf32_section_from_shdr): Merge into
4813 _bfd_mips_elf_section_from_shdr.
4814 (mips_elf32_section_processing): Merge into
4815 _bfd_mips_elf_section_processing.
4816 (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke
4817 the right back-end ELF linker.
4818 (mips_elf_relocate_section): Rename to
4819 _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code.
4820 (mips_elf_link_output_symbol_hook): Rename to
4821 _bfd_mips_elf_link_output_symbol_hook.
4822 (mips_elf_create_dynamic_section): Rename to
4823 _bfd_mips_elf_create_dynamic_section.
4824 (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs.
4825 Adjust for 64-bit code. Use mips_elf_got_section.
4826 (mips_elf_adjust_dynamic_symbol): Rename to
4827 _bfd_mips_elf_adjust_dynamic_symbol. Use
4828 mips_elf_allocate_dynamic_relocations.
4829 (mips_elf_finish_dynamic_symbol): Rename to
4830 _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section.
4831 Adjust for 64-bit code.
4832 (mips_elf_finish_dynamic_sections): Rename to
4833 _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code.
4834 (mips_elf_always_size_sections): Rename to
4835 _bfd_mips_elf_always_size_sections.
4836 (mips_elf_add_symbol_hook): Rename to
4837 _bfd_mips_elf_add_symbol_hook.
4838 (mips_elf_next_lo16_addend): Constify.
4839 (mips_elf_calculate_relocation): Likewise.
4840 (mips_elf_obtain_contents): Likewise.
4841 (mips_elf_perform_relocation): Likewise.
4842 (mips_elf_create_dynamic_relocation): Likewise.
4843 (mips_elf_allocate_dynamic_relocations): New function.
4844 (MIPS_ELF_REL_DYN_SECTION_NAME): New macro.
4845 (MIPS_ELF_REL_SIZE): Likewise.
4846 (MIPS_ELF_DYN_SIZE): Likewise.
4847 (MIPS_ELF_GOT_SIZE): Likewise.
4848 (MIPS_ELF_SYM_SIZE): Likewise.
4849 (MIPS_ELF_LOG_FILE_ALIGN): Likewise.
4850 (MIPS_ELF_GET_WORD): Likewise.
4851 (MIPS_ELF_PUT_WORD): Likewise.
4852 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
4853 (STUB_LW): Conditionalize for 64-bit value.
4854 (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST
4855 entries.
4856 (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS].
4857 Check it for inconsistency.
4858 (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit
4859 ABI.
4860 (_bfd_mips_elf_fake_sections): Remove duplicate handling of
4861 .msym.
4862 (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE.
4863 (mips_elf_got_offset_from_index): Use misp_elf_got_section.
4864 (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE.
4865 (mips_elf_local_got_index): Likewise.
4866 (mips_elf_got_page): Likewise.
4867 (mips_elf_got_info): Likewise.
4868 (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split.
4869 (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code.
4870 (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN,
4871 instead of constant `2'.
4872 (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE.
4873 (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN.
4874 (mips_elf_size_dynamic_sections): Use
4875 MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE,
4876 MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code.
4877 Adjust all releveant entries in elf backend table.
4878 * elf64-mips.c (mips_elf64_section_from_shdr): Remove.
4879 (mips_elf64_section_processing): Likewise.
4880 Adjust elf backend entries to use _bfd_mips_elf variants now
4881 publicly available.
4882
4883 * elflink.h (elf_link_create_dynamic_sections): Handle non-standard
4884 hash-entry sizes.
4885 (size_dynamic_sections): Likewise.
4886 (elf_link_output_extsym): Likewise.
4887 * elf.c: (elf_fake_sections): Likewise.
4888 * libbfd.c (bfd_get): New macro.
4889 (bfd_put): Likewise.
4890 * bfd-in2.h: Regenerated.
4891
4892 1999-07-07 Mark Mitchell <mark@codesourcery.com>
4893
4894 * elf-bfd.h (elf_size_info): Add hash_entry_size,
4895 int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out,
4896 wap_reloca_in, and swap_reloca_out.
4897 * elflink.h (elf_link_read_relocs_from_section): Adjust to handle
4898 multiple internal relocations per external relocation.
4899 (link_read_relocs): Likewise.
4900 (elf_bfd_final_link): Likewise.
4901 (elf_link_input_bfd): Likewise.
4902 (elf_gc_mark): Likewise.
4903 (elf_gc_smash_unused_vtentry_relocs): Likewise.
4904 * elfcode.h (elf_swap_dyn_out): Adjust type to match
4905 elf_swap_dyn_in.
4906 (size_info): Add entries for new fields.
4907 * elf64-mips.c (mips_elf64_swap_reloc_out): Enable.
4908 (mips_elf64_be_swap_reloc_in): New function.
4909 (mips_elf64_be_swap_reloc_out): Likewise.
4910 (mips_elf64_be_swap_reloca_in): Likewise.
4911 (mips_elf64_be_swap_reloca_out): Likewise.
4912 (mips_elf64_size_info): Add entries for new fields.
4913
4914 1999-07-07 Ian Lance Taylor <ian@zembu.com>
4915
4916 * elflink.h (elf_bfd_final_link): Assert that section reloc_count
4917 field equals the new rel_count field.
4918 (elf_link_input_bfd): When doing a relocateable link, use the new
4919 rel_count field rather than the reloc_count field.
4920 (elf_reloc_link_order): Likewise.
4921 (elf_finish_pointer_linker_section): Likewise.
4922
4923 Based on patch from H.J. Lu <hjl@gnu.org>:
4924 * elflink.h (elf_merge_symbol): Permit a non-weak definition in a
4925 shared library to override a weak definition in a regular object.
4926
4927 Tue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com)
4928
4929 * libhppa.h: Revert July 2, 1999 patch.
4930
4931 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors
4932 need to generate DLTIND relocations, not DLTREL relocations.
4933
4934 1999-07-05 Nick Clifton <nickc@cygnus.com>
4935
4936 * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5
4937 architectures.
4938 (coff_set_flags): Recognise arm 5 architectures.
4939
4940 * cpu-arm.c: Add support for strongarm and arm9 cpus.
4941 Add support for armv5 architecture.
4942
4943 * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T.
4944
4945 * reloc.c: Add new, assembler only, ARM reloc:
4946 BFD_RELOC_ARM_ADRL_IMMEDIATE.
4947
4948 * bfd-in2.h: Regenerate.
4949
4950 1999-07-02 Mark Mitchell <mark@codesourcery.com>
4951
4952 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter.
4953 (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter.
4954 * elf.c (_bfd_elf_find_nearest_line): Pass it.
4955 * elf32-arm.h (elf32_arm_find_nearest_line): Likewise.
4956 * elf32-mips.c (ABI_64_P): New macro.
4957 (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P.
4958 (_bfd_mips_elf_find_nearest_line): Adjust call to
4959 _bfd_dwarf2_find_nearest_line.
4960 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4961 * libbfd.h: Regenerated.
4962
4963 1999-07-02 Ian Lance Taylor <ian@zembu.com>
4964
4965 * config.bfd: Add * at the end of i[3456]86-*-unixware.
4966
4967 Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com)
4968
4969 * libhppa.h (HPPA_R_ARG_RELOC): Delete.
4970 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise.
4971
4972 1999-07-01 Mark Mitchell <mark@codesourcery.com>
4973
4974 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
4975 fields.
4976 (_bfd_elf_init_reloc_shdr): New function.
4977 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
4978 bfd_alloc followed by memset.
4979 (_bfd_elf_init_reloc_shdr): New function, split out from ...
4980 (elf_fake_sections): Here.
4981 (assign_section_numbers): Assign section numbers for the second
4982 relocation section, if required.
4983 * elflink.h (elf_link_output_relocs): New function.
4984 (elf_link_size_reloc_section): Likewise.
4985 (elf_bfd_final_link): Use elf_link_size_reloc_section.
4986 (elf_link_input_bfd): Use elf_link_output_relocs.
4987
4988 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
4989 _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
4990
4991 Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com)
4992
4993 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL
4994 with 22bit format.
4995
4996 1999-06-28 Mark Mitchell <mark@codesourcery.com>
4997
4998 * elf32-mips.c (mips_elf_got_info): Move declaration before
4999 prototypes. Change global_gotsym to be a pointer to a hash entry,
5000 rather than a number index.
5001 (mips_elf_link_hash_entry): Move declaration before prototypes.
5002 (mips_elf_irix6_finish_dynamic_symbol): New function.
5003 (mips_elf_sign_extend): Likewise.
5004 (mips_elf_high): Likewise.
5005 (mips_elf_higher): Likewise.
5006 (mips_elf_highest): Likewise.
5007 (mips_elf_global_got_index): Likewise.
5008 (mips_elf_local_got_index): Likewise.
5009 (mips_elf_got_offset_from_index): Likeiwse.
5010 (mips_elf_record_global_got_symbol): Likewise.
5011 (mips_elf_got_page): Likewise.
5012 (mips_elf_next_lo16_addend): Likewise.
5013 (mips_elf_calculate_relocation): Likewise.
5014 (mips_elf_obtain_contents): Likewise.
5015 (mips_elf_perform_relocation): Likewise.
5016 (mips_elf_assign_gp): Likewise.
5017 (mips_elf_sort_hash_table_f): Likewise.
5018 (mips_elf_sort_hash_table): Likewise.
5019 (mips_elf_got_section): Likewise.
5020 (mips_elf_got_info): Likewise.
5021 (mips_elf_create_local_got_entry): Likewise.
5022 (mips_elf_got16_entry): Likewise.
5023 (mips_elf_create_dynamic_relocation): Likewise.
5024 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP.
5025 (mips_elf_final_gp): Use mips_elf_assign_gp.
5026 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols
5027 into SHN_SCOMMON automatically on IRIX6.
5028 (mips_elf_add_symbol_hook): Likewise.
5029 (mips_elf_relocate_section): Rewrite, using
5030 mips_elf_calculate_relocation and mips_elf_perform_relocation.
5031 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME.
5032 Don't deal with .rld_map on IRIX6.
5033 (mips_elf_create_got_section): Adjust use of global_gotsym. Set
5034 section flags appropriately for .got.
5035 (mips_elf_check_relocs): Handle IRIX6 relocations making use of
5036 the got. Call mips_elf_record_global_got_symbol and allocate
5037 local got space appropriately.
5038 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned
5039 char *. Rework calculation of GOT size. Sort dynamic symbol
5040 table entries so entries that do not require GOT entries appear at
5041 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead
5042 code dealing with DT_INIT and DT_FINI. Remove fiddling with
5043 global_gotsym.
5044 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT
5045 entries.
5046 (mips_elf_finish_dynamic_symbol): Use
5047 mips_elf_irix6_finish_dynamic_symbol.
5048 (mips_elf_finish_dynamic_sections): Correct off-by-one error
5049 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for
5050 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6.
5051
5052 1999-06-30 Ian Lance Taylor <ian@zembu.com>
5053
5054 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
5055 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
5056
5057 1999-06-04 Philip Blundell <philb@gnu.org>
5058
5059 * elf32-arm.h (elf_backend_got_header_size): Define.
5060 (elf_backend_plt_header_size): Likewise.
5061
5062 1999-06-28 Jim Pick <jim@jimpick.com>
5063
5064 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined
5065
5066 Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com)
5067
5068 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as
5069 relocation function.
5070 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
5071
5072 1999-06-27 Mark Mitchell <mark@codesourcery.com>
5073
5074 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro.
5075 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise.
5076 (MIPS_ELF_STUB_SECTION_NAME): Likewise.
5077 (_bfd_mips_elf_section_from_shdr): Use them.
5078 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list
5079 of GP-relative sections.
5080 (_bfd_mips_elf_set_section_contents): Use them.
5081 (_bfd_mips_elf_section_processing): Share code between .sdata and
5082 .lit4/.lit8 sections. Set appropriate flags for .srdata.
5083 (mips_elf_additional_program_headers): Add handling for
5084 PT_MIPS_OPTIONS segment on IRIX6.
5085 (mips_elf_modify_segment_map): Likeiwse.
5086 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI.
5087 Include the options sections on IRIX6. Don't look for GP-relative
5088 sections by name; use SHF_MIPS_GPREL instead.
5089 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for
5090 the N32 ABI.
5091 (mips_elf_create_dynamic_sections): Don't muck about with section
5092 alignments and such on IRIX6.
5093 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
5094 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the
5095 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use
5096 bfd_zalloc rather than bfd_alloc and memset.
5097 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
5098 Don't assert the existence of .rld_map on IRIX6.
5099 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME.
5100
5101 * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
5102 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
5103 instead.
5104
5105 1999-06-26 Mark Mitchell <mark@codesourcery.com>
5106
5107 * elf32-mips.c (mips_elf_swap_msym_in): New function.
5108 (mips_elf_swap_msym_out): New function.
5109 (mips_elf_create_msym_section): Likewise.
5110 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
5111 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
5112 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
5113 section not named .msym.
5114 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
5115 .msym directly. Set appropriate attributes for the .msym
5116 section.
5117 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
5118 (mips_elf_link_hash_newfunc): Clear it.
5119 (mips_elf_create_dynamic_sections): Create the .msym section
5120 on IRIX6.
5121 (mips_elf_size_dynamic_sections): Allocate space for the
5122 .msym section. Add a DT_MIPS_MSYM entry.
5123 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
5124 the symbol.
5125 (mips_elf_finish_dynamic_sections): Assign a value for
5126 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
5127
5128 * elf32-mips.c (irix_compat_t): New enumeration.
5129 (ABI_N32_P): New macro.
5130 (IRIX_COMPAT): Likewise.
5131 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
5132 (mips_elf_relocate_section): Fix typo.
5133
5134 1999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
5135
5136 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
5137 as writable PE sections.
5138
5139 1999-06-26 David Mosberger <davidm@hpl.hp.com>
5140
5141 * dwarf2.c (struct arange): New type.
5142 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
5143 (arange_add): New function.
5144 (decode_line_info): Keep track of address ranges that a compilation
5145 unit covers.
5146 (comp_unit_contains_address): Return true if address is contained
5147 in _any_ of the address ranges associated with a compilation unit.
5148 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
5149 on the first comp_unit that contains the address.
5150
5151 1999-06-26 David Mosberger <davidm@hpl.hp.com>
5152
5153 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
5154 (decode_line_info): Add variable STASH and initialize it to point
5155 to the per-bfd dwarf2_debug info. Remove static variable
5156 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
5157
5158 1999-06-26 Ian Lance Taylor <ian@zembu.com>
5159
5160 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
5161 shared library to have an undefined symbol.
5162
5163 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
5164 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
5165
5166 Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
5167
5168 * elf-hppa.c (elf_hppa_final_write_processing): New function.
5169 * elf32-hppa.c: Remove everything related to symbol extension
5170 sections & records. Use the common elf_hppa_final_write_processing.
5171
5172 1999-06-22 Mark Mitchell <mark@codesourcery.com>
5173
5174 * elflink.h (size_dynamic_sections): Use user-specified init/fini
5175 functions instead of _init/_fini if requested.
5176
5177 1999-06-23 Ian Lance Taylor <ian@zembu.com>
5178
5179 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
5180 field.
5181
5182 1999-06-22 Ian Lance Taylor <ian@zembu.com>
5183
5184 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
5185 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
5186 field to 0, not -1.
5187 (ppc_elf_finish_dynamic_sections): Check for positive section
5188 dynindx field, rather than comparing against -1.
5189 (ppc_elf_relocate_section): Only return false if undefined_symbol
5190 or reloc_overflow fail, not always upon encountering an error.
5191
5192 1999-06-22 Mark Mitchell <mark@codesourcery.com>
5193
5194 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
5195 bfd_byte * before performing pointer arithmetic.
5196
5197 Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
5198
5199 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
5200 support.
5201 * elf32-hppa.c: Include elf-hppa.h.
5202 (ARCH_SIZE): Define.
5203 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
5204 now.
5205 (elf32_hppa_info_to_howto): Similarly.
5206 (elf_hppa_howto_table): Similarly.
5207 (elf_hppa_reloc_type_lookup): Similarly.
5208 (hppa_elf_gen_reloc_type): Similarly.
5209 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
5210
5211 1999-06-22 Nick Clifton <nickc@cygnus.com>
5212
5213 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
5214 handling R_V850_22_PCREL relocation.
5215
5216 1999-06-21 Ian Lance Taylor <ian@zembu.com>
5217
5218 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
5219 type.
5220
5221 Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
5222
5223 * section.c (_bfd_strip_section_from_output): Ignore sections
5224 DISCARDed by the link script.
5225
5226 1999-06-19 Ian Lance Taylor <ian@zembu.com>
5227
5228 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
5229 Remove unused local variable spp.
5230
5231 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
5232 the entry symbol is not set.
5233
5234 Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
5235
5236 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
5237 GPDISP or LITUSE in a relocatable link.
5238
5239 Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
5240
5241 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
5242 * (alloc_dwarf1_func): Likewise.
5243
5244 Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
5245
5246 * libhppa.h: Fix various formatting errors.
5247 (assemble_3); Rewrite using CATENATE.
5248 (assemble_17): Fix various bugs.
5249
5250 1999-06-16 Nick Clifton <nickc@cygnus.com>
5251
5252 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
5253
5254 1999-06-15 Richard Henderson <rth@cygnus.com>
5255
5256 * section.c (SEC_SHORT): Define.
5257 * bfd-in2.h: Rebuild.
5258
5259 1999-06-13 Mark Mitchell <mark@codesourcery.com>
5260
5261 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
5262 Remove abfd parameter. Use _bfd_strip_section_from_output.
5263 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
5264
5265 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
5266 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
5267 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
5268 function.
5269 (bfd_elf_size_dynamic_sections): Use it.
5270
5271 1999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
5272
5273 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
5274 complain_overflow_bitfield to complain_overflow_signed.
5275
5276 1999-06-13 Mark Mitchell <mark@codesourcery.com>
5277
5278 * elflink.h (elf_link_read_relocs_from_section): New function,
5279 split out from ...
5280 (elf_link_read_relocs): Here. Use it for both relocation
5281 sections.
5282
5283 1999-06-12 Mark Mitchell <mark@codesourcery.com>
5284
5285 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
5286 asect->reloc_count is valid.
5287
5288 1999-06-12 Ian Lance Taylor <ian@zembu.com>
5289
5290 * elf32-mips.c (mips_elf32_section_processing): Permit a
5291 SHT_MIPS_REGINFO section to have a size of 0.
5292
5293 1999-06-12 David O'Brien <obrien@freebsd.org>
5294
5295 * config.bfd (alpha*-*-freebsd*): New target.
5296 (i[3456]86-*-freebsd*): Now defaults to ELF.
5297
5298 1999-06-11 Ian Lance Taylor <ian@zembu.com>
5299
5300 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
5301 wrap if the relocation covers the high bit of an address.
5302
5303 * dwarf2.c (decode_line_info): Remove unused variable first_time.
5304
5305 1999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
5306
5307 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
5308 instead of R_SPARC_max.
5309 (sparc64_elf_info_to_howto): Likewise.
5310 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
5311 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
5312
5313 1999-06-07 Richard Henderson <rth@cygnus.com>
5314
5315 * section.c (_bfd_strip_section_from_output): Remove output
5316 sections with no initial link_order.
5317
5318 1999-06-07 Nick Clifton <nickc@cygnus.com>
5319
5320 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
5321
5322 Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5323
5324 * Makefile.am (SOURCE_HFILES): Add missing headers.
5325 * Makefile.in: Regenerated.
5326
5327 1999-06-06 Mark Mitchell <mark@codesourcery.com>
5328
5329 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
5330 the N32 ABI.
5331
5332 1999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5333
5334 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
5335 range undefweak symbols.
5336 * hash.c: Add missing comma after @xref{}
5337 * linker.c: Likewise.
5338
5339 1999-06-04 Nick Clifton <nickc@cygnus.com>
5340
5341 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
5342 if not defined.
5343 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
5344 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
5345 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
5346 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
5347
5348 1999-06-04 Ian Lance Taylor <ian@zembu.com>
5349
5350 * Makefile.am: Rebuild dependencies.
5351 (BFD32_BACKENDS): Add dwarf1.lo.
5352 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
5353 * Makefile.in: Rebuild.
5354
5355 1999-06-04 Nick Clifton <nickc@cygnus.com>
5356
5357 * Makefile.am: Add epoc-arm-pe target.
5358 * Makefile.in: Regenerate.
5359 * pe-arm.c: Only redefine interworking function names if they have
5360 not already been redefined.
5361 * pei-arm.c: Only redefine interworking function names if they have
5362 not already been redefined.
5363 * epoc-pe-arm.c: Redefine interworking function names to avoid a
5364 name space clash.
5365 * epoc-pei-arm.c: Redefine interworking function names to avoid a
5366 name space clash.
5367
5368 1999-06-03 Nick Clifton <nickc@cygnus.com>
5369
5370 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
5371
5372 Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5373
5374 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
5375
5376 Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
5377
5378 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
5379 start / stop for recalculating of r_addend of R_SH_SWITCH*.
5380
5381 Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
5382
5383 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
5384 in other text sections.
5385
5386 Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
5387
5388 * libbfd.c (_bfd_generic_verify_endian_match): New function.
5389 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
5390 * libbfd.h: Regenerate.
5391 * coff-sh.c (sh_merge_private_data): Delete.
5392 (coff_bfd_merge_private_bfd_data): Change to
5393 _bfd_generic_verify_endian_match.
5394 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
5395
5396 1999-06-03 Ulrich Drepper <drepper@cygnus.com>
5397
5398 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
5399
5400 1999-06-03 Ian Lance Taylor <ian@zembu.com>
5401
5402 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
5403 prototype.
5404 (bfd_elf32_arm_process_before_allocation): Likewise.
5405 * bfd-in2.h: Rebuild.
5406
5407 1999-06-03 David Mosberger <davidm@hpl.hp.com>
5408
5409 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
5410 track of end_sequence markers.
5411 (add_line_info): Add END_SEQUENCE arg.
5412 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
5413 debug-line info---it doesn't work right if a compilation unit
5414 consists of multiple discontiguous code-sequences. It would be
5415 worthwhile to optimize for the common case where a compilation
5416 unit results in a contiguous set of code sequences, but this is
5417 quite tricky to get right for arbitrary DWARF2 files.
5418 (lookup_address_in_line_info_table): Don't use the last line entry
5419 for a compilation unit for anything with an address higher than
5420 this line entry. Also, check for end_sequence markers to
5421 correctly handle discontinuities.
5422 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
5423 compilation units, check all compilation units with each->high==0
5424 just like when reading compilation units.
5425
5426 * dwarf2.c (decode_line_info): Initialize table->files and
5427 table->last_line to NULL to avoid segfaults due to random
5428 values in these members.
5429 (concat_filename): Check for out-of-range file number before
5430 indexing filename table. Segfaults suck.
5431
5432 * dwarf2.c (decode_line_info): Don't truncate address to least
5433 significant 32 bits (breaks 64 bit targets).
5434 (lookup_address_in_function_table): Ditto.
5435 (comp_unit_contains_address): Ditto.
5436
5437 1999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
5438
5439 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
5440 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
5441 (mips_elf64_howto_table_rela): Likewise.
5442
5443 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
5444 split out from ...
5445 (elf_slurp_reloc_table): Here. Use it to handle the case where a
5446 single section has two associated relocation sections.
5447
5448 1999-06-02 Mark Salter <msalter@cygnus.com>
5449
5450 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
5451 COFF_WITH_PE defined.
5452
5453 1999-06-02 Nick Clifton <nickc@cygnus.com>
5454
5455 * pe-arm.c: Rename global arm interworking functions to avoid name
5456 collision when all targets BFD is built.
5457 * pei-arm.c: Ditto.
5458
5459 1999-05-31 Mark Mitchell <mark@codesourcery.com>
5460
5461 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
5462 may_use_rel_p, may_use_rela_p, default_use_rela_p.
5463 (bfd_elf_section_data): Add use_rela_p.
5464 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
5465 (_bfd_elf_new_section_hook): Likewise.
5466 (elf_fake_sections): Use may_use_rela_p, etc., instead of
5467 use_rela_p.
5468 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
5469 * elfcode.h (write_relocs): Determine whether or not use rela
5470 relocs based on the relocation section header.
5471 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
5472 instead of use_rela_p.
5473 * elfxx-target.h (elf_backend_may_use_relp): New macro.
5474 (elf_backend_may_use_rela_p): Likewise.
5475 (elf_backend_default_use_rela_p): Likewise.
5476 (elfNN_bed): Use them.
5477
5478 Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
5479
5480 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
5481
5482 Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
5483
5484 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
5485 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
5486 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
5487 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
5488 * bfd-in2.h: Regenerated.
5489 * libbfd.h: Likewise.
5490 * elf32-mips.c (mips_info_to_howto_rela): New function.
5491 (USE_REL): Adjust for new conventions.
5492 (MINUS_ONE): New macro.
5493 (elf_mips_howto_table): Add R_MIPS_SUB.
5494 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
5495 and MIPS_GOT_DISP.
5496 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
5497 .MIPS.content section.
5498 (_bfd_mips_elf_fake_sections): Treat all sections that begin
5499 with .MIPS.content as .MIPS.content sections. Set
5500 SHF_MNIPS_NOSTRIP for such section.
5501 (elf_info_to_howto): Define to mips_info_to_howto_rela.
5502 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
5503 MIPS_GOT_OFST, and MIPS_GOT_DISP.
5504
5505 Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5506
5507 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
5508 variable.
5509
5510 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
5511 `else'.
5512
5513 1999-05-30 Philip Blundell <philb@gnu.org>
5514
5515 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
5516 1993-03-25 (!!). Take into account the bitmasks for the reloc so
5517 the addend does not overflow into the rest of the word.
5518
5519 1999-05-29 Nick Clifton <nickc@cygnus.com>
5520
5521 * bfd-in.h: Amend prototype for
5522 bfd_elf32_arm_process_before_allocation .
5523 * bfd-in.h: Regenerate.
5524
5525 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
5526 elements in a fixed sized array.
5527 (ARM_ELF_ABI_VERSION): Define.
5528 (ARM_ELF_OS_ABI_VERSION): Define.
5529 (R_ARM_THM_ABS5): Fix rightshift and size.
5530 (R_ARM_THM_PC22): Fix size.
5531 (R_ARM_PLT32): Define Howto.
5532 (find_howto): New function: Locate a howto based on a reloc
5533 number.
5534 (elf32_arm_info_to_howto): Use find_howto if necessary.
5535 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
5536 bfd_reloc_code_real_type.
5537 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
5538 and BFD_RELOC_VTABLE_ENTRY.
5539 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
5540
5541 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
5542 elements in a fixed sized array.
5543 (ARM_ELF_ABI_VERSION): Define.
5544 (ARM_ELF_OS_ABI_VERSION): Define.
5545 (R_ARM_THM_ABS5): Fix rightshift and size.
5546 (R_ARM_THM_PC22): Fix size.
5547 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
5548 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
5549 bfd_reloc_code_real_type.
5550
5551 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
5552 no_pipeline_knowledge.
5553 (elf32_arm_link_hash_create): Initialise new field to zero.
5554 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
5555 no_pipeline_knowledge. Use this parameter to initialise the field
5556 in the globals data structure.
5557 (elf32_arm_final_link_relocate): Only add in pipeline offset if
5558 no_pipeline_knowledge is false and the binary is from an old
5559 toolchain.
5560 (elf32_arm_merge_private_data): Generate an error if an attempt is
5561 made to link together big endian and little endian code.
5562 (elf32_arm_post_process_headers): New function: Initialise the
5563 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
5564 header.
5565 (elf_backend_post_process_headers): Define.
5566
5567 1999-05-28 Nick Clifton <nickc@cygnus.com>
5568
5569 * elf-bfd.h (struct elf_backend_data): Add new field:
5570 elf_backend_post_process_headers.
5571
5572 * elfxx-target.h (elf_backend_post_process_headers): Define to
5573 NULL if not already defined.
5574 (elfNN_bed): Initialise elf_backend_post_process_headers field.
5575
5576 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
5577 to zero.
5578 (_bfd_elf_compute_section_file_positions): Call
5579 elf_backend_post_process_headers if defined.
5580
5581 1999-05-28 Ian Lance Taylor <ian@zembu.com>
5582
5583 * configure.in: Check whether getuid and getgid exist.
5584 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
5585 HAVE_GETGID are not defined, respectively.
5586 (bfd_write_armap): Don't special case on _WIN32 for getuid and
5587 getgid.
5588 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
5589 * configure, config.in: Rebuild.
5590
5591 1999-05-28 Martin Dorey <mdorey@madge.com>
5592
5593 * elf32-i960.c: New file.
5594 * elf.c (prep_headers): Handle bfd_arch_i960.
5595 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
5596 * config.bfd (i960-*-elf*): New target.
5597 * configure.in (bfd_elf32_i960_vec): New target vector.
5598 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
5599 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
5600 * Makefile.in, aclocal.m4, configure: Rebuild.
5601
5602 1999-05-27 Nick Clifton <nickc@cygnus.com>
5603
5604 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
5605 R_ARM_PLT32.
5606 (find_howto): New function: Find entries in the
5607 elf32_arm_howto_table.
5608 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
5609 computed simply.
5610 (elf32_arm_reloc_type_lookup): Add lookup for
5611 BFD_RELOC_ARM_PLT32.
5612
5613 1999-05-25 Philip Blundell <pb@nexus.co.uk>
5614
5615 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
5616 (elf32_arm_link_hash_table_create): Use above function as the
5617 constructor for hash table entries.
5618 (elf32_arm_relocate_section): Avoid crash when there is no output
5619 section.
5620 (elf32_arm_final_link_relocate): New parameter h.
5621 (elf32_arm_relocate_section): Pass symbol hash entry to above
5622 routine.
5623 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
5624 comments.
5625
5626 1999-05-25 Catherine Moore <clm@cygnus.com>
5627
5628 * coff-arm.c (coff_arm_relocate_section): Don't emit
5629 base file entries for pc-relative values.
5630
5631 1999-05-25 DJ Delorie <dj@cygnus.com>
5632
5633 * peicode.h (coff_swap_sym_in): When we create the actual section
5634 to reflect the not-there section C_SECTION symbols refer to,
5635 change the symbol class to C_STAT as the section is now really
5636 there.
5637
5638 1999-05-24 Philip Blundell <pb@nexus.co.uk>
5639
5640 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
5641 1999-03-25.
5642
5643 Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
5644
5645 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
5646 F_PIC_INT to F_PIC.
5647 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
5648 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
5649
5650 1999-05-16 Nick Clifton <nickc@cygnus.com>
5651
5652 * coff-mcore.c (in_reloc_p): Reinstate.
5653
5654 1999-05-15 Nick Clifton <nickc@cygnus.com>
5655
5656 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
5657 * bfd-in2.h: Regenerate.
5658 * coff-mcore.c (in_reloc_p): Remove defintion.
5659 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
5660 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
5661 IMAGE_REL_MCORE_RVA.
5662 (coff_mcore_rtype_to_howto): Add special processing for
5663 IMAGE_REL_MCORE_RVA.
5664 (coff_mcore_relocate_section): Add support for
5665 IMAGE_REL_MCORE_RVA.
5666 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
5667 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
5668 R_MCORE_RELATIVE.
5669 (mcore_elf_relocate_section): Delete redundant case labels.
5670
5671 Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5672
5673 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
5674 precedence between bit-and and comparison.
5675
5676 Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
5677
5678 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
5679 list of target formats (targ_selvecs).
5680 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
5681 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
5682
5683 1999-05-10 DJ Delorie <dj@cygnus.com>
5684
5685 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
5686 reasonable mode until "ar x" is smart enough to skip it (fixes
5687 gcc/libgcc.a builds on mips-ecoff targets
5688
5689 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
5690 to work. Hack to support MS import libraries, which use different
5691 COMDAT types than GNU.
5692 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
5693 to implied zero-length sections (see peicode below)
5694 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
5695 filename symbols, which use one *or more* auxents.
5696 * coffswap.h (coff_swap_aux_in): ditto
5697 * peicode.h (coff_swap_sym_in): Build the implied zero-length
5698 sections
5699
5700 Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
5701
5702 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
5703 for all relocations.
5704
5705 1999-05-10 Catherine Moore <clm@cygnus.com>
5706
5707 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
5708 if COFF_IMAGE_WITH_PE.
5709 (bfd_arm_process_before_allocation): Likewise.
5710 (bfd_arm_get_bfd_for_interworking): Likewise.
5711 * coff-arm.c: Likewise.
5712 * bfd-in2.h: Regenerate.
5713 * configure.in (armpe_little_vec): Remove coff-arm.lo.
5714 (armpe_big_vec): Likewise.
5715 * configure: Rebuild.
5716
5717 1999-05-10 Nick Clifton <nickc@cygnus.com>
5718
5719 * elf.c (elf_fake_sections): Check for .rel. as start of rel
5720 section, not just .rel. Same for .rela.
5721
5722 1999-05-07 Nick Clifton <nickc@cygnus.com>
5723
5724 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
5725 endianism with an error message.
5726
5727 Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
5728
5729 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
5730 assignment from "unsigned char *" to "char *".
5731 (decode_line_info): Likewise for dwarf_line_buffer assignment.
5732
5733 1999-05-05 Catherine Moore <clm@cygnus.com>
5734
5735 * coff-arm.c (coff_arm_relocate_section): Add one to
5736 address of ARM_RVA32 thumb functions.
5737
5738 1999-05-05 Catherine Moore <clm@cygnus.com>
5739
5740 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
5741 (elf32_m68k_copy_private_bfd_data): New.
5742 (elf32_m68k_merge_private_bfd_data): New.
5743 (elf32_m68k_print_private_bfd_data): New.
5744 (CPU32_FLAG): Define.
5745 (PLT_CPU32_ENTRY_SIZE): Define.
5746 (elf_cpu32_plt0_entry): Declare.
5747 (elf_cpu32_plt_entry): Declare.
5748 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
5749 (elf_m68k_finish_dynamic_symbol): Likewise.
5750 (elf_m68k_finish_dynamic_sections): Likewise.
5751 (elf_backend_plt_header_size): Remove definition.
5752 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5753 (bfd_elf32_bfd_merge_private_bfd_data): Define.
5754 (bfd_elf32_bfd_set_private_flags): Define.
5755 (bfd_elf32_bfd_print_private_bfd_data): Define.
5756
5757 Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
5758
5759 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
5760 and R_LONG_PCREL_MODE.
5761
5762 1999-04-29 Nick Clifton <nickc@cygnus.com>
5763
5764 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
5765
5766 Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
5767
5768 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
5769 in relocation calculation.
5770
5771 1999-04-26 Tom Tromey <tromey@cygnus.com>
5772
5773 * aclocal.m4, configure: Updated for new version of libtool.
5774
5775 1999-04-21 Nick Clifton <nickc@cygnus.com>
5776
5777 * coff-mcore.c: Add support for mcore relocs.
5778
5779 1999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
5780
5781 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
5782 incorrect use EF_MIPS_xxBITPTRS.
5783
5784 1999-04-18 Ian Lance Taylor <ian@zembu.com>
5785
5786 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
5787 variable insn.
5788
5789 * bfd-in2.h: Rebuild.
5790 * libbfd.h: Rebuild.
5791
5792 Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
5793
5794 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
5795 (coff_arm_relocate_section): Add ARM26D transform. Only
5796 change to ARM26D for relocateable links.
5797
5798 1999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
5799
5800 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
5801 (bfd_elf32_bfd_print_private_bfd_data): New.
5802
5803 1999-04-15 Doug Evans <devans@casey.cygnus.com>
5804
5805 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
5806 refetch addend if USE_REL, add many comments regarding current state.
5807 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
5808 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
5809 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
5810 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
5811
5812 Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
5813
5814 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
5815 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
5816
5817 1999-04-13 David Mosberger <davidm@hpl.hp.com>
5818
5819 * dwarf2.c (decode_line_info): Don't truncate address to least
5820 significant 32 bits (breaks 64 bit targets).
5821 (lookup_address_in_function_table): Ditto.
5822 (comp_unit_contains_address): Ditto.
5823
5824 Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
5825
5826 * coff-arm.c (arm_emit_base_file_entry): New routine.
5827 (A2T3_OFFSET): Define.
5828 (T2A3_OFFSET): Define.
5829 (coff_arm_relocate_section): Emit base file entries for interworking
5830 stubs.
5831
5832 1999-04-13 Philip Blundell <philb@gnu.org>
5833
5834 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
5835 relocs 17 through 19.
5836
5837 Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
5838
5839 * elfcode.h: Remove fnmatch.h.
5840 * elflink.h (elf_link_assign_sym_version): Call back to ld
5841 instead of calling fnmatch.
5842
5843 * config.bfd (i?86-*-beoself): Include pe vecs.
5844
5845 Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
5846
5847 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
5848 to go missing.
5849
5850 1999-04-10 Richard Henderson <rth@cygnus.com>
5851
5852 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
5853 when trying to resolve dynamic symbol references.
5854 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5855 * elf32-mips.c (mips_elf_relocate_section): Likewise.
5856 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5857 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5858 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5859 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5860 * elflink.h (elf_link_output_extsym): Likewise.
5861
5862 Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
5863
5864 * section.c (_bfd_strip_section_from_output): New function moved from
5865 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
5866 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
5867 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5868 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
5869 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5870 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5871 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5872 * bfd-in2.h: Update.
5873
5874 1999-04-09 Ian Lance Taylor <ian@zembu.com>
5875
5876 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
5877
5878 1999-04-08 Nick Clifton <nickc@cygnus.com>
5879
5880 * coff-mcore.c: New File: Support for mcore-pe targets.
5881 * cpu-mcore.c: New File: Support for mcore targets.
5882 * elf32-mcore.c: New File: Support for mcore-elf target.
5883 * pe-mcore.c: New File: Definitions for mcore-pe target.
5884 * pei-mcore.c: New File: Definitions for mcore-pei target.
5885 * Makefile.am: Add support for MCore targets.
5886 * Makefile.in: Regenerate.
5887 * config.bfd: Add support for MCore targets.
5888 * configure.in: Add support for MCore targets.
5889 * configure: Regenerate.
5890 * archures.c: Add support for MCore architecture.
5891 * bfd-in2.h: Regenerate.
5892 * coffcode.h: Add support for mcore-pe targets.
5893 * elf.c: Add support for mcore-elf target.
5894 * reloc.c: Add support for MCore relocs.
5895 * targets.c: Add support for MCore targets.
5896
5897 1999-04-07 Nick Clifton <nickc@cygnus.com>
5898
5899 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
5900 R_ARM_XPC25 and R_ARM_THM_XPC22.
5901 (elf32_arm_reloc_map): Remove redundant entries.
5902
5903 1999-04-06 Ian Lance Taylor <ian@zembu.com>
5904
5905 * sysdep.h (LC_MESSAGES): Never define.
5906
5907 1999-04-06 Chris Torek <torek@bsdi.com>
5908
5909 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
5910 all callers. Rewrite completely.
5911 (_bfd_relocate_contents): Rewrite overflow checking.
5912 * bfd-in2.h: Rebuild.
5913
5914 1999-04-05 Ian Lance Taylor <ian@zembu.com>
5915
5916 From Gabriel Paubert <paubert@iram.es>:
5917 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
5918 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
5919 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
5920 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
5921 * ppcboot.c (ppcboot_vec): Use little endian routines for
5922 headers.
5923
5924 * elf.c (elfcore_strndup): Only define if it will be used.
5925 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
5926 and irelend.
5927 (ppc_elf_check_relocs): Remove unused local i.
5928 (ppc_elf_gc_mark_hook): Add default case to switch.
5929
5930 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
5931 * srec.c (srec_scan): Accept \r in symbol definitions.
5932 (srec_object_p): Set HAS_SYMS if we saw any symbols.
5933 (symbolsrec_object_p): Likewise.
5934
5935 1999-04-04 Don Bowman <don@pixsci.com>
5936
5937 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
5938
5939 1999-04-04 Ian Lance Taylor <ian@zembu.com>
5940
5941 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
5942 last_line.
5943 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
5944 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
5945 switch.
5946 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
5947 local i.
5948 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
5949 local val.
5950
5951 1999-03-31 Nick Clifton <nickc@cygnus.com>
5952
5953 * config.bfd: Add support for arm-epoc-pe target.
5954 * configure.in: Add support for arm-epoc-pe target.
5955 * configure: Regenerate.
5956 * targets.c: Add support for arm-epoc-pe target.
5957 * coff-arm.c: Allow header files to override definition of
5958 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
5959 * pe-arm.h: Allow previous header files to override definition of
5960 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
5961 * pei-arm.h: Allow previous header files to override definition of
5962 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
5963 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
5964 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
5965
5966 1999-03-30 Nick Clifton <nickc@cygnus.com>
5967
5968 * elf.c (elf_map_symbols): Handle the case where section
5969 symbols are generated for content-less sections which are
5970 not mapped to the output file.
5971
5972 * linker.c: Replace direct references to fields in BFD structure
5973 with accessor macros.
5974
5975 * elflink.h: Replace direct references to fields in BFD structure
5976 with accessor macros.
5977
5978 1999-03-25 Philip Blundell <pb@nexus.co.uk>
5979
5980 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
5981
5982 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
5983 account when adjusting section symbols during a partial link.
5984
5985 1999-03-24 Nick Clifton <nickc@cygnus.com>
5986
5987 * coff-sparc.c (struct coff_reloc_map): Change type of field
5988 'bfd_reloc_val' to bfd_reloc_code_real_type.
5989 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
5990 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
5991 * elf32-arc.c (struct arc_reloc_map): Ditto.
5992 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
5993 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
5994 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
5995 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
5996 * elf32-sh.c (struct elf_reloc_map): Ditto.
5997 * elf32-sparc.c (struct elf_reloc_map): Ditto.
5998 * elf32-v850.c (struct v850_reloc_map): Ditto.
5999 * elf64-sparc.c (struct elf_reloc_map): Ditto.
6000 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
6001 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
6002
6003 1999-03-17 Martin Hunt <hunt@cygnus.com>
6004
6005 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
6006 function so source-level assembly works. If multiple N_SOs
6007 are seen without and N_FUNs, create an indextable entry with
6008 a NULL function name.
6009
6010 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
6011
6012 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
6013 of certian similar cpus.
6014
6015 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
6016
6017 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
6018 Add the 5000. Change the architecture for the 5400 to mips4.
6019 (elf_mips_mach): Add r5000.
6020
6021 1999-03-11 Doug Evans <devans@casey.cygnus.com>
6022
6023 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
6024
6025 1999-03-11 Nick Clifton <nickc@cygnus.com>
6026
6027 * binary.c (binary_set_section_contents): Generate warning about
6028 huge file offsets for any section that will occupy file space, not
6029 just those that are loadable.
6030
6031 1999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
6032
6033 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
6034
6035 1999-02-22 Jim Lemke <jlemke@cygnus.com>
6036
6037 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
6038
6039 Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
6040
6041 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
6042 * elflink.h: Revert all changes since Feb 16. Instead:
6043 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
6044 appropriate. Copy it to version symbols.
6045 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
6046 symbols if appropriate.
6047 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
6048 symbol if appropriate.
6049 (elf_link_output_extsym): If symbol is marked as undefined, and
6050 has no nonweak references, mark it as weak undefined.
6051
6052 Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
6053
6054 * elflink.h (elf_merge_symbol): When overriding a dynamic
6055 definition with a weak undefined symbol, set NEEDS_PLT if it is a
6056 function.
6057 (elf_link_add_object_symbols): Don't copy the other field if we
6058 are overridding.
6059
6060 Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
6061
6062 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
6063 shared object with a weak undefined symbol.
6064
6065 1999-02-18 Nick Clifton <nickc@cygnus.com>
6066
6067 * elfarm-nabi.c: Set partial_inplace back to false.
6068
6069 1999-02-17 Nick Clifton <nickc@cygnus.com>
6070
6071 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
6072 (USER_LABEL_PREFIX): Set to "_".
6073
6074 The following patches are from: Scott Bambrough
6075 <scottb@corelcomputer.com>
6076
6077 * libaout.h (M_ARM6_NETBSD): Set to 143.
6078
6079 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
6080 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
6081 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
6082 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
6083 * bfd-in2.h: Regenerate.
6084
6085 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
6086 'true' as REL relocs are now being used. Add new PIC relocs:
6087 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
6088 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
6089
6090 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
6091 of targets.
6092 (elf32_arm_final_link_relocate): Change parameters so that entire
6093 reloc is passed. Add support for PIC relocs.
6094 (elf32_arm_relocate_section): Pass entire reloc to
6095 elf32_arm_final_link_relocate.
6096 (elf32_arm_check_relocs): Handle new PIC relocs.
6097 (elf32_arm_adjust_dynamic_symbol): New function.
6098 (elf32_arm_size_dynamic_sections): New function.
6099 (elf32_arm_discard_copies): New function.
6100 (elf32_arm_finish_dynamic_symbol): New function.
6101 (elf32_arm_finish_dynamic_sections): New function.
6102 (ELF_MAXPAGE_SIZE): Define.
6103 (bfd_elf32_bfd_reloc_type_lookup): Define.
6104 (elf_backend_relocate_section): Define.
6105 (elf_backend_adjust_dynamic_symbol): Define.
6106 (elf_backend_create_dynamic_sections): Define.
6107 (elf_backend_finish_dynamic_symbol): Define.
6108 (elf_backend_finish_dynamic_sections): Define.
6109 (elf_backend_size_dynamic_sections): Define.
6110 (elf_backend_plt_readonly): Define.
6111 (elf_backend_want_got_plt): Define.
6112 (elf_backend_want_plt_sym): Define.
6113
6114 Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
6115
6116 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
6117 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
6118 (_bfd_mips_elf_fake_sections): Likewise.
6119
6120 Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6121
6122 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
6123 bfd_elf32_arm_get_bfd_for_interworking,
6124 bfd_elf32_arm_process_before_allocation): Define to avoid clash
6125 with elfarm-nabi.c.
6126
6127 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
6128 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
6129 elf32_arm_find_nearest_line): Make them static.
6130
6131 Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
6132
6133 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
6134 callers. Do not merge a definition from a shared object with a
6135 weak undefined symbol.
6136 (elf_link_add_object_symbols): Do not change the symbol type or
6137 size if the old symbol overrides the new one.
6138
6139 1999-02-08 Nick Clifton <nickc@cygnus.com>
6140
6141 * config.bfd: Add support for strongarm target.
6142
6143 Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6144
6145 * elf32-m68k.c (reloc_map): Use the correct types for the struct
6146 fields instead of unsigned char.
6147
6148 Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
6149
6150 * Makefile.am: Rebuild dependencies.
6151 * Makefile.in: Rebuild.
6152
6153 Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
6154
6155 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
6156 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
6157 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
6158 * acinclude.m4: Add comments to uses of AC_DEFINE.
6159 * acconfig.h: Remove.
6160 * configure: Rebuild with current autoconf/automake.
6161 * aclocal.m4: Likewise.
6162 * config.in: Likewise.
6163 * Makefile.in: Likewise.
6164
6165 1999-02-04 DJ Delorie <dj@cygnus.com>
6166
6167 * libbfd.c (real_read): don't call fread for zero bytes. This
6168 covers up a bug (or misuse of bfd) that's exposed by Solaris.
6169
6170 Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
6171
6172 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
6173 of a jump is in the current 256 MB region.
6174
6175 Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
6176
6177 * format.c (bfd_check_format_matches): Change last patch to only
6178 take effect for the binary target.
6179
6180 Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
6181
6182 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
6183
6184 Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
6185
6186 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
6187
6188 Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
6189
6190 * format.c (bfd_check_format_matches): If the target was
6191 previously specified, don't check other targets when checking for
6192 an archive file.
6193
6194 Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
6195
6196 * elf32-arm.h (elf32_arm_reloc_map): Removed.
6197 (elf32_arm_reloc_type_lookup): Removed
6198 * elfarm-nabi.c (elf32_arm_reloc_map): New.
6199 (elf32_arm_reloc_type_lookup): New.
6200 * elfarm-oabi.c (elf32_arm_reloc_map): New.
6201 (elf32_arm_reloc_type_lookup): New.
6202
6203 Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
6204
6205 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
6206 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
6207 * Makefile.am: Use new files.
6208 * Makefile.in: Regenerate.
6209 * configure.in: Use new files.
6210 * configure: Regenerate.
6211
6212 1999-02-01 Nick Clifton <nickc@cygnus.com>
6213
6214 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
6215 (fr30_elf_gc_sweep_hook): New function.
6216 (elf_backend_can_gc_sections): Define.
6217
6218 Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
6219
6220 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
6221 and bfd_elf32_bigarm_oabi_vec.
6222
6223 Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
6224
6225 * Makefile.am (elf32-arm-oldabi.lo): New.
6226 (elf32-arm-newabi.lo): New.
6227 * Makefile.in: Regenerate.
6228 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
6229 (arm-*-elf): Likewise.
6230 (arm-*-oabi): New.
6231 (thumb-*-oabi): New.
6232 * configure: Regenerate.
6233 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
6234 (bfd_elf32_bigarm_oabi_vec): New.
6235 * elf32-arm-newabi.c: New.
6236 * elf32-arm-oldabi.c: New.
6237 * elf32-arm.c: Removed.
6238 * elf32-arm.h: New.
6239
6240 Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
6241
6242 * binary.c (binary_set_section_contents): Omit warnings for
6243 unloadable sections.
6244
6245 1999-01-31 Michael Meissner <meissner@cygnus.com>
6246
6247 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
6248 powerpc{,le}-*-eabi.
6249
6250 1999-01-29 Nick Clifton <nickc@cygnus.com>
6251
6252 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
6253 * dwarf2.c (read_signed_leb128): Remove unused variables.
6254
6255 Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
6256
6257 * elf.c (assign_file_positions_for_segments): Only adjust
6258 p_align when needed.
6259
6260 Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
6261
6262 * binary.c (binary_set_section_contents): Don't return early for a
6263 non-loadable section, in case the first section is non-loadable.
6264 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
6265 W. Rozycki <macro@ds2.pg.gda.pl>.
6266
6267 1999-01-28 Nick Clifton <nickc@cygnus.com>
6268
6269 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
6270 R_FR30_GNU_VTENTRY relocs.
6271
6272 Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
6273
6274 * elflink.h (elf_link_output_sym): Zero syms which are
6275 part of sections which have been excluded.
6276
6277 Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
6278
6279 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
6280 to F_PIC_INT.
6281 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
6282 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
6283
6284 1999-01-27 Nick Clifton <nickc@cygnus.com>
6285
6286 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
6287 relocation.
6288 (fr30_final_link_relocate): Use computed value as result of
6289 relocation.
6290
6291 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
6292
6293 * binary.c (binary_set_section_contents): Emit warning for
6294 huge file offsets due to widely-dispersed section LMAs.
6295
6296 Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
6297
6298 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
6299 align first section to largest section alignment, not first
6300 section alignment.
6301
6302 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
6303
6304 * configure.in: Require autoconf 2.12.1 or higher.
6305
6306 Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
6307
6308 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
6309 * bfd-in2.h: Likewise.
6310 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
6311
6312 1998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
6313
6314 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
6315 * cpu-mips.c: Add support for and independent 4111.
6316 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
6317 (_bfd_mips_elf_final_write_processing):
6318 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
6319
6320 1998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
6321
6322 * elf32-mips.c (elf_mips_abi_name): New.
6323 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
6324
6325 1998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
6326
6327 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
6328 Handle bfd_mach_mips4300.
6329
6330 1998-12-11 Ulrich Drepper <drepper@cygnus.com>
6331
6332 * elf32-i386.c: Remove leaked development code from patch
6333 1998-12-10 by Richard Henderson.
6334
6335 1998-12-10 Richard Henderson <rth@cygnus.com>
6336
6337 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
6338 in debug sections for symbol defined externally.
6339
6340 Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6341
6342 * targets.c (bfd_target_vector): Remove duplicate entry for
6343 tekhex_vec.
6344
6345 1998-12-09 Nick Clifton <nickc@cygnus.com>
6346
6347 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
6348 since we are using RELAs.
6349
6350 Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
6351
6352 SCO Open Server Release 5 core file support, from Jouke Numan
6353 <jnuman@hiscom.nl>:
6354 * sco5-core.c: New file.
6355 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
6356 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
6357 * Makefile.am: Rebuild dependencies.
6358 (OPTIONAL_BACKENDS): Add sco5-core.lo.
6359 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
6360 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
6361 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
6362 * bfd-in2.h, configure, Makefile.in: Rebuild.
6363
6364 Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
6365
6366 * config.bfd (hppa*-*-mpeix*): New target.
6367 * configure.in: Add AC_HEADER_DIRENT.
6368 (hppa*-*-mpeix*): New target.
6369 * configure.host (hppa*-*-mpeix*): New host.
6370 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
6371 friends rather than just including <sys/dir.h>.
6372 * som.h (struct som_symbol): Add hppa_priv_level and apto
6373 tc_data. Change all users.
6374 (struct somdata): Add comp_unit field.
6375 (obj_som_compilation_unit): Define.
6376 (bfd_som_attach_compilation_unix): Declare.
6377 * som.c: Check HOST_HPPAMPEIX.
6378 (struct som_misc_symbol_info): Add new field priv_level.
6379 (som_object_setup): Add current_offset parameter. Change all
6380 callers.
6381 (setup_sections): Likewise.
6382 (som_object_p): For EXECLIBMAGIC, read the lst header.
6383 (som_write_symbol_strings): Add compilation_unit parameter.
6384 Change all callers.
6385 (som_finish_writing): Write out compilation_unit.
6386 (som_bfd_derive_misc_symbol_info): Set priv_level.
6387 (som_build_and_write_symbol_table): Set xleast field to 3.
6388 (som_slurp_symbol_table): Set symbol priv_level.
6389 (bfd_som_attach_compilation_unit): New function.
6390 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
6391 priv_level into symbol_value.
6392 * configure, config.in: Rebuild.
6393
6394 Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
6395
6396 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
6397 warning function to call _bfd_error_handler instead.
6398
6399 * libbfd.c (COERCE32): Cast through unsigned long and long to
6400 avoid bug in old version of gcc.
6401
6402 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
6403 (elf_backend_additional_program_headers): Don't define.
6404
6405 1998-12-08 Nick Clifton <nickc@cygnus.com>
6406
6407 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
6408 relocations to include offset of 2 included in the insns, and the
6409 offset of the relocs within the section.
6410
6411 Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
6412
6413 The following changes were made by David Taylor
6414 <taylor@texas.cygnus.com>, Edith Epstein
6415 <eepstein@sophia.cygnus.com>, Jim Blandy
6416 <jimb@zwingli.cygnus.com>, and Elena Zannoni
6417 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
6418 changes originally made by HP; HP did not create ChangeLog
6419 entries.
6420
6421 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
6422 automake macro library.
6423
6424 * hpux-core.c (hpux_core_core_file_p): this function now
6425 understands HPUX 10.30 thread info. Yes, the thread stacks can be
6426 found in the corefile! Also, in hpux_core_core_file_p, if we
6427 encounter a section with an unknown type, don't punt. Instead,
6428 just skip it. Also, count the number of sections of known type
6429 that we encounter. If we encounter at least one good one, then
6430 we'll declare that the file is a core file. If we encounter any
6431 unknown ones but some known ones, then we'll issue a warning (but
6432 still declare it to be a core file). Also, correctly decide when a
6433 file is not a core.
6434 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
6435 (CORE_ANON_SHMEM): define if not defined.
6436 (hpux_core_struct): add members lwpid and user_tid.
6437 (core_kernel_thread_id, core_user_thread_id): new macros.
6438 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
6439 the name before storing it in the bfd.
6440 (hpux_core_core_file_p): handle threads.
6441
6442 * libhppa.h (GET_FIELD): protect against redefinition.
6443 (HPPA_WIDE): define.
6444 (GET_FIELD): define.
6445 (GET_BIT): define.
6446 (MASK): define.
6447 (CATENATE): define.
6448 (ELEVEN): define.
6449 (sign_extend): redefine.
6450 (assemble_6): define.
6451 (assemble_12): rewrite.
6452 (assemble_16): define.
6453 (assemble_16a): define.
6454 (assemble_17): rewrite.
6455 (assemble_22): define.
6456
6457 1998-12-07 Nick Clifton <nickc@cygnus.com>
6458
6459 * elf32-fr30.c (fr30_final_link_relocate): Using signed
6460 relocations for signed values.
6461
6462 Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
6463
6464 * mipsbsd.c (MY(set_arch_mach)): Make static.
6465 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
6466 bfd_mach_mips* macros rather than simple numbers.
6467
6468 COFF weak symbol support, based on patches from Mark Elbrecht
6469 <snowball3@usa.net>:
6470 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
6471 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
6472 (coff_write_alien_symbol): Likewise.
6473 * cofflink.c (coff_link_check_ar_symbols): Likewise.
6474 (coff_link_add_symbols): Likewise.
6475 (_bfd_coff_link_input_bfd): Likewise.
6476 (_bfd_coff_write_global_sym): Likewise.
6477
6478 * elf.c (copy_private_bfd_data): Always initialize the
6479 includes_phdrs field.
6480
6481 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
6482 file defines a symbol first mentioned in an ELF file.
6483
6484 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
6485 possible, rather than only if BFD64.
6486 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
6487 not __GNUC__.
6488 * bfd-in2.h: Rebuild.
6489
6490 * srec.c (srec_set_section_contents): Correct test to avoid
6491 switching to 4 byte addresses after seeing a second section which
6492 requires 3 byte addresses. From Joel Schantz
6493 <joel.schantz@argosys.boeing.com>.
6494
6495 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
6496 <aymeric.vincent@emi.u-bordeaux.fr>.
6497
6498 1998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
6499
6500 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
6501 decide whether the output file is -mrelocatable-lib,
6502 -mrelocatable, or neither. (gdb.base/nodebug.exp)
6503
6504 1998-12-03 Nick Clifton <nickc@cygnus.com>
6505
6506 * elf32-fr30.c: Add support for R_FR30_48 reloc.
6507 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
6508 * bfd-in2.h: Regenerate.
6509 * libbfd.h: Regenerate
6510
6511 Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
6512
6513 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
6514 link against a dynamic symbol with no type or size.
6515
6516 1998-12-01 Ulrich Drepper <drepper@cygnus.com>
6517
6518 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
6519 relocation for section which does not get loaded.
6520 (elf_i386_relocate_section) [R_386_32]: Likewise.
6521
6522 Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
6523
6524 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
6525 reloc_count and i long instead of unsigned long. Handle error
6526 return from bfd_canonicalize_reloc.
6527
6528 1998-12-01 Nick Clifton <nickc@cygnus.com>
6529
6530 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
6531 a hash table.
6532
6533 Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6534
6535 * elf32-sh.c (elf/sh.h): Include.
6536 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
6537 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
6538 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
6539 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6540 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
6541
6542 Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
6543
6544 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
6545 causes division by zero later on.
6546
6547 Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
6548
6549 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
6550 needed.
6551
6552 1998-11-25 DJ Delorie <dj@cygnus.com>
6553
6554 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
6555 hook now.
6556
6557 Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
6558
6559 * elf32-fr30.c (fr30_elf_relocate_section): Call
6560 fr30_final_link_relocate.
6561 (fr30_final_link_relocate): New function: Handle I20 and I32
6562 relocs.
6563 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
6564 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
6565 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
6566
6567 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
6568 chain to empty.
6569
6570 The following changes are based on a patch submitted by Gianluca
6571 Moro <glctr@abc.it>:
6572
6573 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
6574 not already been updated.
6575 (find_remembered_hi16s_reloc): New parameter 'already_found'
6576 returns state of remembered hi16s reloc.
6577 (remember_hi16s_reloc): Set 'found' field to false.
6578 (hi16s_location): Add 'found' field.
6579
6580 1998-11-23 DJ Delorie <dj@cygnus.com>
6581
6582 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
6583 to see .DLL files as unrecognized.
6584 (i3coff_object_p): Sorry, had to hack it to not recognize these
6585 files (pei-i386) on request.
6586
6587 1998-11-23 DJ Delorie <dj@cygnus.com>
6588
6589 * opncls.c (bfd_make_readable): need more cleanup for symbols and
6590 relents. Call bfd_check_format to reinitialize.
6591
6592 Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
6593
6594 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
6595 warnings.
6596
6597 Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
6598
6599 * aclocal.m4: regenerate
6600 * configure: regenerate
6601
6602 Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
6603
6604 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
6605 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
6606 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
6607 respect it as an upper bound on what memory to reference.
6608 (elf_gc_smash_unused_vtentry_relocs): Likewise.
6609 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
6610 update vtable_entries_size appropriately.
6611
6612 Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
6613
6614 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
6615 reloc number.
6616
6617 Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
6618
6619 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
6620 bfds; they have no "file" so we fake it.
6621 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
6622 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
6623 resizing the memory buffer.
6624 * opncls.c (bfd_make_writable): New function; lets you write a
6625 bfd_create'd bfd to an in-memory buffer.
6626 (bfd_make_readable): New function; lets you read back that buffer
6627 as if it were from bfd_openr. Used to build generated archive
6628 members (winsup's ld's dlltool)
6629
6630 Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
6631
6632 * po/bfd.pot: Regenerated.
6633
6634 Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
6635
6636 * elf32-v850.c (hi16s_location): Replaced fixed size array with
6637 linked list.
6638
6639 Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
6640
6641 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
6642 element of the gotentry list for local symbols too.
6643 (elf64_alpha_relocate_section): Unify local and global handling.
6644 Assert that gotent->use_count > 0.
6645
6646 Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
6647
6648 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
6649 update for file name changes of July 2, 1998.
6650 (vms_vax_vec): New.
6651 * configure: Rebuild.
6652
6653 Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
6654
6655 * po/bfd.pot: Regenerated.
6656
6657 Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
6658
6659 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
6660 * aclocal.m4, configure: regenerate
6661
6662 Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
6663
6664 * elf.c (prep_headers): Add support for bfd_arch_fr30.
6665
6666 Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
6667
6668 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
6669 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
6670 was cached.
6671 * aclocal.m4, configure: regenerated.
6672
6673 Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
6674
6675 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
6676 R_D10V_GNU_VTENTRY relocs.
6677 (elf_d10v_howto_table): Likewise.
6678 (d10v_reloc_map d10v_reloc_map): Likewise.
6679 (elf32_d10v_gc_mark_hook): New.
6680 (elf32_d10v_gc_sweep_hook): New.
6681 (elf32_d10v_check_relocs): New.
6682 (elf32_d10v_relocate_section): New.
6683 (elf_backend_relocate_section): Define.
6684 (elf_backend_can_gc_sections): Define.
6685
6686 Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
6687
6688 * Makefile.am (BFD32_BACKENDS): Move vms files here...
6689 (BFD64_BACKENDS): ...from here.
6690 (BFD32_BACKENDS_CFILES): Move vms files here...
6691 (BFD64_BACKENDS_CFILES): ...from here.
6692 * Makefile.in: Rebuild.
6693
6694 Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
6695
6696 * Makefile.am: Add FR30 target.
6697 * Makefile.in: Add FR30 target.
6698 * archures.c: Add support for FR30.
6699 * config.bfd: Add support for FR30.
6700 * configure.in: Add support for FR30.
6701 * reloc.c: Add support for FR30 relocations.
6702 * targets.c: Add support for FR30 relocations.
6703 * bfd-in2.h: Regenerate.
6704 * configure: Regenerate.
6705 * libbfd.h: Regenerate.
6706 * cpu-fr30.c: New file.
6707 * elf32-fr30.c: New file.
6708
6709 Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
6710
6711 * configure.in: detect cygwin* instead of cygwin32*
6712 * configure: regenerate
6713
6714 Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
6715
6716 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
6717 use bfd_malloc and free instead and check return value from bfd_malloc.
6718
6719 Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
6720
6721 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
6722 * libbfd.h: Rebuild.
6723
6724 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
6725 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
6726 (MIPS_TEXT_DYNSYM_SECN): Likewise.
6727 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
6728 section.
6729 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
6730 field.
6731 (mips_elf_link_hash_table_create): Don't initialize
6732 dynsym_sec_strindex.
6733 (mips_elf_gc_mark_hook): Add default case to avoid warning.
6734 (mips_elf_size_dynamic_sections): Generate a section symbol for
6735 every output section.
6736 (mips_elf_finish_dynamic_sections): Count all sections for
6737 DT_MIPS_UNREFEXTNO.
6738 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
6739 output sections.
6740
6741 Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
6742
6743 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
6744 for later PLT entries in large PLTs.
6745 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
6746
6747 Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
6748
6749 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
6750
6751 1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
6752
6753 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
6754 * elflink.h (elf_collect_hash_codes): New function. This function is
6755 called for each exported symbol and we compute the ELF hash value for
6756 it.
6757 (compute_bucket_value): New function. It is called from
6758 size_dynamic_sections to determine the hash table size. When we are
6759 optimizing a better, but slower, algorithm is used.
6760 (size_dynamic_sections): Call compute_bucket_value.
6761
6762 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
6763
6764 Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
6765
6766 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
6767 R_SH_GNU_VTENTRY.
6768 (sh_elf_gc_mark_hook): New.
6769 (sh_elf_gc_sweep_hook): New.
6770 (sh_elf_check_relocs): New.
6771 (elf_backend_can_gc_sections): Define.
6772
6773 Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
6774
6775 * acinclude.m4: undo previous gettext change
6776 * aclocal.m4: rebuild with right version of aclocal.
6777
6778 Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
6779
6780 * acinclude.m4, aclocal.m4: move gettext-related fragments from
6781 aclocal.m4 to acinclude.m4, so they don't get lost.
6782
6783 * elfcore.h: rewrite for better corefile support.
6784 * elf.c (elfcore_*): new functions.
6785 * elf-bfd.h (elf_obj_tdata): new structure members.
6786 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
6787 flavor of procfs.
6788 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
6789
6790 Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
6791
6792 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
6793 and R_M32R_GNU_VTENTRY.
6794 (elf_backend_can_gc_sections): Define.
6795 (m32r_elf_check_relocs): New.
6796 (m32r_elf_gc_mark_hook): New.
6797 (m32r_elf_gc_sweep_hook): New.
6798 (m32r_elf_relocate_section): Handle VT relocs.
6799
6800 Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
6801
6802 * coff-arm.c (arm_relocate_section): Remove redundant test.
6803
6804 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
6805 cleat that the 'bitsize' field is the size of the bitfield AFTER
6806 relocation not before.
6807
6808 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
6809
6810 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
6811 relocs.
6812
6813 Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
6814
6815 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
6816 R_SPARC_GNU_VTENTRY.
6817 (elf32_sparc_check_relocs): Handle them.
6818 (elf32_sparc_reloc_type_lookup): Likewise.
6819 (elf32_sparc_relocate_section): Likewise.
6820 (elf32_sparc_gc_mark_hook): New.
6821 (elf32_sparc_gc_sweep_hook): New.
6822
6823 Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
6824
6825 * som.c (som_finish_writing): Perform some sanity checks when
6826 writing an executable or shared library.
6827
6828 Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
6829
6830 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
6831 * configure.in (elf): Add dwarf1.lo.
6832 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
6833 * elf.c (_bfd_elf_find_nearest_line): Add call to
6834 _bfd_dwarf1_find_nearest_line.
6835 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
6836 Add call to _bfd_dwarf1_find_nearest_line.
6837 * configure: Rebuilt.
6838
6839 Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
6840
6841 * elflink.h (elf_gc_sections): Do not allow garbage
6842 collection if dynamic sections have been created.
6843
6844 Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
6845
6846 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
6847 R_V850_GNU_VTENTRY.
6848 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
6849 (v850_elf_perform_relocation): Likewise.
6850 (v850_elf_final_link_relocate): Likewise.
6851 (v850_elf_relocate_section): Likewise.
6852 (v850_elf_gc_sweep_hook): New routine.
6853 (v850_elf_gc_mark_hook): New routine.
6854 (elf_backend_can_gc_sections): Define.
6855
6856 Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
6857
6858 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
6859 that dynobj exists.
6860
6861 Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
6862
6863 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
6864 Declare size as bfd_size_type.
6865 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
6866
6867 Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
6868
6869 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
6870 structure.
6871 * som.c (CPU_PA_RISC2_0): Define.
6872 (_PA_RISC2_0_ID): Likewise.
6873 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
6874
6875 Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
6876
6877 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
6878 has a base which is already defined, only add the referenced
6879 symbol to the dynamic symbol table if it is defined or referenced
6880 by a regular file.
6881
6882 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
6883 correctly.
6884
6885 1998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6886
6887 * elflink.h (elf_link_add_object_symbols): Undo last change.
6888
6889 Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
6890
6891 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
6892 symbol for the indirect alias to a versioned symbol.
6893
6894 Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
6895
6896 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
6897 (elf32_i386_vtentry_howto): New.
6898 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
6899 or elf32_i386_vtinherit_howto on lookup.
6900
6901 Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6902
6903 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
6904 reloc_type. Rename R_68K__max to R_68K_max.
6905 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
6906 reloc.
6907
6908 Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
6909
6910 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
6911 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
6912
6913 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
6914 after.
6915
6916 Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
6917
6918 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
6919 message has a null byte terminator.
6920
6921 Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
6922
6923 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
6924 word subject to R_V850_32 relocation.
6925
6926 Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
6927
6928 * dwarf2.c: Add comment describing problem computing line numbers
6929 for undefined symbols at link time.
6930
6931 Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
6932
6933 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
6934 transform a defweak into a plt entry.
6935 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
6936 plt entry references to receive a RELATIVE reloc.
6937 (elf64_alpha_finish_dynamic_symbol): Fill them in.
6938 (elf64_alpha_relocate_section): Assert we don't overrun
6939 the allocated relocation space.
6940
6941 Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
6942
6943 * elf.c (swap_out_syms): Always treat section symbols as
6944 special, even if they are attached to a common section.
6945
6946 Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
6947
6948 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
6949 sections with v850 common section attributes into named v850
6950 common sections.
6951 (v850_elf_add_symbol_hook): Move symbols in sections with v850
6952 common section attributes into named v850 common sections.
6953
6954 Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
6955
6956 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
6957 statement.
6958
6959 1998-09-15 Geoff Keating <geoffk@ozemail.com.au>
6960
6961 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
6962 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
6963 reloc to the wrong section a warning, not an error. .dynsbss
6964 is not an output section, so there is no need to check for it.
6965
6966 Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
6967
6968 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
6969
6970 Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
6971
6972 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
6973 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
6974 R_ARM_GNU_VTENTRY.
6975 (elf32_arm_gc_mark_hook): New.
6976 (elf32_arm_gc_sweep_hook): New.
6977 (elf32_arm_check_relocs): New.
6978 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
6979 relocations.
6980 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
6981 relocations.
6982
6983 1998-09-10 Geoff Keating <geoffk@ozemail.com.au>
6984
6985 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
6986 assume there is no PLT or GOT.
6987
6988 Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
6989
6990 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
6991 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
6992 also accepted as a function symbol type.
6993
6994 Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6995
6996 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
6997
6998 Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
6999
7000 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
7001 match definition of _bfd_gc_sections field.
7002 * libbfd.h: Rebuild.
7003
7004 Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
7005
7006 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
7007 the addend of a dynamic relocation referencing a section.
7008 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7009 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
7010
7011 Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
7012
7013 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
7014 bed has a size_dynamic_sections routine before trying to use it.
7015
7016 Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
7017
7018 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
7019 _bfd_elf_rel_vtable_reloc_fn.
7020
7021 Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
7022
7023 * Makefile.am: Add elf32-arm.c.
7024 * Makefile.in: Rebuild.
7025 * elf-bfd.h: Add elf_backend_get_symbol_type.
7026 * elf.c (swap_out_syms): If defined, call
7027 elf_backend_get_symbol_type.
7028 * elf32-arm.c: Define elf_backend_get_symbol_type.
7029 (elf32_arm_get_symbol-type): New routine.
7030 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
7031 (bfd_elf32_arm_process_before_allocation): Change to
7032 check for STT_ARM_TFUNC.
7033 (elf32_arm_final_link_relocate): Likewise.
7034 * elfxx-target.h: Add elf_backend_get_symbol_type.
7035
7036 Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
7037
7038 * archures.c (bfd_mach_alpha_ev[456]): New.
7039 * cpu-alpha.c: Rework to match these types.
7040 * bfd-in2.h: Rebuild.
7041
7042 Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
7043
7044 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
7045 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
7046
7047 * elf32-i386.c (elf_howto_table): Add vtable relocs.
7048 (elf_i386_reloc_type_lookup): Recognize them.
7049 (elf_i386_check_relocs): Pass them off to generic code.
7050 (elf_i386_relocate_section): Ignore them.
7051 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
7052 (elf_backend_can_gc_sections): True.
7053
7054 Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
7055
7056 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
7057 before looking at owner field.
7058 (elf32_arm_to_thumb_stub): Ditto.
7059 (elf32_arm_relocate_section): Compute name before calling
7060 elf32_arm_final_link_relocate().
7061
7062 Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
7063
7064 * elf.c: comment and formatting cleanups.
7065 * elfcore.h: ditto.
7066
7067 Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
7068
7069 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
7070 (core files are treated differently than object files).
7071 * elf-bfd.h (_bfd_elf_write_corefile_contents,
7072 bfd_elf_mkcorefile): declare.
7073 * elfxx-target.h (_bfd_elf_write_corefile_contents,
7074 bfd_elf_mkcorefile): add to bfd_target vector.
7075 * elfcore.h (elf_core_file_p): save the program header table,
7076 and set the bfd architecture from the elf file header.
7077 * elf.c (bfd_elf_mkcorefile): new function.
7078 (_bfd_elf_write_corefile_contents): new function.
7079 (assign_file_positions_for_segments): add cases for handling
7080 PT_NOTE segments. (assign_file_positions_except_relocs):
7081 core files should be handled the same as exec files.
7082 (prep_headers): identify core files as type ET_CORE.
7083 (copy_private_bfd_data): identify the sections belonging to
7084 the PT_NOTE segment.
7085
7086 * elf32-sparc.c (elf32_sparc_final_write_processing):
7087 add break statement to default case.
7088
7089 1998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
7090
7091 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
7092 section (not input) will be in sections ".sbss", ".sbss2",
7093 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
7094 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
7095 output_offset for correct evaluation of addend.
7096
7097 Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
7098
7099 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
7100 elf32_arm_allocate_interworking_sections and
7101 elf32_arm_process_before_allocation.
7102
7103 Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
7104
7105 * bfd-in.h: Ammend prototype for
7106 elf32_arm_process_before_allocation to remove surplus third
7107 argument.
7108
7109 * bfd-in2.h: Regenerate.
7110
7111 Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
7112
7113 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
7114
7115 Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
7116
7117 * aoutx.h (aout_link_input_section_ext): Use the relocation already
7118 calculated for RELOC_SPARC_REV32 case.
7119
7120 Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
7121
7122 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
7123 elf32_arm_allocate_interworking_sections and
7124 elf32_arm_process_before_allocation.
7125 * bfd-in2.h: Regenerated.
7126 * elf32-arm.c Define elf32_arm_link_hash_table.
7127 (insert_thumb_branch): New routine.
7128 (find_thumb_glue): New routine.
7129 (find_arm_glue): New routine.
7130 (record_arm_to_thumb_glue): New routine.
7131 (record_thumb_to_arm_glue): New routine.
7132 (elf32_arm_link_hash_table_create): New routine.
7133 (elf32_arm_get_bfd_for_interworking): New routine.
7134 (elf32_arm_allocate_interworking_sections) New routine.
7135 (elf32_arm_process_before_allocation) New routine.
7136 (elf32_thumb_to_arm_stub): New routine.
7137 (elf32_arm_to_thumb_stub): New routine.
7138 (elf32_print_private_bfd_data): Fix typo.
7139 (elf32_arm_final_link_relocate): Add argument sym_sec.
7140 Check for branches to thumb symbols in case R_ARM_PC24.
7141 Check for branches to arm symbols in case R_ARM_THM_PC22.
7142 (elf32_arm_relocate_section): Pass symbol section to
7143 elf32_arm_final_link_relocate.
7144
7145 Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
7146
7147 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
7148 entries unless the symbol is defined in the executable; in
7149 particular, undefined weak symbols get a PLT entry.
7150
7151 Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
7152
7153 * libaout.h: Remove nested comment to avoid warning.
7154
7155 Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
7156
7157 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
7158 R_ARM_PC24 relocation.
7159
7160 Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
7161
7162 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
7163 argument is_local. Add argument sym_flags. Check sym_flags
7164 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
7165 (elf32_arm_relocate_section): Don't pass local sym and pass
7166 sym_flags to elf32_arm_final_link_relocate.
7167
7168 Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
7169
7170 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
7171 to not count too few relocs for dynamicly linked executables.
7172
7173 Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
7174
7175 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
7176 symbols without a dynamic index dynamic. Consider all weak
7177 symbols dynamic.
7178 (elf64_alpha_strip_section_from_output): Don't assume 1-1
7179 correspondance between input and output sections.
7180
7181 Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7182
7183 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
7184 that use a .got.plt section start the got offset at zero.
7185
7186 Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
7187
7188 * ieee.c (ieee_write_processor): Correct the processor ID written
7189 out for bfd_arch_m68k, accommodating change of March 25.
7190
7191 Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
7192
7193 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
7194 R_ARM_THM_RPC22 relocations.
7195
7196 Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
7197
7198 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
7199 are always dynamic.
7200 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
7201 .got relocs in -Bsymbolic shared objects.
7202
7203 Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
7204
7205 * elf32-arm.c: Add private flags to ELF header.
7206 (elf32_arm_print_private_bfd_data): New Function.
7207 (elf32_arm_set_private_flags): New Function.
7208 (elf32_arm_copy_private_flags): New Function.
7209 (elf32_arm_merge_private_bfd_data): New Function.
7210
7211 Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
7212
7213 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
7214 a local symbol.
7215 (elf32_sparc_relocate_section): Likewise.
7216
7217 Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
7218
7219 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
7220 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
7221 (ppc_elf_relocate_section): Pull sgot and splt search to the start
7222 of the function. Recognize no .plt as static linking.
7223
7224 1998-08-01 Ulrich Drepper <drepper@cygnus.com>
7225
7226 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
7227 ".liblist" string through gettext.
7228
7229 Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
7230
7231 * Makefile.am: Add support for elf32-arm.lo.
7232 * Makefile.in: Rebuild.
7233 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
7234 (thumb-*-elf): Define targ_defvec and targ_selvecs.
7235 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
7236 * configure: Regenerate.
7237 * elf.c: (prep_headers): Support arch_type of EM_ARM.
7238 * targets.c: Support new targets bfd_elf32_bigarm_vec and
7239 bfd_target bfd_elf32_littlearm_vec.
7240 * elf32-arm.c: New file.
7241
7242 Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
7243
7244 * libaout.h (M_SPARCLITE_LE): New machine.
7245 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
7246 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
7247 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
7248 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
7249 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
7250 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
7251 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
7252 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
7253 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
7254 be BFD_RELOC_SPARC_REV32.
7255 * reloc.c: Ditto.
7256 * config.bfd (sparc86x-*-aout): New
7257
7258 Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
7259
7260 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
7261 actually mapping the output sections.
7262
7263 Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
7264
7265
7266 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
7267 (mn10300_elf_reloc_map): Similarly.
7268 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
7269
7270 Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
7271
7272 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
7273 Irix 6.
7274 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
7275 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
7276 elf_mips_reloc_type defined in elf/mips.h.
7277
7278 1998-07-24 Ulrich Drepper <drepper@cygnus.com>
7279
7280 * elf64-mips.c: Remove reloc_type definition completely. It's now
7281 in elf/mips.h.
7282
7283 Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
7284
7285 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
7286 as they are defined in elf/mips.h now.
7287
7288 Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
7289
7290
7291 * Re-add lost change:
7292 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
7293 "movm_stack_size".
7294 (mn10300_elf_relax_section): Include stack space for register saves
7295 in the imm8 field of a "call" instruction.
7296 (compute_function_info): Determine how much stack is allocated by
7297 the movm instruction. Fix typo.
7298 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
7299
7300 Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
7301
7302 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
7303 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
7304
7305 1998-07-22 Ulrich Drepper <drepper@cygnus.com>
7306
7307 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
7308
7309 Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
7310
7311 * elf32-hppa.h: Let ELF header define the enum containing the
7312 external reloc numbers.
7313 * elf32-i386.h: Likewise.
7314
7315 1998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
7316
7317 * elf-m10300.c: Let ELF header now define the macros to get the enum.
7318 * elf32-mips.c: Likewise.
7319 * elf32-ppc.c: Likewise.
7320
7321 Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
7322
7323 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
7324 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
7325 prblems.
7326 * bfd-in.h: Regenerate.
7327 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
7328 parameter to 'unsigned int' to avoid K&R compatability problems.
7329
7330 Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
7331
7332 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
7333 functionname_ptr to be const. Change line_ptr to be unsigned.
7334
7335 * coffcode.h (coff_link_output_has_begun): Simplify handling when
7336 macro is not defined. Change second parameter from bfd_link_info
7337 to coff_final_link_info. Add prototype.
7338 (coff_final_link_postscript): Simplify handling when macro is not
7339 defined. Add prototype.
7340
7341 1998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
7342
7343 * elf-mn10300.c: Before include system specific ELF header define
7344 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
7345 * elf32-mips.c: Likewise.
7346 * elf32-ppc.c: Likewise.
7347
7348 Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
7349
7350 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
7351 temporary patch over to elf64-mips.c as well.
7352
7353 1998-07-21 Ulrich Drepper <drepper@cygnus.com>
7354
7355 * elf32-mips.c (reloc_type): Temporarily disable definition of
7356 standard relocation since they are now defined in elf/mips.h.
7357
7358 Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
7359
7360 * elf-m10200.c (mn10200_elf_final_link_relocate):
7361 Modify range test for case R_MN10200_8.
7362
7363 * elf-m10300.c (mn10300_elf_final_link_relocate):
7364 Modify range test for case R_MN10300_8.
7365
7366 Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
7367
7368 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
7369 * elf32-i386.c (elf_backend_got_header_size): Define.
7370 (elf_backend_plt_header_size): Define.
7371 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
7372 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
7373 * elfxx-target.h: Provide a default of zero.
7374 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
7375 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
7376
7377 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
7378 entry from an executable, even if the plt refcount goes to 0.
7379
7380 Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7381
7382 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
7383 directory name at the line number.
7384
7385 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
7386 with an unspecified type.
7387
7388 Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
7389
7390 * sunos.c: Add undef of valid to avoid problem on SunOS.
7391
7392 Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
7393
7394 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
7395
7396 Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7397
7398 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
7399 R_68K_PCxx and R_68K_xx relocations. Make sure that
7400 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
7401 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
7402 R_68K_xx relocations.
7403 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
7404 that has no plt entry.
7405 (elf_m68k_relocate_section): Ignore the plt offset in a static
7406 link.
7407 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
7408 an ignored symbol.
7409 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
7410 a static link.
7411
7412 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
7413 types.
7414 (howto_table, reloc_map): Add entries for them.
7415 (elf_m68k_check_relocs): Handle them. Implement reference
7416 counting for got and plt entries.
7417 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
7418 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
7419 symbols.
7420 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
7421 (elf_m68k_relocate_section): Handle the new reloc types.
7422 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
7423 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
7424 * elflink.h (elf_link_add_object_symbols): When creating an
7425 indirect reference for symbol versioning also copy the plt
7426 offset.
7427 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
7428 flag also reset the plt offset.
7429 (elf_link_assign_sym_version): Likewise.
7430 (elf_gc_common_finalize_got_offsets): Increment the got offset by
7431 the size of the entry in bytes.
7432 (elf_gc_allocate_got_offsets): Likewise.
7433
7434 Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
7435
7436 * elflink.h (elf_gc_sections): Return true rather than falling off
7437 the bottom.
7438
7439 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
7440 xmalloc.
7441
7442 Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
7443
7444 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
7445 comment describing when it should be enabled.
7446 Changed definition of USER_LABEL_PREFIX to "", to fall into line
7447 with GCC sources.
7448
7449 Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
7450
7451 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
7452 information ATN records.
7453
7454 Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
7455
7456 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
7457 section for an absolute symbol in a fully linked file. Based on
7458 patch from Christian Holland <CHolland@de.lucent.com>.
7459
7460 Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
7461
7462 * coff-m88k.c (m88k_special_reloc): Don't lose the information
7463 that a symbol is undefined.
7464
7465 Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
7466
7467 * som.c (som_bfd_gc_sections): Define.
7468
7469 Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
7470
7471 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
7472 overflows in ARM_26D patches, since they have already been
7473 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
7474
7475 Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
7476
7477 * coffcode.h (coff_write_object_contents): If we have any long
7478 section names, call coff_write_symbols even if there are no
7479 symbols.
7480
7481 Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
7482
7483 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
7484 PT_LOAD segment, rather than only setting it once for the entire
7485 file.
7486
7487 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
7488 rather than ignoring every phdr with a p_paddr of 0, ignore all
7489 the phdrs if they all have a p_paddr of 0.
7490
7491 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
7492 section was discarded from the link.
7493
7494 Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
7495
7496 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
7497
7498 Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
7499
7500 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
7501 floating point operations.
7502
7503 Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
7504
7505 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
7506 function symbols.
7507
7508 Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
7509
7510 Merge of vax/vms (read-only) support
7511 * configure.com: Support Vax target.
7512 * makefile.vms: Support Vax target.
7513 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
7514 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
7515 support.
7516 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
7517 support.
7518 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
7519 support.
7520 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
7521 support.
7522 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
7523 support.
7524 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
7525 * targets.c (bfd_target_ovax_flavour): New flavour.
7526 (vms_alpha_vec): Renamed from evax_alpha_vec.
7527 (vms_vax_vec): New.
7528 (target_vector): Update accordingly.
7529 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
7530 evax_alpha_vec.
7531 (vax*-*-*vms*): New target.
7532 * Makefile.am: Update for renamed files. Rebuild dependencies.
7533 * bfd-in2.h: Rebuild.
7534 * configure.in, Makefile.in, aclocal.m4: Rebuild.
7535
7536 Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
7537
7538 Based on patch from Matt Semersky <matts@scd.hp.com>:
7539 * linker.c (_bfd_generic_final_link): Force a trailing NULL
7540 pointer on abfd->outsymbols.
7541 (generic_add_output_symbol): Handle NULL sym parameter.
7542
7543 Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
7544
7545 * elf.c (copy_private_bfd_data): Add support for changing VMA or
7546 LMA of sections.
7547
7548 Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
7549
7550 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
7551 when handling 32 bit immediate relocs.
7552 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
7553
7554 Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
7555
7556 * section.c (STD_SECTION): Account for recently added gc_mark
7557 field in struct asection.
7558
7559 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
7560 (bfd_elf32_bfd_merge_private_bfd_data): Define.
7561
7562 Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
7563
7564 ELF Section-level Garbage Collection:
7565 * bfd.c (bfd_gc_sections): New.
7566 * aout-adobe.c: Hook to default implementation.
7567 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
7568 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
7569 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
7570 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
7571 * tekhex.c, versados.c: Likewise.
7572 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
7573 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
7574
7575 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
7576 (bfd_generic_gc_sections): New.
7577 * section.c (SEC_KEEP): New.
7578 (asection): Add gc_mark member.
7579
7580 * elfcode.h (elf_gc*): New name remappings.
7581 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
7582 sections to be excluded.
7583 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
7584 (elf_gc_propogate_vtable_entries_used): New.
7585 (elf_gc_smash_unused_vtentry_relocs): New.
7586 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
7587 (elf_gc_common_finalize_got_offsets): New.
7588 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
7589 * elfxx-target.h: Add and default gc hooks.
7590
7591 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
7592 for unions.
7593 (struct elf_obj_tdata): Likewise for local_got_offsets.
7594 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
7595 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
7596 * elf64-sparc.c, elflink.h: Likewise.
7597
7598 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
7599 (ELF_LINK_HASH_MARK): Define.
7600 (struct elf_backend_data): Add GC hooks.
7601 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
7602
7603 * elf-m10300.c (mn10300_elf_check_relocs): New.
7604 (mn10300_elf_gc_mark_hook): New.
7605 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
7606 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
7607 (mn10300_elf_final_link_relocate): Likewise.
7608 (mn10300_elf_relocate_section): Likewise.
7609 (elf_backend_can_gc_sections): Define.
7610 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
7611 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
7612 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
7613 (mips_info_to_howto_rel): Likewise.
7614 (mips_elf_relocate_section): Likewise.
7615 (mips_elf_check_relocs): Likewise.
7616 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
7617 (elf_backend_can_gc_sections): Define.
7618 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
7619 (ppc_elf_howto_raw): Handle them.
7620 (ppc_elf_reloc_type_lookup): Likewise.
7621 (ppc_elf_relocate_section): Likewise.
7622 (ppc_elf_check_relocs): Reference count .got and .plt entries.
7623 Handle new vtable relocs.
7624 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
7625 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
7626 (elf_backend_can_gc_sections): Define.
7627
7628 Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
7629
7630 * archures.c (bfd_mach_mn10300): Define.
7631 * elf-m10300.c: Include elf/mn10300.h
7632 (elf_mn10300_mach): New function.
7633 (_bfd_mn10300_elf_final_write_processing): Likewise.
7634 (_bfd_mn10300_elf_object_p): Likewise.
7635 (elf_backendfinal_write_processing): Define.
7636 (elf_backend_object_p): Likewise.
7637
7638 Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
7639
7640 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
7641 relocation.
7642
7643 Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
7644
7645 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
7646 link_next field, not the next field.
7647
7648 Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
7649
7650 * elf.c (map_sections_to_segments): Check the section address
7651 against the phdr size both with and without a modulo of
7652 maxpagesize.
7653
7654 Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
7655
7656 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
7657 linker created empty input section if the output section has the
7658 same name.
7659
7660 * elflink.h (elf_link_output_extsym): Print an error message if
7661 _bfd_elf_section_from_bfd_section fails.
7662
7663 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
7664 failure.
7665
7666 Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
7667
7668 * elf.c (copy_private_bfd_data): Improve handling of Solaris
7669 native linker output. Avoid putting an empty section in more than
7670 one segment.
7671
7672 Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
7673
7674 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
7675 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
7676
7677 Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
7678
7679 * elf.c (swap_out_syms): New arg relocatable_p.
7680 Don't add section VMA to symbols for relocatable output.
7681 (_bfd_elf_compute_section_file_positions): Update call to
7682 swap_out_syms.
7683
7684 Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
7685
7686 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
7687 against 'addend' be signed rather than unsigned.
7688
7689 Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
7690
7691 * elf32-m32r.c: Add prototyps for static functions.
7692
7693 * coff-arm.c: Add prototypes for static functions.
7694
7695 Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
7696
7697 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
7698 LMA is used to order sections in a segment.
7699
7700 * elf32-v850.c: Add prototypes for static functions.
7701 Change type of addend parameter to bfd_vma in various functions.
7702
7703 Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
7704
7705 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
7706 complain_overflow_signed instead of complain_overflow_bitfield.
7707
7708 Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7709
7710 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
7711 when comparing against 0.
7712
7713 Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
7714
7715 * Makefile.am (config.status): New target.
7716 * Makefile.in: Rebuild.
7717
7718 Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
7719
7720 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
7721 error if previous object endianness doesn't match current object.
7722
7723 Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
7724
7725 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
7726 _bfd_elf_print_private)bfd_data ().
7727
7728 Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
7729
7730 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
7731 and size_change_ok.
7732 (elf_link_add_object_symbols): Set type_change_ok and
7733 size_change_ok before calling elf_merge_symbol.
7734
7735 * elf32-mips.c (mips_elf_relocate_section): If we issue an
7736 undefined symbol error, don't also issue an overflow error.
7737
7738 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
7739
7740 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
7741 R_PPC_LOCAL24PC relocation should be local; if not, print an error
7742 message instead of crashing.
7743
7744 Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
7745
7746 * archures.c (bfd_mach_cpu32): Define.
7747 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
7748 bfd_mach_cpu32.
7749 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
7750 * ieee.c: Include <ctype.h>.
7751 (ieee_object_p): Parse out process ID string to make it more
7752 likely to be acceptable for bfd_scan_arch.
7753 * bfd-in2.h: Rebuild.
7754
7755 Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
7756
7757 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
7758 _bfd_elf_print_private_bfd_data() so that the program header will
7759 be displayed.
7760
7761 Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
7762
7763 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
7764 0x68. Reindent. Add some comments.
7765
7766 Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
7767
7768 * elf.c (copy_private_bfd_data): Adjust physical address of
7769 segment in output BFD to contain LMAs of its sections.
7770
7771 Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
7772
7773 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
7774 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
7775 endian data 32 bit relocations.
7776 (elf32_sparc_merge_private_bfd_data): Check if linking little
7777 endian objects with big endian objects.
7778 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
7779 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
7780 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
7781 * reloc.c: Same.
7782 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
7783 * archures.c (bfd_mach_sparc_sparclite_le): New.
7784 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
7785
7786 Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
7787
7788 * peicode.h (add_data_entry): Fix precedence of operators in if ()
7789 statement.
7790
7791 Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
7792
7793 * bfd-in.h: Move over patch to bfd-in2.h.
7794
7795 * reloc.c (bfd_check_overflow): Add casts before shifts which may
7796 not fit in 32 bits.
7797 (_bfd_relocate_contents): Likewise.
7798
7799 Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
7800
7801 * peicode.h (add_data_entry): If the section has no private data
7802 then do not create a Data Dictionary entry for it.
7803
7804 Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
7805
7806 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
7807 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
7808 elf64_alpha_size_got_sections): Rewrite, handling multiple got
7809 subsections during relaxation more correctly.
7810
7811 Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
7812
7813 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
7814 Add extra argument to bfd_arm_process_before_allocation ().
7815 * bfd-in.h: Reflect changes made in bfd-in2.h.
7816 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
7817 coff class of a BFD symbol.
7818 * coff-arm.c: Add support for interworking between Thumb code and
7819 non-interworking aware ARM code.
7820
7821 Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
7822
7823 * po/Make-in (install-info): New target.
7824
7825 Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
7826
7827 * filemode.c: Remove; not used.
7828
7829 If sysdep.h includes a header file, don't include it again:
7830 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
7831 <errno.h>.
7832 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
7833 <sysdep.h>.
7834 * archive.c: Don't include <string.h> or <errno.h>.
7835 * evax-alpha.c; Don't include <stdio.h>.
7836 * evax-egsd.c: Likewise.
7837 * evax-etir.c: Likewise.
7838 * evax-misc.c: Likewise.
7839 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
7840 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
7841 <errno.h>.
7842 * hpux-core.c: Likewise.
7843 * netbsd-core.c: Likewise.
7844 * som.c: Likewise.
7845 * libbfd.c: Don't include <sys/types.h>.
7846 * nlmcode.h: Don't include <string.h>.
7847 * osf-core.c: Don't include <string.h> or <stdio.h>.
7848 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
7849 <errno.h>, or <unistd.h>.
7850 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
7851
7852 Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
7853
7854 * configure.com: If the version number can not be found in
7855 configure.in, set it to "unknown" rather than "2.8.1".
7856
7857 Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
7858
7859 * elf32-mips.c (elf_mips_mach): New.
7860 (_bfd_mips_elf_object_p): Use elf_mips_mach.
7861 (_bfd_mips_elf_final_write_processing): Use the names
7862 of machines, rather than the numbers. Set both the ARCH
7863 and MACH in e_flags. Handle a few more specific machines.
7864 (_bfd_mips_elf_merge_private_bfd_data): Merge both
7865 EF_MIPS_ARCH and EF_MIPS_MACH.
7866
7867 Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
7868
7869 * syms.c (bfd_is_local_label): Revert last change.
7870 * srec.c (srec_write_symbols): Discard debugging symbols.
7871
7872 Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
7873
7874 * som.c: Include <ctype.h>.
7875 * som.h: Don't include sysdep.h.
7876
7877 Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
7878
7879 * libbfd.h: Rebuilt.
7880 * libbfd-in.h: Removed gettext includes and defines.
7881 * sysdep.h: Moved gettext-related includes and defines here.
7882
7883 Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
7884
7885 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
7886 an ad-hoc test. Kill bogus #if 0 code.
7887 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
7888
7889 Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
7890
7891 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
7892 when generating a normal executable for a symbol defined in a
7893 regular file. When copying a reloc into the output file, adjust
7894 the addend for a PC relative reloc against a global symbol.
7895
7896 Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
7897
7898 * libbfd.h: Rebuilt.
7899 * libbfd-in.h (_): Define as dgettext.
7900
7901 Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
7902
7903 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
7904 not signed.
7905 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
7906 when declaring parameter types.
7907 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
7908
7909 Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
7910
7911 * config.bfd: If we include any ELF targets in targ_defvec and/or
7912 targ_selvecs, then add the generic ELF targets to targ_selvecs.
7913 * elf32-gen.c (dummy): New static const variable.
7914 (elf_generic_info_to_howto): New static function.
7915 (elf_generic_info_to_howto_rel): New static function.
7916 (elf_info_to_howto): Define as elf_generic_info_to_howto.
7917 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
7918 * elf64-gen.c: Same changes as elf32-gen.c.
7919 * elfcode.h (elf_object_p): For the generic target, ignore a
7920 failure of bfd_default_set_arch_mach. Fix indentation a bit.
7921
7922 Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
7923
7924 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
7925 * configure: Rebuild.
7926
7927 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
7928
7929 * config.bfd: Update OSR5/Unixware patterns.
7930
7931 Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
7932
7933 * elf.c (assign_file_positions_for_segments): Allow for holes
7934 between sections added by a link script.
7935
7936 Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
7937
7938 * configure.in: Change version number to 2.9.4
7939 * configure: Rebuild.
7940
7941 Based on patch from H.J. Lu <hjl@gnu.org>:
7942 * elf.c (bfd_elf_get_bfd_needed_list): New function.
7943 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
7944 * bfd-in2.h: Rebuild.
7945
7946 Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
7947
7948 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
7949 Change all users.
7950
7951 Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
7952
7953 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
7954 (elf64_alpha_relax_section): Fill them in.
7955 (elf64_alpha_relax_opt_call): Implement more than a stub.
7956 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
7957 alignment on .scommon.
7958 (elf64_alpha_merge_gots): Merge use counts as well.
7959
7960 Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
7961
7962 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
7963 for calculating a local symbol's address.
7964 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
7965 Set the .got's cooked size as well as the raw size.
7966
7967 Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
7968
7969 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
7970 internationalisation of printed information.
7971
7972 * coff-arm.c (coff_arm_print_private_bfd_data): Add
7973 internationalisation of printed information.
7974
7975 Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
7976
7977 * syms.c (struct indexentry): Change directory_name, file_name,
7978 and function_name fields to char *.
7979 (struct stab_find_info): Change cached_file_name field to char *.
7980
7981 Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
7982
7983 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
7984
7985 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
7986
7987 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
7988
7989 Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
7990
7991 * Makefile.am (install-data-local): Make $(includedir).
7992 * Makefile.in: Rebuild.
7993
7994 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
7995
7996 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
7997
7998 Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
7999
8000 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
8001 * Makefile.in: Rebuild.
8002
8003 * bfd-in2.h: Rebuild for Nick's changes.
8004
8005 Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
8006
8007 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
8008 change wrt length == max_namelen.
8009
8010 Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
8011
8012 * Many files: Added gettext invocations around user-visible
8013 strings.
8014 * libbfd-in.h: Added gettext includes and defines.
8015 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
8016 HAVE_LC_MESSAGES): Define.
8017 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
8018 po/Makefile.
8019 * Makefile.am (SUBDIRS): Added po.
8020 (POTFILES): New macro.
8021 (po/POTFILES.in): New target.
8022 (SOURCE_HFILES): New macro.
8023 (HFILES): Use it.
8024 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
8025
8026 Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8027
8028 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
8029 NT_PRSTATUS note section encountered, it contains the status of
8030 the currently executing thread when the core file was written.
8031
8032 Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
8033
8034 * libcoff.h: Add extra parameter to
8035 bfd_coff_link_output_has_begun overrideable function.
8036 * cofflink.c: Pass extra parameter to
8037 bfd_coff_link_output_has_begun function.
8038 * bfd-in.h: Add prototypes for exported ARM interworking
8039 functions.
8040 * peicode.h: ARM specific code reorganised to conform to BFD
8041 coding conventions.
8042 * coffcode.h: ARM specific code reorganised to conform to BFD
8043 coding conventions.
8044 * coff-arm.c: Code reorganised to conform to the BFD coding
8045 conventions. Global variables have been moved into an ARM
8046 specific hash table structure and a new function:
8047 bfd_arm_get_bfd_for_interworking() has been created which is
8048 called from the linker scripts.
8049
8050 Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
8051
8052 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
8053
8054 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
8055 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
8056 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
8057 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
8058
8059 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
8060
8061 * config.bfd: Added sparc86x support.
8062
8063 Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
8064
8065 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
8066 an out of range pc-relative jump/call to an undefined weak symbol.
8067
8068 Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
8069
8070 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
8071 comparisons signed.
8072
8073 Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
8074
8075 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
8076 an error other than bfd_error_system_call, set the error to
8077 bfd_error_wrong_format.
8078
8079 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
8080 bfd_elf32_powerpcle_vec.
8081
8082 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
8083 program segments are zero, don't set p_paddr_valid.
8084
8085 Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
8086
8087 * elf64-alpha.c: Initial implementation of relaxation --
8088 (struct alpha_elf_link_hash_entry): Add use_count member.
8089 (elf64_alpha_check_relocs): Initialize and increment it.
8090 (elf64_alpha_can_merge_gots): Check it when considering merging.
8091 (elf64_alpha_merge_gots): Drop entries with zero use.
8092 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
8093 (elf64_alpha_always_size_sections): Split out got sizing ...
8094 (elf64_alpha_size_got_sections): ... here. New function.
8095 (elf64_alpha_relax_find_reloc_ofs): New function.
8096 (elf64_alpha_relax_with_lituse): Likewise.
8097 (elf64_alpha_relax_without_lituse): Likewise.
8098 (elf64_alpha_relax_opt_call): Likewise.
8099 (elf64_alpha_relax_section): Likewise.
8100 (elf64_alpha_add_symbol_hook): Likewise.
8101 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
8102 (elf64_alpha_relocate_section): Likewise.
8103 (bfd_elf64_bfd_relax_section): Define.
8104 (elf_backend_add_symbol_hook): Likewise.
8105
8106 Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
8107
8108 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
8109 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
8110 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
8111
8112 Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
8113
8114 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
8115 * configure: Rebuild.
8116
8117 Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
8118
8119 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
8120 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
8121 * configure.in: Define and substitute WIN32LDFLAGS and
8122 WIN32LIBADD.
8123 * aclocal.m4: Rebuild with new libtool.
8124 * configure, Makefile.in: Rebuild.
8125
8126 Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
8127
8128 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
8129 before any other symbols in the same section.
8130
8131 Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
8132
8133 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
8134 systems.
8135
8136 Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
8137
8138 * dwarf2.c (comp_unit): Move it earlier in the source. Add
8139 addr_size.
8140 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
8141 Use addr_size for address size, rather than sizeof(bfd_vma).
8142 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
8143 Fix call to read_address.
8144 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
8145 Scrap other unneeded arguments. Fix call to read_address.
8146 (scan_unit_for_functions): Fix call to read_attribute.
8147 (parse_comp_unit): We now handle more values for addr_size.
8148 Set addr_size in unit. Fix call to read_attribute and
8149 decode_line_info.
8150
8151 Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
8152
8153 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
8154
8155 Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
8156
8157 * archures.c (bfd_default_scan): Add m68k cases back to default
8158 switch, reverting patch of March 25, since IEEE support depends
8159 upon them.
8160
8161 Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
8162
8163 * Makefile.am (diststuff): New target.
8164 * Makefile.in: Rebuild.
8165
8166 Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
8167
8168 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
8169 som_offset when we have an extended name table.
8170
8171 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
8172
8173 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
8174 trying to copy it.
8175 * Makefile.in: Rebuild.
8176
8177 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8178
8179 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
8180 symbols when creating a shared library.
8181 (elf_m68k_adjust_dynindx): New function, used by above code.
8182 (elf_m68k_finish_dynamic_sections): Initialize the section
8183 symbols.
8184 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
8185
8186 Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
8187
8188 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
8189 value 11.
8190
8191 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8192
8193 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
8194 assertion.
8195
8196 Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
8197
8198 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
8199 absolute symbols.
8200
8201 Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
8202
8203 * configure.in: Set version to 2.9.1.
8204 * configure: Rebuild.
8205
8206 * Branched binutils 2.9.
8207
8208 Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
8209
8210 * syms.c (ENABLE_CACHING): Define.
8211 (struct indexentry): Define.
8212 (struct stab_cache): Remove.
8213 (cmpindexentry): New static function.
8214 (struct stab_find_info): Add new fields: indextable,
8215 indextablesize, cached_indexentry, cached_offset, cached_stab, and
8216 cached_file_name. Remove fields: file_cache, function_cache, and
8217 line_cache.
8218 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
8219 index table and search it.
8220
8221 Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
8222
8223 * elf.c (_bfd_elf_copy_private_section_data): Call
8224 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
8225
8226 * cpu-mips.c: Remove trailing comma at end of enumeration list.
8227
8228 Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
8229
8230 * coff-arm.c: Define all globally visible variables and functions
8231 only when COFF_WITH_PE is not defined.
8232 * configure.in (armpe_little_vec, armpe_big_vec): Add
8233 coff-arm.lo.
8234 * configure: Rebuild.
8235
8236 Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
8237
8238 Fix some gcc -Wall warnings:
8239 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
8240 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
8241 * archures.c (bfd_default_scan): Likewise.
8242 * bfd.c (bfd_scan_vma): Likewise.
8243 * binary.c (mangle_name): Likewise
8244 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
8245 * coff-sh.c (sh_relocate_section): Likewise.
8246 * coff-stgo32.c (create_go32_stub): Likewise.
8247 * coffcode.h (coff_slurp_line_table): Likewise.
8248 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
8249 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
8250 (assign_file_positions_for_segments): Likewise.
8251 * elf32-mips.c (mips_elf_relocate_section): Likewise.
8252 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
8253 * oasys.c (oasys_write_sections): Likewise.
8254 * ppcboot.c (ppcboot_object_p): Likewise.
8255 (mangle_name): Likewise.
8256 * riscix.c (riscix_fix_pcrel_26): Likewise.
8257 * srec.c (srec_scan): Likewise.
8258 * stabs.c (_bfd_write_section_stabs): Likewise.
8259 * sunos.c (sunos_add_dynamic_symbols): Likewise.
8260 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
8261 switch. Declare parameters for function pointers.
8262 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
8263 warning.
8264 * elf.c (elf_sort_sections): Likewise.
8265 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
8266 Add default cases to switches.
8267 (coff_arm_relocate_section): Remove unused local variables.
8268 Always set rstat.
8269 (coff_arm_bfd_set_private_flags): Change flag variable to type
8270 flagword.
8271 * coff-mips.c (mips_relocate_section): Initialize use_lo.
8272 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
8273 (dump_toc): Change cat to const, and initialize it.
8274 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
8275 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
8276 (sh_elf_relocate_section): Initialize r_symndx.
8277 * coffcode.h (coff_compute_section_file_positions): Only declare
8278 old_sofar if ALIGN_SECTIONS_IN_FILE.
8279 (coff_write_object_contents): Initialize csym.
8280 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
8281 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
8282 switch.
8283 * dwarf2.c: Include libiberty.h.
8284 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
8285 (decode_line_info): Remove unused local variables.
8286 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
8287 (m32r_elf_relocate_section): Likewise.
8288 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
8289 (v850_elf_reloc): Likewise.
8290 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
8291 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
8292 * elf.c (assign_file_positions_for_segments): Always set adjust.
8293 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
8294 parenthesize expression.
8295 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
8296 (m32r_elf_object_p): Return a value.
8297 (m32r_elf_print_private_bfd_data): Change fprintf format string.
8298 * elf32-mips.c (mips_elf_final_link): Initialize last.
8299 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
8300 * elf32-v850.c (v850_elf_object_p): Return a value.
8301 (v850_elf_print_private_bfd_data): Change fprintf format string.
8302 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
8303 unsigned long.
8304 * elflink.h (elf_link_add_object_symbols): Change vernum to
8305 unsigned int, and initialize it. Change fprintf format string.
8306 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
8307 when setting or comparing to soname_indx.
8308 (elf_create_pointer_linker_section): Change num_symbols to
8309 unsigned int.
8310 * libcoff-in.h (coff_data_type): Change flags to flagword.
8311 * peicode.h (pe_print_idata): Initialize idx. Change j to
8312 bfd_size_type. Initialize hint_member. Remove useless test to
8313 time_stamp.
8314 (pe_print_edata): Change num_functions and num_names in struct
8315 EDT_type to unsigned long. Remove cast. Change fprintf format
8316 string.
8317 * ppcboot.c (ppcboot_object_p): Change i to size_t.
8318 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
8319 int.
8320 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
8321 int *. Update uses. Change j to long.
8322 * bfd-in2.h, libcoff.h: Rebuild.
8323
8324 Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
8325
8326 * elf32-v850.c Remove definition of USE_REL.
8327 (v850_elf_info_to_howto_rela): New function.
8328 (v850_elf_perform_relocation): Renamed from
8329 v850_elf_store_addend_in_insn. Removed replace argument.
8330 (v850_elf_reloc): store the relocation in the addend field instead
8331 of the insn.
8332 (v850_elf_final_link_relocate): Now calls
8333 v850_elf_perform_relocation.
8334 (v850_elf_relocate_section): Remove code to generate REL
8335 relocations.
8336
8337 Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
8338
8339 * coffcode.h (coff_new_section_hook): Set the type and storage
8340 class in the native symbol information allocated for a new section
8341 symbol.
8342
8343 Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
8344
8345 * peicode.h: Chain together calls to
8346 coff_bfd_copy_private_bfd_data and
8347 coff_bfd_print_private_bfd_data.
8348
8349 * coff-arm.c: Add prototypes for
8350 coff_arm_bfd_print_private_bfd_data and
8351 coff_arm_bfd_copy_private_bfd_data.
8352
8353 Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
8354
8355 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
8356 build.
8357
8358 * peicode.h: Call arm-coff private data functions after handling
8359 pe private data.
8360
8361 * coff-arm.c: Turn statics into globals so that they can be shared
8362 both pe and pei backends.
8363
8364 Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
8365
8366 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
8367 plain numbers.
8368 (sunos_write_object_contents): Likewise.
8369 * aoutx.h (NAME(aout,machine_type)): Likewise.
8370 * coffcode.h (coff_set_arch_mach_hook): Likewise.
8371
8372 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8373
8374 * archures.c (bfd_mach_m68*): Add definitions for various m68k
8375 variants.
8376 (bfd_default_scan): Remove m68k special cases.
8377 * bfd-in2.h: Rebuild.
8378 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
8379 than plain numbers.
8380 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
8381 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
8382 m68k:68000.
8383 (bfd_m68k_arch): Set mach field to zero to signal no explicit
8384 selection, change printable_name to just "m68k" and make that the
8385 default instead of m68k:68020.
8386
8387 * aout-tic30.c (NAME): Define this to avoid multiple definitions
8388 from aoutx.h.
8389 (MY_get_section_contents): Define as aout_32_get_section_contents
8390 rather than NAME(aout,get_section_contents).
8391
8392 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
8393
8394 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
8395 and call bfd_default_set_arch_mach to do the real work.
8396
8397 Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
8398
8399 * bout.c (BALX): Include return register g14 as part of the insn.
8400 (BALX_MASK): New.
8401 (calljx_callback): Use it.
8402
8403 Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
8404
8405 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
8406 * libbfd.h: Rebuild.
8407
8408 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
8409 byte_count to unsigned int.
8410 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
8411 unused local variables.
8412
8413 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
8414 variables er and er1.
8415
8416 * cpu-v850.c: Include <ctype.h>.
8417 (scan): Case isdigit argument to unsigned char.
8418
8419 From Yan Meroth <YAN.MEROTH@st.com>:
8420 * ihex.c (ihex_scan): Add extbase variable so that getting an
8421 extended linear address record does not ignore any previous
8422 extended address.
8423 (ihex_write_object_contents): When writing out an extended linear
8424 address record, zero out any previous extended address.
8425
8426 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
8427
8428 * ieee.c (do_one): Check section before dereferencing it.
8429 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
8430 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
8431
8432 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
8433
8434 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
8435
8436 Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
8437
8438 * coff-arm.c: Add interworking functions to pe backends.
8439
8440 Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
8441
8442 * configure.in: Use AM_DISABLE_SHARED.
8443 * aclocal.m4, configure: Rebuild with libtool 1.2.
8444
8445 Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
8446
8447 * coff-arm.c (coff_arm_relocate_section): Better error messages
8448 when interowrking conflucts occur. Courtesy of Jonathan Walton
8449 and Tony Thompson.
8450 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
8451 relocations. Patch courtesy of Jonathan Walton and Tony
8452 Thompson.
8453
8454 Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
8455
8456 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
8457 part of Feb 22 change controling when to override the existing
8458 symbol with the .plt entry.
8459
8460 Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
8461
8462 * config.bfd (targ_cpu): Add thumb-pe target.
8463
8464 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
8465 functions in PE build.
8466
8467 Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
8468
8469 * config.bfd (sparclite-*-elf*): Added.
8470
8471 Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
8472
8473 * configure.in: Add elf.lo to elf shell variable.
8474 * Makefile.am (BFD_LIBS): Remove elf.lo.
8475 (BFD_LIBS_CFILES): Remove elf.c.
8476 (BFD32_BACKENDS): Add elf.lo.
8477 (BFD32_BACKENDS_CFILES): Add elf.c.
8478 * configure, Makefile.in: Rebuild.
8479
8480 1998-02-23 15:53 Richard Henderson <rth@cygnus.com>
8481
8482 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
8483 relocation against a non-local symbol should not have a dynamic
8484 relocation.
8485
8486 Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
8487
8488 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
8489 COFF filehdr flags.
8490 (pe_print_private_bfd_data): Print PE flags. From Mikey
8491 <jeffdb@netzone.com>.
8492
8493 Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
8494
8495 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
8496 a plt entry when we can determine that we authoritatively define
8497 the symbol.
8498
8499 Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
8500
8501 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
8502 don't actually use trad-core, but a SunOS-style core file handled
8503 by gdb directly.
8504 * hosts/sparclinux.h: Remove.
8505
8506 Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
8507
8508 * peicode.h (pe_print_idata): If there is no .idata section, look
8509 for the import tables in some other section. Make the initial
8510 label line up better with the data. Print the import address
8511 table even if there is no import name table. If the import
8512 address table holds actual addresses, print them.
8513
8514 Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
8515
8516 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
8517 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
8518 bfd_error_system_call.
8519
8520 Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
8521
8522 * Makefile.am (AUTOMAKE_OPTIONS): Define.
8523 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
8524
8525 From H.J. Lu <hjl@gnu.org>:
8526 * Makefile.am (libbfd_la_LDFLAGS): Define.
8527 * Makefile.in: Rebuild.
8528
8529 Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
8530
8531 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
8532 * netbsd.h (MACHTYPE_OK): Define.
8533 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
8534 calling N_SET_MACHTYPE, rather than having a switch.
8535 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
8536 and M_ALPHA_NETBSD.
8537 * i386netbsd.c (MACHTYPE_OK): Don't define.
8538 (DEFAULT_MID): Define.
8539 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
8540 (MACHTYPE_OK): Don't define.
8541 (DEFAULT_MID): Define.
8542 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
8543 (DEFAULT_MID): Define.
8544 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
8545 (DEFAULT_MID): Define.
8546 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
8547 (DEFAULT_MID): Define.
8548
8549 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
8550 * vaxnetbsd.c: New file.
8551 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
8552 rather than netbsd_core.
8553 * targets.c (vaxnetbsd_vec): Declare.
8554 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
8555 defined, add netbsd_core_vec.
8556 * configure.in: Set COREFILE for alpha*-*-netbsd* and
8557 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
8558 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
8559 * config.bfd (alpha*-*-netbsd*): New target.
8560 * Makefile.am: Rebuild dependencies.
8561 (BFD32_BACKENDS): Add vaxnetbsd.lo.
8562 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
8563 * configure, Makefile.in: Rebuild.
8564
8565 * configure.host: Remove the old shared library build stuff. We
8566 now use libtool instead.
8567
8568 Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
8569
8570 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
8571
8572 Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
8573
8574 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
8575 * configure: Rebuild.
8576
8577 Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
8578 * elf32-v850.c (remember_hi16s_reloc): New function.
8579 (find_remembered_hi16s_reloc): New function.
8580 (v850_elf_store_addend_in_insn): Use the above new functions to
8581 match up HI6S relocs with LO16 relocs.
8582
8583 Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
8584
8585 * configure.in: Change -linux* to -linux-gnu*.
8586 * config.bfd, configure.host: Likewise.
8587 * configure: Rebuild.
8588
8589 Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
8590
8591 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
8592 LO16/HI16S bug and improve comments about what is going on.
8593
8594 Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
8595
8596 * configure, aclocal.m4: Rebuild with new libtool.
8597
8598 Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
8599
8600 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
8601 when merging v850 code into v850e/v850ea code. Do not initialise
8602 output flags if the input is the default architecture.
8603
8604 Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
8605
8606 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
8607 get the size from bfd_arch_bits_per_address instead of directly
8608 from the isa.
8609
8610 Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
8611
8612 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
8613 to wrap, just return all 1's bits instead.
8614 * libbfd.h: Regenerate.
8615
8616 Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
8617
8618 * coff-i386.c (coff_pe_i386_relocate_section): New static function
8619 if COFF_WITH_PE.
8620 (coff_relocate_section): If COFF_WITH_PE, define as
8621 coff_pe_i386_relocate_section.
8622 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
8623 skip empty sections, to match coff_write_object_contents.
8624
8625 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
8626 rather than swapping out r_offset twice. From Luke Deller
8627 <luked@cse.unsw.edu.au>.
8628
8629 Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
8630
8631 * configure.in: Set libtool_enable_shared rather than
8632 libtool_shared. Remove diversion hack.
8633 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
8634 with new libtool.
8635
8636 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
8637
8638 * syms.c (struct stab_cache): Define.
8639 (struct stab_find_info): Remove cached_offset, cached_stab,
8640 cached_str, and cached_stroff fields. Add file_cache,
8641 function_cache, and line_cache fields.
8642 (_bfd_stab_section_find_nearest_line): Use extensive caching to
8643 speed up searches.
8644
8645 Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
8646
8647 * peicode.h (pe_print_idata): Check for import of ordinal rather
8648 than name.
8649 (pe_print_edata): If there is no .edata section, look for the
8650 export data in some other section.
8651
8652 Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
8653
8654 * configure.in: Change version to 2.8.4.
8655 * configure: Regenerated.
8656
8657 Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
8658
8659 Add tms320c30 support:
8660 * cpu-tic30.c: New file.
8661 * aout-tic30.c: New file.
8662 * coff-tic30.c: New file.
8663 * archures.c (bfd_arch_tic30): Define.
8664 (bfd_tic30_arch): Declare.
8665 (bfd_archures_list): Add bfd_tic30_arch.
8666 * targets.c (bfd_target_vector): Add tic30_aout_vec and
8667 tic30_coff_vec.
8668 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
8669 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
8670 (coff_set_flags): Likewise.
8671 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
8672 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
8673 * Makefile.am: Rebuild dependencies.
8674 (ALL_MACHINES): Add cpu-tic30.lo.
8675 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
8676 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
8677 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
8678 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
8679
8680 Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
8681
8682 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
8683 to lag behind LO16 reloc by a couple of instructions.
8684
8685 Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
8686
8687 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
8688 make to reexamine the file timestamp.
8689 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
8690
8691 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
8692 0x100000.
8693
8694 Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
8695
8696 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
8697 to create .dynsbss and .rela.sbss sections.
8698 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
8699 copied from dynamic objects into .sbss.
8700 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
8701 use it. Correct typo of .rela.sdata2.
8702 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
8703 put the data, which may now be in .sbss.
8704 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
8705 (elf_backend_create_dynamic_sections): Define as
8706 ppc_elf_create_dynamic_sections.
8707
8708 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
8709 against _GLOBAL_OFFSET_TABLE_.
8710 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
8711 shared libraries which refer to local symbols. Make sure that the
8712 test for allocating space for a reloc in a shared object is the
8713 same as the test for emitting a reloc.
8714
8715 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
8716
8717 * config.bfd (i[3456]-*-mingw32*): New target.
8718 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
8719 * aclocal.m4, configure: Rebuild.
8720
8721 Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
8722
8723 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
8724 have a bfd_object.
8725
8726 Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
8727
8728 Sparc v9 ABI compliant PLT:
8729 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
8730 (plt_templates, sparc64_elf_build_plt_entry): Delete.
8731 (LARGE_PLT_THRESHOLD): New define.
8732 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
8733 (sparc64_elf_build_plt): New function.
8734 (sparc64_elf_plt_entry_offset): Likewise.
8735 (sparc64_elf_plt_ptr_offset): Likewise.
8736 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
8737 contain the index for convenience. Skip the initial entries
8738 in .rela.plt.
8739 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
8740 memory for the benefit of .rela.plt.
8741 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
8742 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
8743 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
8744 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
8745 Call sparc64_elf_build_plt.
8746 (elf_backend_want_got_plt): No.
8747 (elf_backend_plt_readonly): No.
8748 (elf_backend_plt_alignment): 8.
8749
8750 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
8751 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
8752 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
8753 to be called.
8754
8755 Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
8756
8757 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
8758 processors.
8759 * cpu-mips.c (arch_info_struct): Add mips variants.
8760 * bfd-in2.h: Rebuilt.
8761
8762 Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
8763
8764 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
8765 t2a3_b_insn.
8766
8767 Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
8768
8769 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
8770 (i[3456]86sco3.2v5*coff): New target.
8771
8772 Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
8773
8774 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
8775
8776 Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
8777
8778 * bfd.c (bfd_get_error_handler): Add orthogonal function.
8779 * bfd-in2.h: Regenerate.
8780
8781 Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
8782
8783 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
8784
8785 Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
8786
8787 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
8788 adjust addend for an output common symbol (from Jimmy Blair
8789 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
8790 defined symbol to counteract adjustment made in generic relocation
8791 code.
8792
8793 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
8794
8795 Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
8796
8797 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
8798 (GET_SCNDHR_NLNNO): Likewise.
8799
8800 Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
8801
8802 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
8803
8804 Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
8805
8806 * elf32-m32r.c: Add macros to handle NOP insertion.
8807
8808 Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
8809
8810 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
8811 (xcoff_mark): Likewise.
8812 (xcoff_build_ldsyms): Mark absolute symbols.
8813
8814 Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
8815
8816 * bout.c (b_out_write_object_contents): Sort symbols before output
8817 to keep {CALL,BAL}NAME symbols adjacent.
8818 (b_out_symbol_cmp): New function.
8819
8820 For older changes see ChangeLog-9697
8821 \f
8822 Local Variables:
8823 mode: change-log
8824 left-margin: 8
8825 fill-column: 74
8826 version-control: never
8827 End:
This page took 0.221179 seconds and 4 git commands to generate.