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