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