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