]> Git Repo - binutils.git/blame - bfd/ChangeLog
* ecoff.c (ecoff_new_file): Don't do anything if we are still in
[binutils.git] / bfd / ChangeLog
CommitLineData
00d7a64b
JL
1start-sanitize-m324
2Mon Sep 9 22:36:01 1996 Jeffrey A Law ([email protected])
3
4 * bfd-in2.h: Rebuilt after m32r changes.
5
6end-sanitize-m32r
71d7d44f
DE
7Mon Sep 9 12:31:22 1996 Doug Evans <[email protected]>
8
66e4c229
DE
9start-sanitize-m32r
10 * config.bfd,configure.in,configure: Add m32r support.
f0c12b73 11 * Makefile.in,archures.c,elf.c,targets.c: Likewise.
66e4c229 12end-sanitize-m32r
71d7d44f
DE
13 * config.bfd: Keep target list alphabetically sorted.
14
629f776a
JL
15start-sanitize-v850
16Mon Sep 9 11:48:41 1996 Jeffrey A Law ([email protected])
17
18 * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
19 to add in the constant part found in the instruction itself.
20 (case R_V850_HI16_S): Likewise.
21
22end-sanitize-v850
9c85b19d
MH
23start-sanitize-d10v
24Fri Sep 6 17:04:39 1996 Martin M. Hunt <[email protected]>
25
26 * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
27 and R_D10V_18 to be 1 (word).
28
29end-sanitize-d10v
4be2140e
ILT
30Thu Sep 5 15:23:08 1996 Ian Lance Taylor <[email protected]>
31
32 * stabs.c (_bfd_link_section_stabs): If the output_section field
33 of either section is bfd_abs_section, then the linker is
34 discarding the section and we should not optimize it.
35
0cd98b92
DE
36Tue Sep 3 12:16:20 1996 Doug Evans <[email protected]>
37
38 * Makefile.in (aout-sparcle.o): New target.
39 * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
40 * config.bfd (sparclet-*-aout*): Add case.
41 * configure.in (sparcle_aout_vec): Add case.
42 * configure: Regenerated.
0cd98b92
DE
43 * targets.c (sparcle_aout_vec): Declare.
44 (bfd_target_vector): Add sparcle_aout_vec.
45 * aout-sparcle.c: New file.
46
b5ef63c4 47start-sanitize-v850
7b0af209 48Tue Sep 3 00:57:02 1996 Jeffrey A Law ([email protected])
b5ef63c4 49
e73b6ae6
JL
50 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
51 low order sign bit propogation for R_V850_HI16_S.
52
53 * elf32-v850.c (bfd_elf32_v850_reloc): New function for
7b0af209
JL
54 handling V850 specific relocs.
55 (elf_v850_howto_table): Use the new function for some
56 relocations. Twiddle masks & shifts for some relocs.
57 Set partial_inplace where needed.
58
59end-sanitize-v850
60Mon Sep 2 12:12:34 1996 Ian Lance Taylor <[email protected]>
61
62 * cpu-mips.c: Add an explicit mips:3000 entry, and change the
63 default architecture to a machine number of 0.
64 * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number
65 for E_MIPS_ARCH_1.
66 (_bfd_mips_elf_merge_private_bfd_data): If the machine number of
67 the output BFD is the default, set it from the first input BFD.
68
69start-sanitize-v850
70Sun Sep 1 18:38:01 1996 Jeffrey A Law ([email protected])
71
72 * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs
73 insert at bitpos zero. The HI16 relocs are shifted right
74 by 16 bits. Fix src_mask for all relocs.
75 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is
76 little endian!
77 (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little
78 endian!
b5ef63c4
MA
79
80end-sanitize-v850
bde9d875
ILT
81Sun Sep 1 15:41:08 1996 Ian Lance Taylor <[email protected]>
82
83 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
84 Rewrite to use BFD file read routines and to avoid using a fixed
85 length for the file name.
86
01b49cb3 87start-sanitize-v850
237b5c4c
JL
88Sat Aug 31 10:22:25 1996 Jeffrey A Law ([email protected])
89
90 * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
91 (elf_v850_howto_table): Add support for R_V850_{32,16,8}.
92 (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
93 to R_V850_{32,16,8}.
94
01b49cb3
C
95Fri Aug 30 18:06:04 1996 J.T. Conklin <[email protected]>
96
97 * elf32-v850.c (reloc_type): Add R_V850_HI16_S.
98 (elf_v850_howto_table): Add info for HI16_S reloc.
99 (v850_reloc_map): Add HI_16_S reloc.
100 * reloc.c: Define BFD_RELOC_V850_* relocs.
101
102end-sanitize-v850
492cfc71
ILT
103Fri Aug 30 11:49:19 1996 Ian Lance Taylor <[email protected]>
104
c86158e5
ILT
105 Add SH ELF support.
106 * elf32-sh.c: New file.
107 * elf.c (prep_headers): Handle bfd_arch_sh.
108 * elfcode.h (write_relocs): Handle absolute symbol.
109 * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare.
110 (_bfd_elf64_link_read_relocs): Declare.
111 * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from
112 elf_link_read_relocs. Make globally visible. Change all
113 callers.
114 (elf_link_input_bfd): Get external symbols from cache in
115 symtab_hdr->contents. Get contents from cache in
116 elf_section_data.
117 * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
118 already defined.
119 * reloc.c: Define BFD_RELOC_SH_* relocs.
120 * libbfd-in.h (_bfd_sh_align_load_span): Declare.
121 * coff-sh.c (sh_insns_conflict): Fix a return value.
122 (_bfd_sh_align_load_span): New globally visible function, broken
123 out of sh_align_load.
124 (sh_align_load): Call _bfd_sh_align_load_span.
125 (sh_swap_insns): Change relocs parameter to PTR.
126 * bfd-in2.h, libbfd.h: Rebuild.
127 * targets.c (bfd_elf32_sh_vec): Declare.
128 (bfd_elf32_shl_vec): Declare.
129 * config.bfd (sh-*-elf*): New target.
130 * configure.in (bfd_elf32_sh_vec): New target vector.
131 (bfd_elf32_shl_vec): New target vector.
132 * configure: Rebuild.
133 * Makefile.in: Rebuild dependencies.
134 (BFD32_BACKENDS): Add elf32-sh.o.
135 (BFD32_BACKENDS_CFILES): Add elf32-sh.c.
136
137 * elf.c (map_sections_to_segments): Check that LMA does not skip a
138 page before checking D_PAGED.
139
492cfc71
ILT
140 * ihex.c (ihex_scan): Removed unnecessary extbase variable.
141 (ihex_write_object_contents): Remove extbase; always use segbase
142 instead.
143
f7954d86
MM
144Thu Aug 29 16:52:17 1996 Michael Meissner <[email protected]>
145
146 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
147 * configure.host (i[345]86-*-*): Ditto.
148 * config.bfd (i[345]86-*-*): Ditto.
149 * configure: Regenerate.
150
151 * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
152 elf.
153
154Tue Aug 27 09:18:18 1996 Jeffrey A Law ([email protected])
155
156 * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument.
157 * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype.
158 * som.c (hppa_som_gen_reloc_type): Add new argument. If
159 we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that
160 will have an ST_CODE type, change the symbol's type to ST_DATA.
161 * som.c (hppa_som_gen_reloc_type): Update prototype.
162
4da624dd
ILT
163Tue Aug 27 00:12:22 1996 Ian Lance Taylor <[email protected]>
164
165 * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for
166 R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible.
167 (mips_elf_size_dynamic_sections): Don't require .got to exist.
168 (mips_elf_finish_dynamic_sections): Likewise.
169
9461513b
ILT
170Thu Aug 22 10:54:38 1996 Ian Lance Taylor <[email protected]>
171
1c952df6
ILT
172 * configure.host (HLDENV): New variable to set. Set it for
173 *-*-sysv4*, since those linkers may not support -R but they always
174 support LD_RUN_PATH.
175
9461513b
ILT
176 * libieee.h (NSECTIONS): Don't define.
177 (ieee_data_struct): Change section_table to asection **. Add
178 section_table_size.
179 * ieee.c (get_section_entry): If the table isn't big enough, make
180 it bigger.
181 (ieee_slurp_sections): Remove assertion about number of sections.
182 (ieee_object_p): Adjust initialization of ieee to match changes to
183 the structure.
184
185 * xcofflink.c (xcoff_mark): Don't copy relocs for undefined
186 symbols merely because we are generating a shared library.
187 (xcoff_build_ldsyms): Don't set up global linkage code for an
188 undefined symbol merely because we are generating a shared
189 library.
190
0c1d95c7
C
191start-sanitize-v850
192Tue Aug 20 15:06:05 1996 J.T. Conklin <[email protected]>
193
194 * Makefile.in (ALL_MACHINES): Add cpu-v850.o.
195 (BFD32_BACKENDS) Add elf32-v850.o.
196 * archures.c: Add bfd_v850_arch.
197 * bfd-in2.h: Add bfd_v850_arch.
198 * config.bfd (v850-*-*): New target.
199 * configure: (bfd_elf32_v850_vec) New vector.
200 * configure.in: (bfd_elf32_v850_vec) New vector.
201 * cpu-v850.c: New file.
202 * elf.c (prep_headers): Added case bfd_arch_v850.
203 * elf32-v850.c: New file.
204 * targets.c (bfd_elf32_v850_vec): New vector.
205
206end-sanitize-v850
207Fri Aug 16 16:25:35 1996 Ian Lance Taylor <[email protected]>
208
209 * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
210 a function code symbol for an XMC_XO symbol.
211
22edd547
SS
212Thu Aug 15 12:33:29 1996 Stan Shebs <[email protected]>
213
214 * mpw-config.in: Update editing of autoconf vars to reflect
215 Jul 18 configure.in change.
216 * mpw-make.sed: Update editing of include pathnames to be
217 more general, add @DASH_C_FLAG@ to explicit compile rule edit.
218
219Thu Aug 15 10:35:13 1996 Richard Henderson <[email protected]>
220
221 * elf64-alpha.c (elf64_alpha_output_extsym): The section from
222 which to offset to get the .plt entry address is ".plt".
223
53ef6e60
JSC
224Thu Aug 15 16:40:30 1996 James G. Smith <[email protected]>
225
226 * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM,
227 BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET):
228 Added, for internal use by the ARM gas.
229 * libbfd.h: Rebuilt
230 * bfd-in2.h: Rebuilt
231
37d7888d
ILT
232Wed Aug 14 17:02:09 1996 Richard Henderson <[email protected]>
233
234 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
235 in section dynidx start.
236
e38d6d36
ILT
237Tue Aug 13 14:35:38 1996 Ian Lance Taylor <[email protected]>
238
239 * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
240 name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an
241 optimization for g++.
242
ae20860e
MM
243Tue Aug 13 17:04:40 1996 Michael Meissner <[email protected]>
244
245 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has
246 the -mrelocatable-lib bit set and the other doesn't, clear the
247 -mrelocatable-lib bit in the header.
248
4596421b
ILT
249Sat Aug 10 22:59:17 1996 Ian Lance Taylor <[email protected]>
250
251 * elflink.h (elf_link_add_object_symbols): Do not resolve a common
252 symbol against a STT_FUNC symbol in a shared library.
253
f11e3f62
ILT
254Fri Aug 9 12:44:57 1996 Ian Lance Taylor <[email protected]>
255
410bc61d
ILT
256 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
257 symbol is found, automatically define the corresponding function
258 code.
259
d92099f1
ILT
260 * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
261 if sym.n_numaux is not zero.
262 (_bfd_coff_link_input_bfd): Permit the symbol and the hash table
263 entry to disagree about the number of aux entries if the symbol
264 has zero.
265
f11e3f62
ILT
266 * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
267 section if it might be needed, not just if info->shared.
268 (mips_elf_adjust_dynamic_symbol): Make room for a null element at
269 the start of .rel.dyn if we are going to use it.
270 (mips_elf_finish_dynamic_sections): Only clear the first element
271 of .rel.dyn if the size is greater than zero.
272
fbc4ed7d
ILT
273Thu Aug 8 16:24:55 1996 Ian Lance Taylor <[email protected]>
274
b2a05baf
ILT
275 * xcofflink.c (xcoff_link_input_bfd): If we already called the
276 undefined_symbol callback for a symbol, then don't issue any more
277 warnings about loader relocs.
278 (_bfd_ppc_xcoff_relocate_section): Don't do any further processing
279 after calling the undefined_symbol callback.
280
fbc4ed7d
ILT
281 * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
282 (xcoff_link_add_symbols): Permit multiple definitions of a symbol
283 as the AIX linker seems to do.
284
8612a388
ILT
285Thu Aug 8 12:21:56 1996 Klaus Kaempf <[email protected]>
286
287 * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
288 (evax_initialize): Remove evax_reloc_table.
289 (evax_close_and_cleanup): Ditto.
290 (reloc_nil): Ditto.
291 (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
292 entries.
293 (evax_bfd_reloc_type_lookup): Ditto.
294 * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
295 cooked_size == raw_size.
296 * evax-emh.c (_bfd_evax_register_filename): Remove.
297 * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
298 * evax-misc.c (add_new_contents): Malloc section at full size.
299 (_bfd_save_evax_section): Memcpy section contents directly.
300 * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
301 (evax_reloc_table): Remove.
302
303 * hosts/alphavms.h (O_ACCMODE): Define if needed.
304
305 * makefile.vms: Add better support for DEC C compilation
306 Add evax.h dependencies
307
308 * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
309 (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
310 (BFD_RELOC_ALPHA_BASEREG): Remove.
311 * bfd-in2.h, libbfd.h: Rebuild.
312
320a5c6b
SG
313Thu Aug 8 08:17:32 1996 Stu Grossman ([email protected])
314
315 * archive.c (bsd_write_armap): Ifdef around calls to getuid and
316 getgid if _WIN32 is defined.
317 * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef.
318
2055bf85
SG
319Wed Aug 7 23:19:00 1996 Stu Grossman ([email protected])
320
321 * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
322 Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
323 include file.
324 * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE
325 isn't defined.
326
85fe9d3e
ILT
327Wed Aug 7 14:11:44 1996 Philippe De Muyter <[email protected]>
328
329 * configure.in: Call BFD_NEEDED_DECLARATION on strstr and
330 realloc.
331 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
332 (NEED_DECLARATION_REALLOC): New macro.
333 * configure, config.in: Rebuild.
334 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
335 (realloc): Declare if NEED_DECLARATION_REALLOC.
336
337 * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
338 <strings.h> if they exist.
339
340 * ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
341
9b3307b0
ILT
342Wed Aug 7 12:12:03 1996 Ian Lance Taylor <[email protected]>
343
cc425b55
ILT
344 * cpu-i386.c (i8086_arch): Architecture info for the i8086.
345
9b3307b0
ILT
346 Based on patches from Eric Valette <[email protected]>:
347 * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
348 LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
349 (elf_howto_table): Add entries for new relocs.
350 (elf_i386_reloc_type_lookup): Handle new relocs.
351 (elf_i386_info_to_howto): Just call abort.
352 (elf_i386_info_to_howto_rel): Check that the reloc type is valid.
353 (elf_i386_relocate_section): Likewise.
354
75e3a45a
MH
355start-sanitize-d10v
356Tue Aug 6 12:54:56 1996 Martin M. Hunt <[email protected]>
357
358 * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
359
360end-sanitize-d10v
191d910c
ILT
361Mon Aug 5 13:42:41 1996 Ian Lance Taylor <[email protected]>
362
b944e7e8
ILT
363 * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
364 only get the LMA from the phdr if they are in the same part of the
365 file.
366
191d910c
ILT
367 * elf.c (map_sections_to_segments): Rewrite tests for starting a
368 new segment to make them more comprehensible. If the relationship
369 between the LMA and the VMA changed, start a new segment. Don't
370 check dynsec when deciding whether to start a new segment for a
371 writeable section; -N will now handle this.
372
e751d506
JL
373Thu Aug 1 22:43:08 1996 Jeffrey A Law ([email protected])
374
375 * libhppa.h: Remove "esel" changes. Not the right approach.
376 * som.c: Corresponding changes.
377 (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
378 which don't have a SOM symbol type associated with them.
379 Reverses a 1994 change.
380
cdb88e87
ILT
381Wed Jul 31 15:50:55 1996 Ian Lance Taylor <[email protected]>
382
383 Make ld -N more reasonable for ELF:
384 * elf.c (map_sections_to_segments): If D_PAGED is not set, set
385 phdr_in_section to false, and always use a single load segment.
386 (elf_sort_sections): Sort sections by LMA after VMA.
387 (assign_file_positions_for_segments): If D_PAGED is not set, don't
388 align to maxpagesize.
389 (assign_file_positions_except_relocs): Likewise.
390 * elfcode.h (elf_object_p): If a section is loaded but not page
391 aligned, clear D_PAGED.
392
d1b40d8e
JSC
393Wed Jul 31 15:00:12 1996 James G. Smith <[email protected]>
394
395 * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
396 Added, for internal use by the ARM gas.
397 * libbfd.h: Rebuilt
398 * bfd-in2.h: Rebuilt
399
ad240a82
JL
400Tue Jul 30 14:14:57 1996 Jeffrey A Law ([email protected])
401
402 * libhppa.h (R_HPPA_ESEL): New field selector.
403 (e_esel): Similarly.
404 * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
405 then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
406 (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
407
fb4dc1eb
ILT
408Tue Jul 30 13:31:27 1996 Ian Lance Taylor <[email protected]>
409
410 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
411 archive search before looking for stripped dynamic objects.
412
b223f950
ILT
413Fri Jul 26 17:51:39 1996 Ian Lance Taylor <[email protected]>
414
415 * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
416 symbol a warning rather than an error.
417
64f808f9
ILT
418Wed Jul 24 12:02:53 1996 Ian Lance Taylor <[email protected]>
419
420 * elf.c (assign_file_positions_for_segments): Track the virtual
421 memory position separately from the file position, and use it to
422 compute the alignment adjustment.
423
11609502
MH
424start-sanitize-d10v
425Tue Jul 23 10:43:31 1996 Martin M. Hunt <[email protected]>
426
427 * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
428 and fixed mask on R_D10V_10_PCREL_L.
429
430end-sanitize-d10v
9bd65136
ILT
431Mon Jul 22 15:30:30 1996 Ian Lance Taylor <[email protected]>
432
bf9884d4
ILT
433 * elf64-mips.c: Include "aout/ar.h".
434 (mips_elf64_slurp_armap): New static function.
435 (mips_elf64_write_armap): New static function.
436 (bfd_elf64_archive_*): Define.
437 * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined.
438 Use instead of bfd_generic_archive_p.
439 (bfd_elfNN_write_archive_contents): Define if not defined. Use
440 instead of _bfd_write_archive_contents.
441 (bfd_elfNN_mkdarchive): Define if not defined. Use instead of
442 _bfd_generic_mkarchive.
443 (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use
444 bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than
445 _bfd_archive_coff.
446 (TARGET_LITTLE_SYM): Likewise.
447 * archive.c (bfd_slurp_armap): Check for and reject an archive map
448 name of /SYM64/.
449 * Makefile.in: Rebuild dependencies.
450
451 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle
452 SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and
453 SHT_MIPS_EVENTS sections.
454 (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE,
455 SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS
456 sections.
457 (_bfd_mips_elf_fake_sections): Likewise.
458
9bd65136
ILT
459 * libecoff.h (ecoff_data_type): Add rdata_in_text field.
460 * ecoff.c (ecoff_compute_section_file_positions): Copy
461 rdata_in_text from backend info to tdata. Clear it if any data
462 section comes before .rdata.
463 (_bfd_ecoff_write_object_contents): Use rdata_in_text field in
464 tdata rather than backend info.
465
194141a9
ILT
466Fri Jul 19 18:15:51 1996 Ian Lance Taylor <[email protected]>
467
468 * configure.in: Fix test for whether a compiler has a 64 bit
469 type. From Jim Wilson <[email protected]>.
470
a8a3d83a
ILT
471Thu Jul 18 15:39:10 1996 Ian Lance Taylor <[email protected]>
472
f4e14cb9
ILT
473 * configure.host (mips-sgi-irix6*): New host.
474
475 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
476 (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
477 BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h
478 to AC_OUTPUT call.
479 * configure: Rebuild.
480 * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
481 (BFD_HOST_64_BIT): Define conditionally.
482 (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
483 (bfd_vma): Typedef as BFD_HOST_U_64_BIT.
484 (symvalue, bfd_size_type): Likewise.
485 * bfd-in2.h: Rebuild.
486 * Makefile.in (do_clean): Remove bfd-tmp.h.
487 (do_distclean): Remove bfd-in3.h.
488 (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
489 (bfd-in3.h): New target.
490
74556b94
ILT
491 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From
492 Andrew Gierth <[email protected]>.
493
ab659fd6
ILT
494 * configure.host: Set INSTALL_SHLIB.
495 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
496 * configure: Rebuild.
497 * Makefile.in (install): Use @INSTALL_SHLIB@.
498
e8c249cb
ILT
499 * config.bfd (mips*-*-irix6*): New target.
500 * configure.host: Handle Irix 6 shared library like Irix 5.
501
a8a3d83a
ILT
502 * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
503 symbol for a magic name.
504 (xcoff_link_input_bfd): Don't change the reloc symbol for an
505 XMC_TD symbol.
506 (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
507 XMC_TD symbol.
508
b576c7b3
SS
509Thu Jul 18 11:36:31 1996 Stan Shebs <[email protected]>
510
511 * mpw-config.in: Add ELF support to mips config, create the
512 elf32-target.h file in the object dir.
513 * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
514
2ba0d82d
KK
515Wed Jul 17 18:02:32 1996 Kim Knuttila <[email protected]>
516
517 * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
518 Also removed most abort calls, in favor of using bfd reporting.
519
50bd50d4 520start-sanitize-d10v
b576c7b3 521Wed Jul 17 14:51:52 1996 Martin M. Hunt <[email protected]>
50bd50d4 522
b576c7b3
SS
523 * Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
524 (BFD32_BACKENDS) Add elf32-d10v.o.
50bd50d4
MH
525 * archures.c: Add bfd_d10v_arch.
526 * bfd-in2.h: Add bfd_d10v_arch.
527 * config.bfd (d10v-*-*): New target.
528 * configure: (bfd_elf32_d10v_vec) New vector.
529 * configure.in: (bfd_elf32_d10v_vec) New vector.
530 * cpu-d10v.c: New file.
531 * elf.c (prep_headers): Added case bfd_arch_d10v.
532 * elf32-d10v.c: New file.
533 * libbfd.h: Rebuild.
b576c7b3
SS
534 * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
535 BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
50bd50d4
MH
536 * targets.c (bfd_elf32_d10v_vec): New vector.
537end-sanitize-d10v
538
2ce9802e
KK
539Wed Jul 17 10:58:55 1996 Kim Knuttila <[email protected]>
540
541 * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
542
9676e446 543Tue Jul 16 23:49:02 1996 Stu Grossman ([email protected])
3cc21bf6 544
9676e446
SG
545 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and
546 bfd_mach_i386_i8086 machine types.
3cc21bf6 547
f7171978
ILT
548Wed Jul 10 12:42:56 1996 Ian Lance Taylor <[email protected]>
549
550 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
551 and _FINI sections.
552
74e2ab38
ILT
553Wed Jul 10 11:18:21 1996 Richard Henderson <[email protected]>
554
555 * coffcode.h (coff_set_section_contents): A/UX does not require
556 special handling of the _LIB section.
557
01cfaa6b
JL
558Tue Jul 9 15:52:20 1996 Jeffrey A Law ([email protected])
559
560 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
561 value for R_RELBYTE.
562
563 * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
564 array if one was allocated.
565
eb52b9dc
ILT
566Tue Jul 9 12:21:54 1996 Ian Lance Taylor <[email protected]>
567
568 From Kazumoto Kojima <[email protected]>:
569 * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
570 use_rld_obj_head and rld_value.
571 (mips_elf_link_hash_table_create): Initialize new fields.
572 (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
573 dynamic.
574 (mips_elf_create_dynamic_sections): Create .rld_map section. If
575 __rld_obj_head symbol not seen, create an __rld_map symbol.
576 (mips_elf_size_dynamic_sections): Make space in .rld_map section.
577 Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
578 (mips_elf_finish_dynamic_symbol): Save value of __rld_map or
579 __rld_obj_head symbol.
580 (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
581
56b4cbaa
ILT
582Mon Jul 8 16:18:03 1996 Ian Lance Taylor <[email protected]>
583
9b292d4c
ILT
584 * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
585
dab45734
ILT
586 * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
587 ppc_elf_addr16_ha_reloc.
588 (ppc_elf_addr16_ha_reloc): New static function.
589
56b4cbaa
ILT
590 * coff-mips.c (struct mips_hi): Define.
591 (mips_refhi_list): New static variable.
592 (mips_refhi_addr, mips_refhi_addend): Remove.
593 (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
594 (mips_reflo_reloc): Process mips_refhi_list.
595 (mips_relhi_list): New static variable.
596 (mips_relhi_addr, mips_relhi_addend): Remove.
597 (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
598 (mips_rello_reloc): Process mips_relhi_list.
599 (mips_relocate_section): Permit an arbitrary number of REFHI or
600 RELHI relocs before the associated REFLO or RELLO reloc.
601
b777c6a7
ILT
602Fri Jul 5 19:27:49 1996 Ian Lance Taylor <[email protected]>
603
604 * aout-target.h (MY(callback)): Set reloc_count fields.
605
100b65dd
ILT
606Thu Jul 4 12:00:37 1996 Ian Lance Taylor <[email protected]>
607
48f3aaf3
ILT
608 * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
609 sections unless this is a SunOS link.
610
100b65dd
ILT
611 * VERSION: Set to 2.7.1.
612
613 * Released binutils 2.7.
614
a31e14f4
ILT
615Wed Jul 3 14:59:47 1996 Ian Lance Taylor <[email protected]>
616
4d3daf4f
ILT
617 * i386aout.c: Include "aout/aout64.h".
618 (i386aout_write_object_contents): New static function.
619 (MY_write_object_contents): Define.
620
a31e14f4
ILT
621 * netbsd.h (MY(write_object_contents)): Make sure that
622 adjust_sizes_and_vmas is called before fiddling with the magic
623 number.
624
d2d04f7a
ILT
625Tue Jul 2 23:30:39 1996 Ian Lance Taylor <[email protected]>
626
627 * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
628
4f6ee760
ILT
629Sun Jun 30 13:34:33 1996 Ian Lance Taylor <[email protected]>
630
631 * libbfd-in.h (itos, stoi): Don't define.
632 * libbfd.h: Rebuild.
633 * i386lynx.c (KEEPIT): Define as udata.i.
634 (NAME(lynx,swap_std_reloc_out)): Don't use stoi.
635 (NAME(lynx,swap_ext_reloc_out)): Likewise.
636 * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
637 flags. Don't use stoi.
638
639 * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
640
641 * elf.c (map_sections_to_segments): Don't start a new segment for
642 a writable section if it's on the same page as the previous
643 segment. Reset the writable variable for a readonly section.
644
dfb89b82
KK
645Sat Jun 29 16:18:51 1996 Kim Knuttila <[email protected]>
646
647 * peicode.h (coff_swap_aouthdr_in): Missing initializations of
648 first_thunk_address, thunk_size, and import_table_size.
649 * peicode.h: Improved some diagnostics regarding edata sections.
650
651 * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
652 on IMGLUE relocs.
653 (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
654 (TARGET_LITTLE_SYM): Added missing D_PAGED.
655
8e80606f
ILT
656Fri Jun 28 13:48:45 1996 Ian Lance Taylor <[email protected]>
657
f93fb275
ILT
658 * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
659 with XCOFF_DEF_DYNAMIC set is really defined.
660 (xcoff_link_check_dynamic_ar_symbols): Likewise.
661 (xcoff_link_add_symbols): Only create special sections if using an
662 XCOFF hash table.
663
8e80606f
ILT
664 * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
665 aixcoff-rs6000.
666 (bfd_install_relocation): Likewise.
667
eec2f824
ILT
668Fri Jun 28 11:17:00 1996 Richard Henderson <[email protected]>
669
670 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
671 field.
672 (ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
673 (ALPHA_ELF_LINK_HASH_LU_MEM): Define.
674 (ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
675 (elf64_alpha_link_hash_newfunc): Initialize flags field.
676 (elf64_alpha_check_relocs): Record types of LITUSE entries that
677 are found for LITERAL relocs.
678 (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
679 taken, we cannot generate a .plt entry for the symbol.
680
5304aea9
ILT
681Thu Jun 27 11:24:29 1996 Ian Lance Taylor <[email protected]>
682
683 * configure.in: Add AC_ISC_POSIX, and check for setitimer and
684 sysconf functions (for gprof).
685 * configure, config.in: Rebuild.
686
017047d4
ILT
687Wed Jun 26 16:29:02 1996 Ian Lance Taylor <[email protected]>
688
f292bbe9
ILT
689 * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
690 an archive if it has a map. If the object file has the wrong
691 xvec, reject it.
692
566e2325
ILT
693 * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
694 BRADDR, SREL16, SREL32, or SREL64 reloc against an external
695 symbol.
696 (alpha_relocate_section): Likewise.
697
017047d4
ILT
698 * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
699 (coff_swap_filehdr_out): Use FILHSZ, not sizeof.
700 (coff_swap_sym_out): Use SYMESZ, not sizeof.
701 (coff_swap_aux_out): Use AUXESZ, not sizeof.
702 (coff_swap_lineno_out): Use LINESZ, not sizeof.
703 (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
704 (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
705 * peicode.h: Corresponding changes.
706
cb73f5d7
MM
707Tue Jun 25 15:28:34 1996 Michael Meissner <[email protected]>
708
709 * elflink.h (elf_create_pointer_linker_section): Comment out code
710 dealing with making GOT pointers negative of the GOT symbol for
711 now.
712
297a4f1a
ILT
713Tue Jun 25 11:41:24 1996 Richard Henderson <[email protected]>
714
715 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
716 increment the .rela.plt size until after we're done creating the
717 .plt entry.
718 (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
719 .rela.plt offset directly rather than calculating it.
720
dbbfec07
JM
721Mon Jun 24 17:15:10 1996 Jason Molenda ([email protected])
722
01e58ff6
JM
723 * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir):
724 Use autoconf-set values.
725 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
726 includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set
727 values.
dbbfec07
JM
728 (docdir): Deleted.
729 * configure.in (AC_PREREQ): autoconf v2.5 or higher.
730 * configure: Rebuilt.
731
50004d8d
JL
732Mon Jun 24 22:50:35 1996 Jeffrey A Law ([email protected])
733
734 * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
735 handling code > 1k away.
736
737Mon Jun 24 18:41:06 1996 Michael Meissner <[email protected]>
738
739 * elflink.h (elf_create_pointer_linker_section): If DEBUG is
740 defined, output whenever the symbol is updated.
741
2e0567eb
ILT
742Mon Jun 24 17:58:12 1996 Jouke Numan <[email protected]>
743
744 * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
745 section to 0 if user_set_vma is set.
746 * elflink.h (elf_bfd_final_link): Likewise.
747
748Sun Jun 23 20:42:51 1996 Doug Evans <[email protected]>
749
750 Partially undo patch of Jun 20.
751 * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
752 (coff_compute_section_file_positions): Likewise.
753 (coff_write_object_contents): Likewise. Re-add deleted code, but
754 use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
755 * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
756
bff4a496
ILT
757Fri Jun 21 17:38:15 1996 Joel Sherrill <[email protected]>
758
759 * config.bfd: Add support for *-*-rtems* configurations.
760
7ae6550f
ILT
761Fri Jun 21 15:19:59 1996 Ian Lance Taylor <[email protected]>
762
763 * elf.c (prep_headers): Add bfd_arch_alpha case.
764
e8f46717
ILT
765Fri Jun 21 12:35:27 1996 Richard Henderson <[email protected]>
766
767 * elf64-alpha.c: New file.
768 * config.bfd (alpha-*-linuxecoff*): New target.
769 (alpha-*-linux*, alpha-*-elf*): New targets.
770 * configure.in (bfd_elf64_alpha_vec): New vector.
771 * configure: Rebuild.
772 * targets.c (bfd_elf64_alpha_vec): Declare.
773 (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
774 * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
775 * bfd-in2.h, libbfd.h: Rebuild.
776 * Makefile.in: Rebuild dependencies.
777 (BFD64_BACKENDS): Add elf64-alpha.o.
778 (BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
779
bacecac8
ILT
780Thu Jun 20 18:14:25 1996 Ian Lance Taylor <[email protected]>
781
782 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
783 than relying on a right shift of 32.
784
9ca108cd
DE
785Thu Jun 20 11:00:57 1996 Doug Evans <[email protected]>
786
b9110a3c
DE
787 * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
788 ifdef to COFF_WITH_PE.
789 (coff_compute_section_file_positions): Likewise.
790 (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE.
791 * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
792 * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
793 COFF_IMAGE_WITH_PE, always include.
794
9ca108cd
DE
795 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
796
c2073f05
ILT
797Wed Jun 19 11:37:52 1996 Ian Lance Taylor <[email protected]>
798
7fc6a16a
ILT
799 * elf.c (map_sections_to_segments): Fix up the test for -Ttext to
800 approximate the correct answer if SIZEOF_HEADERS was not used.
801
c2073f05
ILT
802 * binary.c (binary_set_section_contents): Set section file
803 position based on LMA rather than VMA.
804
4838929e
ILT
805Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <[email protected]>
806
807 * linker.c (_bfd_generic_link_output_symbols): Don't output any
808 symbols if info->strip == strip_all.
809
810Tue Jun 18 15:17:36 1996 Jeffrey A. Law <[email protected]>
811
812 * coff-h8300.c: Remove #if 0 code.
813 (compatable): Don't allow mixing/matching of different architectures.
814
4838929e
ILT
815 * archures.c (bfd_mach_h8300s): Add.
816 * bfd-in2.h: Rebuilt.
817 * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
818 (BADMAG): Likewise.
819 (h8300_reloc16_estimate): Likewise.
820 (h8300_reloc16_extra_cases): Likewise.
821 (h8300_bfd_link_add_symbols): Likewise.
822 * coffcode.h (coff_set_arch_mach_hook): Likewise.
823 (coff_set_flags): Likewise.
824 * cpu-h8300.c (h8300_scan): Likewise.
825 Add H8/S to bfd_h8300_arch list.
826
c3d8e071
ILT
827Tue Jun 18 14:42:58 1996 Klaus Kaempf <[email protected]>
828
829 Added support for Alpha OpenVMS:
830 * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
831 * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
832 * config.h-vms, makefile.vms: New files.
833 * config.bfd (alpha-*-*vms*): New target.
834 * configure.in (evax_alpha_vec): New target vector.
835 * configure: Rebuild.
836 * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
837 (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
838 * targets.c (bfd_target_evax_flavour): Define.
839 (evax_alpha_vec): Declare.
840 (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
841 if BFD64 is defined.
842 * bfd-in2.h, libbfd.h: Rebuild.
843 * Makefile.in: Rebuild dependencies.
844 (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
845 evax-emh.o, and evax-misc.o.
846 (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
847 evax-etir.c, evax-emh.c, and evax-misc.c.
848 (HFILES): Add evax.h.
849
142aa7d9
ILT
850Tue Jun 18 13:54:18 1996 Ian Lance Taylor <[email protected]>
851
852 * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
853 pointer.
854 (h8300_bfd_link_add_symbols): Likewise.
855
b658d64d
JL
856Mon Jun 17 10:06:50 1996 Jeffrey A. Law <[email protected]>
857
858 * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
859 * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
860
2df1e84b
ILT
861Mon Jun 17 12:49:11 1996 Ian Lance Taylor <[email protected]>
862
863 * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
864 for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
865 created.
866 (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
867 R_MIPS_32 relocs if creating a shared library.
868
869Thu Jun 13 20:14:51 1996 Doug Evans <[email protected]>
870
871 * peicode.h (add_data_entry): Use pei_section_data rather than
872 _cooked_size. Corresponds to May 13 change in coffcode.h.
873
8100e72c
ILT
874Thu Jun 13 10:23:40 1996 Ian Lance Taylor <[email protected]>
875
51bc9642
ILT
876 * cofflink.c (_bfd_coff_final_link): Handle long section names.
877 * coffcode.h (coff_write_object_contents): If there are long
878 section names, always set the f_symptr field, even if there are no
879 symbols.
880 * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
881 if there are no symbols.
882
8100e72c
ILT
883 * coffgen.c (make_a_section_from_file): Check return value of
884 _bfd_coff_read_string_table.
885 (coff_real_object_p): Check return value of
886 make_a_section_from_file.
887 (_bfd_coff_read_string_table): Check that there are some symbols
888 before trying to read the string table size.
889
0e3bd85e
ILT
890Wed Jun 12 11:16:37 1996 Ian Lance Taylor <[email protected]>
891
ed675a04
ILT
892 * xcofflink.c (xcoff_link_add_symbols): When considering whether
893 to replace a symbol in a dynamic object with a symbol from another
894 dynamic object, do the replacement if the existing symbol is
895 global linkage code.
896
49144784
ILT
897 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
898 for _ptrgl, and treat it as global linkage code.
899
0e3bd85e
ILT
900 * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
901 filename or N_SO symbol past the offset, and use it to indicate
902 that there is no line number or function when appropriate.
903
a5c7acea
ILT
904Tue Jun 11 15:24:48 1996 Ian Lance Taylor <[email protected]>
905
906 * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
907 common symbol defined by the linker. Don't export function code
908 even if export_defineds is set.
909
910Mon Jun 10 11:57:27 1996 Jeffrey A Law ([email protected])
911
912 * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
913 and R_JMP_DEL.
914 (rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
915 (h8300_symbol_address_p): New function.
916 (h8300_reloc16_estimate): Eliminate jumps made unnecessary by
917 relaxing.
918
890f5b7f
JL
919Sun Jun 9 16:30:20 1996 Jeffrey A Law ([email protected])
920
921 * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
922 problems.
923 (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
924 correctly for the two variants. Allow relaxing if the target
925 is 128 bytes away since after relaxation it'll be 126 bytes away.
926 (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
927 "dot" and "value". Allow relaxing if the target is 128 bytes
928 away since after relaxation it'll be 126 bytes away.
929 * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
930 the given section until nothing changes.
931
0593fc16
ILT
932Thu Jun 6 15:24:45 1996 Richard Henderson <[email protected]>
933
934 * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
935 alignment hack--we can get the lnnoptr info another way without
936 suddenly increasing the alignment requirements. Set the flags for
937 the _PDATA section.
938 (ecoff_compute_section_file_positions): Do so.
939
9b263b79
ILT
940Thu Jun 6 11:24:37 1996 Ian Lance Taylor <[email protected]>
941
bbf7c335
ILT
942 * ieee.c (ieee_write_object_contents): Put a timestamp in the file
943 to keep the HP emulator database happy.
944
9b263b79
ILT
945 * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
946 From Kevin Buettner <[email protected]>.
947
948Wed Jun 5 15:16:04 1996 Ian Lance Taylor <[email protected]>
949
950 * aoutx.h (translate_to_native_sym_flags): Don't try to print the
951 name of a NULL section.
952
26145b15
ILT
953Tue Jun 4 18:53:58 1996 Ian Lance Taylor <[email protected]>
954
955 * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
956 set, always call the notice callback.
957
958 * VERSION: Increment for bfdlink.h change.
959
3a2080d8
ILT
960Mon Jun 3 11:01:53 1996 Ian Lance Taylor <[email protected]>
961
9d175198
ILT
962 * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
963 (sh_relax_delete_bytes): Correct handling of differently sized
964 trailing alignment reloc.
965
5a04f1bd
ILT
966 * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
967 * bfd-in2.h: Rebuild.
968 * configure.in: Warn if there is no known 64 bit type.
969 * configure: Rebuild.
970
60c8b04f
ILT
971 * Makefile.in: Rebuild dependencies.
972 (BFD32_BACKENDS): Add ppcboot.o.
973 (BFD32_BACKENDS_CFILES): Add ppcboot.c.
974
3a2080d8
ILT
975 * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
976 From Per Fogelstrom <[email protected]>.
977
903612a2
ILT
978Sat Jun 1 21:49:58 1996 Ian Lance Taylor <[email protected]>
979
980 * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
981 (bfd_mips_elf64_swap_reginfo_out): Move from here...
982 * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
983 (bfd_mips_elf64_swap_reginfo_out): ...to here.
984
38893c8c
ILT
985Fri May 31 13:51:28 1996 Ian Lance Taylor <[email protected]>
986
bc05732b
ILT
987 * elf64-mips.c: Improve reloc special_functions and handling of
988 SHT_MIPS_OPTIONS section.
989 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
990 mips_elf_hi16_reloc and make globally visible.
991 (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
992 make globally visible.
993 (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
994 make globally visible.
995 (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
996 and make globally visible.
997 (gprel16_with_gp): Check howto->src_mask before using value in
998 insn.
999 (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
1000 and make globally visible.
1001 (gprel32_with_gp): Check howto->src_mask before fetching value.
1002 (bfd_mips_elf_swap_options_in): New function.
1003 (bfd_mips_elf_swap_options_out): New function.
1004 (_bfd_mips_elf_set_private_flags): Rename from
1005 mips_elf_set_private_flags and make globally visible.
1006 (_bfd_mips_elf_copy_private_bfd_data): Rename from
1007 mips_elf_copy_private_bfd_data and make globally visible.
1008 (_bfd_mips_elf_merge_private_bfd_data): Rename from
1009 mips_elf_merge_private_bfd_data and make globally visible.
1010 (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
1011 for a SHT_MIPS_OPTIONS section.
1012 (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
1013 (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
1014 name of a SHT_MIPS_OPTIONS section.
1015 (_bfd_mips_elf_set_section_contents): New function.
1016 (mips_elf32_section_processing): Set the GP value in a
1017 SHT_MIPS_OPTIONS section.
1018 (_bfd_mips_elf_find_nearest_line): Rename from
1019 mips_elf_find_nearest_line and make globally visible.
1020 (bfd_elf32_set_section_contents): Define.
1021 * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
1022 (_bfd_mips_elf_lo16_reloc): Declare.
1023 (_bfd_mips_elf_gprel16_reloc): Declare.
1024 (_bfd_mips_elf_got16_reloc): Declare.
1025 (_bfd_mips_elf_gprel32_reloc): Declare.
1026 (_bfd_mips_elf_set_private_flags): Declare.
1027 (_bfd_mips_elf_copy_private_bfd_data): Declare.
1028 (_bfd_mips_elf_merge_private_bfd_data): Declare.
1029 (_bfd_mips_elf_find_nearest_line): Declare.
1030 (_bfd_mips_elf_set_section_contents): Declare.
1031
38893c8c
ILT
1032 * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
1033 elf_info_to_howto.
1034 (elf_info_to_howto): Define.
1035 * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
1036 elf_info_to_howto.
1037 (elf_info_to_howto): Define.
1038 * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
1039 elf_info_to_howto.
1040 (elf_info_to_howto): Define.
1041
1042 * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
1043 R_MOV16B[12], to match change in coff/internal.h.
1044
cabd8fa0
ILT
1045Thu May 30 12:38:49 1996 Ian Lance Taylor <[email protected]>
1046
00176555
ILT
1047 * elf64-mips.c: Extensive additions to provide better support for
1048 writing files and for gas.
1049 * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
1050 of mips_elf_object_p.
1051 (mips_elf32_object_p): Rename from mips_elf_object_p; call
1052 _bfd_mips_elf_object_p.
1053 (_bfd_mips_elf_final_write_processing): Rename from
1054 mips_elf_final_write_processing and make globally visible.
1055 (_bfd_mips_elf_fake_sections): Rename from
1056 mips_elf_fake_sections and make globally visible.
1057 (_bfd_mips_elf_section_from_bfd_section): Rename from
1058 mips_elf_section_from_bfd_section and make globally visible.
1059 (_bfd_mips_elf_section_processing): New function, broken out of
1060 mips_elf_section_processing.
1061 (mips_elf32_section_processing): Rename from
1062 mips_elf_section_processing; call
1063 _bfd_mips_elf_section_processing.
1064 (_bfd_mips_elf_symbol_processing): Rename from
1065 mips_elf_symbol_processing and make globally visible.
1066 (_bfd_mips_elf_read_ecoff_info): Rename from
1067 mips_elf_read_ecoff_info and make globally visible.
1068 (mips_elf32_ecoff_debug_swap): Rename from
1069 mips_elf_ecoff_debug_swap.
1070 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
1071 struct symbol_cache_entry.
1072 (_bfd_elf_validate_reloc): New function, moved in from
1073 elfcode.h:validate_reloc.
1074 * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
1075 to _bfd_elf_validate_reloc. Change all callers.
1076 * elf-bfd.h (bfd_section_from_shdr): Declare.
1077 (_bfd_elf_symbol_from_bfd_symbol): Declare.
1078 (_bfd_elf_validate_reloc): Declare.
1079 (_bfd_mips_elf_object_p): Declare.
1080 (_bfd_mips_elf_fake_sections): Declare.
1081 (_bfd_mips_elf_section_from_bfd_section): Declare.
1082 (_bfd_mips_elf_section_processing): Declare.
1083 (_bfd_mips_elf_symbol_processing): Declare.
1084 (_bfd_mips_elf_read_ecoff_info): Declare.
1085 (_bfd_mips_elf_final_write_processing): Declare.
1086 * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
1087 if already defined.
1088
cabd8fa0
ILT
1089 * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
1090 (mips_elf_final_write_processing): Likewise.
1091
d1bf45aa
ILT
1092Wed May 29 16:15:29 1996 Ian Lance Taylor <[email protected]>
1093
1094 64-bit MIPS ELF ABI objdump support:
1095 * elf64-mips.c: New file.
1096 * Makefile.in: Rebuild dependencies.
1097 (BFD64_BACKENDS): Add elf64-mips.o.
1098 (BFD64_BACKENDS_CFILES): Add elf64-mips.c.
1099 * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
1100 bfd_elf64_littlemips_vec to targ_selvecs.
1101 (mips*-*-elf*): Likewise.
1102 * confingure.in: Add bfd_elf64_bigmips_vec and
1103 bfd_elf64_littlemips_vec to vector switch.
1104 * configure: Rebuild.
1105 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
1106 broken out of mips_elf_section_from_shdr.
1107 (mips_elf32_section_from_shdr): Rename from
1108 mips_elf_section_from_shdr. Call new function.
1109 (elf_backend_section_from_shdr): Update name of renamed function.
1110 * elf-bfd.h (struct elf_size_info): Change second parameter of
1111 write_out_phdrs to be const. Likewise for second parameter of
1112 swap_symbol_out.
1113 (struct bfd_elf_section_data): Add rel_hdr2 field.
1114 (bfd_elf32_swap_symbol_in): Change second parameter to be const.
1115 (bfd_elf32_swap_symbol_out): Likewise.
1116 (bfd_elf32_swap_reloc_in): Likewise.
1117 (bfd_elf32_swap_reloc_out): Likewise.
1118 (bfd_elf32_swap_reloca_in): Likewise.
1119 (bfd_elf32_swap_reloca_out): Likewise.
1120 (bfd_elf32_swap_phdr_in): Likewise.
1121 (bfd_elf32_swap_phdr_out): Likewise.
1122 (bfd_elf32_swap_dyn_in): Likewise.
1123 (bfd_elf32_swap_dyn_out): Likewise.
1124 (bfd_elf32_slurp_symbol_table): Declare.
1125 (bfd_elf32_write_shdrs_and_ehdr): Declare.
1126 (bfd_elf32_write_out_phdrs): Declare.
1127 (bfd_elf64_swap_symbol_in): Change second parameter to be const.
1128 (bfd_elf64_swap_symbol_out): Likewise.
1129 (bfd_elf64_swap_reloc_in): Likewise.
1130 (bfd_elf64_swap_reloc_out): Likewise.
1131 (bfd_elf64_swap_reloca_in): Likewise.
1132 (bfd_elf64_swap_reloca_out): Likewise.
1133 (bfd_elf64_swap_phdr_in): Likewise.
1134 (bfd_elf64_swap_phdr_out): Likewise.
1135 (bfd_elf64_swap_dyn_in): Likewise.
1136 (bfd_elf64_swap_dyn_out): Likewise.
1137 (bfd_elf64_slurp_symbol_table): Declare.
1138 (bfd_elf64_write_shdrs_and_ehdr): Declare.
1139 (bfd_elf64_write_out_phdrs): Declare.
1140 (_bfd_mips_elf_section_from_shdr): Declare.
1141 * elf.c (bfd_section_from_shdr): Remove assertion requiring
1142 SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc
1143 section for the section, add the new one to rel_hdr2. Increment
1144 reloc_count rather than setting it.
1145 * elfcode.h (elf_slurp_symbol_table): Define name as macro.
1146 Remove static declaration.
1147 (elf_write_shdrs_and_ehdr): Define name as macro.
1148 (elf_write_out_phdrs): Likewise.
1149 (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
1150 (elf_swap_shdr_in, elf_swap_shdr_out): Declare.
1151 (elf_swap_symbol_in): Change second parameter to be const.
1152 (elf_swap_symbol_out): Likewise.
1153 (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
1154 (elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
1155 (elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
1156 (elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
1157 (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
1158 (elf_write_out_phdrs): Rename from write_out_phdrs. Change second
1159 parameter to be const. Make non-static.
1160 (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
1161 Make non-static.
1162 (elf_slurp_symbol_table): Make non-static.
1163 (NAME(_bfd_elf,size_info)): Update names of renamed functions.
1164 * elfxx-target.h (elf_info_to_howto): Define if not defined.
1165 (elf_backend_size_info): Likewise.
1166 (elfNN_bed): Use elf_backend_size_info.
1167 * targets.c (bfd_elf64_bigmips_vec): Declare.
1168 (bfd_elf64_littlemips_vec): Declare.
1169 (bfd_target_vector): Add bfd_elf64_bigmips_vec and
1170 bfd_elf64_littlemips_vec if BFD64 is defined.
1171
1172 * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
1173
7dd3d45a
ILT
1174Tue May 28 11:42:08 1996 Ian Lance Taylor <[email protected]>
1175
07692951
ILT
1176 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
1177 zeroes, in alignment holes.
1178
a4322a77
ILT
1179 * configure: Rebuild with autoconf 2.10.
1180
7dd3d45a
ILT
1181 * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
1182 potential leading underscore in the allocated buffer.
1183
0293d5b0
MM
1184Fri May 24 14:28:38 1996 Michael Meissner <[email protected]>
1185
1186 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
1187 symbols into .sbss if this is a relocatable link.
1188
a5d0cd50
ILT
1189Thu May 23 12:26:24 1996 Ian Lance Taylor <[email protected]>
1190
1191 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
1192 undefined symbols when creating a shared library.
1193
1194Fri May 17 13:54:15 1996 Ian Lance Taylor <[email protected]>
1195
1196 * coff-sh.c: Add a bunch of new code and static const arrays to
1197 support aligning loads and stores on four byte memory boundaries.
1198 Also:
1199 (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
1200 R_SH_LABEL.
1201 (sh_relax_section): Look for R_SH_CODE relocs. If we find one,
1202 call sh_align_loads.
1203 (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
1204 as unused.
1205
c403d358
ILT
1206Thu May 16 16:34:13 1996 Ian Lance Taylor <[email protected]>
1207
1208 * cache.c (bfd_open_file): Unlink the file before opening it for
1209 write. From Marty Leisner <[email protected]>.
1210
1211 * opncls.c (bfd_fdopenr): Set opened_once.
1212
2f710e17
ILT
1213Tue May 14 12:35:32 1996 Ian Lance Taylor <[email protected]>
1214
ff60fc3a
ILT
1215 * som.c (som_slurp_reloc_table): Clear external_relocs cache after
1216 freeing it.
1217
2f710e17
ILT
1218 * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
1219 the code unconditionally.
1220
efb33f6b
ILT
1221Mon May 13 19:51:37 1996 Ian Lance Taylor <[email protected]>
1222
1223 * libcoff-in.h (struct pei_section_tdata): Define structure.
1224 (pei_section_data): Define macro.
1225 * libcoff.h: Rebuild.
1226 * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
1227 store s_paddr field in pei_section_data.
1228 (coff_compute_section_file_positions): Use pei_section_data rather
1229 than _cooked_size, and don't overwrite an existing value.
1230 (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
1231 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
1232 * peicode.h (coff_bfd_copy_private_section_data): Define if
1233 COFF_IMAGE_WITH_PE.
1234 (pe_bfd_copy_private_section_data): New static function if
1235 COFF_IMAGE_WITH_PE.
1236
5ecd6d7f
ILT
1237Wed May 8 16:10:38 1996 Ian Lance Taylor <[email protected]>
1238
db1e2aa7
ILT
1239 * srec.c (srec_set_arch_mach): Write as a function rather than a
1240 macro definition.
1241
5ecd6d7f
ILT
1242 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
1243 no map, just check each member in turn to see whether it is
1244 required.
1245
aefee5c8
MM
1246Wed May 8 09:17:34 1996 Michael Meissner <[email protected]>
1247
1248 * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
1249 table. Call BFD_ASSERT to validate header size, instead of
1250 calling fatal.
1251 (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
1252 name.
1253
0d1fcbbb
MM
1254Tue May 7 16:10:19 1996 Michael Meissner <[email protected]>
1255
1256 * ppcboot.c: New target for looking at PPCbug boot records.
1257
1258 * config{ure.in,.bfd}: Add support for ppcboot target.
1259 * targets.c: Ditto.
1260 * configure: Regenerate.
1261
f4597f8c
JL
1262Tue May 7 11:15:19 1996 Jeffrey A Law ([email protected])
1263
1264 * coff-h8300.c (howto_table): Update names to match recent
1265 changes to include/coff/internal.h. Fix minor errors in the
1266 existing relocs. Add R_MOVL1 and R_MOVL2.
1267 (rtype2howto): Similarly.
1268 (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
1269 existing relaxing code and peform more relaxing.
1270 (h8300_reloc16_extra_cases): Likewise.
1271
0dc70e1a
JL
1272Mon May 6 18:24:09 1996 Jeffrey A Law ([email protected])
1273
1274 * reloc16.c (bfd_coff_reloc16_get_value): Handle common
1275 symbols correctly.
1276
d1b8ccb0
PS
1277Sat May 4 05:08:45 1996 Peter Schauer ([email protected])
1278
1279 * elfcode.h (elf_object_p): Reject generic ELF target if
1280 e_machine matches an alternate machine code in a specific backend.
1281
1282 * netbsd-core.c (netbsd_core_vec): Remove initializer for
1283 obsolete align_power_min field.
1284
c9f5444e
JL
1285Fri May 3 13:07:35 1996 Jeffrey A Law ([email protected])
1286
1287 * coff-h8300.c (reloc_howto_type): Add howto entry for
1288 R_PCRWORD_B.
1289 (rtype2howto): Handle R_PCRWORD_B.
1290 (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
1291 (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit
1292 pc-relative branch (R_PCRWORD) into an 8bit pc-relative
1293 branch (R_PCWORD_B).
1294
4ad842aa
ILT
1295Fri May 3 10:47:41 1996 Ian Lance Taylor <[email protected]>
1296
340d654f
ILT
1297 * aoutx.h (translate_from_native_sym_flags): Set the section for
1298 BSF_CONSTRUCTOR symbols.
1299
4ad842aa
ILT
1300 * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
1301 last_bf_index.
1302
9c7a5748
DE
1303Wed May 1 18:39:32 1996 Doug Evans <[email protected]>
1304
1305 * coffcode.h (coff_write_object_contents): In comdat section lookup,
1306 stop looking when section is found.
1307
622c93a3
ILT
1308Wed May 1 14:17:57 1996 Ian Lance Taylor <[email protected]>
1309
e8f3bb64 1310 * coffcode.h (STRING_SIZE_SIZE): Define.
9aac8e83
ILT
1311 (styp_to_sec_flags): Handle long symbol names when looking for the
1312 section symbol.
e8f3bb64
ILT
1313 (bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
1314 (bfd_coff_long_section_names): Define.
1315 (coff_write_object_contents): Handle long section names.
1316 (bfd_coff_std_swap_table): Initialize new field.
1317 * libcoff.h: Rebuild.
1318 * coffgen.c (make_a_section_from_file): Handle long section
1319 names.
1320 (coff_write_symbols): Handle long section names.
1321 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
1322 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1323 * pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
1324 * pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
1325 * pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
1326 * pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
1327 * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
1328 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
1329
622c93a3
ILT
1330 * bout.c (b_out_callback): Set lma of sections.
1331 (b_out_bfd_get_relocated_section_contents): Rename in_abfd
1332 parameter to output_bfd. Used input_bfd instead of output_bfd in
1333 several places.
1334
6b725f83
ILT
1335Tue Apr 30 17:56:39 1996 Ian Lance Taylor <[email protected]>
1336
b7d1158a
ILT
1337 * aoutx.h (translate_from_native_sym_flags): Don't create
1338 SEC_CONSTRUCTOR sections.
1339 * ecoff.c (ecoff_set_symbol_info): Likewise.
1340
6b725f83
ILT
1341 * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
1342 From Don Bowman <[email protected]>.
1343
e28a1e77
DE
1344Tue Apr 30 17:06:32 1996 Doug Evans <[email protected]>
1345
1346 * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
1347 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
1348
abec70b9
ILT
1349Mon Apr 29 13:15:17 1996 Ian Lance Taylor <[email protected]>
1350
1351 * elf32-mips.c (struct mips_elf_link_hash_entry): Add
1352 mips_32_relocs field.
1353 (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
1354 (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
1355 relocs against a global symbol which is not defined in a regular
1356 file.
1357 (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
1358 against a global symbol, increment mips_32_relocs.
1359 (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
1360 the symbol is not defined in a regular file, make room in the
1361 .rel.dyn section.
1362
ecba7a3a
ILT
1363Fri Apr 26 18:00:37 1996 Ian Lance Taylor <[email protected]>
1364
656c5b6d
ILT
1365 * ecoff.c (ecoff_compute_section_file_positions): Track the real
1366 file position and the virtual file position separately. Set
1367 filepos information bsaed on the real file position.
1368 (_bfd_ecoff_set_section_contents): Handle .lib sections like the
1369 Jan 23 change to coffcode.h.
1370
ecba7a3a
ILT
1371 * som.c (som_slurp_symbol_table): Set the symbol count to the
1372 number of BFD symbols created.
1373
e25a7988
MM
1374Fri Apr 26 12:34:29 1996 Michael Meissner <[email protected]>
1375
1376 * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
1377 output file if linking shared objects. Loop to check all relocs,
1378 rather than returning false on first error.
1379
5c28a96e
MM
1380Thu Apr 25 13:25:12 1996 Michael Meissner <[email protected]>
1381
3f7ca26b
MM
1382 * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
1383 (ppc_elf_additional_program_headers): If .interp section, bump #
1384 of program headers by 1.
1385 (ppc_elf_adjust_dynamic_symbol): Flesh out support.
1386 (ppc_elf_size_dynamic_sections): Add support for .plt section.
1387 (ppc_elf_check_relocs): Print out filename in debug code. Enable
1388 PLT support.
1389 (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
1390 debug output.
1391 (ppc_elf_relocate_section): If the output section isn't defined,
1392 don't abort, just give an error message.
1393
5c28a96e
MM
1394 * elflink.c (_bfd_elf_create_dynamic_sections): If the section
1395 being created is .sdata or .sdata2, don't make the symbol dynamic.
1396
f5d65485
ILT
1397Wed Apr 24 14:04:07 1996 Ian Lance Taylor <[email protected]>
1398
1399 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
1400 members of an archive for dynamic objects with no symbols, and
1401 pass them directly to check_archive_element.
1402 (xcoff_link_check_ar_symbols): Pass dynamic objects to
1403 xcoff_link_check_dynamic_ar_symbols.
1404 (xcoff_link_check_dynamic_ar_symbols): New static function.
1405
1406 * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
1407 from _bfd_nodynamic to _bfd_xcoff.
1408 * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
1409 Declare.
1410 (_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
1411 (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
1412 (_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
1413 * libcoff.h: Rebuild.
1414 * xcofflink.c (xcoff_swap_ldrel_in): New static function.
1415 (xcoff_get_section_contents): New static function.
1416 (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
1417 (_bfd_xcoff_canonicalize_dynamic_symtab): New function.
1418 (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
1419 (xcoff_dynamic_reloc): New static variable.
1420 (_bfd_xcoff_canonicalize_dynamic_reloc): New function.
1421 (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
1422
1423Tue Apr 23 12:48:42 1996 Ian Lance Taylor <[email protected]>
1424
1425 * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
1426 if reloc_entry->addend is not 0.
1427 (CALC_ADDEND): Just set the addend to reloc.r_offset.
1428
34249b2f
DE
1429Mon Apr 22 18:29:01 1996 Doug Evans <[email protected]>
1430
1431 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
1432 R_SPARC_GLOB_JMP.
1433 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1434 Add entries for R_SPARC_[56].
1435 (sparc_reloc_map): Add entries for R_SPARC_[56].
1436
af50cd91
ILT
1437Mon Apr 22 15:07:24 1996 Ian Lance Taylor <[email protected]>
1438
1726b8f0
ILT
1439 Optimize linking of stabs in sections as used in ELF and COFF.
1440 * stabs.c: New file.
1441 * libbfd-in.h (_bfd_link_section_stabs): Declare.
1442 (_bfd_write_section_stabs): Declare.
1443 (_bfd_write_stab_strings): Declare.
1444 * libbfd.h: Rebuild.
1445 * libcoff-in.h (struct coff_section_tdata): Add stab_info field.
1446 (struct coff_link_hash_table): Add stab_info field.
1447 * libcoff.h: Rebuild.
1448 * cofflink.c (_bfd_coff_link_hash_table_init): Initialize
1449 stab_info field.
1450 (coff_link_add_symbols): Call _bfd_link_section_stabs if
1451 appropriate.
1452 (_bfd_coff_final_link): Write out stab strings hash table.
1453 (_bfd_coff_link_input_bfd): Handle optimized stabs sections.
1454 * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
1455 hash table.
1456 * elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
1457 (struct bfd_elf_section_data): Add stab_info field.
1458 * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
1459 field.
1460 * elflink.h (elf_link_add_object_symbols): If appropriate, call
1461 _bfd_link_section_stabs.
1462 (elf_bfd_final_link): Write out stab strings hash table.
1463 (elf_link_input_bfd): Handle optimized stabs sections.
1464 * reloc.c (_bfd_final_link_relocate): Check address against
1465 _raw_size rather than _cooked_size.
1466 * Makefile.in: Rebuild dependencies.
1467 (BFD_LIBS): Add stabs.o
1468 (BFD_LIBS_CFILES): Add stabs.c.
1469
1470 * VERSION: Increment for bfdlink.h change.
1471
af50cd91
ILT
1472 * coffgen.c (coff_renumber_symbols): Correct handling of
1473 BSF_NOT_AT_END common symbols.
1474
f9fa5df3
ILT
1475Fri Apr 19 19:21:56 1996 Ian Lance Taylor <[email protected]>
1476
1477 * coff-ppc.c (record_toc): Add cast to avoid warning.
1478 (ppc_allocate_toc_section): Likewise.
1479 (coff_ppc_relocate_section): Remove ANSI C string concatenation.
1480 (ppc_coff_reloc_type_lookup): Remove unreached code.
1481 * coffcode.h (coff_write_object_contents): Don't take the address
1482 of an array.
1483 * peicode.h (pe_print_idata): Add casts to avoid warning.
1484 (pe_print_edata): Likewise.
1485 (pe_print_reloc): Remove ANSI C string concatenation.
1486
d6e0e2f7
ILT
1487Thu Apr 18 18:51:18 1996 Ian Lance Taylor <[email protected]>
1488
1489 * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
1490 and last_bf fields.
1491 * libcoff.h: Rebuild.
1492 * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
1493 symbols.
1494 (coff_swap_aux_out): Likewise.
1495 * peicode.h (coff_swap_aux_in): Likewise.
1496 (coff_swap_aux_out): Likewise.
1497 * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
1498 symbols.
1499 * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
1500 field.
1501 (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
1502 Fix up .bf endndx link fields.
1503 * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
1504 field.
1505 * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
1506 symbols.
1507
221d1e19
MM
1508Wed Apr 17 12:08:24 1996 Michael Meissner <[email protected]>
1509
1510 * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
1511 on Solaris PowerPC systems doesn't get confused.
1512
1513 * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
1514 #ifdef PPC.
1515
1516 * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
1517 (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
1518 update did_reg and did_reg2.
1519
8f9a56c6
ILT
1520Wed Apr 17 13:07:37 1996 Ian Lance Taylor <[email protected]>
1521
f97fca78
ILT
1522 * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
1523
8f9a56c6
ILT
1524 * linker.c (_bfd_generic_link_add_one_symbol): When calling the
1525 callback routines, pass h->root.string rather than name, in case
1526 copy is true and name is transient.
1527
603fdf16
SG
1528Tue Apr 16 16:36:38 1996 Stu Grossman ([email protected])
1529
1530 * elfcore.h: Add support for core files with multiple threads.
1531 (Primarily for Solaris.)
1532
a2d914e1
ILT
1533Tue Apr 16 13:44:08 1996 Ian Lance Taylor <[email protected]>
1534
cdf23557
ILT
1535 * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
1536 section->orelocation is NULL.
1537
a2d914e1
ILT
1538 * coffgen.c (bfd_coff_get_syment): New function.
1539 (bfd_coff_get_auxent): New function.
1540 * bfd-in.h (bfd_coff_get_syment): Declare.
1541 (bfd_coff_get_auxent): Declare.
1542 * bfd-in2.h: Rebuild.
1543
5cf36a32
ILT
1544Mon Apr 15 19:06:59 1996 Ian Lance Taylor <[email protected]>
1545
1546 * elf32-mips.c (struct mips_hi16): Define.
1547 (mips_hi16_addr, mips_hi16_addend): Remove.
1548 (mips_hi16_list): New static variable.
1549 (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
1550 (mips_elf_lo16_reloc): Process mips_hi16_list.
1551 (mips_elf_relocate_section): Permit an arbitrary number of HI16
1552 relocs before the associated LO16 reloc.
1553
b7fce5be
ILT
1554Wed Apr 10 00:23:53 1996 Ian Lance Taylor <[email protected]>
1555
176512da
ILT
1556 * versados.c (versados_scan): Check bfd_alloc return value.
1557 (versados_object_p): Check all bfd_read return values. Require
1558 that lang field be less than 10, to avoid confusion with Intel Hex
1559 files.
1560
18de3f19
ILT
1561 * libaout.h (WRITE_HEADERS): Write out the relocs even if there
1562 aren't any symbols.
1563 * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
1564 not 0, for an absolute symbol.
1565 (NAME(aout,swap_ext_reloc_out)): Likewise.
1566
66ab4152
ILT
1567 * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
1568 (ihex_write_object_contents): For a large start address, output
1569 the full 32 bit address in record type 5.
1570
b7fce5be
ILT
1571 * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
1572 to int to avoid promotion problems in prototype.
1573
f1b45745
ILT
1574Tue Apr 9 11:44:21 1996 Ian Lance Taylor <[email protected]>
1575
f400f358
ILT
1576 * configure.host: Use ${srcdir} when looking for picfrag.
1577
3d9a5986
ILT
1578 * configure.host: Switch on ${libdir}, not $(libdir). From
1579 [email protected] (Alan Modra).
1580
f1b45745
ILT
1581 * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
1582 entry point, not just for DYNAMIC objects.
1583 * sunos.c (sunos_add_dynamic_symbols): Always call
1584 sunos_create_dynamic_sections. If called with a non DYNAMIC
1585 object, don't do anything else.
1586 (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
1587
6f21f2e3
ILT
1588Mon Apr 8 12:09:36 1996 Ian Lance Taylor <[email protected]>
1589
639b5a09
ILT
1590 * configure.in: Permit --enable-shared to specify a list of
1591 directories.
1592 * configure: Rebuild.
1593
6f21f2e3
ILT
1594 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
1595 host when configuring with --enable-shard.
1596
3f5f565b
ILT
1597Fri Apr 5 12:24:13 1996 Ian Lance Taylor <[email protected]>
1598
1ac75f5c
ILT
1599 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
1600 <[email protected]>.
1601
1a9951a9
ILT
1602 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
1603 to avoid crashing in bfd_hash_replace.
1604
f1ac3acb 1605 * sysdep.h: Use #ifdef, not #if.
3f5f565b 1606
eb5f58e0
ILT
1607Thu Apr 4 23:32:23 1996 Ian Lance Taylor <[email protected]>
1608
1609 * config.in: Rebuild.
1610
ab1aa5cd
FF
1611Thu Apr 4 18:49:09 1996 Fred Fish <[email protected]>
1612
1613 * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
1614 (AC_CHECK_HEADERS): Check for sys/time.h
1615 (AC_HEADER_TIME): Add macro.
1616 * configure: Rebuild.
1617 * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
1618 to control what combination of <time> and <sys/time.h>
1619 get included.
1620
d1f74cd2
DE
1621Tue Apr 2 13:11:53 1996 Doug Evans <[email protected]>
1622
1623 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
1624 (aout_32_sunos4_write_object_contents): Likewise.
1625 * aoutx.h (NAME(aout,machine_type)): Handle
1626 bfd_mach_sparc_{sparclet,sparclite}.
1627 * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
1628 (bfd_mach_sparc_v9_p): Update.
1629 * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
1630 * libaout.h (enum machine_type): Add M_SPARCLET.
1631 * sunos.c (MACHTYPE_OK): Define.
1632 * bfd-in2.h: Regenerated.
1633
1dad72bd
ILT
1634Tue Apr 2 00:33:18 1996 Ian Lance Taylor <[email protected]>
1635
19bfbcbe
ILT
1636 * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
1637 * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
1638 * elflink.c (_bfd_elf_create_got_section): Store the
1639 _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
1640 * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
1641 global offset table goes over 0x1000, set the value of
1642 _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
1643 (elf32_sparc_relocate_section): Subtract the offset of
1644 _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
1645
1dad72bd
ILT
1646 * elfcode.h: Don't include <string.h>.
1647
ca4e2190
JL
1648Mon Apr 1 10:39:24 1996 Jeffrey A Law ([email protected])
1649
1650 * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
1651 generic_link_hash_newfunc. All references changed.
1652 * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
1653 moved here from libbfd-in.h.
1654 * libbfd-in.h: Corresponding changes.
1655 * libbfd.h: Regenerated.
1656
ce6a7731
ILT
1657Mon Apr 1 12:35:36 1996 Ian Lance Taylor <[email protected]>
1658
aad53b0d
ILT
1659 * aoutx.h (aout_link_input_section_std): When reporting an
1660 overflow error, use the name of the symbol in the hash table if
1661 available.
1662 (aout_link_input_section_ext): Likewise.
1663
ce6a7731
ILT
1664 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
1665 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
1666
323b430f
SC
1667Sun Mar 31 01:58:41 1996 steve chamberlain <[email protected]>
1668
1669 * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
1670 * coffcode.h (coff_compute_section_file_positions): Likewise.
1671 (coff_write_object_contents): Likewise.
1672
7fc1cd16
ILT
1673Fri Mar 29 12:44:36 1996 Ian Lance Taylor <[email protected]>
1674
5a28331f
ILT
1675 * section.c (SEC_LINK_ONCE): Define.
1676 (SEC_LINK_DUPLICATES): Define.
1677 (SEC_LINK_DUPLICATES_DISCARD): Define.
1678 (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
1679 (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
1680 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
1681 * bfd-in2.h: Rebuild.
1682 * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
1683 SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
1684 (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
1685 into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set
1686 SEC_LINK_ONCE, and look through the symbol table for the setting
1687 for SEC_LINK_DUPLICATES.
1688 (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
1689 set for a section, find the section symbol in the symbol table,
1690 and set the aux entry based on SEC_LINK_DUPLICATES.
1691 * coffgen.c (coff_print_symbol): Add a space before "checksum".
1692 * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
1693 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
1694 * coff-i386.c (i386coff_vec): Likewise.
1695 * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
1696
7fc1cd16
ILT
1697 * VERSION: Bump to 2.6.1.
1698 * Makefile.in (stamp-h): Depend upon VERSION.
1699
9399a257
JL
1700Thu Mar 28 23:48:49 1996 Jeffrey A Law ([email protected])
1701
1702 * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
1703 * libbfd.h: Rebuilt.
1704 * linker.c (generic_link_hash_newfunc): No longer static.
1705 * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
1706 to override.
1707 * coff-h8300.c: Add two derived hash tables and their associated
1708 funtions and #defines for use by the h8300 linker.
1709 (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
1710 the function vector as needed. Place the address of the function
1711 vector entry in the location specified by the R_MEM_INDIRECT reloc.
1712 Rewrite the vectors section contents as necessary.
1713 (h8300_bfd_link_add_symbols): New function for the h8300 linker.
1714 (coff_bfd_link_add_symbols): Define to use h8300 specific version.
1715 (coff_bfd_link_hash_table_create): Likewise.
1716
506f2bb4
ILT
1717Thu Mar 28 17:44:08 1996 Ian Lance Taylor <[email protected]>
1718
1719 * libhppa.h: If gcc 2.7 or higher, declare all the functions with
1720 __attribute__ ((__unused__)) so that -Wall doesn't warn about
1721 them.
1722 (hppa_rebuild_insn): Pass pointer to correct type to
1723 low_sign_unext and dis_assemble_21.
1724
05a84ae1
DE
1725Thu Mar 28 11:00:36 1996 Doug Evans <[email protected]>
1726
1727 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
1728 Stick with sparc-*-{sysv4*,solaris2*}.
1729
919cf4b5
ILT
1730Wed Mar 27 10:43:34 1996 Ian Lance Taylor <[email protected]>
1731
8230f31c
ILT
1732 * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
1733 (coff_swap_aux_out): Swap out extra PE x_scn fields.
1734 * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
1735 * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
1736 fields is non-zero, print them.
1737
9addd1d4
ILT
1738 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
1739 ifdef. Remove unused variables.
1740 (ppc_record_data_in_toc_entry): Ifdef out. Removed unused
1741 variables.
1742 (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
1743 (get_symbol_value): Ifdef out.
1744 (pe_ppc_reloc): Ifdef out. Remove unused variables.
1745 (coff_ppc_relocate_section): Remove unused variables. Make
1746 fprintf strings and argument types correspond. Put before_addr in
1747 DEBUG_RELOC ifdef.
ff0e4a93
ILT
1748 (dump_toc): Make fprintf strings and argument types correspond.
1749 (ppc_process_before_allocation): Remove unused variables. Always
1750 return a value.
9addd1d4
ILT
1751 (ppc_reflo_reloc): Ifdef out.
1752 (ppc_addr32nb_reloc): Ifdef out.
1753 (ppc_coff_rtype2howto): Make fprintf strings and argument types
1754 correspond.
1755 (coff_ppc_rtype_to_howto): Likewise.
1756 (ppc_coff_swap_sym_in_hook): Remove unused variables.
1757
1758 * peicode.h (pe_print_idata): Move otherwise unused variables into
1759 the #ifdef where they are used. Always return a value.
ff0e4a93
ILT
1760 (pe_print_edata): Make fprintf strings and argument types
1761 correspond. Always return a value.
9addd1d4
ILT
1762 (pe_print_pdata): Removed unused variable addr_value. Always
1763 return a value.
1764 (pe_print_reloc): Remove unused variable onaline. Make fprintf
ff0e4a93 1765 strings and argument types correspond. Always return a value.
9addd1d4
ILT
1766
1767 * elf32-ppc.c (ppc_elf_fake_sections): Return true.
1768 (ppc_elf_finish_dynamic_symbol): Move definition of unused
1769 variable rela inside #if 0 section where it is used.
1770
c877bdf1
ILT
1771 * ns32k.h: New file.
1772 * cpu-ns32k.h: Include ns32k.h. Rename externally visible
1773 functions to start with _bfd_.
1774 * aout-ns32k.c: Include ns32k.h. Change references to renamed
1775 functions in cpu-ns32k.h.
1776 * Makefile.in: Rebuild dependencies.
1777 (HFILES): Add ns32k.h.
1778
ff0e4a93
ILT
1779 * section.c (struct sec): Add linker_mark field. Change
1780 user_set_vma and reloc_done to be single bit fields.
1781 (STD_SECTION): Update accordingly.
7ec49f91
ILT
1782 * bfd-in2.h: Rebuild.
1783 * aoutx.h (NAME(aout,final_link)): Mark sections included in the
1784 link.
1785 (aout_link_input_bfd): Don't link unmarked sections.
1786 * cofflink.c (_bfd_coff_final_link): Mark sections included in the
1787 link.
1788 (_bfd_coff_link_input_bfd): Don't link unmarked sections.
1789 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
1790 the link.
1791 * elflink.h (elf_bfd_final_link): Mark sections included in the
1792 link.
1793 (elf_link_input_bfd): Don't link unmarked sections.
1794 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
1795 in the link.
1796 (xcoff_link_input_bfd): Don't link unmarked sections.
1797
919cf4b5
ILT
1798 * coffswap.h (coff_swap_scnhdr_out): Include section name in
1799 overflow error messages.
1800
986cf3b8
ILT
1801Tue Mar 26 15:46:18 1996 Ian Lance Taylor <[email protected]>
1802
fd681dcd
ILT
1803 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
1804 is not set, print "BFD: " before the error message.
1805
986cf3b8
ILT
1806 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
1807 Miles Bader <[email protected]>.
1808 * configure: Rebuild.
1809
3998d526
ILT
1810Fri Mar 22 12:17:00 1996 Ian Lance Taylor <[email protected]>
1811
c3dffbd7
ILT
1812 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
1813 symbols.
1814
3998d526
ILT
1815 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
1816 m68k-aout, m68k-coff, and m68k-elf targets.
1817
e4d27380
ILT
1818Fri Mar 22 11:33:44 1996 Martin Anantharaman <[email protected]>
1819
1820 * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
1821 (ieee_generic_stat_arch_elt): Restructured to prevent
1822 ieee_object_p from being called repeatedly.
1823
51776a11
SC
1824Thu Mar 21 11:00:47 1996 steve chamberlain <[email protected]>
1825
1826 * coffcode.h (coff_write_object_contents): Allocate
1827 buffers large enough for any FILEHDR or AOUTHDR.
1828
1829Thu Mar 21 16:28:17 1996 David Mosberger-Tang <[email protected]>
1830
1831 * ecofflink.c (lookup_line): New static function, renamed and
1832 slighly changed from old _bfd_ecoff_locate_line.
1833 (_bfd_ecoff_locate_line): Cache line number information. Use
1834 lookup_line for actual lookup.
1835
9e4ebb1b
MM
1836Thu Mar 21 14:59:11 1996 Michael Meissner <[email protected]>
1837
1838 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
1839 multiple of 20 bytes.
1840
9e7427a4
ILT
1841Thu Mar 21 13:54:40 1996 Ian Lance Taylor <[email protected]>
1842
51776a11
SC
1843 * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
1844 allocate ecoff_find_line, and don't initialize by hand.
1845 * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
1846 mips_elf_find_line, and don't call memset.
1847
9e7427a4
ILT
1848 * coffcode.h (coff_compute_section_file_positions): If not
1849 producing a final executable, don't consider sofar when aligning
1850 the section to the correct size.
1851
1852Wed Mar 20 16:53:12 1996 Ian Lance Taylor <[email protected]>
1853
1854 * coffcode.h (coff_add_missing_symbols): Ifdef out.
1855 (coff_write_object_contents): Don't call coff_add_missing_symbols.
1856 * coffgen.c (coff_section_symbol): Ifdef out.
1857
e7f9ba4f
ILT
1858Mon Mar 18 12:54:41 1996 Ian Lance Taylor <[email protected]>
1859
1860 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
1861 output_bfd is not NULL.
1862
34c4d647
DE
1863Thu Mar 14 17:12:06 1996 Doug Evans <[email protected]>
1864
1865 * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
1866 of bfd_alloc (fixes fix_line not being initialized).
1867 Delete zeroing of fix_{value,tag,end,scnlen} fields.
1868
4e054247
JL
1869Thu Mar 14 16:06:06 1996 Jeffrey A Law ([email protected])
1870
57289b5c
JL
1871 * coffcode.h: Allow specific backends to override the
1872 bfd_link_add_symbols routine.
1873
4e054247
JL
1874 * coff-h8300.c: Include genlink.h.
1875 (howto_table): Add R_MEM_INDIRECT.
1876 (rtype2howto): Support R_MEM_INDIRECT.
1877 (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
1878 for now.
1879
a10d3dec
ILT
1880Tue Mar 12 12:41:17 1996 David Mosberger-Tang <[email protected]>
1881
1882 * coff-alpha.c (alpha_relocate_section): Use
1883 info->callbacks_warning, rather than _bfd_error_handler, for
1884 "multiple gp" warning.
1885
ea2488ad
ILT
1886Tue Mar 12 12:10:55 1996 Ian Lance Taylor <[email protected]>
1887
8881b321
ILT
1888 * linker.c (bfd_wrapped_link_hash_lookup): New function.
1889 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
1890 table string. Use bfd_wrapped_link_hash_lookup.
1891 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
1892 table string.
1893 * aoutx.h (aout_link_write_symbols): Use the name from the hash
1894 table, if any, when writing out symbols.
1895 (aout_link_input_section_std): Use the name from the hash table,
1896 if any, when reporting undefined symbols.
1897 (aout_link_input_section_ext): Likewise.
1898 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
1899 * bout.c (get_value): Likewise.
1900 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
1901 * ecoff.c (ecoff_reloc_link_order): Likewise.
1902 * elflink.h (elf_link_add_object_symbols): Likewise.
1903 (elf_reloc_link_order): Likewise.
1904 * linker.c (_bfd_generic_link_output_symbols): Likewise.
1905 (_bfd_generic_reloc_link_order): Likewise.
1906 (default_indirect_link_order): Likewise.
1907 * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
1908 * sunos.c (sunos_add_one_symbol): Likewise.
1909 * xcofflink.c (xcoff_link_add_symbols): Likewise.
1910 (bfd_xcoff_link_count_reloc): Likewise.
1911 (xcoff_reloc_link_order): Likewise.
1912
1913 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
1914 into -1 for intern->rss.
1915
ea2488ad
ILT
1916 * configure: Rebuild with autoconf 2.8.
1917
c189fdfb
ILT
1918Mon Mar 11 12:28:31 1996 Ian Lance Taylor <[email protected]>
1919
1920 * stab-syms.c (__define_stab_duplicate): Define.
1921 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
1922 switch.
1923 * bfd-in.h (bfd_get_stab_name): Declare.
1924 * bfd-in2.h: Rebuild.
1925 * Makefile.in: Rebuild dependencies.
1926 (BFD_LIBS): Add stab-syms.o.
1927 (BFD_LIBS_CFILES): Add stab-syms.c.
1928 (BFD32_BACKENDS): Remove stab-syms.o.
1929 (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
1930 * configure.in: Don't list stab-syms.o in bfd_backends.
1931 * configure: Rebuild.
1932 * libaout.h (aout_stab_name): Don't declare.
1933 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
1934 not aout_stab_name.
1935
1936Fri Mar 8 11:26:20 1996 Ian Lance Taylor <[email protected]>
1937
1938 * elf.c (assign_file_positions_for_segments): Adjust file offset
1939 for section alignment even if SEC_LOAD is not set.
1940
c5bde1ef
ILT
1941Tue Mar 5 12:02:23 1996 Ian Lance Taylor <[email protected]>
1942
8f218e05
ILT
1943 * configure.in: Don't set SHLIB or SHLINK to an empty string,
1944 since they appear as targets in Makefile.in.
1945 * configure: Rebuild.
1946
c5bde1ef
ILT
1947 * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
1948 don't fiddle with a symbol which is not defined anywhere.
1949
cb84f028
ILT
1950Mon Mar 4 12:49:16 1996 Ian Lance Taylor <[email protected]>
1951
4e59f523
ILT
1952 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
1953 though they are defined in a shared library.
1954 (xcoff_build_ldsyms): Likewise.
1955
ea2504d5
ILT
1956 * coffgen.c (coff_find_nearest_line): Don't look at the line
1957 numbers for the section if section->lineno is NULL.
1958
cb84f028
ILT
1959 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
1960 message rather than calling BFD_ASSERT.
1961 * elfcode.h (write_relocs): Check return value of
1962 _bfd_elf_symbol_from_bfd_symbol.
1963
6e036cf7
MM
1964Fri Mar 1 09:42:59 1996 Michael Meissner <[email protected]>
1965
1966 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
1967 for .sbss section.
1968
d08435de
JL
1969Wed Feb 28 11:25:47 1996 Jeffrey A Law ([email protected])
1970
1971 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
1972 and R_HPPA_NLRSEL.
1973 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
1974 hppa_reloc_field_selector_type_alt.
1975 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
1976 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
1977 selectors.
1978 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
1979
09609415
ILT
1980Wed Feb 28 11:00:24 1996 Ian Lance Taylor <[email protected]>
1981
1982 * elf.c (assign_file_positions_for_segments): Adjust the segment
1983 memory size for the alignment of a SEC_ALLOC section, not just a
1984 SEC_LOAD section.
1985
55626bf0
ILT
1986Tue Feb 27 14:17:31 1996 Andreas Schwab <[email protected]>
1987
1988 * m68klinux.c: New file.
1989 * hosts/m68klinux.h: New file.
1990 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
1991 * configure.in (m68*-*-linux*): New native host.
1992 (m68klinux_vec): New vector.
1993 * configure: Rebuild.
1994 * targets.c (m68klinux_vec): Declare.
1995 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
1996 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
1997 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
1998 declaration from bfd_linux_size_dynamic_sections.
1999 (bfd_m68klinux_size_dynamic_sections): Declare.
2000 * bfd-in2.h: Rebuild.
2001 * Makefile.in: Rebuild dependencies.
2002 (BFD32_BACKENDS): Add m68klinux.o.
2003 (BFD32_BACKENDS_CFILES): Add m68klinux.c.
2004
6c7b3090
JL
2005Tue Feb 27 11:31:34 1996 Jeffrey A Law ([email protected])
2006
2007 * libhppa.h (pa_arch): Add pa20.
2008 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
2009 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
2010 (hppa_field_adjust): Handle e_nsel.
2011 * som.c: Provide default definitions for many new relocs found only
2012 in hpux10 include files.
2013 (som_fixup_formats): Add several new relocs from hpux10.
2014 (som_hppa_howto_table): Add hpux10 relocs.
2015 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
2016
14fd4616
SS
2017Mon Feb 26 12:52:48 1996 Stan Shebs <[email protected]>
2018
2019 * mpw-make.sed: Edit out recent shared library support, and
2020 rules to rebuild .h files using doc/chew.
2021
3d9f042c
ILT
2022Mon Feb 26 14:48:39 1996 David Mosberger-Tang <[email protected]>
2023
2024 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
2025 size even of sections with no contents.
2026
bdec6228
ILT
2027Mon Feb 26 14:01:13 1996 Ian Lance Taylor <[email protected]>
2028
88358469
ILT
2029 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
2030 starting with '$' the way we skip names starting with '.'. When
2031 updating x_endndx, don't be fooled by an index which has been
2032 merged.
2033
bdec6228
ILT
2034 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
2035 struct/union/enum type with no elements.
2036
053ae1d7
ILT
2037Sat Feb 24 11:38:58 1996 Ian Lance Taylor <[email protected]>
2038
15f4406c
ILT
2039 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
2040
c8435133
ILT
2041 * archive.c (bfd_generic_archive_p): If the first file in the
2042 archive can not be recognized as an object, don't assume that this
2043 is the wrong format.
2044
053ae1d7
ILT
2045 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
2046 format is not bfd_object.
2047 (bfd_elf_get_dt_soname): Likewise.
2048
ea74d979
ILT
2049Wed Feb 21 13:58:04 1996 Ian Lance Taylor <[email protected]>
2050
2051 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
2052 reloc.
2053
871a3f3b
C
2054Tue Feb 20 16:22:44 1996 J.T. Conklin <[email protected]>
2055
2056 * bfd.c (tdata): Add netbsd_core_data.
2057 * bfd-in2.h: Regenerated.
2058
2059Tue Feb 20 16:50:02 1996 Ian Lance Taylor <[email protected]>
2060
fe6fc35f
ILT
2061 * sunos.c (SUNOS_CONSTRUCTOR): Define.
2062 (sunos_add_one_symbol): Don't let a symbol from a dynamic object
2063 override a constructor symbol. Set SUNOS_CONSTRUCTOR when
2064 appropriate.
2065
871a3f3b
C
2066 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
2067 to get the symbol index, matching 14 Jul 95 change.
2068
d3785301
FF
2069Tue Feb 20 08:26:27 1996 Fred Fish <[email protected]>
2070
2071 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
2072 Remove duplicate definition of gp.
2073
60a49e7f
ILT
2074Mon Feb 19 12:37:41 1996 Ian Lance Taylor <[email protected]>
2075
81bdcecf
ILT
2076 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
2077 assume that we can set the GP value and then get the same value,
2078 since it won't be true if the output file is neither ELF nor
2079 ECOFF.
2080 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
2081 _bfd_get_gp_value here.
2082 (mips_gprel_reloc): Don't assume we can set and get the GP value.
2083 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
2084 mips_elf_final_gp.
2085 (mips_elf_lo16_reloc): Likewise.
2086 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
2087 Don't require that the BFD be ELF.
2088 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
2089 (mips_elf_gprel32_reloc): Likewise.
2090 (mips_elf_relocate_section): Don't assume we can set and get the
2091 GP value.
2092 (mips_elf_finish_dynamic_symbol): Don't bother to use
2093 _bfd_get_gp_value here.
2094
2095 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
2096 Don't change epdr between malloc and free. Be careful not to free
2097 NULL pointers. Zero out the first RPDR.
2098
7b61165a
ILT
2099 * configure.host: On Linux, only pass -rpath option if $(libdir)
2100 is neither /lib nor /usr/lib. From Alan Modra
2101 <[email protected]>.
2102
60a49e7f
ILT
2103 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
2104 dt_name.
2105 (elf_dt_name): Rename from elf_dt_needed_name.
2106 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
2107 elf_dt_needed_name.
2108 (bfd_elf_get_dt_soname): New function.
2109 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
2110 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
2111 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
2112 * bfd-in2.h: Rebuild.
2113
b268e261
DE
2114Mon Feb 19 02:50:23 1996 Doug Evans <[email protected]>
2115
2116 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
2117 _bfd_sparc_elf_reloc_type_lookup.
2118 (bfd_elf32_bfd_reloc_type_lookup): Update.
2119 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
2120 (sparc64_elf_howto_table): Define.
2121 (sparc_reloc_map): Define.
2122 (sparc64_elf_reloc_type_lookup): New function.
2123 (sparc_elf_wdisp16_reloc): New function.
2124 (elf_info_to_howto): Use sparc64_elf_howto_table.
2125 (sparc64_elf_relocate_section): Likewise.
2126 (bfd_elf64_bfd_reloc_type_lookup): Update.
2127
9e2ef098
ILT
2128Sun Feb 18 15:02:25 1996 Ian Lance Taylor <[email protected]>
2129
2130 * configure.host: Check for 'do not mix' from native linker before
2131 trying to use -rpath.
2132
4c70373f
ILT
2133Fri Feb 16 12:46:18 1996 Ian Lance Taylor <[email protected]>
2134
cba3f8a9
ILT
2135 * bfd.c (_bfd_get_gp_value): New function.
2136 (_bfd_set_gp_value): New function.
2137 * libbfd-in.h (_bfd_get_gp_value): Declare.
2138 (_bfd_set_gp_value): Declare.
2139 * libbfd.h: Rebuild.
2140 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
2141 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
2142 directly to the fields in the tdata information.
2143 (alpha_relocate_section): Likewise.
2144 * coff-mips.c (mips_adjust_reloc_in): Likewise.
2145 (mips_gprel_reloc): Likewise.
2146 (mips_relocate_section): Likewise.
2147 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
2148 (mips_elf_lo16_reloc): Likewise.
2149 (mips_elf_final_gp): Likewise.
2150 (mips_elf_gprel16_reloc): Likewise.
2151 (mips_elf_gprel32_reloc): Likewise.
2152 (mips_elf_relocate_section): Likewise.
2153 (mips_elf_finish_dynamic_symbol): Likewise.
2154
4c70373f
ILT
2155 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
2156
a0a2dd54
ILT
2157Thu Feb 15 11:29:13 1996 Ian Lance Taylor <[email protected]>
2158
f54c7482 2159 * configure.in: Call AC_PROG_CC before configure.host.
65eed095
ILT
2160 * configure: Rebuild.
2161 * configure.host: Don't set information which autoconf should
2162 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
65eed095 2163
14293419
ILT
2164 * configure.host: Remove go32 and win32 host information, since it
2165 should no longer be needed.
2166
edf3fe48
ILT
2167 * elf.c (map_sections_to_segments): If we have a .dynamic section,
2168 then start a new segment rather than put a writable section in a
2169 readonly segment.
2170
b5e4f369
ILT
2171 * configure.host: Set RPATH_ENVVAR.
2172
f2e33e27
ILT
2173 * Makefile.in: Rebuild dependencies.
2174
a0a2dd54
ILT
2175 * elflink.c (_bfd_elf_create_linker_section): Remove unused
2176 zero_section variable.
2177
52c6bc4d
ILT
2178Thu Feb 15 10:39:17 1996 H.J. Lu <[email protected]>
2179
2180 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
2181 ($(srcdir)/libbfd.h): Rename from libbfd.h.
2182 ($(srcdir)/libcoff.h): Rename from libcoff.h.
2183
c9e5279f
ILT
2184Wed Feb 14 16:29:07 1996 Martin Anantharaman <[email protected]>
2185
cb50baea
ILT
2186 * ieee.c (ieee_write_expression): Only use an R variable for a
2187 local symbol. Don't output a zero offset. Handle a zero address.
2188 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
2189 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
2190 PCREL_OFFSET.
2191 (parse_expression): Don't try to handle multiple occurrences of a
2192 P variable. Handle I variables differently from X variables. Fix
2193 the order of minus expressions.
2194 (ieee_slurp_external_symbols): Generate an I variable for an NN
2195 record. Fix handling of ATI and ATX records.
2196 (ieee_slurp_sections): Only set minimal section attributes.
2197 Adjust them later, based on the section contents.
2198 (ieee_object_p): Read in the file until just after the ME record.
2199 Call ieee_slurp_section_data to set the section flags.
2200 (do_one): Add iterations parameter. Only repeat the first load
2201 item. Set the section and file reloc flags.
2202 (ieee_slurp_section_data): Set section flags. Pass iterations to
2203 do_one.
2204 (ieee_canonicalize_reloc): Handle I variables.
2205 (do_with_relocs): Only emit relocation size when necessary.
2206 Increase MAXRUN to 127. Change ov to be assigned, and take
2207 src_mask and pcrel_offset into account.
2208 (ieee_write_data_part): Skip sections that are not loaded.
2209 (ieee_write_external_part): Don't output optional last entry of WX
2210 records.
2211 (ieee_write_me_part): Make setting of me_record neater.
2212 (ieee_generic_stat_arch_elt): Get the size of an archive element.
2213
c9e5279f
ILT
2214 * syms.c (stt): Add entries for zerovars, vars, and code.
2215
2216 * elfcode.h (validate_reloc): New static function.
2217 (write_relocs): Call validate_reloc for non ELF relocs.
2218
2219 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
2220 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
2221 (TARGET_LITTLE_SYM): Likewise.
2222
2223 * config.bfd (m68*-*-psos*): New target.
2224
d9d65be6
ILT
2225Tue Feb 13 15:56:22 1996 Bryan Ford <[email protected]>
2226
2227 * i386msdos.c: Remove some #if 0 code.
2228 (msdos_write_object_contents): Don't include empty sections in the
2229 size computation, regardless of their address.
2230
2231Tue Feb 13 15:36:37 1996 Michael Meissner <[email protected]>
2232
2233 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
2234 is NULL, ie, the -r switch is used.
2235
db5970c7
ILT
2236Tue Feb 13 14:35:15 1996 Ian Lance Taylor <[email protected]>
2237
e9f03cd4
ILT
2238 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
2239 (BFD_RELOC_MIPS_GOT_LO16): Define.
b7384d22 2240 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
e9f03cd4
ILT
2241 * bfd-in2.h, libbfd.h: Rebuild.
2242 * elf32-mips.c (mips_reloc_map): Map new relocs.
2243
fe7c066a
ILT
2244 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
2245
1ab628e4
ILT
2246 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
2247 $(SHLINK).
2248
db5970c7
ILT
2249 * ieee.c (get_symbol): Set the section to bfd_abs_section.
2250 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
2251 simple number for the section address, rather than an expression.
2252 Limit the number of bytes between relocs to MAXRUN.
2253 (ieee_write_me_part): Set me_record to the file offset after the
2254 start address.
2255 (ieee_write_processor): New static function.
2256 (ieee_write_object_contents): Use ieee_write_processor.
2257
318b7c18
ILT
2258Fri Feb 9 10:53:00 1996 Ian Lance Taylor <[email protected]>
2259
db5970c7
ILT
2260 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
2261
2262 * coff-aux.c: Change include of aux.h to aux-coff.h.
318b7c18 2263
56b64690
ILT
2264Thu Feb 8 14:01:03 1996 Andreas Schwab <[email protected]>
2265
2266 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
2267 relocation put the addend both in the reloc entry and the data.
2268 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
2269 GOT offset value.
2270
2271 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
2272 a R_68K_PCxx reloc against a defined global symbol directly.
2273 (elf_m68k_check_relocs): Don't count such a reloc.
2274
2275 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
2276 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
2277 symbol for now, otherwise always record the symbol as dynamic.
2278 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
2279 is not referenced by a dynamic object, and we are not making a
2280 shared object, then don't make a PLT entry. If we do make a PLT
2281 entry, make sure the symbol has been recorded as dynamic.
2282
5d649ca8
ILT
2283Wed Feb 7 13:56:06 1996 Ian Lance Taylor <[email protected]>
2284
2285 * configure.host: When making a shared library, set HLDFLAGS to
2286 pass an appropriate -rpath option. Use the make variable SONAME
2287 as the shared library soname, rather than computing it here. On
2288 SunOS, build stamp-tshlink in place of $(SHLINK).
2289 * Makefile.in (SONAME): New variable.
2290 ($(SHLINK)): Make a link to the transformed name, as well.
2291 (stamp-tshlink): New target.
2292 (install): Skip stamp-tshlink during install.
2293
8cc98cd5
MM
2294Wed Feb 7 13:37:39 1996 Michael Meissner <[email protected]>
2295
56b64690
ILT
2296 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
2297 linker sections have been set up yet.
2298
8cc98cd5
MM
2299 * elf.c (make_mapping): Add an additional argument to suppress
2300 making the first section include the program headers.
2301 (map_sections_to_segments): If the user used -Ttext such that the
2302 program headers are on a different page, do not set the flags
2303 saying that this section includes the program headers.
2304
fe16107d
C
2305Tue Feb 6 14:04:49 1996 J.T. Conklin <[email protected]>
2306
2307 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
2308 don't define TRAD_HEADER.
2309 * configure: Rebuild.
2310
2311 * netbsd-core.c: New file, support for NetBSD core files.
2312 * hosts/*nbsd.h: Removed.
2313
f1783016
DE
2314Tue Feb 6 11:47:49 1996 Doug Evans <[email protected]>
2315
2316 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
2317 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
2318 * libbfd.h, bfd-in2.h: Regenerated.
2319 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
2320 bfd_elf32_bfd_reloc_type_lookup.
2321 (reloc_type{,_names}): Deleted.
2322 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
2323 Add sparc64 relocs.
2324 (sparc_reloc_map): Add sparc64 relocs.
2325 (sparc_elf_notsupported_reloc): New static function.
2326 (sparc_elf_wdisp16_reloc): New static function.
2327 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
2328 (elf32_sparc_relocate_section): Likewise.
2329 (bfd_elf32_bfd_reloc_type_lookup): Define.
2330 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
2331 (reloc_type{,_names}): Deleted.
2332 (elf_sparc_howto_table): Deleted.
2333 (sparc_reloc_map): Deleted.
2334 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
2335 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
2336
48fd00b6
ILT
2337Tue Feb 6 12:12:22 1996 Ian Lance Taylor <[email protected]>
2338
2300e217
ILT
2339 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
2340 *-*-hpux* host.
2341
48fd00b6
ILT
2342 * Makefile.in (program_transform_name): New variable.
2343 (install): Transform library name before installing it.
2344
8adca582
ILT
2345Mon Feb 5 10:38:27 1996 Ian Lance Taylor <[email protected]>
2346
cbe75cb6
ILT
2347 * archures.c (bfd_mach_i960_hx): Define.
2348 * bfd-in2.h: Rebuild.
2349 * cpu-i960.c (scan_960_mach): Accept machine "hx".
2350 (MATRIX): Expand entries for HX.
2351 (arch_info_struct): Add i960:hx entry.
2352 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
2353 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
2354 (coff_set_flags): Handle bfd_mach_i960_hx.
2355
44f795f7
ILT
2356 Support for building as a shared library, based on patches from
2357 Alan Modra <[email protected]>:
2358 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
2359 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
2360 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
2361 * configure: Rebuild.
2362 * configure.host: If --enable-shared, adjust shared library stuff
2363 based on the host. If the host is SunOS, and the linker supports
2364 -rpath, set HLDFLAGS to use it.
2365 * Makefile.in (ALLLIBS): New variable.
2366 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
2367 (COMMON_SHLIB, SHLINK): New variables.
2368 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
2369 (STAGESTUFF): Remove variable.
2370 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
2371 $(TARGETLIB).
2372 (stamp-ofiles): New target, like old ofiles target, but build
2373 using a temporary file and move-if-change, and touch stamp-ofiles
2374 when done.
2375 (ofiles): Just depend upon stamp-ofiles.
2376 (stamp-piclist, piclist): New targets.
2377 ($(SHLIB), $(SHLINK)): New targets.
2378 (targets.o, archures.o): Build twice if PICFLAG is set.
2379 (do_mostlyclean): Remove pic/*.o.
2380 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
2381 stamp-piclist.
2382 (do_distclean): Remove pic and stamp-picdir.
2383 (install): Install shared libraries.
2384 ($(OFILES)): Depend upon stamp-picdir.
2385 (stamp-picdir): New target.
2386
cb62d2bc
ILT
2387 * libcoff-in.h: Add comment reminding people that libcoff.h is a
2388 generated file.
2389 * libcoff.h: Rebuild.
2390
8adca582
ILT
2391 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
2392 flavour of a section with no owner.
2393
2394 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
2395 ELF_LINK_NON_ELF flag.
2396 (mips_elf_create_got_section): Likewise.
2397
2398 * elf.c: Revert last change, since it breaks dynamic linking.
2399 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
2400 field.
2401 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
2402 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
2403 (elfNN_bed): Don't initialize want_hdr_in_seg field.
2404
2405Sun Feb 4 20:45:13 1996 Michael Meissner <[email protected]>
2406
2407 * elf.c (assign_file_positions_for_segments): If the backend does
2408 not want the elf header or the program headers in the address
2409 space, do not include them in the calculations.
2410
2411 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
2412 function to determine if we need additional program headers.
2413 (ppc_elf_modify_segment_map): Define as a NOP function for now.
2414 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
2415
0f09ddd4
ILT
2416Sat Feb 3 23:00:03 1996 Ian Lance Taylor <[email protected]>
2417
2418 * coffcode.h: Move today's libcoff.h change into coffcode.h.
2419
b48f10ba
FF
2420Sat Feb 3 15:43:44 1996 Fred Fish <[email protected]>
2421
0f09ddd4
ILT
2422 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
2423 back into one line. Some compilers (sunos 4.1.3 for example)
2424 won't accept args split across more than one line.
b48f10ba 2425
50761d3b
SC
2426Fri Feb 2 11:42:15 1996 Steve Chamberlain <[email protected]>
2427
2428 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
2429 * configure: Regenerate.
2430
9dce8260
JL
2431Fri Feb 2 12:12:16 1996 Jeffrey A Law ([email protected])
2432
2433 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
2434 try to do arithmetic on a void *, cast it to a unsigned char * first.
2435
6c55897c
ILT
2436Thu Feb 1 16:04:06 1996 Ian Lance Taylor <[email protected]>
2437
869b7d80
ILT
2438 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
2439 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
2440 ELF_LINK_NON_ELF.
2441 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
2442 flag for a newly defined symbol.
2443 (NAME(bfd_elf,record_link_assignment)): Likewise.
2444 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
2445 set the DEF or REF_REGULAR flags correctly.
2446
6f6956c6
ILT
2447 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
2448 (libbfd.h, libcoff.h): Corresponding change.
2449
6c55897c
ILT
2450 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
2451 a PLT32 reloc as dynamic.
2452 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
2453 is not referenced by a dynamic object, and we are not making a
2454 shared object, then don't make a PLT entry. If we do make a PLT
2455 entry, make sure the symbol has been recorded as dynamic.
2456
b06136f2
SC
2457Wed Jan 31 17:23:32 1996 Steve Chamberlain <[email protected]>
2458
2459 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
2460 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
2461 (powerpcle-*-cygwin32): New.
2462 * peicode.h (add_data_entry): Get address from vma.
2463
5c867ecd
MM
2464Wed Jan 31 16:23:57 1996 Michael Meissner <[email protected]>
2465
2466 * elflink.c (_bfd_elf_create_linker_section): If the symbol
2467 attached to the section has already been created as an undefined
2468 symbol, treat it as if it hasn't been created yet.
2469
28c16b55
ILT
2470Wed Jan 31 16:16:53 1996 Ian Lance Taylor <[email protected]>
2471
2472 * elflink.h (elf_bfd_final_link): Don't output initial dummy
2473 symbol or section symbols if stripping all symbols and this is not
2474 a relocateable link. Don't output the symbol string table if
2475 there are no symbols.
2476 (elf_link_flush_output_syms): Don't do anything if there are no
2477 symbols to flush.
2478
d19df9b5
ILT
2479Wed Jan 31 12:55:49 1996 Richard Henderson <[email protected]>
2480
2481 * coff-aux.c: New file.
2482 * hosts/m68kaux.h: New file.
2483 * config.bfd (m68*-apple-aux*): New target.
2484 * configure.in (m68*-apple-aux*): New native host.
2485 (m68kaux_coff_vec): New vector.
2486 * configure: Rebuild.
2487 * targets.c (m68kaux_coff_vec): Declare.
2488 * coffcode.h (bfd_coff_backend_data): Add field
2489 _bfd_coff_link_add_one_symbol.
2490 (bfd_coff_link_add_one_symbol): Define.
2491 (compare_arelent_ptr): New static function if TARG_AUX.
2492 (coff_write_relocs): If TARG_AUX, sort the relocs.
2493 (coff_write_object_contents): Set A/UX aouthdr magic number.
2494 (coff_link_add_one_symbol): Define if not defined.
2495 (bfd_coff_std_swap_table): Initialize new field.
2496 * libcoff.h: Rebuild.
2497 * cofflink.c (coff_link_add_symbols): Call
2498 bfd_coff_link_add_one_symbol rather than
2499 _bfd_generic_link_add_one_symbol.
2500 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
2501 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
2502 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2503 * Makefile.in: Rebuild dependencies.
2504 (BFD32_BACKENDS): Add coff-aux.o.
2505 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
2506
a796aafd
ILT
2507Wed Jan 31 11:37:46 1996 Andreas Schwab <[email protected]>
2508
2509 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
2510 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
2511
a8763553
ILT
2512Tue Jan 30 12:09:04 1996 Ian Lance Taylor <[email protected]>
2513
66761e59
ILT
2514 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
2515 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
2516 (maintainer-clean): Warn about deleting special files.
2517 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
2518
cf5138e3
ILT
2519 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
2520 warning symbols correctly.
2521 * elf32-i386.c (elf_i386_relocate_section): Likewise.
2522 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2523 * elf32-mips.c (mips_elf_relocate_section): Likewise.
2524 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2525 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2526 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2527
a8763553
ILT
2528 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
2529 warnings.
2530
bdd2e7f1
KK
2531Mon Jan 29 14:27:24 1996 Kim Knuttila <[email protected]>
2532
2533 * libcoff-in.h: aligned newly exported names with bfd naming
2534 conventions. Removed an erroneous define of POWERPC_LE_PE.
2535 * libcoff.h: Rebuild.
2536 * cofflink.c, coff-ppc.c: the above function name changes
2537
d2bb6c79
ILT
2538Mon Jan 29 13:06:28 1996 Ian Lance Taylor <[email protected]>
2539
eb5bc1f3
ILT
2540 From Basim Kadhim <[email protected]>:
2541 * ecoff.c (struct extsym_info): Define.
2542 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
2543 to ecoff_link_write_external.
2544 (ecoff_link_write_external): Accept a struct extsym_info pointer.
2545 Strip symbols when appropriate.
2546
052b35d2
ILT
2547 Based on patches from Ronald F. Guilmette <[email protected]>:
2548 * syms.c (BSF_OBJECT): Define.
2549 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
2550 * bfd-in2.h: Rebuild.
2551 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
2552 STT_OBJECT symbol.
2553 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
2554 is set.
2555
53787b23
ILT
2556 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
2557 copying relocs into a shared object, treat a defined global symbol
2558 as a local symbol.
2559 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2560 * elf32-mips.c (mips_elf_relocate_section): Likewise.
2561 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2562
d2bb6c79
ILT
2563 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
2564 real defined symbol, not to a weak defined symbol.
2565
13d1a4dd
KK
2566Mon Jan 29 11:34:36 1996 Kim Knuttila <[email protected]>
2567
2568 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
2569 and made a few static functions externs.
2570
2571 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
2572 POWERPC_LE_PE hack in cofflink.
2573
2574 * libcoff-in.h: promoted the following from cofflink.c to allow
2575 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
2576 coff_debug_merge_element, struct coff_debug_merge_type,
2577 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
2578 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
2579 coff_debug_merge_hash_lookup, coff_link_section_info,
2580 coff_final_link_info, coff_debug_merge_hash_newfunc,
2581 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
2582
2583 * libcoff.h: re-gen'd
2584
86aac8ea
ILT
2585Fri Jan 26 18:33:35 1996 Ian Lance Taylor <[email protected]>
2586
2587 * syms.c: Include "bfdlink.h".
2588 (struct stab_find_info): Define.
2589 (_bfd_stab_section_find_nearest_line): New function.
2590 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
2591 * libbfd.h: Rebuild.
2592 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
2593 * elf.c (_bfd_elf_find_nearest_line): Try calling
2594 _bfd_stab_section_find_nearest_line before searching the ELF
2595 symbol table. Find the closest STT_FUNC symbol, not the last one.
2596 * libcoff-in.h (coff_data_type): Add line_info field.
bdd2e7f1 2597 * libcoff.h: Rebuild.
86aac8ea
ILT
2598 * coffgen.c (coff_find_nearest_line): Try calling
2599 _bfd_stab_section_find_nearest_line before searching the COFF
2600 symbol table.
2601 * Makefile.in: Rebuild dependencies.
2602
2603Fri Jan 26 16:11:19 1996 Michael Meissner <[email protected]>
2604
2605 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
2606 4 bytes, so we get the correct value when updating the register
2607 field in little endian mode.
2608
43d36aad
ILT
2609Thu Jan 25 12:14:16 1996 Ian Lance Taylor <[email protected]>
2610
f0a97077
ILT
2611 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
2612 entry_section fields. Add sntoc and snentry fields.
2613 * libcoff.h: Rebuild.
2614 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
2615 not toc_section and entry_section (the COFF file does not have any
2616 sections at this point).
2617 (coff_write_object_contents): Set o_snentry and o_sntoc from
2618 snentry and sntoc rather than entry_section and toc_section.
2619 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
2620 snentry, not toc_section and entry_section.
2621 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
2622 entry_section from hentry.
2623 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
ea2504d5 2624 set snenty.
f0a97077
ILT
2625 (xcoff_link_input_bfd): Set sntoc, not toc_section.
2626 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
2627 than using toc_section directly.
2628
9b4598d0
ILT
2629 * archures.c: Add missing `.' in enum bfd_architecture.
2630 * bfd-in2.h: Rebuild.
2631
43d36aad
ILT
2632 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
2633 Robert Lipe <[email protected]>.
2634
eb82bc60
MM
2635Thu Jan 25 12:08:51 1996 Michael Meissner <[email protected]>
2636
2637 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
2638 to sections we allocate. Use bfd_zalloc to allocate initialial
2639 sections, not bfd_alloc.
2640 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
2641 SDA{,2}I16 relocations.
2642 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
2643 whether to put something in .sbss or not.
2644 (ppc_elf_relocate_section): Add support for more relocations. Add
c1e65e24
MM
2645 in sec->output_offset where appropriate. Make error messages
2646 include the symbol name.
eb82bc60
MM
2647
2648 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
2649 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
2650 doesn't get redefined messages if -shared.
2651
2652 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
2653 section if the rel_section field has been set up.
2654
9d621c7d
MM
2655Wed Jan 24 20:40:26 1996 Michael Meissner <[email protected]>
2656
2657 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
2658 relocations.
2659
75c9ddc9
DE
2660Wed Jan 24 10:38:34 1996 Doug Evans <[email protected]>
2661
2662 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
2663 of flags, only flags used are controlled by mach number. Bump up
2664 output file mach number to highest of input file mach numbers.
2665 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
2666 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
2667
72c513bc
DE
2668 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
2669 bfd_elf64_sparc_vec support.
2670
3cbe19d2
MM
2671Tue Jan 23 14:33:05 1996 Michael Meissner <[email protected]>
2672
2673 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
2674 the embedded bit is set on some objects and not on others. Just
2675 or it together.
d8fd85ad
MM
2676 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
2677 relocations.
3cbe19d2 2678
5eb83ede
ILT
2679Tue Jan 23 14:22:45 1996 Ian Lance Taylor <[email protected]>
2680
4a3d3b42
ILT
2681 * coffcode.h (coff_new_section_hook): Don't try to align the
2682 .stabstr section.
2683
5eb83ede
ILT
2684 * coffcode.h (coff_set_section_contents): Fix the handling of the
2685 .lib section to work even if the entire section contents are
2686 written at once. From Gvran Uddeborg <[email protected]> and
2687 Robert Lipe <[email protected]>.
2688
05f927dd
MM
2689Mon Jan 22 18:45:51 1996 Michael Meissner <[email protected]>
2690
2691 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
2692 memory here for contents.
2693
2694 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
2695 _SDA2_BASE_ by 32768.
2696 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
2697 started using. Allocate contents for .sdata and .sdata2 sections
2698 also.
2699 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
2700 rather than _name.
2701 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
2702 size _SDA{,2}_BASE_.
2703 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
2704 done.
2705
5bc513b4
DE
2706Mon Jan 22 08:52:04 1996 Doug Evans <[email protected]>
2707
5a5bac64
DE
2708 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
2709
5bc513b4 2710 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
5bc513b4 2711 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
5bc513b4 2712 (bfd_mach_sparc_v9a): Define.
049f3d4c 2713 (bfd_mach_sparc_v9_p): Define.
5bc513b4
DE
2714 * bfd-in2.h: Regenerated.
2715 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
2716 bfd_mach_sparc_v9.
d3366d23 2717 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
5bc513b4
DE
2718 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
2719 to bfd_elf32_sparc_vec.
2720 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
5bc513b4 2721 Add v8plus{,a} support.
5bc513b4 2722 Add v9a support.
768b8ade 2723 (sparc_compatible): New function.
5bc513b4 2724 * elf32-sparc.h: #include "elf/sparc.h".
75c9ddc9 2725 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
5bc513b4 2726 elf32_sparc_final_write_processing): New functions.
75c9ddc9 2727 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
5bc513b4 2728 elf_backend_final_write_processing): Define.
5bc513b4 2729
3b3753b8
MM
2730Mon Jan 22 11:21:51 1996 Michael Meissner <[email protected]>
2731
2732 * elf-bfd.h (struct elf_link_hash_entry): Add
2733 linker_section_pointer field.
2734 (enum elf_linker_section_enum): Enumeration for new way of
2735 creating linker dynamic sections and symbols.
2736 (elf_linker_section{,_pointers}): New structures for creating
2737 dynamic sections and symbols.
2738 (elf_obj_tdata): Add linker_section_pointers and linker_section
2739 fields.
2740 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
2741 (_bfd_elf_create_linker_section): New declarations.
2742 (_bfd_elf_find_pointer_linker_section): Ditto.
2743 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
2744 (_bfd_elf_make_linker_section_rela): Ditto.
2745
2746 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
2747
2748 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
2749 (ppc_elf_create_linker_section): New function to create the
2750 sections .got, .sdata, and .sdata2.
2751 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
2752 needed.
2753 (ppc_elf_check_relocs): Support more of the eabi relocations.
2754 (ppc_elf_relocate_section): Ditto.
2755 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
2756 if the .sdata{,2} + .sbss{,2} section size is > 32k.
2757
2758 * elflink.h (elf_create_pointer_linker_section): New function to
2759 create initialized pointers in dynamic linker sections.
2760 (elf_finish_pointer_linker_section): Actually intialize the
2761 pointers created above.
2762
2763 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
2764 macros to provide both 32 and 64 bit versions of
2765 elf_create_pointer_linker_section.
2766 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
2767 provide both 32 and 64 bit versions of
2768 elf_finish_pointer_linker_section.
2769
2770 * elflink.c (_bfd_elf_create_linker_section): New function to
2771 create a linker section.
2772 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
2773 given address in the linker pointer offsets created for a given
2774 symbol.
2775 (_bfd_elf_make_linker_section_rela): Make a RELA section
2776 corresponding to the generated linker section.
2777
6b3eb07e
DE
2778Sat Jan 20 08:36:10 1996 Doug Evans <[email protected]>
2779
2780 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
2781
e7894f6b
KK
2782Thu Jan 18 18:25:34 1996 Kim Knuttila <[email protected]>
2783
2784 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
2785 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
2786 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
2787 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
2788 toc entry in an objdump) for now.
2789 (ppc_do_last, ppc_get_last): New function - needed to save processing
2790 the toc owner to the end.
2791 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
2792 toc owner last.
2793
2794 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
2795 toc owner from being done till last. Must define POWERPC_LE_PC
2796 to enable it.
2797
2798 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
2799
2800 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
2801 to INFO.
2802 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
2803 SizeOfImage for PowerPC. Ignore the size of the .junk section.
2804
80b99ca0
ILT
2805Thu Jan 18 17:42:12 1996 Ian Lance Taylor <[email protected]>
2806
2807 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
2808
df96df4c
ILT
2809Wed Jan 17 12:40:14 1996 Ian Lance Taylor <[email protected]>
2810
2811 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
2812 back to first.
2813 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
2814
d49ddb85
ILT
2815Tue Jan 16 15:10:49 1996 Ian Lance Taylor <[email protected]>
2816
2817 * elf.c (assign_file_positions_for_segments): Don't increment file
2818 offset for a segment which contains no loadable sections.
2819
4500a112
MM
2820Mon Jan 15 17:46:27 1996 Michael Meissner <[email protected]>
2821
2822 * reloc.c: Add new PowerPC relocations.
2823 * {bfd-in2,libbfd}.h: Regenerate.
2824
2825 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
2826 (ppc_elf_reloc_type_lookup): Lookup new relocations.
2827
252239f8
ILT
2828Mon Jan 15 14:29:44 1996 Ian Lance Taylor <[email protected]>
2829
20ab764e
ILT
2830 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
2831 entries.
2832
0a4ffa2d
ILT
2833 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
2834 info->shared.
2835
45ca3195
ILT
2836 * coffgen.c (coff_find_nearest_line): Don't try to cache
2837 information in sections that are not owned by a BFD. From Richard
2838 Henderson <[email protected]>.
2839
252239f8
ILT
2840 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
2841 from Kazumoto Kojima <[email protected]>.
2842 * elflink.h (elf_link_output_extsym): Remove special check for
2843 _rld_new_interface.
2844
2845 * ecoffswap.h: Add prototypes for static functions.
2846
bd2d10c0
MM
2847Sun Jan 14 21:36:08 1996 Michael Meissner <[email protected]>
2848
2849 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
2850 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
2851 references.
2852 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
2853 to satisfy a TOC16 relocation. Rewrite unsupported relocation
2854 support. Begin support for R_PPC_SDA{2,}REL.
2855
1c3a295b
MM
2856Sat Jan 13 09:36:52 1996 Michael Meissner <[email protected]>
2857
2858 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
2859 create the .got and .got.neg sections.
2860 (ppc_elf_size_dynamic_sections): Call it.
2861 (ppc_elf_check_relocs): Call it.
2862 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
2863 (ppc_elf_check_relocs): Add error messages for relocations we
2864 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
2865 relocation.
2866
57081126
MM
2867Fri Jan 12 15:27:59 1996 Michael Meissner <[email protected]>
2868
2869 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
2870 section flags for V.4 and eabi.
2871
3c38b3df
ILT
2872Fri Jan 12 13:59:16 1996 Ian Lance Taylor <[email protected]>
2873
14899eb7
ILT
2874 * elf.c (assign_file_positions_for_segments): If a segment
2875 contains no sections, don't mark it as readable.
2876
98bb57ad
ILT
2877 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
2878 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
2879
02fcd126
ILT
2880 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
2881 dynamic section, if there is one.
2882 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
2883 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
2884 (bfd_elf64_swap_dyn_in): Likewise.
2885 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
2886 PTR.
2887 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
2888
3c38b3df
ILT
2889 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
2890 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
2891 <[email protected]>.
2892
83f4323e
MM
2893Thu Jan 11 17:06:14 1996 Michael Meissner <[email protected]>
2894
2895 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
2896 PowerPC V.4 and eabi.
2897 * bfd-in2.h: Regenerate.
2898 * libfd.h: Regenerate.
2899
2900 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
2901
2902 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
2903 section type and SHF_EXCLUDE section flag, turning them into the
2904 appropriate bfd section flag.
2905
a0271667
ILT
2906Thu Jan 11 11:23:30 1996 Ian Lance Taylor <[email protected]>
2907
c9746fb6
ILT
2908 * xcofflink.c (xcoff_link_add_symbols): Create the special
2909 sections if we see a DYNAMIC object, in case that is the only
2910 XCOFF input object we see.
2911
5b3b9ff6
ILT
2912 * elf32-mips.c: Extensive changes for a start at dynamic linking
2913 support, from Kazumoto Kojima <[email protected]>.
2914
2915 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
2916 (struct elf_backend_data): Remove
2917 elf_backend_create_program_headers field. Add
2918 elf_backend_additional_program_headers and
2919 elf_backend_modify_segment_map fields.
2920 * elfxx-target.h (elf_backend_type_change_ok): Define if not
2921 defined.
2922 (elf_backend_additional_program_headers): Likewise.
2923 (elf_backend_modify_segment_map): Likewise.
2924 (elf_backend_create_program_headers): Don't define.
2925 (elfNN_bed): Change to account for field changes.
2926 * elf.c (assign_file_positions_for_segments): Call new
2927 modify_segment_map backend function. Don't call old
2928 create_program_headers backend function.
2929 (get_program_header_size): Call additional_program_headers rather
2930 than create_program_headers.
2931 * elflink.h (elf_link_add_object_symbols): Initialize
2932 type_change_ok from new backend field.
2933 (elf_link_output_extsym): Don't warn if _rld_new_interface is
2934 defined.
2935 (elf_reloc_link_order): Treat a reloc against a defined symbol as
2936 a reloc against the appropriate section.
2937
761f377f
ILT
2938 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
2939 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
2940 (elf_flags_init): Rename from elf_ppc_flags_init.
2941 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
2942 elf_ppc_flags_init.
2943 (ppc_elf_copy_private_bfd_data): Likewise.
2944 (ppc_elf_merge_private_bfd_data): Likewise.
2945
a0271667
ILT
2946 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
2947 relocation entries.
2948
64d5f5d0
ILT
2949Tue Jan 9 15:22:53 1996 David Mosberger-Tang <[email protected]>
2950
2951 * coff-alpha.c (alpha_relocate_section): During final link, allow
2952 output .lita section to be bigger than 64k by adjusting gp value
2953 on a per-input section basis.
2954 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
2955 field.
2956 (struct ecoff_section_tdata): Add gp field.
2957
c40d9c77
ILT
2958Tue Jan 9 12:00:36 1996 Ian Lance Taylor <[email protected]>
2959
64d5f5d0
ILT
2960 Handle Alpha ECOFF changes in OSF/1 3.2.
2961 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
2962 field.
2963 * coff-alpha.c: Include "aout/ar.h".
2964 (alpha_ecoff_get_relocated_section_contents): Don't require an
2965 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
2966 3.2 doesn't generate one.
2967 (alpha_relocate_section): Likewise.
2968 (alpha_ecoff_slurp_armap): Define.
2969 (alpha_ecoff_slurp_extended_name_table): Define.
2970 (alpha_ecoff_construct_extended_name_table): Define.
2971 (alpha_ecoff_truncate_arname): Define.
2972 (alpha_ecoff_write_armap): Define.
2973 (alpha_ecoff_generic_stat_arch_elt): Define.
2974 (alpha_ecoff_update_armap_timestamp): Define.
2975 (ARFZMAG): Define.
2976 (alpha_ecoff_read_ar_hdr): New static function.
2977 (alpha_ecoff_get_elt_at_filepos): New static function.
2978 (alpha_ecoff_openr_next_archived_file): New static function.
2979 (alpha_ecoff_get_elt_at_index): New static function.
2980 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
2981 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
2982 _bfd_ecoff to alpha_ecoff.
2983 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
2984 field from backend structure, rather than always calling
2985 _bfd_get_elt_at_filepos.
2986 * coff-mips.c (mips_ecoff_backend_data): Initialize
2987 get_elt_at_filepos field.
2988 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
2989 from _bfd_generic_read_ar_hdr with minor changes.
2990 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
2991 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
2992 * libbfd.h: Rebuild.
2993
2994 * bfd-in.h (BFD_IN_MEMORY): Define.
2995 * libbfd-in.h (struct bfd_in_memory): Define.
2996 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
2997 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
2998 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
2999 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
3000 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
3001 (bfd_get_size): Handle BFD_IN_MEMORY flag.
3002 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
3003 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
3004 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
3005 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
3006 iostream.
3007 (bfd_openstreamr): Likewise.
3008 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
3009 BFD_IN_MEMORY is not set.
3010 * riscix.c (riscix_some_aout_object_p): Likewise.
3011 * bfd-in2.h, libbfd.h: Rebuild.
3012
3013 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
3014 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
3015 (bfd_get_elt_at_index): Define.
3016 * archive.c (_bfd_generic_get_elt_at_index): Rename from
3017 bfd_get_elt_at_index. Change index parameter from int to
3018 symindex.
3019 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
3020 (_bfd_noarchive_get_elt_at_index): Define.
3021 (_bfd_archive_bsd_get_elt_at_index): Define.
3022 (_bfd_archive_coff_get_elt_at_index): Define.
3023 * bfd-in2.h, libbfd.h: Rebuild.
3024 * aout-target.h (MY_get_elt_at_index): Define if not defined.
3025 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
3026 * ieee.c (ieee_get_elt_at_index): Define.
3027 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
3028 * oasys.c (oasys_get_elt_at_index): Define.
3029 * som.c (som_get_elt_at_index): Define.
3030
c40d9c77
ILT
3031 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
3032 numbers to the .text section.
3033
efa77952
ILT
3034Mon Jan 8 17:00:57 1996 Ian Lance Taylor <[email protected]>
3035
3036 * ieee.c (ieee_write_debug_part): Change return type to boolean.
3037 If there is a SEC_DEBUGGING section, get the contents of the debug
3038 information part from it.
3039 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
3040 section in memory.
3041 (ieee_write_object_contents): Check ieee_write_debug_part return.
3042
767f22d5
FF
3043Thu Jan 4 17:12:37 1996 Fred Fish <[email protected]>
3044
3045 * config.bfd (i[345]86-*-freebsd*): Add target.
3046 * configure.in (i386freebsd_vec): Add vec.
3047 * configure: Regenerate.
3048 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
3049 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
3050 Rebuild dependencies..
3051 * freebsd.h: New file.
3052 * i386freebsd.c: New file.
3053 * targets.c (i386freebsd_vec): Declare.
3054 (bfd_target_vector): Add i386freebsd_vec.
3055 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
3056 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
3057
f8254a3c
ILT
3058Thu Jan 4 16:27:46 1996 Ian Lance Taylor <[email protected]>
3059
3060 * ieee.c (ieee_slurp_debug): New static function.
3061 (ieee_object_p): Call it.
3062 (ieee_slurp_section_data): Skip debugging sections.
3063 (ieee_get_reloc_upper_bound): Likewise.
3064 (ieee_get_section_contents): Likewise.
3065 (ieee_canonicalize_reloc): Likewise.
3066 (ieee_write_section_part): Likewise.
3067 (ieee_write_debug_part): Likewise.
3068 (ieee_write_data_part): Likewise.
3069 (init_for_output): Likewise.
3070
07a159db
MM
3071Wed Jan 3 19:42:47 1996 Michael Meissner <[email protected]>
3072
3073 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
3074 work.
3075 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
3076 relocs, since ppc_elf_relocate_section handles the linker case.
3077 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
3078 used.
3079 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
3080 ppc_elf_relocate_section since that is now the only caller.
3081 (ppc_elf_relocate_section): Ditto.
3082
d812945a
ILT
3083Wed Jan 3 15:11:30 1996 Ian Lance Taylor <[email protected]>
3084
3085 * coffcode.h (coff_write_object_contents): If we don't know the
3086 section of the entry point for an XCOFF executable, always set the
3087 entry address to -1.
3088
3a56d0b4
MM
3089Tue Jan 2 14:17:15 1996 Michael Meissner <[email protected]>
3090
3091 * elf.c (bfd_section_from_shdr): Add support for note sections.
3092
c4406e50
ILT
3093Tue Jan 2 13:10:25 1996 Ian Lance Taylor <[email protected]>
3094
d812945a
ILT
3095 * bfd-in.h (struct _symbol_info): Add stab_type field.
3096 * bfd-in2.h: Rebuild.
3097 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
3098
c4406e50
ILT
3099 * elf32-ppc.c: Remove trailing newline from calls to
3100 _bfd_error_handler.
3101 (ppc_elf_merge_private_bfd_data): Only warn about endianness
3102 difference if target endianness is known.
3103
08556813
MM
3104Thu Dec 21 12:43:49 1995 Michael Meissner <[email protected]>
3105
3106 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
3107 old style TOC16 references without using R_PPC_GOT.
3108 (ppc_reloc_type): Ditto.
3109 (ppc_elf_reloc_type_lookup): Add support for TOC16.
3110 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
3111 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
3112 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
3113 (ppc_elf_check_relocs): New function for GOT/PLT support that is
3114 work in progress.
3115 (ppc_elf_adjust_dynamic_symbol): Ditto.
3116 (ppc_elf_adjust_dynindx): Ditto.
3117 (ppc_elf_size_dynamic_sections): Ditto.
3118 (ppc_elf_finish_dynamic_symbol): Ditto.
3119 (ppc_elf_finish_dynamic_sections): Ditto.
3120 (ELF_DYNAMIC_INTERPRETER): Define.
3121
86587dd4
KR
3122Wed Dec 20 19:14:18 1995 Ken Raeburn <[email protected]>
3123
3124 * elf.c (copy_private_bfd_data): When attaching sections to
3125 segments ignore sections that won't be allocated. Patch from
3126 Andreas Schwab.
3127
bf7f243f
KR
3128Tue Dec 19 20:01:43 1995 Ken Raeburn <[email protected]>
3129
3130 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
3131 anything else.
3132
d9518e2e
ILT
3133Tue Dec 19 16:38:59 1995 Ian Lance Taylor <[email protected]>
3134
3135 * coff-i960.c (CALC_ADDEND): Define.
3136 (coff_i960_relocate_section): Add the input section VMA to the
3137 addend for PC relative relocs.
3138
3139Sun Dec 17 20:11:55 1995 Kim Knuttila <[email protected]>
3140
3141 * peicode.h (pe_print_pdata): Must test the entire entry for zero
3142 to correctly terminate.
3143
010a405a
ILT
3144Fri Dec 15 12:05:57 1995 Ian Lance Taylor <[email protected]>
3145
dc092b6b
ILT
3146 * targets.c (enum bfd_endian): Define.
3147 (bfd_target): Rename byteorder_big_p to byteorder, and change it
3148 from boolean to enum bfd_endian. Change header_byteorder_big_p
3149 correspondingly.
3150 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
3151 (bfd_header_big_endian, bfd_header_little_endian): New macros.
3152 * bfd-in2.h: Rebuild.
3153 * All targets: Change initialization of byteorder and
3154 header_byteorder to use enum bfd_endian values rather than
3155 booleans.
3156 * All files: Change all references to byteorder_big_p and
3157 header_byteorder_big_p to use new bfd_*_endian macros.
3158
010a405a
ILT
3159 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
3160 s_vaddr.
3161 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
3162 vma.
3163 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
3164
fcb43906
SC
3165Fri Dec 15 07:32:09 1995 steve chamberlain <[email protected]>
3166
3167 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
3168
0d709d31
ILT
3169Thu Dec 14 13:45:37 1995 Ian Lance Taylor <[email protected]>
3170
14578105
ILT
3171 * ieee.c: Lots of minor cleanups. Make many functions return
3172 errors rather than calling abort. Also:
3173 (ieee_write_twobyte): Remove; change callers to call existing
3174 ieee_write_2bytes function.
3175 (ieee_write_expression): Don't output the section twice when
3176 outputting a local symbol. Don't emit an extraneous zero if there
3177 is only one term.
3178 (ieee_slurp_sections): Set the lma as well as the vma.
3179 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
3180
0d709d31
ILT
3181 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
3182 a recognized one or bfd_arch_unknown.
3183 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
3184 to succeed.
3185 (ihex_get_symtab): Likewise.
3186
14dc2f77
ILT
3187Wed Dec 13 15:44:06 1995 Ian Lance Taylor <[email protected]>
3188
3189 * aoutx.h: Include <ctype.h>.
3190 (struct aout_link_includes_table): Define.
3191 (struct aout_link_includes_totals): Define.
3192 (struct aout_link_includes_entry): Define.
3193 (aout_link_includes_lookup): Define macro.
3194 (struct aout_final_link_info): Add includes field.
3195 (aout_link_includes_newfunc): New static function.
3196 (NAME(aout,final_link)): Initialize includes hash table.
3197 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
3198
480ccad5
SS
3199Wed Dec 13 10:52:14 1995 Stan Shebs <[email protected]>
3200
3201 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
3202
3920d9c9
KK
3203Wed Dec 13 11:07:45 1995 Kim Knuttila <[email protected]>
3204
3205 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
3206
207345f2
KK
3207Tue Dec 12 17:42:06 1995 Kim Knuttila <[email protected]>
3208
3209 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
3210 (pe_print_private_bfd_data): call pe_print_reloc.
3211 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
3212 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
3213 up some debugging as well.
3214
273c019e
ILT
3215Tue Dec 12 11:34:23 1995 Ian Lance Taylor <[email protected]>
3216
3217 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
3218 <[email protected]>.
3219
010d9f2d
ILT
3220Fri Dec 8 17:47:07 1995 Ian Lance Taylor <[email protected]>
3221
3222 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
3223 when setting sections to NULL.
3224
4a4a66bd
ILT
3225Wed Dec 6 17:05:37 1995 Ian Lance Taylor <[email protected]>
3226
3227 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
3228 field.
3229 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
3230 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
3231 for all symbols.
3232 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
3233 * bfd-in2.h: Rebuild.
3234
545bf026
KK
3235Mon Dec 4 16:40:47 1995 Kim Knuttila <[email protected]>
3236
3237 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
3238
1f4ae0d6
ILT
3239Mon Dec 4 11:25:39 1995 Ian Lance Taylor <[email protected]>
3240
55cac920
ILT
3241 * ihex.c (ihex_scan): Handle record types 4 and 5.
3242 (ihex_object_p): Permit types 4 and 5.
3243 (ihex_set_section_contents): Remove check for out of range
3244 addresses.
3245 (ihex_write_object_contents): Generate types 4 and 5.
3246
1f4ae0d6
ILT
3247 * elflink.h (elf_link_output_extsym): Just ignore warning and
3248 indirect references to symbols which don't really exist.
3249
53d45489
KK
3250Sun Dec 3 19:00:27 1995 Kim Knuttila <[email protected]>
3251
3252 * peicode.h (pe_print_idata): Minor format fixes
3253 (pe_print_edata): New function. Under private printing, this formats
3254 the edata section of a PE file.
3255 (pe_print_private_bfd_data): Added call to pe_print_edata.
3256
361e8876
DE
3257Sun Dec 3 16:46:54 1995 Richard Earnshaw ([email protected])
3258
3259 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
3260 index, don't call stoi.
3261
58142f10
ILT
3262Fri Dec 1 14:46:51 1995 Ian Lance Taylor <[email protected]>
3263
ffd15489
ILT
3264 * srec.c (srec_scan): Set lma as well as vma.
3265
3266 * ihex.c: New file; support for Intel Hex format.
3267 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
3268 (ihex_vec): Declare.
3269 (bfd_target_vector): Always include ihex_vec.
3270 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
3271 * Makefile.in: Rebuild dependencies.
3272 (BFD_LIBS): Add ihex.o
3273 (BFD_LIBS_CFILES): Add ihex.c.
3274 * bfd-in2.h: Rebuild.
3275
ae0a6bea
ILT
3276 * elf.c (assign_file_positions_for_segments): Sort the sections in
3277 each segment.
3278 (get_program_header_size): Return the right size if segment_map is
3279 not NULL.
3280 (copy_private_bfd_data): Don't bother to sort the sections.
3281
3282 * bfd.c (bfd_record_phdr): New function.
3283 * bfd-in.h (bfd_record_phdr): Declare.
3284 * bfd_in2.h: Rebuild.
3285
ce0ee4bf
ILT
3286 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
3287 BFD_ASSERT.
3288
58142f10
ILT
3289 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
3290 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
3291 bfd_size_type.
3292 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
3293 (bfd_zmalloc): Change declaration.
3294 * libbfd.h: Rebuild.
3295 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
3296 and realloc. Don't set bfd_error_no_memory if they fail.
3297
59066248
KK
3298Thu Nov 30 19:32:26 1995 Kim Knuttila <[email protected]>
3299
3300 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
3301 uses as well. Added a new howto to deal with TOCREL16 relocs that
3302 are TOCDEFN as well.
3303 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
3304 to handle RVA relocs from dlltool.
3305 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
3306 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
3307 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
3308
3309 * coffcode.h (coff_set_alignment_hook): check idata$X sections
3310 to get the right section alignment.
3311
6933148a
ILT
3312Thu Nov 30 16:48:18 1995 Ian Lance Taylor <[email protected]>
3313
3314 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
3315 p_paddr if p_paddr is zero.
3316 (make_mapping): Set includes_filehdr and includes_phdrs for first
3317 PT_LOAD segment.
3318 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
3319 segment.
3320 (assign_file_positions_for_segments): Handle includes_filehdr and
3321 includes_phdrs. Remove special handling of PT_PHDR and first
3322 PT_LOAD segments.
3323 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
3324 when appropriate. Remove special handling of PT_PHDR segment.
3325 Use a more complex condition for when a section is included in a
3326 segment to handle Solaris linker oddities.
3327
f62fed1c
ILT
3328Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]>
3329
3330 * coff-m88k.c (howto_table): Reformatted for easier reading;
3331 special_function now points to new function m88k_special_reloc.
3332 (howto_hvrt16): Function previously used for handling HVRT16 relocs
3333 removed.
3334 (rtype2howto): Do not add reloc's r_offset to the addend, this will
3335 be done correctly by m88k_special_reloc.
3336 (reloc_processing): New function to be used by RELOC_PROCESSING.
3337 (RELOC_PROCESSING): Define to call reloc_processing.
3338
64ecde46
ILT
3339Wed Nov 29 12:42:36 1995 Ian Lance Taylor <[email protected]>
3340
b00c57ec
ILT
3341 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
3342 (pe_print_pdata): Likewise.
3343
a9713b91
ILT
3344 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
3345 obstack_alloc fails.
3346 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
3347 fails.
3348 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
3349 * Many files: don't set bfd_error_no_memory if one of the above
3350 routines fails.
3351
3dbf33ee
ILT
3352 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
3353 if p_paddr_valid is set.
3354 (copy_private_bfd_data): New static function.
3355 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
3356
44ef8897
ILT
3357 * elf.c (assign_file_positions_for_segments): Fix case where extra
3358 program headers were allocated.
3359
27fb8f29
ILT
3360 * elf.c (_bfd_elf_print_private_bfd_data): New function.
3361 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
3362 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
3363 _bfd_elf_print_private_bfd_data.
3364
64ecde46
ILT
3365 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
3366 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
3367 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
3368 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
3369 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
3370 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
3371 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
3372
fd0198f0
ILT
3373Tue Nov 28 16:59:50 1995 Ian Lance Taylor <[email protected]>
3374
3375 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
3376 * elf.c (make_mapping): New static function.
3377 (map_sections_to_segments): New static function.
3378 (elf_sort_sections): New static function.
3379 (assign_file_positions_for_segments): New static function.
3380 (map_program_segments): Remove.
3381 (get_program_header_size): Remove sorted_hdrs, count, and
3382 maxpagesize parameters. Simplify.
3383 (assign_file_positions_except_relocs): When generating an
3384 executable, use assign_file_positions_for_segments.
3385 (elf_sort_hdrs): Remove.
3386 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
3387 to get_program_header_size.
3388
3b3f7625
ILT
3389Mon Nov 27 12:27:46 1995 Ian Lance Taylor <[email protected]>
3390
1ff0461b
ILT
3391 * hp300hpux.c (MY(callback)): Set lma as well as vma.
3392
80c8485c
ILT
3393 * configure, config.in: Regenerate with autoconf 2.7.
3394
3b3f7625
ILT
3395 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
3396 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
3397
fa63d1ef
ILT
3398Wed Nov 22 12:02:09 1995 Ian Lance Taylor <[email protected]>
3399
a877f591
ILT
3400 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
3401 (ecoff_sec_to_styp_flags): Likewise.
3402 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
3403 (ecoff_set_symbol_info): Handle scRConst.
3404 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
3405 (ecoff_compute_section_file_positions): Handle .rconst section.
3406 (_bfd_ecoff_write_object_contents): Likewise.
3407 (ecoff_link_check_archive_element): Handle scRConst.
3408 (ecoff_link_add_externals): Likewise.
3409 (ecoff_link_write_external): Handle .rconst section.
3410 (ecoff_reloc_link_order): Likewise.
3411 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
3412 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
3413 section.
3414 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
3415
fa63d1ef
ILT
3416 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
3417 DEF_DYNAMIC flag is set.
3418
25bada65
KR
3419Tue Nov 21 13:25:29 1995 Ken Raeburn <[email protected]>
3420
3421 * host-aout.c: If TRAD_HEADER is defined, include it.
3422
7938b4cb
ILT
3423Tue Nov 21 13:03:57 1995 Ian Lance Taylor <[email protected]>
3424
85e493f0
ILT
3425 * aclocal.m4 (AC_PROG_CC): Remove local definition.
3426 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
3427 (BFD_NEED_DECLARATION): New function.
3428 * configure.in: Use BFD_NEED_DECLARATION.
bd77213b
ILT
3429 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
3430 * configure, config.in: Rebuild with autoconf 2.6.
85e493f0 3431
83dcdc61
ILT
3432 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
3433 special_sections before returning when called with a non XCOFF
3434 BFD.
3435
7938b4cb
ILT
3436 * coffgen.c (coff_renumber_symbols): Sort common symbols with
3437 global symbols.
3438
3439 * coffcode.h (coff_compute_section_file_positions): Only pad the
3440 previous section to force file alignment when creating an
3441 executable.
3442
b5403ad7
ILT
3443Mon Nov 20 14:54:09 1995 Ian Lance Taylor <[email protected]>
3444
a418e05d
ILT
3445 * coffcode.h (coff_compute_section_file_positions): If
3446 RS6000COFF_C, set up the .debug section.
3447
b5403ad7
ILT
3448 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
3449 if it is not large enough to accomodate the entire TOC area with
3450 signed 16 bit offsets.
3451 (xcoff_write_global_symbol): Handle negative TOC offsets in global
3452 linkage code.
3453 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
3454 TOC anchor to use the TOC value used in the output file.
3455
90a7abbc
ILT
3456Sat Nov 18 18:01:41 1995 Ian Lance Taylor <[email protected]>
3457
3458 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
3459 (_bfd_coff_read_string_table): Likewise.
3460
177b1932
DE
3461Sat Nov 18 19:43:04 1995 Richard Earnshaw ([email protected])
3462
3463 * pe-arm.c: Fix typos.
3464 * coff-arm.c: Likewise.
3465
3466Fri Nov 17 16:22:04 1995 Kim Knuttila <[email protected]>
3467
3468 * coff-ppc.c (list_ele): Added "cat"egory member.
3469 (record_toc): New category parameter (priv or pub).
3470 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
3471 (ppc_process_before_allocation): Removed embrionic data-in-toc from
3472 the mainline. It addes extra toc cells in error.
3473 (ppc_coff_swap_sym_in_hook): Added some documentation.
3474 (dump_toc): Can now diagnose "virtual toc" chicanery.
3475
e34314c4
ILT
3476Fri Nov 17 10:41:25 1995 Philippe De Muyter <[email protected]>
3477
3478 * elf-bfd.h (struct elf_link_hash_table): Change type of
3479 dynsymcount and bucketcount fields from size_t to bfd_size_type.
3480
73a68447
ILT
3481Fri Nov 17 10:02:58 1995 Ian Lance Taylor <[email protected]>
3482
535e9e29
ILT
3483 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
3484 pointerize C_LEAFSTAT or C_LEAFEXT entries.
3485
73a68447
ILT
3486 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
3487 DT_INIT and DT_FINI entries if the _init or _fini symbol is
3488 defined or mentioned in a regular file.
3489
cd2b2402
KK
3490Thu Nov 16 15:16:42 1995 Kim Knuttila <[email protected]>
3491
3492 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
3493 (coff_ppc_relocate_section): Handle TOCDEFN attribute
3494 (coff_ppc_relocate_section): Correct REL24 handling
3495 (ppc_process_before_allocation): Correct TOCDEFN handling
3496
3497 * peicode.h (dir_names): Added name descriptions
3498
b218076e
KR
3499Thu Nov 16 03:38:03 1995 Ken Raeburn <[email protected]>
3500
3501 * VERSION: Updated to cygnus-2.6.
3502
3503Wed Nov 15 19:30:07 1995 Ken Raeburn <[email protected]>
3504
3505 * targets.c (m68k4knetbsd_vec): Declare.
3506
e9f30616
ILT
3507Wed Nov 15 18:05:52 1995 Ian Lance Taylor <[email protected]>
3508
3509 * targets.c (bfd_target): Change type of second argument to
3510 _bfd_print_private_bfd_data from void * to PTR.
3511 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
3512 using PTR rather than void *.
3513 * bfd-in2, libbfd.h: Rebuild.
3514 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
3515 to PTR.
3516 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
3517 _bfd_generic_bfd_print_private_bfd_data rather than casting
3518 bfd_true.
3519
ae75c4a4
KR
3520Wed Nov 15 04:09:14 1995 Ken Raeburn <[email protected]>
3521
3522 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
3523 "DO NOT DELETE" lines or blank lines that mkdep writes on some
3524 systems.
3525 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
3526 BFD64_BACKENDS_CFILES): New variables.
3527 (CFILES): Use them.
3528
bebcd3db
ILT
3529Tue Nov 14 11:52:23 1995 Ian Lance Taylor <[email protected]>
3530
4b71e164
ILT
3531 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
3532 not at the file position of the first section.
3533 * coffcode.h (coff_compute_section_file_positions): Avoid using
3534 unportable #elif.
3535 (coff_write_object_contents): When generating a PPC PE executable
3536 with no symbols, round up the file size to a COFF_PAGE_SIZE
3537 boundary.
3538 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
3539 don't write out a string table.
3540
631b10f4
ILT
3541 * elf.c (bfd_section_from_shdr): When using a different section
3542 header, pass the new one to _bfd_elf_make_section_from_shdr.
3543 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
3544 (elf_map_symbols): Add section VMA to symbol value when comparing
3545 against 0.
3546 (_bfd_elf_compute_section_file_positions): Only build symbol table
3547 if there are some symbols. Set file offset of symtab and strtab
3548 sections.
3549 (assign_file_positions_except_relocs): Remove dosyms parameter.
3550 Change all callers. Never set file offset of symtab and strtab
3551 sections.
3552 (_bfd_elf_copy_private_section_data): New function.
3553 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
3554 (_bfd_elf_copy_private_symbol_data): New function.
3555 (swap_out_syms): Check for special mapping of st_shndx created by
3556 copy_private_symbol_data.
3557 * elfxx-target.h: Use new copy routines.
3558 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
3559 (_bfd_elf_copy_private_section_data): Declare.
3560
3561 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
3562
3563 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
3564 C_NT_WEAK.
3565
bebcd3db
ILT
3566 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
3567 _bfd_dummy_target, matching the recent change to archive
3568 recognition.
3569
7ad4ba81
ILT
3570Mon Nov 13 13:24:38 1995 Ian Lance Taylor <[email protected]>
3571
afa67334
ILT
3572 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
3573 arithmetic on PTR types.
3574
f2bd8915
ILT
3575 * aout-target.h (MY(callback)): Set the lma of the sections.
3576
7ad4ba81
ILT
3577 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
3578 symbol into a reloc against the section.
3579
93b6a3f8
KK
3580Mon Nov 13 07:31:35 1995 Kim Knuttila <[email protected]>
3581
3582 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
3583 glue for the relocs: IMGLUE and IFGLUE.
3584 (record_toc): new function - tracks toc contents
3585 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
3586 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
3587 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
3588 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
125d37c4 3589 (ppc_record_toc_entry): Removed a debug define (duh)
93b6a3f8
KK
3590
3591 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
3592 (pe_print_idata): New function - formats the idata section data
3593 (pe_print_pdata): New function - formats the pdata section data
3594 (pe_print_private_bfd_data): calls to above
3595
c769947b
SS
3596Sun Nov 12 12:23:24 1995 Stan Shebs <[email protected]>
3597
3598 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
3599 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
3600 TARGET_SYM and TARGET_NAME for vector and BFD name.
3601 * coff-pmac.c (pmac_xcoff_vec): Remove.
3602 (TARGET_SYM, TARGET_NAME): Define.
3603 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
3604 machine to 0, not all PowerMacs are 601s.
3605
3606Fri Nov 10 12:10:14 1995 Ian Lance Taylor <[email protected]>
3607
3608 * elfcode.h (elf_object_p): Read in any program headers.
3609 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
3610 based on the program headers, if any.
3611 (elf_fake_sections): Set sh_addr from the vma, not the lma.
3612 (map_program_segments): Set p_paddr of program headers based on
3613 the lma.
3614
ee174815
ILT
3615Thu Nov 9 13:01:31 1995 Ian Lance Taylor <[email protected]>
3616
839087b7
ILT
3617 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
3618 failure.
3619
922530a6
ILT
3620 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
3621 trying to do a relocateable link with a non-a.out object file.
3622
3623 * archive.c (bfd_generic_archive_p): Check the first object file
3624 in an archive even if target_defaulted is set. If the object file
3625 has the wrong xvec, reject it.
3626
a1774c51
ILT
3627 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
3628 be represented, report the name via _bfd_error_handler.
3629 (translate_to_native_sym_flags): Likewise.
3630 * elf32-mips.c (mips_elf_final_link): Likewise.
3631 * oasys.c (oasys_write_sections): Likewise.
3632
4a378b13
ILT
3633 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
3634 which checks for STYP_OVRFLO sections.
3635 (coff_compute_section_file_positions): If RS6000COFF_C, handle
3636 reloc and lineno count overflows.
3637 (coff_write_object_contents): Call coff_count_linenumbers before
3638 coff_compute_section_file_positions. If RS6000COFF_C, handle
3639 reloc and lineno count overflows.
3640 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
3641 relocs before dealing with .pad sections. Count overflow section
3642 headers when handling .pad sections.
3643
7906bf87
ILT
3644 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
3645 if RS6000COFF_C.
3646
ee174815
ILT
3647 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
3648 (struct xcoff_link_hash_table): Add descriptor_section and
3649 special_sections fields.
3650 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
3651 (xcoff_link_add_symbols): Set linkage section alignment. Create
3652 descriptor section. Check for magic symbol names (_text, etc.),
3653 and record them in special_sections if found. Set
3654 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
3655 descriptor field to point back to the function code symbol.
3656 (xcoff_sweep): Always mark the special descriptor_section.
3657 (bfd_xcoff_export_symbol): Check whether the symbol might be a
3658 function descriptor, and mark it if it is.
3659 (bfd_xcoff_size_dynamic_sections): Add new special_sections
3660 parameter, and fill it in. Allocate space for the descriptor
3661 section.
3662 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
3663 global linkage code. If an undefined function descriptor is
3664 exported, arrange to define it. Warn about any other undefined
3665 exported symbol.
3666 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
3667 (xcoff_write_global_symbol): Create a function descriptor when
3668 necessary.
3669 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
3670 * bfd-in2.h: Rebuild.
3671
0e829f18
KK
3672Thu Nov 9 08:40:23 1995 Kim Knuttila <[email protected]>
3673
3674 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
3675 (ppc_coff_link_hash_table): new types for hashing
3676 (ppc_coff_link_hash_newfunc): hash entry constructor
3677 (ppc_coff_link_hash_table_init): hash table initializer
3678 (ppc_coff_link_hash_table_create): hash table constructor
3679 (ppc_record_toc_entry): changed references to hash table
3680 (coff_ppc_relocate_section): changed references to hash table
3681
3682 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
3683 * libcoff.h: Rebuild
3684
3685 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
3686 (coff_link_add_symbols): removed toc_offset init
3687
7ac84736
KR
3688Thu Nov 9 04:00:38 1995 Ken Raeburn <[email protected]>
3689
b27cc4bc
KR
3690 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
3691 first.
3692
7ac84736
KR
3693 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
3694 if it is given and mmep is available.
3695 * acconfig.h: Undef USE_MMAP.
3696 * configure, config.in: Regenerated.
3697 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
3698 table handling the old way.
3699 (aout_get_external_symbols): Don't complain if last byte of string
3700 table is nonzero.
3701 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
3702 (bfd_free_window) [! USE_MMAP]: Don't define.
3703 (bfd_get_file_window,
3704 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
3705
1b3b0c03
ILT
3706Wed Nov 8 20:03:44 1995 Eric Freudenthal <[email protected]>
3707
3708 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
3709 0xffff0000.
3710
092abcdf
ILT
3711Wed Nov 8 11:31:11 1995 Ian Lance Taylor <[email protected]>
3712
33698029
ILT
3713 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
3714 compatible with AMD generated COFF files. Try to support both AMD
3715 and GNU formats simultaneously.
3716 (coff_a29k_relocate_section): Likewise.
3717
0bb8ff19
ILT
3718 * libbfd.c (bfd_get_file_window): Change writable parameter from
3719 int to boolean; update all callers. Pass MAP_SHARED if not
3720 writable--it's required on Solaris. Cast fprintf argument to
3721 avoid warning.
3722 * bfd-in.h (bfd_get_file_window): Update declaration.
3723 * bfd-in2.h: Rebuild.
3724 * aoutx.h: Update calls to bfd_get_file_window.
3725
0634a431
ILT
3726 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
3727 Change all uses.
3728 (xcoff_swap_ldhdr_in): New static function.
3729 (xcoff_swap_ldsym_in): New static function.
7812bf9c 3730 (xcoff_find_reloc): Handle the case of a single reloc correctly.
0634a431
ILT
3731 (xcoff_link_add_symbols): If we just created a descriptor, pass it
3732 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
417acf22 3733 Handle XTY_ER/XMC_XO symbols correctly.
0634a431
ILT
3734 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
3735 rather than normal symbol table.
417acf22
ILT
3736 (bfd_xcoff_import_symbol): It's not an error if the symbol is
3737 already defined with the same absolute value.
0634a431
ILT
3738 (xcoff_mark): When considering called symbols, check whether the
3739 descriptor is from a dynamic object, rather than the symbol
3740 itself.
3741 (xcoff_build_ldsyms): Likewise.
3742
092abcdf
ILT
3743 * libbfd.c (bfd_get_file_window): Change return type to boolean.
3744 Cast realloc and malloc return values. If malloc or realloc fail,
3745 set bfd_error_no_memory.
3746 * bfd-in.h (bfd_get_file_window): Change type to boolean.
3747 * bfd-in2.h: Rebuild.
3748
d6f41a7d
KK
3749Tue Nov 7 11:53:48 1995 Kim Knuttila <[email protected]>
3750
3751 * coff-ppc.c (ppc_record_toc_entry): new function.
3752 (in_reloc_p): changed return value.
3753 (coff_ppc_relocate_section): much rework.
3754 (ppc_allocate_toc_section): new function.
3755 (ppc_process_before_allocation): new function.
3756 (ppc_coff_swap_sym_in_hook): new function.
3757
3758 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
3759 (coff_link_add_symbols): initialize toc_offset.
3760
3761 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
3762 (coff_swap_aouthdr_out): Added more sections to the data
3763 dictionary for the pe file header. Also changed linker version
3764 number on the ppc side.
3765 (dir_names): small improvements to the dictionary printing.
3766 (pe_mkobject_hook): save the file level flags.
3767
3768 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
3769 (pe_tdata): added real_flags field
3770 (coff_tdata): added local_toc_sym_map and access macro
3771
3772 * libcoff.h (coff_link_hash_entry): added toc_offset field
3773 (pe_tdata): added real_flags field
3774 (coff_tdata): added local_toc_sym_map and access macro
3775
3776 * coffcode.h (coff_set_alignment_hook): added hook for PE.
3777 (coff_mkobject): init for local_toc_sym_map
3778 (coff_write_object_contents): set the internal_a.magic to
3779 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
3780 ppc compilers use.
3781
6bc200f2
ILT
3782Tue Nov 7 13:48:58 1995 Ian Lance Taylor <[email protected]>
3783
c0971298
ILT
3784 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
3785 entries until both the line number address and the function name
3786 address are too large.
3787
6a468850
ILT
3788 * configure.in: Call AC_CHECK_PROG to find and cache AR.
3789 * configure: Rebuilt.
3790
6bc200f2
ILT
3791 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
3792 is defined in the environment.
3793
c44bf94c
JL
3794Tue Nov 7 10:57:24 1995 Jeffrey A Law ([email protected])
3795
3796 * som.c (som_get_section_contents_in_window): Define to use
3797 generic version.
3798
cf587de8
ILT
3799Mon Nov 6 17:13:15 1995 Harry Dolan <[email protected]>
3800
3801 * coff-i860.c: New file, based on coff-i386.c.
3802 * cpu-i860.c: New file, based on cpu-i386.c.
3803 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
3804 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
3805 targets, using i860coff_vec.
3806 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
3807 trad-core.o and hosts/i860mach3.h.
3808 (i860coff_vec): Use coff-i860.o and cofflink.o.
3809 * configure: Rebuild.
3810 * Makefile.in: Rebuild dependencies.
3811 (ALL_MACHINES): Add cpu-i860.o.
3812 (BFD32_BACKENDS): Add coff-i860.o.
3813 (CFILES): Add cpu-i860.c and coff-i860.c.
3814 * targets.c (i860coff_vec): Declare.
3815 (bfd_target_vector): Add &i860coff_vec.
3816 * archures.c (bfd_i860_arch): Declare.
3817 (bfd_archures_list): Add &bfd_i860_arch.
3818 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
3819 (coff_set_flags): Handle bfd_arch_i860.
3820 (coff_write_object_contents): Handle I860 a.out magic number.
3821
83c23fca
ILT
3822Mon Nov 6 14:34:07 1995 Ian Lance Taylor <[email protected]>
3823
3824 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
3825 the created .tc section to 2.
3826 (xcoff_mark): Don't keep a .loader reloc for a call to an
3827 undefined symbol when creating a shared library.
3828 (xcoff_build_ldsyms): When creating a shared library, generate
3829 global linkage code for a call to an undefined symbol.
3830
5d9eb9c3
KR
3831Sun Nov 5 21:44:13 1995 Ken Raeburn <[email protected]>
3832
3833 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
3834 BFD32_BACKENDS, BFD64_BACKENDS.
3835 (.dep1): Put mkdep output in a separate file.
3836 Rebuilt dependencies.
3837
ffacb892
KR
3838 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
3839 value.
3840
4fe6d901
KR
3841 Permit use of mmap when available:
3842
3843 * configure.in: Check for mmap, madvise, mprotect.
3844 * config.in, configure: Regenerated.
3845
3846 * libbfd.c (struct _bfd_window_internal): Define type.
3847 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
3848 functions.
3849 (ok_to_map): New static variable for debugging.
3850 (_bfd_generic_get_section_contents_in_window): New function.
3851 * bfd-in.h (bfd_window_internal): Declare type.
3852 (bfd_window): Define type.
3853 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
3854 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
3855 Declare.
3856
3857 * libaout.h (struct aoutdata): Add two window fields.
3858 (obj_aout_sym_window, obj_aout_string_window): New macros.
3859 * aoutx.h (some_aout_object_p): Initialize windows.
3860 (aout_get_external_symbols): Get symbol data and strings in
3861 windows instead of explicitly allocated buffers.
3862 (slurp_symbol_table): Free window instead of memory.
3863 (bfd_free_cached_info): Release windows instead of freeing storage
3864 directly.
3865 (aout_link_free_symbols): Ditto.
3866
3867 * targets.c (bfd_target): Add new field for
3868 get_section_contents_in_window.
3869 (BFD_JUMP_TABLE_GENERIC): Updated.
3870 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
3871 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
3872 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
3873 macros for get_section_contents_in_window field.
3874
d9e771e3
FF
3875Sat Nov 4 12:23:26 1995 Fred Fish <[email protected]>
3876
3877 * core.c: Renamed to corefile.c
3878 * makefile.dos (OBJS): Change core.o to corefile.o
3879 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
3880
bf917766
SG
3881start-sanitize-gm
3882Sat Nov 4 10:16:54 1995 Stu Grossman ([email protected])
3883
3884 * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to
3885 targ_selvecs to allow debugging under Irix-5 native.
3886
3887end-sanitize-gm
583db7a8
ILT
3888Fri Nov 3 15:54:59 1995 Ian Lance Taylor <[email protected]>
3889
3890 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
3891 to o. Clobber and restore the list of new csects around the call
3892 to _bfd_generic_link_add_one_symbol, in case it wants to report a
3893 linker error and the linker wants to read the symbol table. Reset
3894 the line number count of a real section even if it has no relocs.
3895 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
3896
3897 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
3898 is too small.
3899
68aed7db
ILT
3900Thu Nov 2 23:16:39 1995 Ian Lance Taylor <[email protected]>
3901
18a9609c
ILT
3902 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
3903 an undefined symbol in a shared link.
3904
68aed7db
ILT
3905 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
3906 oldtype from bfd_link_order_type to bfd_link_hash_type. From
3907 [email protected] (Philippe De Muyter).
3908
7f82c7e1
ILT
3909Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]>
3910
3911 * coff-m88k.c (rtype2howto): New static function.
3912 (RTYPE2HOWTO): Use it rather than a macro definition.
3913
3914 * coffcode.h (coff_write_object_contents): set internal_a.magic
3915 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
3916
4c8b9746 3917 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
7f82c7e1
ILT
3918 define TRAD_HEADER to new file hosts/delta68.h.
3919 m88*-motorola-sysv*, however, does use ptrace-core.o.
3920 * hosts/delta68.h: New file.
3921
3922 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
3923 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
3924
619c7730
KR
3925Wed Nov 1 13:51:54 1995 Ken Raeburn <[email protected]>
3926
3927 * i386linux.c (MY(vec)): Declare before use.
3928
73246ff8
ILT
3929Wed Nov 1 11:45:07 1995 Ian Lance Taylor <[email protected]>
3930
e8d6d5d0
ILT
3931 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
3932 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
3933
b2193cc5
ILT
3934 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
3935 BFD is not of the right type.
3936 (bfd_elf_get_needed_list): Likewise.
3937 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
3938 * sunos.c (bfd_sunos_get_needed_list): Likewise.
3939 * xcofflink.c (XCOFF_XVECP): Define.
3940 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
3941 of the right type.
3942 (bfd_xcoff_import_symbol): Likewise.
3943 (bfd_xcoff_export_symbol): Likewise.
3944 (bfd_xcoff_link_count_reloc): Likewise.
3945 (bfd_xcoff_record_link_assignment): Likewise.
3946 (bfd_xcoff_size_dynamic_sections): Likewise.
3947
baabeb74
ILT
3948 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
3949 table index against the number of symbols for a base relative
3950 reloc.
3951
73246ff8
ILT
3952 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
3953 static function.
3954 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
3955 full_aouthdr flag here...
3956 (_bfd_xcoff_bfd_final_link): ...not here.
3957
6ab826bd
FF
3958Tue Oct 31 12:52:02 1995 Fred Fish <[email protected]>
3959
3960 * libelf.h: Rename to elf-bfd.h to avoid conflict with
3961 systems that have a system <libelf.h>.
3962 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
3963 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
3964 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
3965 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
3966 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
3967 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
3968 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
3969
999cc186
ILT
3970Tue Oct 31 15:30:07 1995 David Mosberger-Tang <[email protected]>
3971
0652d579
ILT
3972 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
3973 set, set BSF_WEAK in symbol. Change all callers.
3974 (ecoff_get_extr): Set weakext based on BSF_WEAK.
3975 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
3976 _bfd_generic_link_add_one_symbol.
3977 (ecoff_indirect_link_order): Check that the section tdata relocs
3978 are not NULL before using them.
3979
999cc186
ILT
3980 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
3981 define TRAD_HEADER as hosts/alphalinux.h.
3982 * configure: Rebuild.
3983 * hosts/alphalinux.h: New file.
3984 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
3985 not int.
3986
e6080520
ILT
3987Tue Oct 31 12:34:11 1995 Ian Lance Taylor <[email protected]>
3988
2bd0aeb9
ILT
3989 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
3990 C_ECOMM storage classes.
3991
e6080520
ILT
3992 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
3993 of xcoff_mark.
3994 (xcoff_mark): Call xcoff_mark_symbol.
3995 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
3996 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
3997 doing it by hand.
3998 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
3999
5fe14a9f
ILT
4000Mon Oct 30 14:53:48 1995 Ian Lance Taylor <[email protected]>
4001
f630a0a4
ILT
4002 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
4003 field.
4004 (xcoff_find_reloc): New static function.
4005 (xcoff_link_add_symbols): Use it.
4006 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
4007 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
4008 relocate the value of C_DECL.
4009
5fe14a9f
ILT
4010 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
4011
dff77ed7
SC
4012Sat Oct 28 01:25:34 1995 steve chamberlain <[email protected]>
4013
4014 * cofflink.c (_bfd_coff_generic_relocate_section): Make
4015 callback decide what goes in .relocs.
4016 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
4017 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
4018 there is one.
4019
697a8fe8
ILT
4020Sat Oct 28 01:51:02 1995 Ian Lance Taylor <[email protected]>
4021
4022 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
4023 absolute section.
4024
2d7de17d
ILT
4025Fri Oct 27 18:14:39 1995 Ian Lance Taylor <[email protected]>
4026
4027 * xcofflink.c: More improvements, mostly to fix handling of
4028 constructors and a few other special cases.
4029 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
4030 zero, reverting yesterday's change.
4031 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
4032 (bfd_xcoff_link_count_reloc): Declare.
4033 (bfd_xcoff_record_link_assignment): Declare.
4034 * bfd-in2.h: Rebuild.
4035
f552f751
NH
4036Fri Oct 27 14:42:15 1995 Niklas Hallqvist <[email protected]>
4037
4906b2a3 4038 * PORTING, aout-arm.c, aout-encap.c, aout-target.h,
f552f751
NH
4039 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
4040 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
4041 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
4042 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
4043 Change PAGE_SIZE to TARGET_PAGE_SIZE.
4044
4045 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
4046 format.
4047
4048 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
4049 segments includes the a.out header. See to that the magic number
4050 *always* is big-endian.
4051
4052 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
4053 m68k4k NetBSD configurations.
4054
4055 * configure.in, configure: Separate i386 & mips NetBSD
4056 configurations from other BSD ones. Don't assume DEC is the only
4057 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
4058 configurations. Add support for m68k4k NetBSD object format.
4059
4060 * libaout.h: Added M_68K4K_NETBSD magic.
6fd1f40d
NH
4061
4062 * m68k4knetbsd.c: New file.
f552f751
NH
4063
4064 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
4065
4066 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
4067 <machine/endian.h>.
4068
6fd1f40d
NH
4069 * hosts/mipsnbsd.h: New file.
4070
d6d44ef9
SG
4071start-sanitize-gm
4072Fri Oct 27 09:41:51 1995 Stu Grossman ([email protected])
4073
4074 * config.bfd: Add config stuff for mips*-*-magic* to set
4075 targ_defvec to ecoff_big_vec.
4076
4077end-sanitize-gm
867d923d
ILT
4078Thu Oct 26 14:16:47 1995 Ian Lance Taylor <[email protected]>
4079
4080 * xcofflink.c: Numerous changes to get closer to a working XCOFF
4081 linker.
4082 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
4083 toc_section, and entry_section fields.
4084 (struct xcoff_section_tdata): Remove ldrel_count field.
4085 * libcoff.h: Rebuild.
4086 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
4087 fields.
4088 (coff_compute_section_file_positions): If RS6000COFF_C, generate
4089 full a.out header if full_aouthdr is set in xcoff_data.
4090 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
4091 based on sections stored in xcoff_data.
4092 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
4093 fields.
aad2c618
ILT
4094 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
4095 (rs6000coff_vec): Set symbol_leading_char to '.'.
867d923d
ILT
4096 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
4097 value stored in ret rather than returning a pointer value.
4098
6bd9ffdb
MM
4099Wed Oct 25 23:10:39 1995 Michael Meissner <[email protected]>
4100
4101 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
4102 format for now.
4103
9d14250f
JL
4104Wed Oct 25 16:19:27 1995 Jeffrey A Law ([email protected])
4105
4106 * som.c (som_slurp_string_table): Allocate the strings with malloc
4107 since they're free'd by free_cached_info.
4108 (som_slurp_symbol_table): Similarly for the symbol table.
4109
a2bd0529
PB
4110Wed Oct 25 14:59:22 1995 Per Bothner <[email protected]>
4111
4112 * Makefile.in (diststuff): Don't make headers.
4113
28a0c103
ILT
4114Wed Oct 25 11:32:54 1995 Ian Lance Taylor <[email protected]>
4115
356cd465
ILT
4116 * Makefile.in: Rebuild dependencies.
4117
1edd3a7b
ILT
4118 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
4119 output_bfd is not SunOS.
4120 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
4121 non-SunOS input files.
4122
28a0c103
ILT
4123 * xcofflink.c: Extensive changes to support linking shared objects
4124 and generating a .loader section.
4125 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
b73322d9
ILT
4126 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
4127 last_symndx, and ldrel_count fields.
28a0c103
ILT
4128 * libcoff.h: Rebuild.
4129 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
4130 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
4131 is set.
4132 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
4133 (bfd_xcoff_export_symbol): Declare.
4134 (bfd_xcoff_size_dynamic_sections): Declare.
4135 * bfd-in2.h: Rebuild.
4136
aadf04f7
SS
4137Tue Oct 24 17:44:20 1995 Stan Shebs <[email protected]>
4138
4139 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
4140 * configure: Rebuild.
4141 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
4142 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
4143 contents.
4144 (pmac_xcoff_vec): Update to use new xcoff support.
4145 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
4146 (xcoff_write_armap): Declare buf as unsigned char.
4147 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
4148
4149 * mpw-make.sed: Generalize subdir_do edit.
4150
ddf4639b
JL
4151Tue Oct 24 10:25:01 1995 Jeffrey A Law ([email protected])
4152
4153 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
4154 correctly. Don't initialize asect->vma.
4155
e7bedf65
KR
4156Fri Oct 20 13:23:48 1995 Ken Raeburn <[email protected]>
4157
4158 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
4159 something a little less than the page size.
4160
4161Thu Oct 19 13:06:09 1995 Ian Lance Taylor <[email protected]>
4162
4163 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
4164
3a70e298
SC
4165Wed Oct 18 16:20:08 1995 steve chamberlain <[email protected]>
4166
4167 * coff-i386.c (coff_i386_reloc_type_lookup): New.
4168 * coffcode.h (coff_write_object_contents): If .bss is before
4169 .data us that as data_start.
4170 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
4171 calc correct.
4172 * peicode.h (add_data_entry): Use _cooked_size of data directory.
4173 (coff_swap_outhdr_out): Hardwire in version number.
4174
5a2846e3
KR
4175Wed Oct 18 16:50:54 1995 Ken Raeburn <[email protected]>
4176
3c3a5268
KR
4177 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
4178 major and minor to *_vno, since the former are also macros in
4179 SunOS header files. Cast result of bfd_alloc to appropriate
4180 type.
4181
5a2846e3
KR
4182 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
4183 before assigning to sec_data.
4184
0f6c885e
ILT
4185Wed Oct 18 13:25:17 1995 Ian Lance Taylor <[email protected]>
4186
4187 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
4188 now relative to the section, not absolute.
4189 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
4190 get the file name when there is a N_SO directory name. When
4191 handling stabs, remember that section->vma was added to the
4192 offset.
4193
11fa6636
ILT
4194Tue Oct 17 18:24:54 1995 Ian Lance Taylor <[email protected]>
4195
4196 * sunos.c (struct sunos_link_hash_table): Add needed field.
4197 (sunos_link_hash_table_create): Call bfd_release, not free.
4198 (sunos_link_hash_table_create): Initialize needed field.
4199 (sunos_add_dynamic_symbols): Record needed objects.
4200 (bfd_sunos_get_needed_list): New function.
4201 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
4202 * bfd-in2.h: Rebuild.
4203
c974e19e
SC
4204Mon Oct 16 14:43:59 1995 steve chamberlain <[email protected]>
4205
4206 * libcoff-in.h (pe_data_type.in_reloc_p): New.
4207
22a35f0b
ILT
4208Mon Oct 16 10:52:50 1995 Ian Lance Taylor <[email protected]>
4209
54406786
ILT
4210 * bfd-in.h (struct bfd_link_needed_list): Rename from
4211 bfd_elf_link_needed_list.
4212 * bfd-in2.h: Rebuild.
4213 * elf.c, elflink.h, libelf.h: Corresponding changes.
4214
dd984644
ILT
4215 Add start at AIX linker support; no shared libraries yet.
4216 * xcofflink.c: New file.
4217 * configure.in (rs600coff_vec): Use xcofflink.o.
4218 * configure: Rebuild.
4219 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
4220 fields.
4221 (struct xcoff_section_tdata): Define.
4222 (xcoff_section_data): Define macro.
4223 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
4224 (_bfd_xcoff_bfd_link_add_symbols): Declare.
4225 (_bfd_xcoff_bfd_final_link): Declare.
4226 (_bfd_ppc_xcoff_relocate_section): Declare.
4227 * libcoff.h: Rebuild.
4228 * coff-rs6000.c: Clean up a bit.
4229 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
4230 cputype, csects, and debug_indices.
4231 (xcoff_copy_private_bfd_data): Copy cputype.
4232 (xcoff_howto_table): Rename from rs6000coff_howto_table.
4233 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
4234 (xcoff_reloc_type_lookup): Rename from
4235 rs6000coff_reloc_type_lookup.
4236 (coff_relocate_section): Define.
4237 (_bfd_xcoff_sizeof_headers): Define.
4238 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
4239 (_bfd_xcoff_bfd_relax_section): Define.
4240 (_bfd_xcoff_bfd_link_split_section): Define.
4241 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
4242 coff.
4243 * coffcode.h (coff_compute_section_file_positions): If AIX,
4244 increment sofar by SMALL_AOUTSZ if not executable.
4245 (coff_write_object_contents): If AIX, always output an a.out
4246 header; if not executable, header size of SMALL_AOUTSZ.
4247 * hash.c (struct bfd_strtab_hash): Add xcoff field.
4248 (_bfd_stringtab_init): Initialize xcoff field.
4249 (_bfd_xcoff_stringtab_init): New function.
4250 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
4251 (_bfd_stringtab_emit): In XCOFF mode, write out length.
4252 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
4253 * libbfd.h: Rebuild.
4254 * Makefile.in: Rebuild dependencies.
4255 (BFD32_BACKENDS): Add xcofflink.o.
4256 (CFILES): Add xcofflink.c.
4257
22a35f0b
ILT
4258 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
4259 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
4260 <[email protected]>.
4261
fb417a21
MM
4262Sat Oct 14 21:36:02 1995 Michael Meissner <[email protected]>
4263
4264 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
4265
4266Fri Oct 13 17:48:43 1995 Ken Raeburn <[email protected]>
4267
4268 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
4269 * config.in: Regenerated.
4270
4271 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
4272 (_bfd_chunksize): New variable.
4273 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
4274 for obstack chunk size.
4275 * configure.in: Check for getpagesize.
4276 * configure: Regenerated.
4277
4278 Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]>
4279
4280 * trad-core.c (rawptr): Make it a local variable of
4281 ptrace_unix_core_file_p.
4282
b1e46369
SC
4283Fri Oct 13 11:22:01 1995 steve chamberlain <[email protected]>
4284
4285 * coff-arm.c (in_reloc_p): New.
4286 * coff-i386.c (in_reloc_p): New.
4287 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
4288 (coff_write_object_contents): Only set has_reloc_section
4289 if PE_IMAGE.
4290 * cofflink.c (_bfd_coff_generic_relocate_section): Call
4291 in_reloc_p to decide if reloc should be emitted.
4292 * libcoff.h (pe_data_type.in_reloc_p): New.
4293 * peicode.h (pe_mkobject): Initialize in_reloc_p.
4294
ee9f09cd
ILT
4295Wed Oct 11 00:49:29 1995 Ian Lance Taylor <[email protected]>
4296
b1e46369
SC
4297 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
4298 (_bfd_coff_read_internal_relocs): Likewise.
4299 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
4300 (_bfd_coff_read_internal_relocs): Likewise.
4301
ee9f09cd
ILT
4302 * elflink.h (elf_link_add_object_symbols): Correct conditions
4303 under which type and size change warnings are issued.
4304
78b31b6b
ILT
4305Tue Oct 10 18:32:46 1995 Ian Lance Taylor <[email protected]>
4306
4307 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
4308 a symbol which is not in a real section.
4309 (coff_write_native_symbol): Corresponding change.
4310
4311 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
4312 coff_link_hash_newfunc and make non-static.
4313 (_bfd_coff_link_hash_table_init): New function, broken out of
4314 _bfd_coff_link_hash_table_create.
4315 (_bfd_coff_link_hash_table_create): Use it.
4316 (process_embedded_commands): Make static.
4317 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
4318 (_bfd_coff_link_hash_table_init): Declare.
4319 * libcoff.h: Rebuild.
4320
4321 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
4322 field in XCOFF tdata.
4323 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
4324 U802ROMAGIC, for clarity. Try to set arch and machine correctly
4325 based on cputype stored in a.out header, or in n_type of initial
4326 .file symbol.
4327 (coff_write_object_contents): Set cputype correctly in a.out
4328 header.
4329 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
4330 warnings.
4331 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
4332 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
4333 old resv1 field.
4334 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
4335 * libcoff.h: Rebuild.
4336
4337 * cpu-rs6000.c (rs6000_compatible): New static function.
4338 (bfd_rs6000_arch): Use it.
4339 * cpu-powerpc.c (powerpc_compatible): New static function.
4340 (arch_info_struct): Define various flavours of PowerPC.
4341 (bfd_powerpc_arch): Use powerpc_compatible. Point at
4342 arch_info_struct.
4343
9dd7e56f
FF
4344Tue Oct 10 10:50:46 1995 Fred Fish <[email protected]>
4345
78b31b6b 4346 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9dd7e56f 4347
8235c112
ILT
4348Tue Oct 10 01:28:29 1995 Ian Lance Taylor <[email protected]>
4349
4350 * elflink.h (elf_link_add_object_symbols): Don't warn about
4351 changing the size or type if the old definition was weak.
4352
0322af0d
ILT
4353Mon Oct 9 11:24:08 1995 Ian Lance Taylor <[email protected]>
4354
49488f2b
ILT
4355 * coffcode.h (combined_entry_type): Add fix_line field.
4356 (coff_slurp_line_table): Warn if we try to set the lineno field of
4357 a symbol twice.
4358 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
4359 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
4360 * coffgen.c (coff_mangle_symbols): Handle fix_line.
4361 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
4362 absolute section.
4363 (coff_print_symbol): Print fix_value symbols in a useful fashion.
4364 * libcoff.h: Rebuild.
4365
5f710a3a
ILT
4366 * libcoff-in.h (struct xcoff_tdata): Define.
4367 (xcoff_data): Define.
4368 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
4369 * bfd-in2.h, libcoff.h: Rebuild.
4370 * coff-rs6000.c (xcoff_mkobject): New static function.
4371 (coff_mkobject): Define.
4372 (xcoff_copy_private_bfd_data): New static function.
4373 (coff_bfd_copy_private_bfd_data): Define.
4374 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
4375 signed to bitfield.
4376 (rs6000coff_vec): Add DYNAMIC to object_flags.
4377 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
4378 .loader sections specially.
4379 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
4380 section alignment from the XCOFF tdata information.
4381 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
4382 F_SHROBJ, and copy the extra a.out header information into the
4383 XCOFF tdata structure.
4384 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
4385 F_DYNLOAD and the extra a.out header information.
4386 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
4387 C_HIDEXT symbol with attached csect information.
4388 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
4389 in the o_maxdata field.
4390 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
4391 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
4392 end if BSF_NOT_AT_END is set.
3f2c5b2d 4393
0322af0d
ILT
4394 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
4395 _bfd_read_ar_hdr_fn.
4396 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
4397 * bfd-in2.h, libbfd.h: Rebuild.
4398 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
4399 return value.
4400 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
4401 (bfd_slurp_bsd_armap_f2): Likewise.
4402 (_bfd_slurp_extended_name_table): Likewise.
4403
3266eaff
KR
4404Fri Oct 6 16:18:35 1995 Ken Raeburn <[email protected]>
4405
4406 Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]>
4407
4408 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
4409 when the symbol table is empty.
4410
4411 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
4412 space for section symbols, since we don't output them either.
4413 (elf_m68k_adjust_dynindx): Removed.
4414
4415 * ptrace-core.c (rawptr): Make it a local variable of
4416 ptrace_unix_core_file_p.
3266eaff 4417
249479fa
MM
4418Fri Oct 6 12:24:47 1995 Michael Meissner <[email protected]>
4419
45b5d2f0
MM
4420 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
4421 NULL.
4422
249479fa
MM
4423 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
4424 Mac object file formats.
4425
c53fac12
ILT
4426Fri Oct 6 12:04:02 1995 Ian Lance Taylor <[email protected]>
4427
4372f33f
ILT
4428 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
4429 auxent if there isn't one.
4430 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
4431 rather than FILNMLEN as the maximum name length.
4432
0fc9ada9
ILT
4433 * coffcode.h (bfd_coff_backend_data): Add new field
4434 _bfd_coff_print_aux.
4435 (bfd_coff_print_aux): New static function.
4436 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
4437 scnlen field of an XTY_LD csect aux entry.
4438 (coff_print_aux): New static function.
4439 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
4440 in coff_pointerize_aux_hook.
4441 (bfd_coff_std_swap_table): Initialize new field.
4442 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
4443 * libcoff.h: Rebuild.
4444 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
4445 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4446
7860fe38
ILT
4447 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
4448 if there are symbols, for native AIX ld compatibility.
4449
c80cc833
ILT
4450 * coffcode.h (bfd_coff_backend_data): Add new field
4451 _bfd_coff_pointerize_aux_hook.
4452 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
4453 or I960, and as 0 otherwise.
4454 (bfd_coff_std_swap_table): Initialize new field.
4455 * libcoff.h: Rebuild.
4456 * coffgen.c (coff_pointerize_aux): Change parameters to take
4457 symbol pointer instead of type and class, and to take aux index.
4458 Call _bfd_coff_pointerize_aux_hook if it is defined.
4459 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
4460 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
4461 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4462
c53fac12
ILT
4463 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
4464 read-only/host-only support.
4465
4466 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
4467 BSF_LOCAL.
d11e6b52
ILT
4468 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
4469 RS6000COFF_C.
c53fac12
ILT
4470
4471 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
4472 BFD_JUMP_TABLE_ARCHIVE accordingly.
4473 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
4474 (_bfd_compute_and_write_armap): Declare.
4475 (_bfd_generic_read_ar_hdr): Declare.
4476 (_bfd_read_ar_hdr): Define.
4477 (_bfd_noarchive_read_ar_hdr): Define.
4478 (_bfd_archive_bsd_read_ar_hdr): Define.
4479 (_bfd_archive_coff_read_ar_hdr): Define.
4480 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
4481 _bfd_read_ar_hdr instead.
4482 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
4483 (_bfd_compute_and_write_armap): Rename from
4484 compute_and_write_armap. Make non-static. Change all callers.
4485 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
4486 than _bfd_snarf_ar_hdr.
4487 * aout-target.h (MY_read_ar_hdr): Define if not defined.
4488 * ieee.c (ieee_read_ar_hdr): Define.
4489 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
4490 * oasys.c (oasys_read_ar_hdr): Define.
4491 * som.c (som_read_ar_hdr): Define.
4492 * bfd-in2.h, libbfd.h: Rebuild.
4493
f8e47484
SC
4494Thu Oct 5 14:04:07 1995 steve chamberlain <[email protected]>
4495
4496 * peicode.c (coff_swap_filehdr_in): If symptr is
4497 zero, there aren't any symbols, even if nsyms is set.
4498
2b874a2d
ILT
4499Thu Oct 5 11:45:02 1995 Ian Lance Taylor <[email protected]>
4500
aca73687
ILT
4501 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
4502 field.
4503 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
4504 sections, and set styp correctly for them: .got, .hash, .dynamic,
4505 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
4506 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
4507 types.
4508 (ecoff_sort_hdrs): New static function.
4509 (ecoff_compute_section_file_positions): Return boolean, not void.
4510 Sort the sections by VMA before looking through them. Put the
4511 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
4512 section on an appropriate boundary within the page.
4513 (ecoff_compute_reloc_file_positions): Check return value of
4514 ecoff_compute_section_file_positions.
4515 (_bfd_ecoff_set_section_contents): Likewise.
4516 (_bfd_ecoff_write_object_contents): Check for various Alpha
4517 section types when incrementing text_size and data_size. Call
4518 adjust_headers backend function if it exists.
4519 * coff-alpha.c (alpha_adjust_headers): New static function.
4520 (alpha_ecoff_backend_data): Initialize adjust_headers field.
4521 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4522
2b874a2d
ILT
4523 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
4524
c780e5db
JL
4525Wed Oct 4 18:15:02 1995 Jeff Law ([email protected])
4526
4527 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
4528 of ALTERNATE_AIX_CORE_FORMAT.
4529 * configure.in (aix4): No longer need CORE_FLAGS.
4530 * configure: Updated.
4531
2a01c351
KR
4532Wed Oct 4 15:36:36 1995 Ken Raeburn <[email protected]>
4533
4534 NS32k changes from Ian Dall:
4535 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
4536 macros.
4537 (aout_link_input_section_std, aout_link_input_section_ext,
4538 aout_link_reloc_link_order): Call them instead of _bfd_*
4539 versions.
4540 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
4541 to zero.
4542 (backend_data): Use it instead of hardcoded zero.
4543
4544 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
4545 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
4546
4547 * ns32knetbsd.c: Include bfd.h.
4548 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
4549 (MY_bfd_reloc_type_lookup): Declare function too.
4550 * pc532-mach.c (set_sizes): Don't declare.
4551 (MY_text_includes_header, MY_exec_header_not_counted): Define.
4552 (backend_data, MY_backend_data): Don't define.
4553
4554 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
4555 ns32k-*-lites* like ns32k-*-netbsd*.
4556
4557 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
4558 compile on lites.
4559
5944d75b
ILT
4560Wed Oct 4 14:15:52 1995 Ian Lance Taylor <[email protected]>
4561
4562 * coffcode.h (coff_write_object_contents): Restore setting
4563 f_timdat to 0, deleted on August 22.
4564
db344f82
SC
4565Tue Oct 3 16:28:32 1995 steve chamberlain <[email protected]>
4566
4567 * coffcode.h (coff_bfd_copy_private_symbol_data,
4568 coff_bfd_copy_private_section_data,
4569 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
4570 * peicode.h (coff_bfd_copy_private_bfd_data): New
4571 (pe_bfd_copy_private_bfd_data): New.
4572 (coff_swap_scnhdr_in): Swap bss size into the right place.
4573 (pe_print_private_bfd_data): Add some newlines.
5944d75b 4574
c780e5db 4575Tue Oct 3 11:53:04 1995 Jeff Law ([email protected])
97f1feda
JL
4576
4577 * som.c (setup_sections): Don't die if a space has no subspaces.
4578
3d7c42c9
ILT
4579Mon Oct 2 14:08:55 1995 Ian Lance Taylor <[email protected]>
4580
4581 * elflink.h (elf_link_add_object_symbols): Don't let a weak
4582 dynamic symbol override a common symbol. Don't change the size or
4583 type if they have been set and the new symbol is not a definition.
4584 Warn if the size or type changes.
4585
c780e5db 4586Sun Oct 1 01:34:41 1995 Jeff Law ([email protected])
709af562
JL
4587
4588 * som.c (som_begin_writing): Don't write the symbol table or
4589 symbol strings.
4590 (som_finish_writing): Write them here. Place them after the
4591 subspace data, but before the relocs.
4592
4593Fri Sep 29 11:01:55 1995 Ian Lance Taylor <[email protected]>
4594
4595 * sunos.c (sunos_add_one_symbol): Just pass false, not
4596 info->shared_library, to sunos_create_dynamic_sections.
4597 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
4598 section.
4599 (sunos_check_dynamic_reloc): Remove .text section assertion.
4600
7009e451
SS
4601Thu Sep 28 18:48:47 1995 Stan Shebs <[email protected]>
4602
4603 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
4604 * configure, configure.in: Add pmac_xcoff_vec case.
4605 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
4606 * coff-pmac.c: New file, PowerMac XCOFF support.
4607 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
4608 * targets.c (pmac_xcoff_vec): Declare.
4609
4610 * mpw-config.in: Various changes to be compatible with the
4611 autoconf-based configury.
4612 * mpw-make.sed: New file, sed commands to translate Unix
4613 makefile into MPW syntax.
4614 * mpw-make.in: Remove.
4615 * hosts/mpw.h: Remove.
4616 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
4617 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
4618
b91537be
SC
4619Thu Sep 28 17:06:23 1995 steve chamberlain <[email protected]>
4620
4621 * binary.c (binary_get_symtab): Return an empty string on error.
4622 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
4623
30360a6f
KK
4624Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
4625
4626 * coff-ppc.c: Reformatted according to gnu conventions
4627 Removed irrelevant "if 0" code
4628
20d1e233
ILT
4629Thu Sep 28 11:19:53 1995 Ian Lance Taylor <[email protected]>
4630
69fd4fdd
ILT
4631 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
4632 symbols rather than as indirect symbols.
4633 (MY(slurp_symbol_table)): Don't do anything special about
4634 secondary symbols.
4635
46b5a892
ILT
4636 * coffcode.h (coff_new_section_hook): Make sure that the alignment
4637 of .ctors and .dtors sections is no larger than 2.
4638
9db59230
ILT
4639 * sunos.c (sunos_add_one_symbol): Don't change
4640 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
4641 undef list.
4642 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
4643 dynamic symbols when creating a shared library.
4644 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
4645 shared library.
4646 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
4647 written even if it is not defined in a regular object.
4648 (sunos_write_dynamic_symbol): Use plt_offset for the address of
4649 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
4650 rather than the constant 22.
4651 (sunos_check_dynamic_reloc): Handle creating a shared library.
4652 (sunos_finish_dynamic_link): Set the first entry in the GOT to
4653 zero when creating a shared library.
4654 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
4655 write it out at the start of the symbol table.
4656
20d1e233
ILT
4657 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
4658
a11e10fe
DE
4659Thu Sep 28 00:58:05 1995 Doug Evans <[email protected]>
4660
4661 * config.bfd: Add arm-*-coff.
4662 * configure.in, configure: Add armcoff_{little,big}_vec.
4663 * targets.c (armcoff_{little,big}_vec): Declare.
4664 (bfd_target_vector): Add armcoff_{little,big}_vec.
4665 * coff-arm.c (armcoff_{little,big}_vec): Always define.
4666
99062cfc
ILT
4667Wed Sep 27 10:37:14 1995 Ian Lance Taylor <[email protected]>
4668
4669 * targets.c (bfd_find_target): Remove debugging code.
4670
deacbe0f
KK
4671Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
4672
4673 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
4674 support on powerpc.
4675 * Makefile.in: added *-ppc files
4676 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
4677 allow pe based .o's to be shared with other tools on ppc/NT
4678 * config.bfd: added powerpc[le]-[pe|winnt] config support
4679 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
4680 * peicode.h: Added more section flags for PE on ppc
4681 Added coff_swap_filehdr_out to allow peicode.h to be
4682 used for non-image PE files on ppc.
4683 Check for image, or not, before copying pe_opthdr
4684 * targets.c: Added new bfd's
30360a6f
KK
4685 * targets.c: Removed two inactive bfds that shouldn't have made it this
4686 far.
deacbe0f 4687
d22b02e0
MM
4688Tue Sep 26 14:06:41 1995 Michael Meissner <[email protected]>
4689
4690 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
4691 explicit values to initialize all relocs. Change all users.
4692 (ppc_elf_brtaken_inner): New function to handle branch predicition
4693 relocs.
4694 (ppc_elf_brtaken_reloc): Ditto.
4695 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
4696 relocs use ppc_elf_unsupported_reloc.
4697 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
4698 needs to be reported.
4699 (ppc_elf_relocate_section): Support branch prediction relocs.
4700
fcf490c0
ILT
4701Tue Sep 26 12:48:05 1995 Ian Lance Taylor <[email protected]>
4702
e6cb7b41
ILT
4703 * bfd.c (bfd_assert): Remove \n from string passed to
4704 _bfd_error_handler.
4705
1af85fbb
ILT
4706 * coff-i386.c: (TWO_DATA_SECS): Don't define.
4707 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
4708 (bfd_coff_make_section_hook): Don't define.
4709 (coff_make_section_hook): Remove.
4710 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
4711 (styp_to_sec_flags): Likewise.
4712 (coff_write_object_contents): Likewise.
4713 (bfd_coff_std_swap_table): Don't initialize make_section_hook
4714 field.
4715 * libcoff.h: Rebuild.
4716 * coffgen.c (make_a_section_from_file): Just call
4717 bfd_make_section_anyway, not bfd_make_section or
4718 bfd_coff_make_section_hook.
4719 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
4720 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
4721 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
4722 make_section_hook field.
4723 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4724
fcf490c0
ILT
4725 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
4726 pointers into value field for warning and indirect symbols; just
4727 leave the value field alone.
4728 * linker.c (generic_link_add_symbol_list): Use next symbol for
4729 warning and indirect symbols, rather than looking in symbol value.
4730 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
4731 parameter. Change all callers. Remove support for indirect
4732 symbols; it didn't work anyhow.
4733 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
4734 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
4735 * bfd-in2.h: Rebuild.
4736
cc47d19a
MM
4737Mon Sep 25 16:04:09 1995 Michael Meissner <[email protected]>
4738
4739 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
4740 go back to telling the tools this reloc operates on 32 bits.
4741
81449d47
ILT
4742Mon Sep 25 11:48:02 1995 Ian Lance Taylor <[email protected]>
4743
7a7fbffb
ILT
4744 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
4745 rather than a direct fprintf.
4746 * archive.c (_bfd_write_archive_contents): Likewise.
4747 * coffcode.h (coff_slurp_symbol_table): Likewise.
4748 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
4749 (ppc_elf_unsupported_reloc): Likewise.
4750 (ppc_elf_relocate_section): Likewise.
4751 * i386linux.c (linux_tally_symbols): Likewise.
4752 (linux_finish_dynamic_link): Likewise.
4753 * osf-core.c (osf_core_core_file_p): Likewise.
4754 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
4755 * som.c (som_sizeof_headers): Likewise.
4756 * srec.c (srec_bad_byte): Likewise.
4757 * bfd.c (bfd_assert): Likewise. Also change file to be const.
4758 * libbfd-in.h (bfd_assert): Declare first parameter const.
4759 * libbfd.h: Rebuild.
4760 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
4761 bfd_reloc_overflow is enough.
4762 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
4763 * coff-h8500.c (rtype2howto): Likewise.
4764 * coff-z8k.c (rtype2howto): Likewise.
4765 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
4766 * elf.c (_bfd_elf_get_lineno): Likewise.
4767 (_bfd_elf_no_info_to_howto): Likewise.
4768 (_bfd_elf_no_info_to_howto_rel): Likewise.
4769 * hp300hpux.c (convert_sym_type): Likewise.
4770 (MY(swap_std_reloc_in)): Likewise.
4771 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
4772
f1c6dd5d
ILT
4773 * libaout.h (struct aoutdata): Add line_buf field.
4774 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
4775 and filename_buffer. Instead, use a malloc buffer stored in the
4776 new line_buf field. Remove length restrictions.
4777
f0500a41
ILT
4778 * coffgen.c (string_size): Remove static variable.
4779 (debug_string_size, debug_string_section): Likewise.
4780 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
4781 and debug_string_size_p parameters. Use them instead of the
4782 global variables. Change all callers.
4783 (coff_write_symbol): Likewise.
4784 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
4785 (coff_write_symbols): Add local variables to replace removed
4786 global variables.
4787
25b5a53d
ILT
4788 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
4789 function, and line_base fields.
4790 * libcoff.h: Rebuild.
4791 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
4792 information, rather than using static variables.
4793
641ac26a
ILT
4794 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
4795 file. From Peter DeWolf <[email protected]>.
4796
81449d47
ILT
4797 * init.c (initialized): Remove static variable.
4798 (bfd_init): Don't bother setting initialized.
4799 (bfd_check_init): Remove.
4800 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
4801 * libbfd.h: Rebuild.
4802
138b9b81
PS
4803Sat Sep 23 01:22:23 1995 Peter Schauer ([email protected])
4804
4805 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
4806 size for full core dumps. Copy core file header to private data.
4807 (rs6000coff_core_file_failing_command,
4808 rs6000coff_core_file_failing_signal): New functions to extract
4809 the file name and terminating signal from the core file.
4810 * coff-rs6000.c: Use them.
4811
2ffbb79a
ILT
4812Fri Sep 22 17:44:47 1995 Ian Lance Taylor <[email protected]>
4813
4814 Change arch info to be const, initialized at compile time.
4815 * archures.c: Reindent many functions. Change CONST to const.
4816 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
4817 nothing set it anyhow. Make next const.
4818 (bfd_arch_info_list): Remove.
4819 (bfd_archures_list): Rename from archures_init_table. Change from
4820 a table of function pointers to a table of bfd_arch_info_type
4821 structure addresses.
4822 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
4823 (bfd_lookup_arch): Likewise.
4824 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
4825 const pointer.
4826 (bfd_default_arch_struct): Make const.
4827 (bfd_arch_init, bfd_arch_linkin): Remove.
4828 (bfd_get_arch_info): Return a const pointer.
4829 * init.c (bfd_init): Don't call bfd_arch_init.
4830 * bfd.c (struct _bfd): Make arch_info const.
4831 * bfd-in2.h: Rebuild.
4832 * libbfd.h: Rebuild.
4833 * configure.in: Put & before everything in $selarchs.
4834 * configure: Rebuild.
4835 * cpu-*.c: Change bfd_*_arch from a function which calls
4836 bfd_arch_linkin to a const structure.
4837 * ieee.c (ieee_object_p): Make arch const.
4838
02f85cda
MM
4839Fri Sep 22 16:23:18 1995 Michael Meissner <[email protected]>
4840
4841 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
4842 PowerPC V.4.
4843 * bfd-in2.h: Regenerate.
4844 * libbfd.h: Regenerate.
4845
4846 * elf32-ppc.c (reloc_type): Update names to match current draft.
4847 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
4848 relative. Update names to current V.4 draft.
4849 (ppc_elf_reloc_type_lookup): Add support for more relocations.
4850 (ppc_elf_relocate_section): Rename relocations to match draft.
4851
dd82c578
MM
4852Thu Sep 21 21:53:18 1995 Michael Meissner <[email protected]>
4853
4854 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
4855 compiled with -mrelocatable-lib to be linked with either normal
4856 modules or -mrelocatable modules.
4857
f69e888e
ILT
4858Wed Sep 20 12:03:26 1995 Ian Lance Taylor <[email protected]>
4859
e18c4e8f
ILT
4860 * coffcode.h (coff_write_object_contents): Clear the vstamp field
4861 in the a.out header.
4862
f69e888e
ILT
4863 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
4864 a reloc against a local symbol, even if it's not a section.
4865
a5655244
ILT
4866Tue Sep 19 17:02:26 1995 Ian Lance Taylor <[email protected]>
4867
4868 * targets.c (bfd_target): Remove unused align_power_min field.
4869 * bfd-in2.h: Rebuild.
4870 * All backends: Remove initialization of align_power_min.
4871
500d7394
SC
4872Tue Sep 19 14:02:21 1995 steve chamberlain <[email protected]>
4873
4874 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
500d7394 4875
049df0a8
ILT
4876Mon Sep 18 14:35:01 1995 Arne H. Juul <[email protected]>
4877
4878 * config.bfd (mips-dec-netbsd*): New target.
4879 * configure.host (mips-dec-netbsd*): New host.
4880 * configure.in (mips-dec-netbsd*): New native.
4881 * configure: Rebuild.
4882
1862bbd8
ILT
4883Fri Sep 15 10:24:36 1995 Ian Lance Taylor <[email protected]>
4884
4885 Make the COFF backend linker merge common types:
4886 * cofflink.c (struct coff_debug_merge_element): Define.
4887 (struct coff_debug_merge_type): Define.
4888 (struct coff_debug_merge_hash_entry): Define.
4889 (struct coff_debug_merge_hash_table): Define.
4890 (coff_debug_merge_hash_table_init): Define.
4891 (coff_debug_merge_hash_table_free): Define.
4892 (coff_debug_merge_hash_lookup): Define.
4893 (struct coff_final_link_info): Add debug_merge field.
4894 (coff_debug_merge_hash_newfunc): New static function.
4895 (_bfd_coff_final_link): Allocate and free debug_merge table.
4896 (coff_link_input_bfd): Merge identical enum, struct and union
4897 types.
4898
a208a70f
ILT
4899Thu Sep 14 14:53:58 1995 Ian Lance Taylor <[email protected]>
4900
4901 Convert i960 COFF to use COFF backend linker.
4902 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
4903 structure to store the symbol being used.
4904 (coff_i960_start_final_link): New static function.
4905 (coff_i960_relocate_section): New static function.
4906 (coff_i960_adjust_symndx): New static function.
4907 (coff_start_final_link): Define.
4908 (coff_relocate_section): Define.
4909 (coff_adjust_symndx): Define.
4910 * coffcode.h (bfd_coff_backend_data): Add new callback function
4911 _bfd_coff_start_final_link.
4912 (bfd_coff_start_final_link): Define.
4913 (coff_start_final_link): Define if not defined.
4914 (bfd_coff_std_swap_table): Add coff_start_final_link.
4915 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
4916 visible.
4917 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
4918 function callback is not NULL.
4919 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
4920 (_bfd_coff_internal_syment_name): Declare.
4921 * libcoff.h: Rebuild.
4922 * configure.in (icoff_big_vec): Add cofflink.o.
4923 (icoff_little_vec): Likewise.
4924 * configure: Rebuild.
4925
f0abedbe
FF
4926Wed Sep 13 17:38:23 1995 Fred Fish <[email protected]>
4927
4928 * Makefile.in (clean-info): Remove extraneous tab from line
4929 following action.
4930
aa4b3dc5
ILT
4931Wed Sep 13 13:27:53 1995 Ian Lance Taylor <[email protected]>
4932
4933 * cofflink.c (coff_link_input_bfd): Fail if a section with no
4934 contents has relocs.
4935
4ca63811 4936Thu Sep 12 12:45:34 1995 steve chamberlain <[email protected]>
beee31b1
SC
4937
4938 * coffcode.h (coff_compute_section_file_positions): Keep the
4939 raw size safe.
4940 (coff_write_object_contents): Remember if it's a relocatable
4941 file.
4942 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
4943 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
4944 if relocatable file. Swap out saved raw size.
4945
ae115e51
ILT
4946Tue Sep 12 12:14:33 1995 Ian Lance Taylor <[email protected]>
4947
9521bac3
ILT
4948 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
4949 (maintainer-clean): Rename from realclean, passing
4950 maintainer-clean down to subdirectories, but leave realclean as a
4951 synonym.
4952
4ca63811
ILT
4953 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
4954 warning callback.
4955
5aa4c3ff
ILT
4956 * dep-in.sed: Remove config.h from generated dependencies.
4957
396aaeb2
ILT
4958 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
4959 broken out of sunos_canonicalize_dynamic_symtab.
4960 (sunos_canonicalize_dynamic_symtab): Call new function
4961 sunos_slurp_dynamic_symtab.
4962 (sunos_add_dynamic_symbols): Add three new parameters. Return the
4963 dynamic symbol table to the caller.
4964 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
4965 callback to override the symbols being read.
4966 * libaout.h (struct aout_backend_data): Add three new parameters
4967 to add_dynamic_symbols callback.
4968
ae115e51
ILT
4969 Extensive minor changes to avoid various gcc warnings. Also:
4970 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
4971 * archures.c (bfd_arch_info_type): Change mach field from long to
4972 unsigned long.
4973 (bfd_lookup_arch): Change machine parameter from long to unsigned
4974 long.
4975
b088e4b2
ILT
4976Mon Sep 11 10:55:47 1995 Ian Lance Taylor <[email protected]>
4977
4978 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
4979 a symbol with a non-zero plt_offset.
4980
1dff7902
ILT
4981Fri Sep 8 11:47:24 1995 Ian Lance Taylor <[email protected]>
4982
2b71e1e4
ILT
4983 * elfcode.h (align_file_position): Remove; not used.
4984
1dff7902
ILT
4985 * configure.in: Only check for <sys/procfs.h> on a native system,
4986 and make sure it defines prstatus_t.
4987 * configure: Rebuild.
4988
870015b1
ILT
4989Thu Sep 7 12:48:01 1995 Ian Lance Taylor <[email protected]>
4990
535c89f0
ILT
4991 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
4992
936b870c
ILT
4993 * config.in: Rename from config.h.in.
4994 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
a7873a6c 4995 Check for config.h:config.in when creating stamp-h.
936b870c 4996 * configure: Rebuild.
a7873a6c
ILT
4997 * Makefile.in (stamp-h): Depend upon config.in rather than
4998 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
4999 calling config.status.
936b870c 5000
870015b1
ILT
5001 * Makefile.in (do_distclean): Remove config.h and stamp-h.
5002 (Makefile): Just rebuild Makefile.
5003 (config.h, stamp-h): New targets.
5004 * configure.in: Create stamp-h when rebuilding config.h.
5005 * configure: Rebuild.
5006
b7577823
ILT
5007Wed Sep 6 15:00:33 1995 Ian Lance Taylor <[email protected]>
5008
5009 * configure.in: Call AC_CONFIG_HEADER. Substitute
5010 HOST_64BIT_LONG. Check that various header files exist. Check
5011 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
5012 and/or free need to be declared. Don't make a link to sysdep.h.
5013 Define TRAD_HEADER for various hosts.
5014 * configure: Rebuild.
5015 * configure.host: Don't set my_host. Add definitions taken from
5016 host header files for various entries. Remove entries which now
5017 do nothing.
5018 * acconfig.h: New file.
5019 * config.h.in: New file, built by autoheader.
5020 * sysdep.h: New file.
5021 * Makefile.in (do_distclean): Don't remove sysdep.h.
5022 (RECONFIG): Remove.
5023 (LOCAL_H_DEPS): New variable.
5024 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
5025 $(RECONFIG).
5026 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
5027 ($(OPTIONAL_BACKENDS)): Likewise.
5028 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
5029 looking through sysdep.h.
5030 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
5031 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
5032 (fprintf_vma, sprintf_vma): Likewise.
5033 (int64_type, uint64_type): Don't define.
5034 * bfd-in2.h: Rebuild.
5035 * archures.c, bfd.c, srec.c: Include <ctype.h>.
5036 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
5037 * lynx-core.c: Include stuff from old hosts/lynx.h.
5038 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
5039 rather than NO_FCNTL.
5040 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
5041 rather than NATIVE_HPPAHPUX_COMPILER.
5042 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
5043 is defined.
5044 * hosts/*.h: Remove all header files which merely include,
5045 declare, and define things. Leave header files which define
5046 information needed by trad-core.c.
5047
5048 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
5049 (BFD_CC_FOR_BUILD): Define.
5050 * configure.in: Use BFD_CC_FOR_BUILD.
5051 * configure: Rebuild.
5052
7a93ebdd
ILT
5053Tue Sep 5 19:35:28 1995 Ian Lance Taylor <[email protected]>
5054
4c2e4d0e
ILT
5055 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
5056 * configure: Rebuild.
5057
7a93ebdd
ILT
5058 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
5059 a global symbol.
5060
866bb9e5
JM
5061Tue Sep 5 12:48:26 1995 Jason Molenda ([email protected])
5062
5063 * config.bfd: i386pe_ve -> i386pe_vec.
5064
2b79a104
ILT
5065Mon Sep 4 14:02:43 1995 Ian Lance Taylor <[email protected]>
5066
f515fb2f
ILT
5067 * configure.host: Incorporate host Makefile fragments by setting
5068 shell variables.
5069 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
5070 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
5071 value based on whether the code is being compiled by a cross
5072 compiler. Don't substitute host_makefile_frag or frags.
5073 * aclocal.m4: New file to define local AC_PROG_CC.
5074 * configure: Rebuild.
5075 * Makefile.in (INSTALL): Set to @INSTALL@.
5076 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
5077 (INSTALL_DATA): Set to @INSTALL_DATA@.
5078 (AR): Set to @AR@.
5079 (CC): Define as @CC@.
5080 (CFLAGS): Set to @CFLAGS@.
5081 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
5082 (@host_makefile_frag@): Remove.
5083 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
5084 after other options.
5085 (config.status): Remove dependency upon @frags@.
5086 * config/*.mh, config/README: Remove.
5087
2b79a104
ILT
5088 * config.bfd: Rewrite to incorporate the contents of the Makefile
5089 fragments by setting shell variables, rather than merely returning
5090 the name of a Makefile fragment.
5091 * configure.in: Use shell variables set by config.bfd rather than
5092 looking at the target Makefile fragment files. Don't substitute
5093 target_makefile_frag. Do substitute TDEFINES.
5094 * configure: Rebuild.
5095 * Makefile.in (@target_makefile_frag@): Remove.
5096 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
5097 * config/*.mt: Remove.
5098
2cb159a5
KR
5099Mon Sep 4 03:13:28 1995 Ken Raeburn <[email protected]>
5100
5101 * configure.in: Put changequote lines around "i[345]86" patterns
5102 section of core file support.
5103
ef07871c
JL
5104Sun Sep 3 11:31:58 1995 Jeff Law ([email protected])
5105
5106 * som.c (som_bfd_print_private_bfd_data): Define to use the
5107 generic version.
5108
1613e075
SC
5109Fri Sep 1 17:08:40 1995 steve chamberlain <[email protected]>
5110
5111 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
5112 entry, text_start and data_start.
5113
a52a3ce8
ILT
5114Fri Sep 1 18:06:28 1995 Ian Lance Taylor <[email protected]>
5115
a21227ef
ILT
5116 * Makefile.in (OFILES): Remove $(TDEPFILES).
5117 * config/apollo.mt (TDEPFILES): Remove.
5118 * config/README: Update.
5119
a52a3ce8
ILT
5120 * configure.in: For a native configuration, set COREFILE and
5121 COREFLAG based on the canonical host name.
5122 * configure: Rebuild.
5123 * Makefile.in: Rebuild dependencies.
5124 (ALL_CFLAGS): Add @COREFLAG@.
5125 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
5126 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
5127 support routines. Check LYNX_CORE rather than HOST_LYNX.
5128 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
5129 * i386lynx.c: Likewise.
5130 * m68klynx.c: Likewise.
5131 * sparclynx.c: Likewise.
5132 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
5133 * *-core.c: Comment changes.
5134 * config/decstation.mh (HDEPFILES): Remove.
5135 (HDEFINES): Remove -DTRAD_CORE.
5136 * config/irix3.mh (RANLIB): Remove.
5137 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
5138 (HDEFINES): Remove -DIRIX_CORE.
5139 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
5140 (HDEFINES): Remove -DTRAD_CORE.
5141 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
5142 * config/ultra3.mh (RANLIB): Remove.
5143 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
5144 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
5145 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
5146 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
5147 * config/hppahpux.mh, config/hppaosf.mh: Remove.
5148 * config/i386aix.mh, config/i386bsd.mh: Remove.
5149 * config/i386linux.mh, config/i386mach3.mh: Remove.
5150 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
5151 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
5152 * config/mipsmach3.mh, config/news-mips.mh: Remove.
5153 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
5154 * config/rs600.mh, config/rs6000lynx.mh: Remove.
5155 * config/solaris2.mh, config/stratus.mh: Remove.
5156 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
5157 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
5158
d6f672b8
ILT
5159Fri Sep 1 15:18:50 1995 Kazumoto Kojima <[email protected]>
5160
5161 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
5162 DT_FINI entry if the appropriate symbol is not in the hash table.
5163
5164 * libelf.h (struct elf_backend_data): Add create_program_headers
5165 and want_hdr_in_seg fields.
5166 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
5167 defined.
5168 (elf_backend_create_program_headers): Likewise.
5169 (elfNN_bed): Initialize create_program_headers and
5170 want_hdr_in_seg.
5171 * elf.c (get_program_header_size): Call create_program_headers
5172 backend routine.
5173 (map_program_segments): Check want_hdr_in_seg backend field. Call
5174 create_program_headers backend routine.
5175
5176 * elf.c (assign_file_positions_except_relocs): Align non allocated
5177 sections when creating an executable.
5178
5179 * elfcode.h (elf_swap_phdr_in): Make non static.
5180 (elf_swap_phdr_out): Make non static.
5181 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
5182 (bfd_elf32_swap_phdr_out): Declare.
5183 (bfd_elf64_swap_phdr_in): Declare.
5184 (bfd_elf64_swap_phdr_out): Declare.
5185
5186 * ecofflink.c (ecoff_collect_shuffle): New static function.
5187 (_bfd_ecoff_get_accumulated_pdr): New function.
5188 (_bfd_ecoff_get_accumulated_sym): New function.
5189 (_bfd_ecoff_get_accumulated_ss): New function.
5190 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
5191 (_bfd_ecoff_get_accumulated_sym): Declare.
5192 (_bfd_ecoff_get_accumulated_ss): Declare.
5193 * libbfd.h: Rebuild.
5194
0cb70568
ILT
5195Fri Sep 1 13:20:25 1995 Ian Lance Taylor <[email protected]>
5196
d6f672b8
ILT
5197 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
5198
0cb70568
ILT
5199 * elflink.h (elf_link_add_object_symbols): Handle indirect and
5200 warning symbols. If any section is named .gnu.warning.XXX, treat
5201 the contents as a warning to be issued if the symbol XXX is
5202 referenced.
5203 (elf_link_output_extsym): For an indirect or warning symbol, just
5204 output the symbol it points to.
5205
5206 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
5207 if bfd_hash_allocate fails, since it will already be set.
5208 (generic_link_hash_newfunc): Likewise.
5209 (archive_hash_newfunc): Likewise.
5210 (hash_entry_bfd): New static function.
5211 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
5212 callback. Allocate a new warning using the hash table newfunc.
5213 Use bfd_hash_replace to update the entry in the hash table, rather
5214 than assuming we can copy the fields with structure assignment.
5215
5216 * hash.c (bfd_hash_replace): New function.
5217 * bfd-in.h (bfd_hash_replace): Declare.
5218 * bfd-in2.h: Rebuild.
5219
f14db880
JSC
5220Fri Sep 1 08:12:50 1995 James G. Smith <[email protected]>
5221
5222 * config.bfd: Add mips*vr4300-*-elf* target.
5223 * config/mipsbvr4300.mt: Added.
5224
1613e075 5225See file ChangeLog.2
e6d739eb 5226
41126f15
JK
5227\f
5228Local Variables:
5229mode: indented-text
5230left-margin: 8
6ec3bb6a
ILT
5231fill-column: 74
5232version-control: never
5233End:
This page took 1.018817 seconds and 4 git commands to generate.