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