* cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
e1aeb285
NC
1Sat Nov 22 15:16:00 1997 Nick Clifton <nickc@cygnus.com>
2
3 * coff-arm.c: Add support for PIC and APCS-FLOAT type binaries.
4
5 * coffcode.h: Add support for PIC and APCS-FLOAT type binaries.
6
f3fb08f6
ILT
7Sat Nov 22 16:06:56 1997 Klaus Kaempf <kkaempf@progis.de>
8
9 * evax-emh.c (_bfd_evax_write_emh): Use alloca instead of strdup.
10
fbf760a8
ILT
11Sat Nov 22 12:29:30 1997 Ian Lance Taylor <ian@cygnus.com>
12
be462f88
ILT
13 * sunos.c (sunos_add_one_symbol): When overriding a defined
14 symbol, set it to undefined, not new.
15
fbf760a8
ILT
16 * elf32-sh.c (sh_elf_relax_delete_bytes): Don't kill LABEL
17 relocs.
18
d627a674
RH
19Fri Nov 21 14:14:22 1997 Richard Henderson <rth@cygnus.com>
20
21 * coff-sh.c (sh_relax_section): Force sign extention of USES r_offset.
22 (sh_relax_delete_bytes): Don't kill LABEL relocs.
23
bf39c490
JL
24Mon Nov 17 15:08:38 1997 Jeffrey A Law (law@cygnus.com)
25
26 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo.
27 (mn10300_elf_relax_section): Likewise.
28
469e5960
FF
29Sat Nov 15 15:36:07 1997 Fred Fish <fnf@cygnus.com>
30
31 * peicode.h (coff_swap_aouthdr_in): Cast second arg of
32 bfd_h_get_* calls to "bfd_byte *".
33
34Tue Nov 11 10:37:23 1997 Jeffrey A Law (law@cygnus.com)
35
36 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
37 "movm_stack_size".
38 (mn10300_elf_relax_section): Include stack space for register saves
39 in the imm8 field of a "call" instruction.
40 (compute_function_info): Determine how much stack is allocated by
41 the movm instruction. Fix typo.
42 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
43
9793236c
ILT
44Mon Nov 10 14:32:40 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
45
46 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if
47 a version dependency could not be found.
48
d481c877 49Tue Nov 4 12:05:56 1997 Klaus K"ampf <kkaempf@progis.de>
aa9aa96f 50
d481c877 51 * configure.com: Get version info from configure.in
aa9aa96f 52
ccbab31d
RH
53Fri Oct 24 11:15:58 1997 Jakub Jelinek <jj@sunsite.mff.cuni.cz>
54
55 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data):
56 New function. Avoid mixing US1 and HAL R1 code.
57 Set resulting memory ordering to the strongest one used.
58 (sparc64_elf_object_p): Set bfd_mach correctly.
59
d87ad0dc
RH
60Thu Oct 23 14:09:33 1997 Richard Henderson <rth@cygnus.com>
61
62 * elf64-sparc.c (sparc64_elf_howto_table): Add UA64 & UA16.
63 (sparc64_elf_check_relocs): Handle them.
64 (sparc64_elf_relocate_section): Likewise. Before emitting a dyn reloc,
65 check alignment and transmute R_SPARC_x<->R_SPARC_UAx.
66
5e0c6aad
RH
67Thu Oct 23 00:53:14 1997 Richard Henderson <rth@dot.cygnus.com>
68
69 * configure.in (sparc*-*-linux*): Use trad-core and ...
70 * hosts/sparclinux.h: New file.
71
65c2dd6e
RH
72Thu Oct 23 00:25:29 1997 Richard Henderson <rth@dot.cygnus.com>
73
74 * config.bfd (sparc64-*-linux*): New target.
75
76 * elf-bfd.h (struct elf_backend_data): Add plt_alignment member.
77 * elflink.c (_bfd_elf_create_got_section): Set .got alignment based
78 on arch_size.
79 (_bfd_elf_create_dynamic_sections): Likewise for .rel* sections.
80 Set .plt alignment from new plt_alignment.
81 * elflink.h (elf_link_create_dynamic_sections): Set version section
82 alignment to LOG_FILE_ALIGN.
83 * elfxx-target.h (elf_backend_plt_alignment): Provide default.
84 (elfXX_bed): Init plt_alignment.
85
86 * elf64-sparc.c (sparc64_elf_check_relocs,
87 sparc64_elf_adjust_dynamic_symbol, sparc64_elf_size_dynamic_sections,
88 sparc64_elf_adjust_dynindx, sparc64_elf_finish_dynamic_symbol,
89 sparc64_elf_finish_dynamic_sections): New functions.
90 (sparc64_elf_howto_table): Fix a few name strings.
91 (ELF_DYNAMIC_INTERPRETER): New definition.
92 (sparc64_elf_relocate_section): Handle shared libraries.
93
94 * elf64-sparc.c (struct plt_template, plt_*_header, plt_*_entry,
95 sparc64_elf_build_plt_entry, sparc64_elf_finish_dynamic_symbol):
96 PLT definitions sparc64-linux originally choose. These will go
97 away soon in favour of the official abi definitions.
98
18ed85fd
ILT
99Wed Oct 22 16:08:45 1997 Ian Lance Taylor <ian@cygnus.com>
100
101 * coff-sh.c (coff_small_object_p): New static function.
102 (coff_small_new_section_hook): New static function.
103 (bfd_coff_small_swap_table): New static const structure.
104 (coff_small_close_and_cleanup): Define.
105 (coff_small_bfd_free_cached_info): Define.
106 (coff_small_get_section_contents): Define.
107 (coff_small_get_section_contents_in_window): Define.
108 (shcoff_small_vec): New static structure.
109 (shlcoff_small_vec): New static structure.
110 * targets.c (bfd_target_vector): Add shcoff_small_vec and
111 shlcoff_small_vec.
112 * config.bfd (sh-*-elf*): Add shcoff_small_vec and
113 shlcoff_small_vec to targ_selvecs.
114 (sh-*-*): Likewise.
115 * configure.in: Add shcoff_small_vec and shlcoff_small_vec cases.
116 * configure: Rebuild.
117
d5241511
ILT
118Mon Oct 20 15:01:27 1997 Klaus K"ampf <kkaempf@progis.de>
119
412222d9
ILT
120 * evax-egsd.c: Weak symbols are global.
121
122 * evax-emh.c: Use proper casts.
123
124 * evax-egsd.c (_bfd_evax_write_egsd): Remove unneeded uname.
125
126 * evax-egsd.c: Section names and symbols have different
127 length restrictions. Add length parameter to
128 _bfd_evax_length_hash_symbol.
129 * evax-etir.c: Likewise.
130 * evax-misc.c (_bfd_evax_length_hash_symbol): Add length
131 parameter.
132 * evax.h (EOBJ_S_C_SECSIZ): Define.
133
134 * evax-alpha.c: Remove duplicate test.
135
136 * evax-emh.c: SYS$ functions are upper-case.
137
138 * evax-egsd.c: Create separate sections for common symbols.
139 * evax-etir.c: Don't output common section.
140 * evax.h: Bump up section count.
141
142 * configure.com: Use 64bit integers with DEC C.
143
144 * evax-egsd.c: Make section flags dec c compatible.
d5241511 145
5efcd359
JL
146Mon Oct 20 09:38:31 1997 Jeffrey A Law (law@cygnus.com)
147
148 * som.c (normalize): Delete function.
149 (som_bfd_ar_write_symbol_stuff): New parameter elength. All callers
150 changed. Use passed in elength to determine size of the extended
151 name table instead of computing it again.
152
263378e7 153Sun Oct 19 23:36:21 1997 Jim Wilson <wilson@cygnus.com>
e232f1aa 154
263378e7
ILT
155 * peicode.h (coff_swap_scnhdr_out): Use |= not = to set
156 IMAGE_SCN_MEM_READ for an unrecognized section.
e232f1aa 157
27637913
JL
158Sun Oct 19 21:04:56 1997 Jeffrey A Law (law@cygnus.com)
159
160 * som.c (som_bfd_ar_write_symbol_stuff): Account for trailing
161 '/' in the extended name table.
162
bccab630
RH
163Fri Oct 17 00:04:13 1997 Richard Henderson <rth@cygnus.com>
164
165 * elflink.h (elf_link_assign_sym_version): For explicitly versioned
166 symbols, check globals list before matching on locals.
167
04e46812
MM
168Thu Oct 16 08:17:06 1997 Michael Meissner <meissner@cygnus.com>
169
3cd99cc6 170 * peicode.h (coff_swap_scnhdr_out,pe_print_idata): Fix mangled
04e46812
MM
171 patch.
172
c086885a
ILT
173Wed Oct 15 13:45:10 1997 Ian Lance Taylor <ian@cygnus.com>
174
fc1213aa
ILT
175 * peicode.h (pe_mkobject_hook): Set DLL flag.
176 (pe_bfd_copy_private_bfd_data): Copy DLL flag.
177
c086885a
ILT
178 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
179 for .stab* sections. Replace strlen of constant strings with
180 number.
181
d980a81f
RH
182Tue Oct 14 15:42:45 1997 Richard Henderson <rth@cygnus.com>
183
184 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): New function to
185 merge got and reloc entries from ind syms to their target.
186 (elf64_alpha_always_size_sections): Call it.
187 (elf64_alpha_check_relocs): Operate on the target of indirect symbols.
188 (elf64_alpha_can_merge_gots): Likewise.
189 (elf64_alpha_merge_gots): Likewise.
190
191 * elf64-alpha.c (elf64_alpha_relocate_section): Back out HJ's change,
192 as it is insufficient to handle the relocation changes as well.
193
6a587c4a
RH
194Mon Oct 13 23:10:08 1997 Richard Henderson <rth@cygnus.com>
195
196 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Allow for RELATIVE
197 relocs for symbols in shlibs that have been forced local.
198 (elf64_alpha_relocate_section): Output RELATIVEs in .got for same.
199
3a13dd8f
RH
200Mon Oct 13 21:24:04 1997 Richard Henderson <rth@cygnus.com>
201
6a587c4a 202 * elf64-alpha.c (elf64_alpha_relocate_section): Use the
3a13dd8f
RH
203 got_enties of the default symbol for the default versioned
204 symbol. Patch from hjl@gnu.ai.mit.edu, modified not to use
205 alloca in the loop.
206
c7eece07
NC
207Mon Oct 13 17:37:37 1997 Nick Clifton <nickc@cygnus.com>
208
209 * elf32-v850.c (v850_elf_final_link_relocate): Only use the bottom
210 24 bits of the PC when computing a PC relative relocation.
211
676d3f02
NC
212Fri Oct 10 16:01:30 1997 Nick Clifton <nickc@cygnus.com>
213
214 * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate):
215 Correct value for maximum positive 22 bit PC relative relocation.
216 (v850_elf_final_link_relocate): Prevent overflow from HI16_S and
217 HI_16 relocations. Correct bit adjustment in TDA offsets.
218
70e818d4
DE
219Thu Oct 9 16:43:39 1997 Doug Evans <dje@canuck.cygnus.com>
220
221 * elf64-sparc.c (sparc_elf_{hix22,lox10}_reloc): New functions.
222 (sparc64_elf_howto_table): Use them for HIX22,LOX10 relocs.
223
b0632d61
RH
224Wed Oct 8 11:38:45 1997 Richard Henderson <rth@cygnus.com>
225
226 * elfcore.h (bfd_prstatus): Pedanticly, alignment_power should
227 be LOG_FILE_ALIGN.
228
ba2934ce
RH
229Wed Oct 8 11:36:00 1997 Richard Henderson <rth@cygnus.com>
230
231 * config.bfd: Missed one alpha* change.
232
233Tue Oct 7 13:00:17 1997 Doug Evans <dje@canuck.cygnus.com>
234
235 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove BFD64 support.
236 * elf64-sparc.c (SPARC64_OLD_RELOCS): Undef.
237 (MINUS_ONE): New macro.
238 (sparc_elf_notsup_reloc): New function.
239 (sparc64_elf_howto_table): Add entries for DISP64,PLT64,HIX22,LOX10,
240 H44,M44,L44,REGISTER.
241 (sparc_reloc_map): Likewise. Map BFD_RELOC_CTOR to R_SPARC_64.
242 (init_insn_reloc): New function.
243 (sparc_elf_wdisp16_reloc): Use it.
244 (sparc64_elf_relocate_section): Add entries for OLO10,HIX22,LOX10.
245
758b6765
ILT
246Tue Oct 7 11:40:37 1997 Ian Lance Taylor <ian@cygnus.com>
247
248 * som.c (som_construct_extended_name_table): Remove static
249 function, and define as macro instead.
250
6b5f5d61
RH
251Fri Oct 3 14:02:17 1997 Richard Henderson <rth@cygnus.com>
252
253 * config.bfd: Change alpha-*-* to alpha*-*-*; config.guess now
254 recognizes alphaev5 etc.
255 * configure.host: Likewise.
256
9b5ec8b1
ILT
257Fri Oct 3 11:23:47 1997 Ian Lance Taylor <ian@cygnus.com>
258
927e3a30
ILT
259 Make ld -s work on AIX:
260 * xcofflink.c (xcoff_link_add_symbols): Don't create the .debug
261 section if we are stripping.
262 (bfd_xcoff_size_dynamic_sections): Don't set the .debug section
263 size if we are stripping.
264 (_bfd_xcoff_bfd_final_link): Don't set SEC_RELOC or rel_filepos,
265 and don't write out relocs, if we are stripping.
266 (xcoff_link_input_bfd): Don't set up reloc if we are stripping.
267 (xcoff_write_global_symbol): Don't write out symbol or reloc if we
268 are stripping.
269
d9eff006
ILT
270 * configure.in: Don't include elf.lo again for ELF targets; it's
271 always in the library anyhow.
272 * configure: Rebuild.
273
274 * bfd-in2.h: Rebuild.
275
9b5ec8b1
ILT
276 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Cast to bfd_byte *, not
277 char *, when calling bfd_get_32 and bfd_put_32.
278 * sunos.c (sunos_scan_dynamic_symbol): Cast contents to char *
279 when calling strcpy.
280
22b23d7d
DE
281Thu Oct 2 16:15:50 1997 Doug Evans <dje@canuck.cygnus.com>
282
283 * reloc.c (bfd_check_overflow): New function.
284 (bfd_perform_relocation, bfd_install_relocation): Use it.
285 (BFD_RELOC_SPARC_{DISP64,PLT64}): New relocs.
286 (BFD_RELOC_SPARC_{HIX22,LOX10,H44,M44,L44,REGISTER}): New relocs.
287 * bfd-in2.h: Regenerate.
288 * libbfd.h: Regenerate.
289
2fb4c89f
ILT
290Thu Oct 2 13:17:18 1997 Ian Lance Taylor <ian@cygnus.com>
291
292 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_READ for an
293 unrecognized section. From Jon Thackray <jont@harlequin.co.uk>.
294
7810074c
ILT
295Wed Oct 1 14:03:44 1997 Ian Lance Taylor <ian@cygnus.com>
296
9347808d
ILT
297 * Makefile.am ($(BFD_H)): Change stmp-bfd.h to stmp-bfd-h.
298 (stmp-bfd-h): Rename from stmp-bfd.h.
299 (BFD_H_FILES, LIBBFD_H_FILES, LIBCOFF_H_FILES): New variables.
300 ($(srcdir)/bfd-in2.h): Just depend upon stmp-bin2-h.
301 (stmp-bin2-h): New target.
302 ($(srcdir)/libbfd.h): Just depend upon stmp-lbfd-h.
303 (stmp-lbfd-h): New target.
304 ($(srcdir)/libcoff.h): Just depend upon stmp-lcoff-h.
305 (stmp-lcoff-h): New target.
306 (CLEANFILES): Change stmp-bfd.h to stmp-bfd-h. Add stmp-bin2.h,
307 stmp-lbfd-h, and stmp-lcoff-h.
308 * Makefile.in: Rebuild.
309
7810074c
ILT
310 * configure.in: Use a diversion to set enable_shared before the
311 arguments are parsed.
312 * configure: Rebuild.
313
a446b86d
DE
314Tue Sep 30 14:18:32 1997 Doug Evans <dje@canuck.cygnus.com>
315
316 * elf32-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
317 renamed to R_SPARC_UNUSED_42.
318 (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
319 * elf64-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
320 renamed to R_SPARC_UNUSED_42.
321 (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
322 * reloc.c (BFD_RELOC_SPARC_GLOB_JMP): Delete.
323 * bfd-in2.h: Regenerated.
324 * libbfd.h: Regenerated.
325
7810074c
ILT
326Thu Sep 25 12:15:02 1997 Ian Lance Taylor <ian@cygnus.com>
327
328 * elflink.h (elf_merge_symbol): Don't check the hash creator until
329 after we have set *sym_hash.
330
780a00c9
ILT
331Wed Sep 24 16:52:28 1997 Joel Sherrill <joel@oarcorp.com>
332
333 * config.bfd (sh*-*-rtems*): New target, like sh-*-*elf*.
334
805c3d70
ILT
335Wed Sep 24 11:27:23 1997 Ian Lance Taylor <ian@cygnus.com>
336
0035c8a0
ILT
337 * Makefile.am (libbfd_a_SOURCES): Define.
338 * Makefile.in: Rebuild.
339
805c3d70
ILT
340 * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
341 * aclocal.m4: Rebuild with new libtool.
342 * configure: Rebuild.
343
3099ef78
ILT
344Tue Sep 23 19:03:13 1997 Ian Lance Taylor <ian@cygnus.com>
345
346 * elf.c (map_sections_to_segments): Even if we are not demand
347 paged, don't put a loadable section after a nonloadable section.
348 (assign_file_positions_for_segments): Increment the file offset
349 for a section with contents, even if it is not loadable.
350
351start-sanitize-v850e
352Sun Sep 21 11:03:24 1997 Nick Clifton <nickc@cygnus.com>
353
354 * elf32-v850.c (v850_elf_final_link_relocate): Add return code
355 indicating that __ctbp could not be found.
356
357end-sanitize-v850e
55e6f0bf
NC
358Thu Sep 18 15:04:57 1997 Nick Clifton <nickc@cygnus.com>
359
360 * elf32-v850.c (v850_elf_check_relocs): Improve error message.
361
db1fa6ab 362Wed Sep 17 09:54:51 1997 Nick Clifton <nickc@cygnus.com>
9420c20a
NC
363start-sanitize-v850e
364
365 * elf32-v850.c (v850_elf_final_link_relocate, v850_elf_reloc,
366 v850_elf_check_relocs, v850_elf_reloc_map, v850_elf_howto_table):
367 Add support for the CALLT relocs.
368
369 * reloc.c (COMMENT): Add BFD_RELOC_V850_CALLT_6_7_OFFSET and
370 BFD_RELOC_V850_CALLT_16_16_OFFSET.
371end-sanitize-v850e
db1fa6ab
NC
372
373 * elf32-v850.c (v850_elf_final_link_relocate): Add checks to catch
374 relocations against non-existant symbols.
375
5bb28764
NC
376Tue Sep 16 14:20:27 1997 Nick Clifton <nickc@cygnus.com>
377
378 * reloc.c: Add BFR_RELOC_V850_TDA_16_16_OFFSET.
379
380 * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate,
381 v850_elf_howto_table, v850_elf_reloc_map): Add support for a 16
382 bit reloc in the tiny data area.
383
2199f848
KR
384start-sanitize-d30v
385Mon Sep 15 11:27:36 1997 Ken Raeburn <raeburn@cygnus.com>
386
387 Merged changes from Martin Hunt:
388
389 * elf32-d30v.c (bfd_elf_d30v_reloc): Change pc-relative relocs
390 over 2^32 bytes to be absolute. Needed because D30V PC doesn't
391 necessarily wrap.
392
393 * reloc.c, elf32-d30v.c (BFD_RELOC_D30V_9_PCREL,
394 BFD_RELOC_D30V_9_PCREL_R): New relocs.
395
396 * elf32-d30v.c (bfd_elf_d30v_reloc_21): New function.
397 Do 15 and 21 bit pc-relative relocations.
398 * reloc.c (BFD_RELOC_D30V_15_PCREL_R, BFD_RELOC_D30V_21_PCREL_R):
399 New relocations.
400
401 * elf32-d30v.c (bfd_elf_d30v_reloc): Addend needs to be
402 added to the relocation, not or'd.
403
404end-sanitize-d30v
43898c91
NC
405Wed Sep 10 15:17:25 1997 Nick Clifton <nickc@cygnus.com>
406
407 * elf32-v850.c (v850_elf_reloc): Remove spurious error message.
408
eaa9c2e7
AC
409Wed Sep 10 11:17:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
410
411 * archures.c (bfd_default_scan): Use strcasecmp.
412 (bfd_default_scan): Test for match with arch_name + ":" +
413 printable_name.
414 (bfd_default_scan): Test for match with printable_name - ":".
415 (bfd_default_scan): Delete w65, h8300, h8500, z8k, i960 special
416 cases. Each implements their own scan function.
417 (bfd_default_scan): Delete 386, 2900, 860, mips 2000, mips 4400
418 special cases. Since info->mach == 0. The test mach == number
419 fails.
420 (bfd_arch_list): New function, return name of all the supported
421 architectures.
422
98ab32a5
NC
423Tue Sep 9 10:21:56 1997 Nick Clifton <nickc@cygnus.com>
424
425 * elf32-v850.c (v850_elf_print_private_bfd_data): Break after
426 decoding architecture.
5ddf2a9e
NC
427 (v850_elf_reloc): Do not complain if a R_V850_LO16 reloc has bit
428 15 set.
98ab32a5 429
60b570d1
RH
430Sun Sep 7 12:25:22 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
431
432 * bfd/elf64-alpha.c (reloc_howto_type): Fix the howto table.
433
679bf0a2
ILT
434Thu Sep 4 09:44:10 1997 Ian Lance Taylor <ian@cygnus.com>
435
1732b93b
ILT
436 * Makefile.am: Rebuild dependencies.
437 (ALL_MACHINES_CFILES): Add cpu-v850.c.
438 (ALL_MACHINES_CFILES): Add elf32-v850.c.
439 * Makefile.in: Rebuild.
440
4878fa5b
ILT
441 * reloc.c: Remove extraneous commas from relocation entries.
442 Remove BFD_RELOC_V850_16_PCREL.
443 * bfd-in2.h: Rebuild.
444
679bf0a2
ILT
445 * xcofflink.c (xcoff_link_add_symbols): Put XTY_CM/XMC_TD symbols
446 in sections named .tocbss rather than .bss.
447
93f18857
NC
448Wed Sep 3 11:23:23 1997 Nick Clifton <nickc@cygnus.com>
449
450 * libbfd.h, bfd-in2.h, elf32-v850.c: Removed
451 BFD_RELOC_V850_16_PCREL.
452
c2d70826
FF
453Tue Sep 2 20:44:10 1997 Fred Fish <fnf@cygnus.com>
454
455 * cofflink.c (coff_link_check_ar_symbols): Handle C_SYSTEM syms
456 the same as C_EXT syms.
457 (coff_link_add_symbols): Ditto.
458 (_bfd_coff_link_input_bfd): Ditto.
459 (_bfd_coff_write_task_globals): Add save_global_to_static. Use
460 it to preserve and restore state of global_to_static flag.
461
8bef8c30
NC
462Tue Sep 2 17:45:22 1997 Nick Clifton <nickc@cygnus.com>
463
464 * elf32-v850.c (v850_elf_object_p): Set machine number based on
465 bits in e_flags field rather than magic numbers.
466 (v850_elf_final_write_processing, v850_elf_set_private_flags,
467 v850_elf_copy_private_bfd_data, v850_elf_merge_private_bfd_data,
468 v850_elf_print_private_bfd_data): New functions.
469
470start-sanitize-v850e
471Tue Sep 2 17:43:49 1997 Nick Clifton <nickc@cygnus.com>
472
473 * elf.c (prep_headers): Remove V850E magic number.
8bef8c30 474 * elf.c (prep_headers): Remove V850EQ magic number.
8bef8c30
NC
475end-sanitize-v850e
476
1c0e698e
DE
477Tue Sep 2 17:35:05 1997 Doug Evans <dje@canuck.cygnus.com>
478
479 * cpu-arc.c (arc_get_mach): Properly scan defined mach entries.
480
a9d67a88
JL
481Tue Sep 2 18:29:37 1997 Jeffrey A Law (law@cygnus.com)
482
483 * elf-m10200.c (mn10200_elf_final_link_relocate): PC relative
484 instructions are relative to the next instruction, not the
485 current instruction.
486 (mn10200_elf_relax_section): Similarly.
487
def31039
NC
488Tue Sep 2 15:45:45 1997 Nick Clifton <nickc@cygnus.com>
489
490 * cpu-v850.c: Use a macro to construct bfd_arch_info_type
491 entries.
492
493 * reloc.c, libbfd.h, bfd-in2.h, elf32-v850.c: Replace
494 BFD_RELOC_V850_{SDA/TDA/ZDA}_OFFSET relocs with new bit pattern
495 specific versions: BFD_RELOC_V850_{area}_{bits}_OFFSET.
496
f40d28bf
AC
497Thu Aug 28 17:01:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
498
499 * cpu-v850.c: Remove "plain" from v850 printable name.
500 (scan): Use strcasecmp.
501
502 * archures.c (bfd_mach_v850): Define.
503
504 * cpu-sh.c (scan_mach): Compare with table instead of hardwired to
505 just sh/SH, use strcasecmp.
506 (arch_info_struct): Add entries for sh3 et.al.
507
508 * archures.c (bfd_mach_sh, ...): Define.
509
2f88c324
AC
510Wed Aug 27 17:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
511
512 * archures.c (bfd_archures_list): Always NULL terminate the list.
513
2c66160c
ILT
514Tue Aug 26 17:26:51 1997 Ian Lance Taylor <ian@cygnus.com>
515
099ddbf1
ILT
516 * Makefile.am: Rebuild dependencies.
517 (ALL_MACHINES_CFILES): Add cpu-arc.c.
518 (ALL_MACHINES_CFILES): Add elf32-arc.c.
519 (elf32-arc.lo): Remove explicit dependency.
520 * Makefile.in: Rebuild.
521
2c66160c
ILT
522 * acinclude.m4 (BFD_CC_FOR_BUILD): Set EXEEXT_FOR_BUILD.
523 * doc/Makefile.am (MKDOC): Use EXEEXT_FOR_BUILD, not EXEEXT.
524 * aclocal.m4, configure, Makefile.in, doc/Makefile.in: Rebuild.
525
70e8e585
CP
526Mon Aug 25 16:14:34 1997 Christopher Provenzano <proven@cygnus.com>
527
528 * configure: Rebuild with latest devo autoconf for NT support
529
04f295b6
NC
530Mon Aug 25 16:11:04 1997 Nick Clifton <nickc@cygnus.com>
531
532 * cpu-arm.c (compatible): If B is a default type, return A.
533
8988d935 534Mon Aug 25 15:35:46 1997 Nick Clifton <nickc@cygnus.com>
591ebe42 535
8988d935
NC
536 * cpu-v850.c (scan): New function.
537 (arch_info_struct): New structure.
538 (bfd_v850_arch): Add link into arch_info_structure.
591ebe42 539
8988d935
NC
540 * config.bfd (targ_cpu): All v850 variants use the bfd_arch_v850
541 architecture.
845c40d5 542
8988d935
NC
543 * elf32-v850.c (v850_elf_object_p): New function.
544
545start-sanitize-v850e
546 * archures.c (bfd_mach_v850e): Machine value for v850e.
547
548 * bfd-in2.h (bfd_mach_v850e): Machine value for v850e.
549
550 * elf32-v850.c (ELF_MACHINE_CODE): Default to v850e machine
551 number.
552
553 * elf.c (prep_headers): Add support for v850e machine number.
15d82b26 554
8988d935
NC
555 * archures.c (bfd_mach_v850eq): Machine value for v850eq.
556
557 * bfd-in2.h (bfd_mach_v850eq): Machine value for v850eq.
558
559 * elf32-v850.c (ELF_MACHINE_CODE): Default to v850eq machine
560 number.
561
562 * elf.c (prep_headers): Add support for v850eq machine number.
15d82b26 563end-sanitize-v850e
2cf9a0d0 564
8988d935
NC
565Mon Aug 25 14:07:33 1997 Ian Lance Taylor <ian@cygnus.com>
566
567 * syms.c (_bfd_stab_section_find_nearest_line): Clear the
568 cached_stab field if the offset prevents us from using the cache.
845c40d5 569
a0682677
ILT
570Mon Aug 25 12:08:13 1997 Ian Lance Taylor <ian@cygnus.com>
571
572 * aout-target.h (MY(vec)): Add SEC_CODE and SEC_DATA to section
573 flags.
574 * aout-arm.c (aout_arm_little_vec): Likewise.
575 (aout_arm_big_vec): Likewise.
576 * bout.c (b_out_vec_big_host): Likewise.
577 (b_out_vec_little_host): Likewise.
578 * mipsbsd.c (aout_mips_little_vec): Likewise.
579 (aout_mips_big_vec): Likewise.
580
581start-sanitize-tic80
582Tue Aug 19 10:09:10 1997 Fred Fish <fnf@cygnus.com>
583
584 * coff-tic80.c (COFF_ALIGN_IN_SFLAGS): Define to 1.
585 * coffcode.h (styp_to_sec_flags): Ignore incoming STYP_INFO
586 bit in s_flags if COFF_ALIGN_IN_S_FLAGS is defined.
587
588end-sanitize-tic80
c4188c2a
FF
589Tue Aug 19 08:47:17 1997 Fred Fish <fnf@cygnus.com>
590
591 * coff-i960.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
592 (GET_SCNHDR_ALIGN, PUT_SCNHDR_ALIGN): Define.
593 * coff-m88k.c (GET_SCNHDR_NRELOC, GET_SCNHDR_NLNNO): Define.
594 * coffcode.h (coff_set_alignment_hook): Conditionally compile in if
595 COFF_ALIGN_IN_SECTION_HEADER is defined. Convert alignment to power
596 of two for I960 only.
597 * coffswap.h (GET_SCNHDR_NRELOC, PUT_SCNHDR_NRELOC, GET_SCNDHR_NLNNO,
598 PUT_SCNHDR_NLNNO, GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Provide
599 default definitions.
600 (coff_swap_scnhdr_in): Use GET_SCNHDR_FLAGS, GET_SCNHDR_NRELOC,
601 GET_SCNHDR_NLNNO, and GET_SCNHDR_ALIGN.
602 (coff_swap_scnhdr_out): Use PUT_SCNHDR_FLAGS, PUT_SCNHDR_ALIGN.
603start-sanitize-tic80
604 * Makefile.in (coff-tic80.o): Depends upon coffswap.h.
605 * coff-tic80.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
606 (GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Define
607 *coffcode.h (coff_write_object_contents): Set alignment field in
608 section header for TIC80COFF files.
609end-sanitize-tic80
610
def47b53
NC
611Mon Aug 18 11:36:19 1997 Nick Clifton <nickc@cygnus.com>
612
613 * elf32-v850.c (v850_elf_howto_table, v850_elf_reloc_map,
614 v850_elf_check_relocs, v850_elf_reloc,
615 v850_elf_final_link_relocate): Add support for
616 BFD_RELOC_V850_16_PCREL relocation.
617
618 * reloc.c (COMMENT): Add suuport for BFD_RELOC_V850_16_PCREL
619 relocation.
620
621 * libbfd.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
622
623 * bfd-in2.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
def47b53
NC
624
625start-sanitize-v850e
626Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
627
628 * cpu-v850e: New file.
629
630 * elf.c (prep_headers): Add support for v850e target.
631
632 * bfd-in2.h (bfd_architecture): Add support for v850e target.
633
634 * config.bfd: Add support for v850e target.
635
636 * archures.c: Add support for v850e target.
def47b53 637
def47b53
NC
638Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
639
640 * cpu-v850eq: New file.
641
642 * elf.c (prep_headers): Add support for v850eq target.
643
644 * bfd-in2.h (bfd_architecture): Add support for v850eq target.
645
646 * config.bfd: Add support for v850eq target.
647
648 * archures.c: Add support for v850eq target.
15d82b26 649end-sanitize-v850e
def47b53 650
00c7247b
ILT
651Fri Aug 15 12:01:28 1997 Ian Lance Taylor <ian@cygnus.com>
652
653 * coffgen.c (coff_find_nearest_line): Correctly handle the offset
654 argument as section relative, rather than an absolute address.
655 From Jan Hoogenraad <hoogenrd@natlab.research.philips.com>.
656
76af94b9
DE
657Fri Aug 15 04:58:02 1997 Doug Evans <dje@canuck.cygnus.com>
658
659 * config.bfd (arc-*-elf*): Add.
660 * configure.in (bfd_elf32_{little,big}arc_vec): Add.
661 * configure: Rebuild.
662 * Makefile.am (ALL_MACHINES): Add cpu-arc.lo.
663 (BFD32_BACKENDS): Add elf32-arc.lo.
664 (cpu-arc.lo,elf32-arc.lo): Add rules for.
665 * Makefile.in: Rebuild.
666 * archures.c (architecture list): Add bfd_arch_arc.
667 (bfd_archures_list): Add bfd_arc_arch.
668 (bfd_mach_arc_base): Define.
669 * reloc.c (BFD_RELOC_ARC_B22_PCREL,BFD_RELOC_ARC_B26): Add.
670 * targets.c (bfd_elf32_{little,big}arc_vec): Declare.
671 (bfd_target_vect): Add them.
672 * bfd-in2.h, libbfd.h: Rebuild.
673 * cpu-arc.c, elf32-arc.c: New files.
674 * elf.c (pre_headers): Recognize bfd_arch_arc.
675
676Tue Aug 12 11:45:18 1997 Ian Lance Taylor <ian@cygnus.com>
677
678 * aoutx.h (NAME(aout,final_link)): If no symbols, make sure the
679 data section is correctly rounded to a page in the file.
680
6ccdc203
ILT
681Mon Aug 11 12:45:43 1997 Ian Lance Taylor <ian@cygnus.com>
682
683 * aoutx.h (NAME(aout,final_link)): Don't emit the string table if
684 there are no symbols.
685
2af5a7e4
ILT
686Sun Aug 10 14:45:56 1997 Ian Lance Taylor <ian@cygnus.com>
687
688 * coff-stgo32.c: Rename from coff-stubgo32.c to avoid old System V
689 file system 14 character limit.
690 * Makefile.am, configure.in: Corresponding changes.
691 * Makefile.in, configure: Rebuild.
692
693Fri Aug 8 18:34:36 1997 Ian Lance Taylor <ian@cygnus.com>
694
695 * Makefile.am: (ALL_MACHINES_CFILES): Add elf32-d10v.c.
696 Rebuild dependencies.
697 * Makefile.in: Rebuild.
698
c40331ba
ILT
699Wed Aug 6 18:56:51 1997 Ian Lance Taylor <ian@cygnus.com>
700
701 * Makefile.am (docdir): Define.
702 * Makefile.in: Rebuild.
703
097fd78a
ILT
704Tue Aug 5 23:05:03 1997 Ian Lance Taylor <ian@cygnus.com>
705
706 * configure: Rebuild with autoconf 2.12.1.
707
708Mon Aug 4 12:00:35 1997 Ian Lance Taylor <ian@cygnus.com>
709
710 * aclocal.m4, configure: Rebuild with new automake patches.
711
e6071dc5
PS
712Sun Aug 3 08:15:12 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
713
714 * rs6000-core.c (make_bfd_asection): New function to add a section
715 to the core file bfd.
716 (rs6000coff_core_p): Use make_bfd_asection to add the core file
717 sections.
718 Use BFD routines to seek, read and stat the core file.
719 Handle .data sections from loaded objects and anonymously mmapped
720 regions, these are available in AIX 4 core files.
721
aa13d30d
ILT
722Fri Aug 1 12:58:32 1997 Ian Lance Taylor <ian@cygnus.com>
723
724 * configure.in: Set enable_shared before AM_PROG_LIBTOOL.
725 * acinclude.m4: Move acmacros.m4 in here. Remove AM_PROG_LIBTOOL
726 copy; use a patches libtool instead.
727 * acmacros.m4: Remove.
728 * Makefile.in, aclocal.m4, configure: Rebuild.
729
c0734708
ILT
730Thu Jul 31 19:55:36 1997 Ian Lance Taylor <ian@cygnus.com>
731
732 * Makefile.am: New file, based on old Makefile.in.
5e377ed2
ILT
733 * acmacros.m4: New file, copied from old aclocal.m4.
734 * acinclude.m4: New file.
735 * configure.in: Call AM_PROG_LIBTOOL. Remove shared library
736 handling; now handled by libtool. Replace AC_CONFIG_HEADER with
737 AM_CONFIG_HEADER. Replace AC_PROG_INSTALL with AM_PROG_INSTALL.
738 Call AM_MAINTAINER_MODE, AM_CYGWIN32, and AM_EXEEXT. Change all
739 .o files to .lo. Remove stamp-h handling in AC_OUTPUT.
c0734708
ILT
740 * acconfig.h: Mention PACKAGE and VERSION.
741 * stamp-h.in: New file.
742 * dep-in.sed: Change .o to .lo.
743 * Makefile.in: Now built with automake.
744 * aclocal.m4: Now built with aclocal.
745 * config.in, configure: Rebuild.
9df51f4f 746 * VERSION: Remove.
c0734708 747
3745ac6d
ILT
748Thu Jul 31 12:09:20 1997 Geoff Keating <geoffk@ozemail.com.au>
749
750 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Don't set TEXTREL
751 if there is only a relocation to a read-only but not allocatable
752 section (like .stab).
753 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
754 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
755 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
756 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
757 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
758
759 * elf32-ppc.c (ppc_elf_howto_raw): Correct various comments.
760 (ppc_elf_create_linker_section): These sections are not
761 created by the linker (that is, they are created by the user
762 putting data in them). In particular, they can be the source
763 and target of relocations.
764 (ppc_elf_adjust_dynamic_symbol): Check postcondition of
765 bfd_elf32_link_record_dynamic_symbol. Align 16-byte common
766 objects (for instance, 'long double') to 16-byte boundaries.
767 (ppc_elf_size_dynamic_sections): Make the code that generates
768 section symbols exactly the same as for sparc, reducing the
769 number of section symbols output.
770 (ppc_elf_check_relocs): Check postcondition of
771 bfd_elf32_link_record_dynamic_symbol. Make default case the
772 same as corresponding code for sparc, fixing bug involving
773 .rela.stabs.
774 (ppc_elf_finish_dynamic_symbol): Fix case involving GOT symbols
775 forced to be local because of versioning (by replicating
776 corresponding change in sparc). Treat R_PPC_RELATIVE RELA relocs
777 as usual in ELF, not as pseudo-REL relocs (as the sparc linker
778 does).
779 (ppc_elf_relocate_section): Add handy debugging code for when
780 assertion fails. Add some more 'symbol made local because of
781 versioning' cases.
782
783 * elf32-ppc.c (ppc_elf_relocate_section): Cope with addend when
784 processing a GOT relocation as required by ABI.
785
13eb6306
ILT
786Wed Jul 30 21:30:35 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
787
788 * elflink.h (NAME(bfd_elf,record_link_assignment)): Remove any
789 version info if this symbol came from a dynamic object.
790 (elf_link_add_object_symbols): Set the version info of a symbol
791 only if the object actually contains version definitions and
792 defines this symbol.
793
b1ee3d6a
RS
794Mon Jul 28 18:07:43 1997 Rob Savoye <rob@chinadoll.cygnus.com>
795
796 * aclocal.m4: Add CYGWIN and EXEEXT autoconf macros.
797 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
798 win32 dependencies.
799 * configure: Regenerated with autoconf 2.12.
800 * doc/Makefile.in: Add $(EXEEXT) to chew executable.
801
f366291b
PS
802Mon Jul 28 02:50:29 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
803
804 * rs6000-core.c (rs6000coff_core_p): If CORE_TRUNC is set, print
805 a warning rather than returning an error.
806
8dbbb8be
FL
807Sun Jul 27 19:54:14 1997 Felix Lee <flee@cygnus.com>
808
809 * coffswap.h (coff_swap_aux_in): add semicolon to make MSVC happy.
810
3e94ea70
FL
811Fri Jul 25 14:50:08 1997 Felix Lee <flee@cygnus.com>
812
813 * cisco-core.c: define signals for wingdb.
814
fbd550db
ILT
815Fri Jul 25 16:27:07 1997 Ian Lance Taylor <ian@cygnus.com>
816
817 * ecofflink.c (bfd_ecoff_debug_accumulate): Only merge files with
818 the same number of aux entries.
819
491501de
JL
820Fri Jul 25 08:22:15 1997 Jeffrey A Law (law@cygnus.com)
821
822 * som.c (hppa_som_gen_reloc_type): Use R_DATA_EXPR for the
823 difference of two symbols if the relocation size is 32 bits.
824 (som_write_fixups): Handle R_DATA_EXPR.
825
1868acf8
ILT
826Wed Jul 23 16:08:02 1997 Ian Lance Taylor <ian@cygnus.com>
827
828 * coff-i386.c (coff_i386_reloc): Don't offset a common symbol by
829 its value if COFF_WITH_PE is defined.
830
e8640d5e
ILT
831Tue Jul 22 17:19:45 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
832
179ce6e1
ILT
833 * coff-stubgo32.c: New file.
834 * go32stub.h: New file.
835 * coff-i386.c: If COFF_GO32_EXE, include coff/go32exe.h.
e8640d5e
ILT
836 * coffswap.h (coff_swap_filehdr_in): Invoke
837 COFF_ADJUST_FILEHDR_IN_PRE and COFF_ADJUST_FILEHDR_IN_POST if they
838 are defined.
839 (coff_swap_filehdr_out): Invoke COFF_ADJUST_FILEHDR_OUT_PRE and
840 COFF_ADJUST_FILEHDR_OUT_POST if they are defined.
841 (coff_swap_aux_in): Invoke COFF_ADJUST_AUX_IN_PRE and
842 COFF_ADJUST_AUX_IN_POST if they are defined.
843 (coff_swap_aux_out): Invoke COFF_ADJUST_AUX_OUT_PRE and
844 COFF_ADJUST_AUX_OUT_POST if they are defined.
845 (coff_swap_scnhdr_in): Invoke COFF_ADJUST_SCNHDR_IN_PRE and
846 COFF_ADJUST_SCNHDR_IN_POST if they are defined.
847 (coff_swap_scnhdr_out): Invoke COFF_ADJUST_SCNHDR_OUT_PRE and
848 COFF_ADJUST_SCNHDR_OUT_POST if they are defined.
179ce6e1
ILT
849 * targets.c (go32stubbedcoff_vec): Declare.
850 (bfd_target_vector): Add go32stubbedcoff_vec.
851 * configure.in (go32coff_vec): New target vector.
852 (go32stubbedcoff_vec): Likewise.
88a25e44
ILT
853 * config.bfd (i[3456]86-*-msdosdjgpp*): New target.
854 (i[3456]86-*-go32*): Change to be like new msdosdjgpp*.
179ce6e1
ILT
855 * Makefile.in: Rebuild dependencies.
856 (BFD32_BACKENDS): Add coff-stubgo32.o.
857 (BFD32_BACKENDS_CFILES): Add coff-stubgo32.c.
858 (HFILES): Add go32stub.h.
e8640d5e 859
60f1ad85
ILT
860Tue Jul 22 15:09:12 1997 Ian Lance Taylor <ian@cygnus.com>
861
862 * configure.in: Check for fdopen.
863 * configure, config.in: Rebuild.
864 * opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or
865 __GO32__. Reindent a bit.
866
f1c88b48
ILT
867Sun Jul 20 20:05:20 1997 Ian Lance Taylor <ian@cygnus.com>
868
869 * sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATED
870 flag for newly created sections.
871 (sunos_add_dynamic_symbols): Don't discard newly created sections
872 if shared library is dynobj.
873
3fc2c146
ILT
874Mon Jul 14 15:33:55 1997 Ian Lance Taylor <ian@cygnus.com>
875
876 * elf.c (map_sections_to_segments): When checking whether
877 including a section in a segment would force us to skip a page,
878 align the address of the next segment to avoid wraparound
879 problems.
880
7f2e6854
FF
881start-sanitize-tic80
882Tue Jul 8 12:11:29 1997 Fred Fish <fnf@cygnus.com>
883
884 * coffcode.h (coff_write_object_contents): Initialize
885 target id field to TIC80_TARGET_ID.
886 * coffswap.h (coff_swap_filehdr_out): Swap out target id field
887 if used.
888 (coff_swap_filehdr_in): Swap in target id field if used.
889
890end-sanitize-tic80
40496096
ILT
891Mon Jul 7 16:41:20 1997 Ian Lance Taylor <ian@cygnus.com>
892
893 * coff-i386.c (coff_i386_is_local_label_name): New static function
894 if TARGET_UNDERSCORE.
895 (coff_bfd_is_local_label_name): Define if TARGET_UNDERSCORE.
896 (i386coff_vec): Add SEC_CODE and SEC_DATA to section_flags.
897
01da2d52
ILT
898Mon Jun 30 14:29:26 1997 Ian Lance Taylor <ian@cygnus.com>
899
900 * elf32-m68k.c (howto_table): Use complain_overflow_bitfield, not
901 complain_overflow_signed, for 32 bit PC relative relocations.
902
8211c929
ILT
903Thu Jun 26 01:26:31 1997 Ian Lance Taylor <ian@cygnus.com>
904
677525e9
ILT
905 * elflink.h (elf_link_add_object_symbols): When a version
906 indirection symbol is overridden, make the original symbol point
907 at the real overriding symbol.
908
20db2495
ILT
909 * elf.c (bfd_elf_string_from_elf_section): Check for an invalid
910 string index.
911
8211c929
ILT
912 * elflink.h (elf_link_output_extsym): Use the right section for a
913 common symbol.
914 * elf32-mips.c (mips_elf_link_output_symbol_hook): If a common
915 symbol was in .scommon, mark it as SHN_MIPS_SCOMMON.
916
0ac96a37
ILT
917Wed Jun 25 12:43:10 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
918
e9982ee5
ILT
919 * elflink.h (elf_merge_symbols): Resolve indirect and warning
920 symbols before checking for new symbols.
921
0ac96a37
ILT
922 * elfcore.h (elf_corefile_note): Move out of HAVE_SYS_PROCFS_H.
923
a90f6864
ILT
924Tue Jun 24 11:20:43 1997 Ian Lance Taylor <ian@cygnus.com>
925
926 * coffgen.c (coff_object_p): Read the f_opthdr bytes from the
927 file, not aoutsz bytes (they are different in XCOFF .o files).
928
929 * xcofflink.c (xcoff_link_add_symbols): Permit symbols to be
930 redefined by objects included from archives.
931
044d7d49
ILT
932Mon Jun 23 18:03:27 1997 Ian Lance Taylor <ian@cygnus.com>
933
541a4b54
ILT
934 * elflink.h (elf_merge_symbol): In the case of a new defined
935 symbol overriding an old defined symbol, return the hash table
936 entry which we modify, even if it is the target of an
937 indirection.
938 (elf_link_add_object_symbols): If the real name of the symbol gets
939 overridden, convert the versioned symbol into an indirect symbol
940 to the real symbol.
941
044d7d49
ILT
942 * elflink.h (elf_merge_symbol): New static function, broken out of
943 elf_link_add_object_symbols.
944 (elf_link_add_object_symbols): Call it.
945
3ce6d941
ILT
946Sun Jun 22 19:40:57 1997 Ian Lance Taylor <ian@cygnus.com>
947
948 * coff-i386.c (i3coff_object_p): If COFF_IMAGE_WITH_PE, hack to
949 handle case where COFF filehdr does not immediately follow PE
950 header.
951 * coffgen.c (coff_object_p): Remove useless seek to current
952 location.
953
ba0e3b78
ILT
954Wed Jun 18 19:03:38 1997 Ian Lance Taylor <ian@cygnus.com>
955
956 * linker.c (link_action): Change COMMON_ROW/indr to from CREF to
957 REFC.
958
ac44b2b9
ILT
959Tue Jun 17 11:55:02 1997 Ian Lance Taylor <ian@cygnus.com>
960
961 * cofflink.c (_bfd_coff_link_input_bfd): If stripping debugging
962 symbols, skip N_ABS symbols with debugging storage classes.
963
b6eb341b
ILT
964Mon Jun 16 18:56:27 1997 Geoff Keating <geoffk@ozemail.com.au>
965
966 * elf32-ppc.c (ppc_elf_relocate_section): Don't emit R_PPC_REL*
c1292d9b
ILT
967 relocs in shared libraries which refer to local symbols. Cope
968 with addend when processing a GOT relocation.
b6eb341b
ILT
969
970 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Only create symbols
971 for sections that the linker didn't create.
972 (ppc_elf_finish_dynamic_sections): Only try to write out a section
c1292d9b 973 symbol if it was created in ppc_elf_size_dynamic_sections.
b6eb341b
ILT
974 (ppc_elf_relocate_section): Complain if we have to generate a reloc
975 relative to a section for which we didn't output a symbol.
976
977 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Clean up. PLT
c1292d9b
ILT
978 relocs are 'rela' relocs, like everything else. .rela.plt is not
979 a read-only section, so we don't have to special-case it.
b6eb341b
ILT
980
981 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the
982 .rela.bss section are (of course) 'rela' relocs not 'rel' relocs.
983
984 * elf32-ppc.c (ppc_elf_check_relocs): Initialise srelgot.
985 (ppc_elf_relocate_section): @got offsets are 4 from start of the
986 actual .got section.
987 * elflink.c (_bfd_elf_create_got_section): The three reserved
988 words start from the symbol '_GLOBAL_OFFSET_TABLE_'.
989
990 * elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5
991 characters, not 4.
992
993 * elf32-ppc.c (ppc_elf_check_relocs): Use
994 _bfd_elf_create_got_section to create the GOT rather than
995 ppc_elf_create_linker_section. Create the '.rela.got' section
996 ourselves.
997 (ppc_elf_finish_dynamic_symbol): Set up GOT relocations when a
998 symbol has a GOT entry.
999 (ppc_elf_relocate_section): Record when a symbol is used through
1000 the GOT, and allocate space in the GOT for each such symbol.
1001 (ppc_elf_adjust_dynamic_symbol): Delete unused .got.plt stuff.
1002 (ppc_elf_create_linker_section): Delete unused LINKER_SECTION_GOT
1003 stuff.
1004
1005 * elf32-ppc.c (ppc_elf_howto_raw): GOT16_HA relocs should be
1006 treated in a similar way to ADDR16_HA relocs.
1007 (ppc_elf_relocate_section): PLTREL24 relocs do not get copied into
1008 shared objects; the linker must deal with them.
1009 (ppc_elf_create_linker_section): Stop setting
1010 _GLOBAL_OFFSET_TABLE_ to the wrong value; delete unused
1011 LINKER_SECTION_PLT stuff.
1012 (ppc_elf_check_relocs): Delete unused LINKER_SECTION_PLT stuff.
1013 (ppc_elf_finish_dynamic_sections): Use BFD calls to get GOT
1014 section, not ELF-specific calls.
1015 (elf_backend_plt_not_loaded): Set to 1.
1016 (elf_backend_got_symbol_offset): Set to 4.
1017 * elf-bfd.h (elf_backend_data): Add 'plt_not_loaded' member
1018 for when ld.so fills in the PLT; and 'got_symbol_offset' member.
1019 * elflink.c (_bfd_elf_create_dynamic_sections): Apply
1020 plt_not_loaded member.
1021 (_bfd_elf_create_got_section): Apply got_symbol_offset.
1022 * elfxx-target.h (elf_backend_plt_not_loaded): Set default to
1023 'loaded'.
1024 (elf_backend_G_O_T_offset): Set default to 0.
1025 (elfNN_bed): Set added fields.
1026
1027 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting
1028 DT_RELENT in shared objects; should be DT_RELAENT.
1029
1030 * elf32-ppc.c (ppc_elf_relocate_section): Propagate
1031 R_PPC_ADDR16_HA relocs to shared objects. Cope with case where
1032 such a reloc (in a non-shared object) refers to a symbol that's
1033 not defined.
1034
fdc944a7
ILT
1035Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1036
1037 * elfcode.h (put_signed_word): Define.
1038 (get_signed_word): Define.
1039 (elf_swap_reloca_in): Use get_signed_word for the r_addend field.
1040 (elf_swap_reloca_out): Use put_signed_word for the r_addend
1041 field.
1042 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use
1043 bfd_get_signed_32 to set the r_addend field.
1044 * elf64-mips.c (mips_elf64_swap_reloca_in): Use
1045 bfd_h_get_signed_64 to set the r_addend field.
1046
c19fbe0f
ILT
1047Mon Jun 16 12:31:29 1997 Ian Lance Taylor <ian@cygnus.com>
1048
90d7b9b9
ILT
1049 * elf32-i386.c (elf_i386_relocate_section): When generating a
1050 shared library, do the relocation if the input section is not
1051 allocated in memory.
1052
c19fbe0f
ILT
1053 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call
1054 elf_link_assign_sym_version before elf_adjust_dynamic_symbol.
1055 (elf_fix_symbol_flags): New static function, broken out of
1056 elf_adjust_dynamic_symbol.
1057 (elf_adjust_dynamic_symbol): Call elf_fix_symbol_flags.
1058 (elf_link_assign_sym_version): Likewise. Permit a symbol to be
1059 forced local even if NEEDS_PLT is set. When forcing a symbol to
1060 be local, clear NEEDS_PLT.
1061 (elf_link_output_extsym): Remove unused local bed.
1062
bb2a6cfb
JL
1063Wed Jun 11 22:44:20 1997 Jeffrey A Law (law@cygnus.com)
1064
1065 * elf32-mn10300.c (elf32_mn10300_link_hash_entry): New structure
1066 for derived elf linker hash table entries. References to
1067 elf_link_hash_entry changed appropriately.
1068 (elf32_mn10300_link_hash_table): New structure for derived elf
1069 linker hash table.
1070 (elf32_mn10300_hash_table): Define.
1071 (elf32_mn10300_link_hash_traverse): Likewise.
1072 (elf32_mn10300_link_hash_newfunc): New function.
1073 (elf32_mn10300_link_hash_table_create): Likewise.
1074 (elf32_mn10300_finish_hash_table_entry): Likewise.
1075 (mn10300_elf_relax_section): Handle "call" -> "calls", removal
1076 of prologue code, and call:32->call:16 relaxing.
1077 (compute_function_info: New function.
1078 (bfd_elf32_bfd_ilink_hash_table_create): Define.
1079
6a1878c9
ILT
1080Wed Jun 11 00:00:07 1997 Ian Lance Taylor <ian@cygnus.com>
1081
8519ea21
ILT
1082 * elflink.h (elf_link_output_extsym): Call finish_dynamic_symbol
1083 for a symbol which is being forced to be local.
1084 * elf32-i386.c (elf_i386_relocate_section): Write out the
c1292d9b
ILT
1085 relocation value for a GOT reloc for a symbol which is turning
1086 into a local symbol.
8519ea21
ILT
1087 (elf_i386_finish_dynamic_symbol): If a symbol is turning into a
1088 local symbol, write out a RELATIVE reloc rather than a GLOB_DAT
1089 reloc.
1090 * elf32-m68k.c, elf32-sparc.c: Corresponding changes.
1091
6a1878c9
ILT
1092 * elf32-i386.c (elf_i386_relocate_section): Get the relocation
1093 value if the symbol is turning into a local symbol.
1094 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1095 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1096
601acd61
UD
10971997-06-10 22:58 Ulrich Drepper <drepper@cygnus.com>
1098
1099 * elflink.h (elf_link_add_object_symbols): Also read verneed
1100 information by calling `_bfd_elf_slurp_version_tables'.
1101 (elf_link_add_object_symbols): For undefined symbols look for
8519ea21 1102 version information in the verneed records.
601acd61
UD
1103 (elf_link_add_object_symbols): Use soname of shared object
1104 for verneed record if it is available.
1105
ba383e02
ILT
1106Tue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1107
1108 * cpu-arm.c: Add prototypes for compatible and scan.
1109 * cofflink.c: Add prototype for mark_relocs.
1110
1111 * archive.c (bfd_special_undocumented_glue): Change filename to
1112 const pointer. Add prototype.
1113
94e05b00
ILT
1114Mon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1115
1116 * elflink.h (elf_link_add_object_symbols): Ignore relocations of
1117 sections that will be discarded.
1118
cf2cd4cf
UD
11191997-06-06 22:58 Ulrich Drepper <drepper@cygnus.com>
1120
1121 * elflink.h (elf_link_find_version_dependencies): When searching
1122 for known version symbol skip non-matching verdef records, not
1123 matching records.
1124
1125Thu Jun 5 15:52:45 1997 Ian Lance Taylor <ian@cygnus.com>
1126
1127 * cofflink.c (_bfd_coff_generic_relocate_section): Write a long,
c1292d9b 1128 not a bfd_vma, to the base file, to match how dlltool reads it.
cf2cd4cf 1129
48e509bf
NC
1130Tue Jun 3 16:57:45 1997 Nick Clifton <nickc@cygnus.com>
1131
fd2553f9
NC
1132 * reloc.c: Add thumb relocations.
1133
48e509bf
NC
1134 * bfd-in2.h: Add Thumb relocations.
1135
1136 * libbfd.h: Add Thumb relocations.
1137
1138Mon Jun 2 10:41:52 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1139
1140 * cpu-m68k.c (arch_info_struct): Fix 68060 cpu name.
1141
907f6015
ILT
1142Fri May 30 12:46:27 1997 Ian Lance Taylor <ian@cygnus.com>
1143
e08eb976
ILT
1144 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
1145 for a section even if it is not loaded.
1146
907f6015
ILT
1147 * cofflink.c (coff_link_add_symbols): If PE file, don't subtract
1148 section VMA.
1149 (_bfd_coff_link_input_bfd): Separate section VMA handling for
1150 input and output files.
1151 (_bfd_coff_generic_relocate_section): Check whether input file,
1152 not output file, is a PE file.
1153
1154Wed May 28 15:48:43 1997 Nick Clifton <nickc@cygnus.com>
1155
1156 * coff-arm.c: (coff_arm_bfd_set_private_flags): Make static.
1157
5edcd3b9
ILT
1158Wed May 28 16:16:04 1997 Ian Lance Taylor <ian@cygnus.com>
1159
1160 * coff-i386.c (coff_i386_reloc): Don't just exit if we see an
1161 R_IMAGEBASE reloc.
1162
916660cb
NC
1163Wed May 28 09:48:43 1997 Nick Clifton <nickc@cygnus.com>
1164
1165 * cpu-arm.c (compatible): Add test for supersets of ARM
cf2cd4cf 1166 architectures.
916660cb 1167
3c82a731
BM
1168Tue May 27 19:42:03 1997 Bob Manson <manson@charmed.cygnus.com>
1169
1170 * cofflink.c (_bfd_coff_final_link): Initialize global_to_static
c1292d9b 1171 member.
3c82a731 1172
177f3d7f
NC
1173Tue May 27 14:34:08 1997 Nick Clifton <nickc@cygnus.com>
1174
1175 * coff-arm.c (coff_arm_bfd_set_private_flags): Make global. It is
1176 called directly by gas/config/tc-arm.c.
cf2cd4cf 1177
70edb961
ILT
1178Tue May 27 15:58:53 1997 Richard Henderson <rth@tamu.edu>
1179
1180 * elf64-alpha.c (PLT_ENTRY_*): Use a new thread-safe format.
1181 (elf64_alpha_finish_dynamic_symbol): Fill it in properly.
1182
d82e4bf6
ILT
1183Mon May 26 14:05:13 1997 Ian Lance Taylor <ian@cygnus.com>
1184
1185 * coff-ppc.c (coff_ppc_relocate_section): If PE file, don't add
1186 section VMA.
1187
315dc1f4
FF
1188Mon May 26 10:57:48 1997 Fred Fish <fnf@cygnus.com>
1189
1190 * peicode.h (coff_bfd_print_private_bfd_data): #undef before #define.
1191 (coff_bfd_copy_private_bfd_data): Ditto.
1192 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Make static.
1193 (coff_arm_bfd_print_private_bfd_data): Ditto.
1194 (coff_arm_bfd_set_private_flags): Ditto.
1195 (coff_arm_bfd_copy_private_bfd_data): Ditto.
1196
e074d05e
FF
1197Fri May 23 15:14:58 1997 Fred Fish <fnf@cygnus.com>
1198
1199 * libcoff-in.h (struct coff_final_link_info): Add boolean
1200 global_to_static member for support of task linking.
1201 (_bfd_coff_write_task_globals): Add prototype.
1202 * libcoff.h: Regenerate.
1203 * coffcode.h (coff_write_object_contents): Use #ifdef to
1204 check RS6000COFF_C, to be consistent with all other uses
1205 in this file.
1206 * cofflink.c (_bfd_coff_final_link): If doing task linking,
1207 call _bfd_coff_write_task_globals.
1208 (_bfd_coff_link_input_bfd): If doing task linking, convert
1209 global functions to static.
1210 (_bfd_coff_write_global_sym): If doing task linking, convert
1211 global variables to static.
1212 (_bfd_coff_write_task_globals): New function.
1213start-sanitize-tic80
1214 * coff-tic80.c (TIC80COFF): Define this instead of just TIC80.
1215 (C_AUTOARG): #undef since it clashes with C_UEXT.
1216 (C_LASTENT): #undef since it clashes with C_STATLAB.
1217 * coffcode.h (coff_write_object_contents): Use TIC80COFF
1218 rather than TIC80.
1219 (coff_slurp_symbol_table): Use C_SYSTEM. Hide C_AUTOARG use
1220 when TIC80COFF defined (clashes with C_UEXT). Explicitly
1221 recognize C_UEXT, C_STATLAB, and C_EXTLAB as unsupported.
1222end-sanitize-tic80
1223
8ac5f940 1224start-sanitize-tic80
546d7a90
ILT
1225Fri May 23 12:38:24 1997 Ian Lance Taylor <ian@cygnus.com>
1226
1227 * coff-tic80.c (tic80_howto_table): Change overflow check for most
1228 PP relocations to complain_overflow_dont.
1229
8ac5f940
ILT
1230Thu May 22 20:22:14 1997 Ian Lance Taylor <ian@cygnus.com>
1231
1232 * coff-tic80.c (tic80_howto_table): Add PP relocations. Change
1233 name of R_RELLONG to "RELLONG". Set rightshift and complain for
1234 M_PPCR.
1235 (ppbase_reloc, glob15_reloc): New static functions.
1236 (glob16_reloc, local16_reloc): New static functions.
1237 (rtype2howto): Handle all relocation types.
1238 (coff_tic80_relocate_section): New static function.
1239 (coff_relocate_section): Define to coff_tic80_relocate_section.
1240 * Makefile.in (coff-tic80.o): Depends upon include/coff/tic80.h.
1241
1242end-sanitize-tic80
d2d70da5
ILT
1243Wed May 21 17:15:50 1997 Ian Lance Taylor <ian@cygnus.com>
1244
20a9631a
ILT
1245 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE or
1246 COFF_IMAGE_WITH_PE, don't subtract the section VMA from the symbol
1247 value.
1248 * coffgen.c (fixup_symbol_value): Add abfd parameter. Change all
1249 callers. If PE file, don't add section VMA.
1250 (coff_write_alien_symbol): If PE file, don't add section VMA.
1251 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1252 (_bfd_coff_write_global_sym): Likewise.
1253 (_bfd_coff_generic_relocate_section): Likewise.
1254
d2d70da5
ILT
1255 * peicode.h: Add & 0xffffffff when using ImageBase in case bfd_vma
1256 is 64 bits.
1257
e18683b7
NC
1258Wed May 21 09:58:10 1997 Nick Clifton <nickc@cygnus.com>
1259
1260 * cofflink.c (mark_relocs): Add new function to mark symbols which
d2d70da5 1261 are used by relocations.
c1292d9b 1262 (_bfd_coff_link_input_bfd): Add call to mark_relocs() and code to
d2d70da5 1263 suppress the skipping of symbols that have thus been marked.
e18683b7 1264
4e39c0f9
ILT
1265Tue May 20 18:45:26 1997 Ian Lance Taylor <ian@cygnus.com>
1266
1267 * coff-sh.c (sh_merge_private_data): New static function.
1268 (coff_bfd_merge_private_bfd_data): Define.
1269
69f3f9f7 1270start-sanitize-tic80
4e39c0f9
ILT
1271Mon May 19 14:46:00 1997 Mark Alexander <marka@cygnus.com>
1272
1273 * coff-tic80.c: Remove unnecessary #ifdefs.
1274 * config.bfd: Set targ_underscore to yes for tic80.
1275
69f3f9f7
MA
1276Mon May 19 14:26:36 1997 Mark Alexander <marka@cygnus.com>
1277
1278 * coff-tic80.c (NAMES_HAVE_UNDERSCORE): Define (fixes problem
1279 with unresolved external symbols in GDB).
1280
1281end-sanitize-tic80
efc02f66
JL
1282Fri May 16 10:23:03 1997 Jeffrey A Law (law@cygnus.com)
1283
c1292d9b
ILT
1284 * elf-m10300.c (elf32_mn10300_relax_section): Read in all
1285 the symbols associated with each BFD.
1286 (mn10300_elf_relax_delete_bytes): Don't adjust the same symbol
1287 more than once.
efc02f66
JL
1288 * elf-m10200.c: Likewise.
1289 * elf32-m32r.c: Likewise.
1290 * elf32-sh.c: Likewise.
1291
fd6c00ba
ILT
1292Fri May 16 12:10:52 1997 Ian Lance Taylor <ian@cygnus.com>
1293
1294 * elflink.h (elf_link_add_object_symbols): Don't decrease the
c1292d9b
ILT
1295 alignment of a common symbol. If two symbols that look like
1296 common symbols are found in two shared libraries, and the size is
1297 different, use the larger size, and warn if --warn-common. If a
fd6c00ba
ILT
1298 common symbol overrides a definition in a shared library, set the
1299 size to the larger size, and warn if --warn-common.
1300
4c4badea
NC
1301Thu May 15 14:31:28 1997 Nick Clifton <nickc@cygnus.com>
1302
1303 * cpu-arm.c (compatible): Allow default machine to be polymorphed
1304 into any other machine type.
1305
1306 * coffcode.h (coff_set_flags): Initialise flags variable to 0.
1307
1308 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): When merging
1309 data into an unitialised destination set its machine type as well.
1310
031dfce0
ILT
1311Thu May 15 16:40:20 1997 Ian Lance Taylor <ian@cygnus.com>
1312
1313 * elflink.h (elf_link_add_object_symbols): Force ELF symbol size
77bd8dfa
ILT
1314 to common symbol size. Consistently treat uninitialized symbols
1315 in shared objects as common symbols.
031dfce0 1316
46686c78
NC
1317Fri May 9 10:15:27 1997 Nick Clifton <nickc@cygnus.com>
1318
1319 * archures.c (constants): Added new constants to identify the
1320 type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
cf2cd4cf 1321 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and bfd_mach_arm_4T.
46686c78
NC
1322
1323 * bfd-in2.h (constants): Added new constants to identify
1324 the type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
1325 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and
1326 bfd_mach_arm_4T. This file is auto-magically generated from the
1327 archures.c file. This update is just to save work.
1328
1329 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data,
1330 coff_arm_bfd_print_private_bfd_data,
1331 coff_arm_bfd_set_private_flags,
1332 coff_arm_bfd_copy_private_bfd_data): Added these new functions.
cf2cd4cf 1333 (global): Macro redefinitions set up to use these new functions.
46686c78
NC
1334
1335 * coffcode.h (coff_mkobject_hook): Added call to
d2d70da5 1336 coff_arm_bfd_set_private_flags().
c1292d9b 1337 (coff_set_arch_mach_hook): Added code to set machine type based on
d2d70da5
ILT
1338 bits stored in internal flags.
1339 (coff_set_flags): Added code to set the new bits in the flags
1340 field based on the machine number.
46686c78
NC
1341 (function definition macros): Made all function definition macros
1342 conditional so that they can be overridden by target specific
1343 files.
1344
1345 * cpu-arm.c (compatible): Added this function. (arch_info_struct):
1346 Structure extended to include new types, one each for ARMv2,
1347 ARMv2a, ARMv3, ARMv3M, ARMv4 and ARMv4T.
1348
1349 * libcoff-in.h (struct coff_tdata): Added flags field.
cf2cd4cf 1350
3baa24ad
ILT
1351Fri May 9 17:40:02 1997 Ian Lance Taylor <ian@cygnus.com>
1352
64aaba23
ILT
1353 * config.bfd (i[3456]86-*-gnu*): Don't include Mach support.
1354
3baa24ad
ILT
1355 * config.bfd: Change #if 0 around uses of host_aout_vec to #if
1356 HAVE_host_aout_vec.
1357
aba5cc8b
MM
1358Mon May 5 13:57:32 1997 Mike Meissner <meissner@cygnus.com>
1359
1360 * coffgen.c (coff_find_nearest_line): If there are no syments,
1361 just return false.
1362
6a2922d5
ILT
1363Mon May 5 18:18:45 1997 Philip Blundell <pjb27@cam.ac.uk>
1364
1365 * config.bfd: cope with '*-*-linux-gnuaout' targets.
1366
1367Thu May 1 11:31:12 1997 Ian Lance Taylor <ian@cygnus.com>
1368
1369 * targmatch.sed: Add explicit \n characters to work around bug in
1370 HP/UX 10.20 sed program.
1371
412dfaed
ILT
1372Wed Apr 30 12:27:03 1997 Ian Lance Taylor <ian@cygnus.com>
1373
1374 * elf.c (copy_private_bfd_data): Cast csecs to avoid sign
1375 extension problems.
1376
3c8caeb7
ILT
1377Tue Apr 22 12:06:08 1997 Ian Lance Taylor <ian@cygnus.com>
1378
1379 * Makefile.in (do_maintainer_clean): Don't remove bfd-in2.h.
1380
f4236094
ILT
1381Mon Apr 21 11:21:31 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1382
1383 * elf32-m68k.c: Follow the last changes in elf32-i386.c:
1384 (struct elf_m68k_pcrel_relocs_copied, struct
1385 elf_m68k_link_hash_entry, struct elf_m68k_link_hash_table,
1386 elf_m68k_link_hash_traverse, elf_m68k_hash_table,
1387 elf_m68k_link_hash_newfunc, elf_m68k_link_hash_table_create,
1388 elf_m68k_discard_copies, bfd_elf32_bfd_link_hash_table_create):
1389 New definitions.
1390 (elf_m68k_check_relocs): If linking with -Bsymbolic, don't copy
1391 PC relative relocs for a global symbol defined in a regular
1392 object, and count the number of PC relative relocs copied for any
1393 global symbol.
1394 (elf_m68k_size_dynamic_sections): If linking with -Bsymbolic,
1395 traverse with elf_m68k_discard_copies.
1396
752eaefc
ILT
1397Sat Apr 19 22:50:14 1997 Ian Lance Taylor <ian@cygnus.com>
1398
9d71be72
ILT
1399 * elf32-i386.c (elf_i386_check_relocs): Only count PC relative
1400 relocs. From Jamie Lokier <jamie@rebellion.co.uk>.
1401
752eaefc
ILT
1402 * coffcode.h (coff_compute_section_file_positions): Force the
1403 potential last byte in the file to be written out when
1404 COFF_IMAGE_WITH_PE.
1405
e066f244
ILT
1406Thu Apr 17 13:46:56 1997 Per Fogelstrom <pefo@openbsd.org>
1407
a0412785 1408 * configure.host (mips*-*-openbsd*): New host.
e066f244 1409
81f01dd5
ILT
1410Thu Apr 17 11:10:54 1997 Ian Lance Taylor <ian@cygnus.com>
1411
f02004e9
ILT
1412 * elflink.h (elf_link_add_object_symbols): Only subtract the
1413 section VMA from the symbol value if this is a fully linked file.
1414
6e2183b1
ILT
1415 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define.
1416 (struct elf_i386_link_hash_entry): Define.
1417 (struct elf_i386_link_hash_table): Define.
1418 (elf_i386_link_hash_traverse): Define.
1419 (elf_i386_hash_table): Define.
1420 (elf_i386_link_hash_newfunc): New static function.
1421 (elf_i386_link_hash_table_create): New static function.
1422 (elf_i386_check_relocs): If linking with -Bsymbolic, don't copy
1423 PC relative relocs for a global symbol defined in a regular
1424 object, and count the number of PC relative relocs copied for any
1425 global symbol.
1426 (elf_i386_size_dynamic_sections): If linking with -Bsymbolic,
1427 traverse with elf_i386_discard_copies.
1428 (elf_i386_discard_copies): New static function.
1429 (bfd_elf32_bfd_link_hash_table_create): Define.
1430
81f01dd5
ILT
1431 From Gordon W. Ross <gwr@mc.com>:
1432 * aoutf1.h (MY_entry_is_text_address): Define if not defined.
1433 (sunos4_aout_backend): Use MY_entry_is_text_address.
1434
ebec2a6a
MH
1435start-sanitize-d30v
1436Wed Apr 16 12:43:32 1997 Martin Hunt <hunt@cygnus.com>
1437
1438 * elf32-d30v.c (elf_d30v_howto_table): Changed size of
1439 R_D30V_32_NORMAL to 2 (4 bytes).
1440
cf2cd4cf 1441end-sanitize-d30v
10888f10
ILT
1442Wed Apr 16 14:02:29 1997 Ian Lance Taylor <ian@cygnus.com>
1443
a895901a
ILT
1444 From Gordon W. Ross <gwr@mc.com>:
1445 * netbsd.h (N_SHARED_LIB): Define.
1446 (SEGMENT_SIZE): Don't define.
1447 * m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of
1448 April 11).
1449 * sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000.
1450 (SEGMENT_SIZE): Don't define.
1451
10888f10
ILT
1452 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size
1453 to sizeof Rela structure, not sizeof Rel structure. From Gary
1454 Thomas <g.thomas@opengroup.org>.
1455
a0c80726
ILT
1456Tue Apr 15 11:50:37 1997 Ian Lance Taylor <ian@cygnus.com>
1457
55aba333
ILT
1458 * aout-target.h (MY(callback)): If entry_is_text_address, adjust
1459 whenever entry is larger than text address, but only by whole
1460 pages. From Gordon W. Ross <gwr@mc.com>.
1461
9b31e6f5
ILT
1462 * Makefile.in (install): Depend upon installdirs. Use
1463 mkinstalldirs to build $(oldincludedir).
1464 (installdirs): New target.
1465
a0c80726
ILT
1466 * elflink.h (elf_link_add_object_symbols): Don't call check_relocs
1467 if this is a debugging section which we are stripping.
1468
1469Mon Apr 14 12:39:30 1997 Richard Henderson <rth@tamu.edu>
1470
1471 * elf64-alpha.c (elf64_alpha_object_p): Allocate the
1472 alpha-specific target data struct.
1473
e5d7e3df
ILT
1474Mon Apr 14 11:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
1475
1476 From Thomas Graichen <graichen@rzpd.de>:
1477 * Makefile.in: Always use $(SHELL) when running move-if-change.
1478 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
1479 * configure: Rebuild.
1480
4b8c8bb9
ILT
1481Fri Apr 11 15:43:24 1997 Ian Lance Taylor <ian@cygnus.com>
1482
3bc3351e
ILT
1483 * elfcode.h (elf_slurp_symbol_table): Only subtract the section
1484 VMA if this is an executable file or a shared object.
1485
faa0b8db
ILT
1486 * targets.c (netbsd_core_vec): Declare. From Gordon W. Ross
1487 <gwr@mc.com>.
1488
1489 * libaout.h (struct aout_backend_data): Add entry_is_text_address
1490 field.
1491 * aout-target.h (SEGMENT_SIZE): Define to TARGET_PAGE_SIZE at the
1492 start of the file. Remove uses later on which switch using
1493 ifdef.
1494 (MY(callback)): Handle entry_is_text_address.
1495 (MY_entry_is_text_address): Define if not defined.
1496 (MY(backend_data)): Initialize new field.
1497 * aoutf1.h (sunos4_aout_backend): Likewise.
1498 * i386aout.c (MY(backend_data)): Likewise.
1499 * i386mach3.c (MY(backend_data)): Likewise.
1500 * mipsbsd.c (MY(backend_data)): Likewise.
1501 * sparclynx.c (sparclynx_aout_backend): Likewise.
1502 * netbsd.h (SEGMENT_SIZE): Define if not defined.
1503 (MY_entry_is_text_address): Define.
a895901a 1504 * m68knetbsd.c (SEGMENT_SIZE): Define as 0x20000.
faa0b8db 1505
4b8c8bb9
ILT
1506 * xcofflink.c (bfd_xcoff_import_symbol): Handle importing a symbol
1507 whose name starts with `.'.
1508
3b1b0308
ILT
1509Fri Apr 11 11:57:15 1997 Niklas Hallqvist <niklas@appli.se>
1510
1511 * config.bfd: (i[3456]86-*-openbsd*, m68*-*-openbsd*,
1512 mips*el*-*-openbsd*, mips*-*-openbsd*, ns32k-*-openbsd*,
1513 powerpc-*-*bsd*, sparc-*-openbsd*): New targets.
1514 * configure.in (i[3456]86-*-openbsd*, mips*-*-openbsd*,
1515 m68*-*-openbsd*, ns32k-*-openbsd*, powerpc-*-*bsd*,
1516 sparc-*-openbsd*): New targets.
1517 * configure: Rebuild.
1518
57a3027b
ILT
1519Tue Apr 8 18:09:29 1997 Jamie Lokier <jamie@rebellion.co.uk>
1520
1521 * stabs.c (struct stab_section_info): New field
1522 `cumulative_skips'.
1523 (_bfd_link_section_stabs): Fill the above array.
1524 (_bfd_stab_section_offset): Use `cumulative_skips' to
1525 speed up offset calculation.
1526
a01362cc
JL
1527Tue Apr 8 00:01:31 1997 Jeffrey A Law (law@cygnus.com)
1528
69444014
JL
1529 * elf-mn10300.c (mn10300_elf_relax_section): Don't forget the
1530 addend for non pc-relative relocations.
1531
a01362cc
JL
1532 * elf-m10300.c (bfd_elf32_mn10300_reloc): Remove prototype
1533 for non-existent function.
1534
1535 * elf-m10300.c (mn10300_elf_relax_section): New function.
1536 (mn10300_elf_relax_delete_bytes): Likewise.
1537 (mn10300_elf_symbol_address_p): Likewise.
1538 (mn10300_elf_get_relocated_section_contents): Likewise.
1539 (bfd_elf32_bfd_relax_section): Define.
1540 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1541
418d5b05
ILT
1542Mon Apr 7 16:47:09 1997 Ian Lance Taylor <ian@cygnus.com>
1543
1544 * configure.host: Set SHLIB_LIBS.
1545 * configure.in: Substitute SHLIB_LIBS.
1546 * configure: Rebuild.
1547 * Makefile.in (SHLIB_LIBS): New variable.
1548 ($(SHLIB)): Use $(SHLIB_LIBS).
1549
d9654a71
MS
1550Mon Apr 7 10:53:52 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
1551
1552 * bfd-in.h bfd-in2.h: add bfd_section_lma macro to correspond
1553 with bfd_section_vma.
1554
5641f23e
ILT
1555Fri Apr 4 11:37:15 1997 Ian Lance Taylor <ian@cygnus.com>
1556
b872076e
ILT
1557 * configure.in: Update file names for bfd_elf32_mn10[23]00_vec.
1558 Correct CPU file names for mn10[23]00.
1559 * configure: Rebuild.
1560
ac664747
ILT
1561 * bfd.c (bfd_record_phdr): Cast count to size_t before
1562 subtraction.
1563
44fe6ab1
ILT
1564 * coff-ppc.c (dump_toc): Add cast to avoid warning from SunOS cc.
1565 * coff-rs6000.c (xcoff_read_ar_hdr): Likewise.
1566 (xcoff_write_archive_contents): LIkewise.
1567 * elf32-mips.c (_bfd_mips_elf_set_section_contents): Likewise.
1568 (mips_elf_create_procedure_table): Likewise.
1569 * peicode.h (pe_print_idata): Likewise.
1570 (pe_print_edata, pe_print_pdata, pe_print_reloc): Likewise.
1571 * xcofflink.c (xcoff_get_section_contents): Likewise.
1572 (_bfd_xcoff_canonicalize_dynamic_symtab): Likewise.
1573 (xcoff_link_add_symbols): Likewise.
1574 (xcoff_link_add_symbols): Likewise.
1575
0cea98f0
ILT
1576 * ppcboot.c (ppcboot_set_arch_mach): Make static.
1577 (ppcboot_bfd_print_private_bfd_data): Likewise.
1578
5641f23e
ILT
1579 * elf32-mips.c (elf_mips_ctor64_howto): Set complain_on_overflow
1580 to complain_overflow_signed.
1581
58b4a8f3
ILT
1582Thu Apr 3 11:51:54 1997 Ian Lance Taylor <ian@cygnus.com>
1583
1584 * VERSION: Set to 2.8.1.
1585
1586 * Branched binutils 2.8.
1587
1588 * elf32-ppc.c (ppc_elf_check_relocs): Don't check SEC_ALLOC when
1589 deciding whether to copy a reloc into a shared object.
1590 (ppc_elf_relocate_section): Likewise. Relocate R_PPC_RELATIVE
1591 relocs in unallocated sections.
1592 * elf32-sparc.c (elf32_sparc_relocate_section): Relocate
1593 R_SPARC_RELATIVE relocs in unallocated sections.
1594
acba322e
MM
1595Wed Apr 2 16:19:41 1997 Mike Meissner <meissner@cygnus.com>
1596
1597 * elf32-ppc.c (ppc_elf_check_relocs): Undo March 26 change and
1598 always create got section so that the _GLOBAL_OFFSET_TABLE_ label
1599 is always created.
1600
ab66cc8d
ILT
1601Wed Apr 2 10:49:07 1997 Ian Lance Taylor <ian@cygnus.com>
1602
ba254dc5
ILT
1603 * elflink.h (elf_link_add_object_symbols): Let a common symbol
1604 override an uninitialized symbol from a shared library with a
1605 smaller size.
f74e2365 1606
7a68d1f7
ILT
1607 * elf-m10200.c: Rename from elf32-mn10200.c.
1608 * elf-m10300.c: Rename from elf32-mn10300.c.
1609 * cpu-m10200.c: Rename from cpu-mn10200.c
1610 * cpu-m10300.c: Rename from cpu-mn10300.c
1611 * Makefile.in: Update accordingly.
1612
3072dce9
ILT
1613 * elf32-mips.c (elf_mips_ctor64_howto): New static variable.
1614 (elf_mips_isa): Move to earlier in file.
1615 (mips_reloc_map): Remove BFD_RELOC_CTOR entry.
1616 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR
1617 specially.
1618
ab66cc8d
ILT
1619 * elf32-mips.c (mips16_jump_reloc): Print a warning rather than
1620 calling abort.
1621
0f854557
ILT
1622Tue Apr 1 16:18:05 1997 Klaus Kaempf <kkaempf@progis.de>
1623
1624 * configure.com: New file.
1625 * config.h-vms: Remove file.
1626 * makefile.vms: Update for new configure scheme.
1627
8faaff9e
ILT
1628Mon Mar 31 23:28:39 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1629
0f854557
ILT
1630 * libcoff-in.h (ppc_allocate_toc_section): Declare.
1631 (ppc_process_before_allocation): Declare.
1632 * libcoff.h: Rebuild.
1633
8faaff9e
ILT
1634 * coffcode.h (coff_mkobject_hook): Declare if not a macro.
1635
5cfc9987
ILT
1636Mon Mar 31 16:29:50 1997 Joel Sherrill <joel@oarcorp.com>
1637
3418d8c4 1638 * config.bfd (hppa*-*-rtems*): New target, like hppa-*-*elf*.
5cfc9987 1639
34c68301
ILT
1640Mon Mar 31 16:11:35 1997 Ian Lance Taylor <ian@cygnus.com>
1641
1642 * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a
1643 symbol index for a R_IHCONST reloc.
1644
774dc17c
ILT
1645Mon Mar 31 15:40:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
1646
1647 * targmatch.sed: Do not use \(\) recursively.
1648
9e55b695
ILT
1649Fri Mar 28 14:44:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1650
1651 * m68klinux.c (MACHTYPE_OK): Define.
1652 * i386linux.c (MACHTYPE_OK): Define.
1653
f3f3b475
ILT
1654Fri Mar 28 11:56:15 1997 Ian Lance Taylor <ian@cygnus.com>
1655
5f792743
ILT
1656 From David S. Miller <davem@caip.rutgers.edu> and H.J. Lu
1657 <hjl@gnu.ai.mit.edu>:
1658 * sparclinux.c: New file.
774dc17c
ILT
1659 * bfd-in.h (bfd_sparclinux_size_dynamic_sections): Declare.
1660 * bfd-in2.h: Rebuild.
5f792743
ILT
1661 * config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets.
1662 * configure.in (sparclinux_vec): Add to list of vectors.
1663 * configure: Rebuild.
1664 * targets.c (sparclinux_vec): Declare.
1665 (bfd_target_vector): Add sparclinux_vec.
1666 * Makefile.in: Rebuild dependencies.
1667 (BFD32_BACKENDS): Add sparclinux.o.
1668 (BFD32_BACKENDS_CFILES): Add sparclinux.c.
1669
bebe5fbf
ILT
1670 * coff-mips.c (mips_ecoff_backend_data): Initialize new
1671 bfd_coff_backend_data field.
1672 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
1673
f0315e65
ILT
1674 * config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecs
1675 for mips*el*-*-linux* and mips*-*-linux*. From H.J. Lu
1676 <hjl@lucon.org> and Ralf Baechle <ralf@gnu.ai.mit.edu>.
1677
f3f3b475
ILT
1678 * bfd.c: Include "libiberty.h".
1679 (strerror): Don't declare.
1680 (bfd_errmsg): Call xstrerror rather than strerror.
1681
013b249f
ILT
1682Thu Mar 27 12:55:42 1997 Ian Lance Taylor <ian@cygnus.com>
1683
eb80d52a
ILT
1684 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPY
1685 reloc even if the symbol is in the .bss section.
1686 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
1687 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
1688 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
1689
f89adeb7
ILT
1690 * coffcode.h (bfd_coff_backend_data): Add new field
1691 _bfd_coff_default_section_alignment_power.
1692 (bfd_coff_default_section_alignment_power): Define.
1693 (bfd_coff_std_swap_table): Initialize new field.
1694 * libcoff.h: Rebuild.
1695 * cofflink.c (coff_link_add_symbols): Limit alignment of a common
1696 symbol to the default section alignment.
1697
013b249f
ILT
1698 * COPYING: Update FSF address.
1699
0e9c4377
MH
1700start-sanitize-d30v
1701Thu Mar 27 00:45:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1702
cf2cd4cf
UD
1703 * elf32-d30v.c (elf_d30v_howto_table): Fix a typo in the
1704 21-bit absolute that made it act as a relative.
0e9c4377 1705
cf2cd4cf 1706end-sanitize-d30v
537327bc
ILT
1707Wed Mar 26 14:50:20 1997 Ian Lance Taylor <ian@cygnus.com>
1708
0e9c4377
MH
1709 * elflink.c (_bfd_elf_create_linker_section): Don't set
1710 bss_section and rel_section from existing sections.
1711
537327bc
ILT
1712 * elf32-ppc.c (ppc_elf_check_relocs): Only create the got section
1713 if it is needed.
1714
60d1227a
SG
1715Tue Mar 25 22:26:56 1997 Stu Grossman (grossman@critters.cygnus.com)
1716
1717 * aoutx.h (some_aout_object_p): Change executable test to fix
1718 problems with embedded a.out systems.
1719
3cd5cf3d
ILT
1720Tue Mar 25 14:35:37 1997 Ian Lance Taylor <ian@cygnus.com>
1721
6717fb0d
ILT
1722 * stabs.c (_bfd_stab_section_offset): New function.
1723 * libbfd-in.h (_bfd_stab_section_offset): Declare.
1724 * libbfd.h: Rebuild.
1725 * elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a
1726 stab reloc.
1727 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1728 * elf32-mips.c (mips_elf_relocate_section): Likewise.
1729 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1730 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1731 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1732
3cd5cf3d
ILT
1733 * stabs.c (_bfd_link_section_stabs): Copy over the first header
1734 symbol. Check for memory allocation failure of *psinfo.
1735 (_bfd_write_section_stabs): Add psinfo parameter. Change all
1736 callers. Set the value of the header symbol.
1737 * libbfd-in.h (_bfd_write_section_stabs): Update declaration.
1738 * libbfd.h: Rebuild.
1739
67e87a1d
FF
1740start-sanitize-tic80
1741Mon Mar 24 20:07:29 1997 Fred Fish <fnf@cygnus.com>
1742
1743 * coff-tic80.c (tic80_howto_table): Add R_ABS entry.
1744 (rtype2howto): Handle R_ABS reloc type. Also abort on unhandled
1745 reloc types, rather than silently failing to generate an output file.
1746
1747end-sanitize-tic80
e9148724
ILT
1748Mon Mar 24 13:41:00 1997 Ian Lance Taylor <ian@cygnus.com>
1749
e1ea3dd5
ILT
1750 * targmatch.sed: Use the hold space to put the #ifdef around the
1751 the string constant.
1752 * targets.c (UNSUPPORTED_TARGET): Don't define.
1753 (find_target): Don't check for UNSUPPORTED_TARGET.
1754 (bfd_set_default_target): Don't try to optimize by checking for
1755 default.
1756
032dc9ed
ILT
1757 * Makefile.in: Rebuild dependencies.
1758 (ALL_MACHINES_CFILES): Add cpu-m32r.c.
1759 (BFD32_BACKENDS_CFILES): Add elf32-m32r.c.
1760 (elf32-m32r.o): Remove explicit target.
1761
19d02576
ILT
1762 * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or
1763 i[3456]86-*-linux*.
1764
e9148724
ILT
1765 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't
1766 count section symbols for sections that were created by the
1767 linker, or are not allocatable or not loadable.
1768 (elf32_sparc_finish_dynamic_sections): Output output section
1769 symbols for section for which we made space for them.
1770
0727fe10
ILT
1771Fri Mar 21 13:08:26 1997 Ian Lance Taylor <ian@cygnus.com>
1772
1773 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is
1774 no .rela.plt section, don't output a DT_PLTGOT dynamic entry.
1775
ff22a9db
DE
1776Fri Mar 21 12:36:46 1997 Doug Evans <dje@canuck.cygnus.com>
1777
1778 * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16.
1779 (m32r_hi16_list): New static local.
1780 (m32r_elf_hi16_reloc): Don't perform reloc, just queue it up.
1781 (m32r_elf_do_hi16_reloc): Delete.
1782 (m32r_elf_relocate_hi16): New function.
1783 (m32r_elf_lo16_reloc): New function.
1784 (m32r_elf_relocate_section): For HI16 relocs, scan for corresponding
1785 LO16 reloc.
1786
1787 Mon Mar 10 16:03:31 1997 Doug Evans <dje@seba.cygnus.com>
1788
1789 * elf32-m32r.c (m32r_elf_create_linker_section): Delete.
1790 (m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support.
1791 (m32r_elf_final_sda_base): New function.
1792 (m32r_elf_relocate_section): Rewrite sdata support.
1793 (m32r_elf_finish_dynamic_sections): Delete.
1794
34bc6ffc
ILT
1795Thu Mar 20 12:39:02 1997 Ian Lance Taylor <ian@cygnus.com>
1796
ac388f2a
ILT
1797 Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>.
1798 * coff-svm68k.c: New file. Just defines some macros and includes
1799 coff-m68k.c.
1800 * coff-m68k.c: Add functions to handle common addends, moved in
1801 from cf-m68klynx.c. Control them using COFF_COMMON_ADDEND macro.
1802 Control whether relocs are visible using STATIC_RELOCS.
1803 * cf-m68klynx.c: Simplify greatly: just define macros to control
1804 coff-m68k.c.
1805 * coff-aux.c: Likewise. Just leave add_one_symbol routine.
1806 * targets. (m68ksysvcoff_vec): Declare.
1807 (bfd_target_vector): Add m68ksysvcoff_vec.
1808 * config.bfd (m68*-motorola-sysv*): New target.
1809 * configure.in (m68ksysvcoff_vec): New vector.
1810 * configure: Rebuild.
1811 * Makefile.in: Rebuild dependencies.
1812 (BFD32_BACKENDS): Add coff-svm68k.o.
1813 (BFD32_BACKENDS_CFILES): Add coff-svm68k.c.
1814
b9576d75
ILT
1815 * binary.c (binary_set_section_contents): Don't get misled if the
1816 first section is not loadable. From Matthew L. Martin
1817 <mlm@xedia.com>.
1818
34bc6ffc
ILT
1819 * elflink.h (elf_bfd_final_link): Set the value of a section
1820 symbol to the section address unless doing a relocateable link.
1821
1822Tue Mar 18 23:03:17 1997 Richard Henderson <rth@tamu.edu>
1823
1824 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create
1825 .plt entry if we've taken the function's address.
1826 (elf64_alpha_merge_gots): Merge collected flags info as well.
1827
303e7257
ILT
1828Tue Mar 18 22:40:09 1997 H.J. Lu <hjl@lucon.org>
1829
1830 * Many files: Add function prototypes.
1831 * cpu-m68k.c (bfd_default_scan_num_mach): Don't declare.
1832 * ecofflink.c: Include "libcoff.h" and "libecoff.h".
1833 * elf32-ppc.c (ppc_elf_fake_sections): Make static.
1834 * opncls.c (bfd_openstreamr): Change stream parameter to PTR.
1835 * peicode.h: Change several void * parameters to PTR.
1836 * srec.c (srec_get_symbol_info): Make static.
1837 * syms.c (bfd_symbol_is_absolute): Remove.
7197adc4 1838 * Makefile.in: Rebuild dependencies.
303e7257 1839
939b2169
ILT
1840Tue Mar 18 12:58:08 1997 Ian Lance Taylor <ian@cygnus.com>
1841
e76386d2
ILT
1842 * elf32-m32r.c (m32r_elf_is_local_label_name): Remove.
1843 (bfd_elf32_bfd_is_local_label): Don't define.
1844
939b2169
ILT
1845 * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
1846 than malloc.
1847
50ede03d
ILT
1848Mon Mar 17 11:32:53 1997 Ian Lance Taylor <ian@cygnus.com>
1849
508539ab
ILT
1850 * bfd-in.h: Don't include obstack.h.
1851 (struct bfd_hash_table): Change memory field to PTR.
1852 * bfd.c (struct _bfd): Change memory field to PTR.
1853 * bfd-in2.h: Rebuild.
1854 * libbfd-in.h (bfd_release): Declare as function, don't define as
1855 macro.
1856 * libbfd.h: Rebuild.
1857 * opncls.c: Include "objalloc.h" rather than "obstack.h". Use
1858 objalloc routines rather than obstack routines.
1859 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
1860 (getpagesize): Don't define.
1861 (_bfd_new_bfd): Don't set _bfd_chunksize.
1862 (bfd_openr): Free new bfd and objalloc on failure.
1863 (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise.
1864 (bfd_alloc_size): Remove.
1865 (bfd_release): New function.
1866 * hash.c: Include "objalloc.h" rather than "obstack.h". Use
1867 objalloc routines rather than obstack routines.
1868 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
1869 * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use
1870 objalloc routines rather than obstack routines.
1871 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
1872 (struct accumulate): Change memory to struct objalloc *.
1873 * liboasys.h (oasys_data_type): Remove oasys_obstack field.
1874 * dep-in.sed: Don't remove obstack.h from dependency list.
1875 * Makefile.in: Rebuild dependencies.
1876 (BFD_H_DEPS): Remove obstack.h.
1877 (install): Don't install obstack.h.
1878 * Many files: Don't include "obstack.h".
1879 * VERSION: Bump.
1880
062a1b96
ILT
1881 * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.
1882 * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare.
1883 * libbfd.h: Rebuild.
1884 * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow.
1885 * sunos.c (sunos_add_dynamic_symbols): Likewise.
0103b447 1886 * srec.c (srec_scan): Rewrite to not use obstack_1grow.
062a1b96 1887
50ede03d
ILT
1888 * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove
1889 old version of bfd_alloc.
1890 * libbfd-in.h (bfd_alloc_by_size_t): Don't declare.
1891 * libbfd.h: Rebuild.
1892 * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t.
1893
5e67a3c6
ILT
1894Sat Mar 15 15:24:18 1997 Ian Lance Taylor <ian@cygnus.com>
1895
1896 * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
1897 ELF local label syntax as well.
1898
7305cacd
FF
1899Sat Mar 15 10:16:42 1997 Fred Fish <fnf@cygnus.com>
1900
1901 * config.bfd (powerpc-*-beos*): New target.
1902 * configure.in (powerpc-*-beos*): Add case that explicitly
1903 does not set COREFILE for now. A future BeOS version is
1904 expected to support core files.
1905 * configure: Regenerate with autoconf.
1906
f56d634e
ILT
1907Fri Mar 14 16:43:22 1997 Ian Lance Taylor <ian@cygnus.com>
1908
4813bbed
ILT
1909 * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
1910 seen with a local symbol, rather than crashing.
1911
f56d634e
ILT
1912 * elfcode.h (elf_slurp_symbol_table): Don't try to read the
1913 version symbols if there aren't any.
1914
4507d858
FF
1915start-sanitize-tic80
1916Thu Mar 13 16:38:30 1997 Fred Fish <fnf@cygnus.com>
1917
1918 * coff-tic80.c (coff_rtype_to_howto): Define
1919 (coff_tic80_rtype_to_howto): Clone generic coff version and
1920 add code to handle the funky TI "internal relocations".
1921
1922end-sanitize-tic80
94ba939a
ILT
1923Thu Mar 13 14:08:53 1997 Ian Lance Taylor <ian@cygnus.com>
1924
37897db0
ILT
1925 * elflink.h (elf_link_add_object_symbols): Don't warn about type
1926 or size changes because of a weak symbol.
1927
94ba939a
ILT
1928 * cisco-core.c (SIGEMT): Define if not defined.
1929
e549b1d2
ILT
1930Wed Mar 12 21:36:05 1997 Ian Lance Taylor <ian@cygnus.com>
1931
1932 * elflink.h (elf_link_add_object_symbols): Use extsymoff when
1933 setting ever. Sanity check the version number. Sort out copying
1934 flags and other information when adding an indirect symbol.
1935 (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic
1936 symbols added by the backend. Clear the entire contents of the
1937 versym section.
1938 (elf_export_symbol): Ignore indirect symbols.
1939 (elf_link_output_extsym): Accept a section without an owner in an
1940 assert.
1941 * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the
1942 version count. Correct the allocation of x_versymp.
1943
1944 * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
1945 the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA.
1946 Don't return bfd_und_section_ptr when info->shared.
1947 (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12.
1948 (mips_elf_create_dynamic_sections): Correct type: ^= for &=.
1949 (mips_elf_check_relocs): Resolve an indirect symbol in
1950 sym_hashes.
1951 (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into
1952 SHN_MIPS_TEXT or SHN_MIPS_DATA.
1953
1954 * elf.c (bfd_elf_print_symbol): Tweak version output slightly.
1955
1956Tue Mar 11 01:38:36 1997 Ian Lance Taylor <ian@cygnus.com>
1957
1958 From Eric Youngdale <eric@andante.jic.com>:
1959 * elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define.
1960 * elf.c (bfd_elf_print_symbol): Correct errors in last change.
1961 * elflink.h (elf_link_add_object_symbols): Handle cases in which a
1962 versioned symbol appears in both a regular and a shared object.
1963 (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when
1964 appropriate. Improve error message.
1965 (struct elf_outext_info): Rename from elf_finfo_failed. Change
1966 all uses. Add localsyms field.
1967 (elf_bfd_final_link): When generating a shared library, call
1968 elf_link_output_extsym to output all local symbols.
1969 (elf_link_output_extsym): Handle symbols which were forced to
1970 become local.
1971
d6bfcdb5
ILT
1972Sun Mar 9 23:08:49 1997 Ian Lance Taylor <ian@cygnus.com>
1973
1974 From Eric Youngdale <eric@andante.jic.com>:
1975 * elf-bfd.h (elf_symbol_type): Add version field.
1976 * elfcode.h (elf_slurp_symbol_table): Set version field.
1977 * elflink.h (elf_link_add_object_symbols): When creating an
1978 indirect symbol for a default version symbol, set DEF_DYNAMIC if
1979 appropriate. Set up an indirection from the nondefault version of
1980 the symbol as well.
1981 (NAME(bfd_elf,size_dynamic_sections)): Call
1982 elf_link_assign_sym_version before checking whether there are any
1983 versions. Always record the version name as a dynamic symbol.
1984 Initialize counters.
1985 (elf_link_assign_sym_version): After finding a version, see if a
1986 symbol should be forced to local scope. Create a new version
1987 definition if appropriate.
1988 (elf_link_output_extsym): Correct indirect symbol handling.
1989 * elf.c (bfd_elf_print_symbol): Print version information.
1990 (bfd_section_from_shdr): Turn version sections into BFD sections.
1991 (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info
1992 if sh_info is not already set.
1993 (_bfd_elf_copy_private_section_data): Copy sh_info for version
1994 sections.
1995 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell
1996 _bfd_stringtab_add to copy the name into permanent memory if
1997 appropriate.
1998
7debe20c
ILT
1999Fri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2000
2001 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.
2002
358bb592
ILT
2003Fri Mar 7 10:37:30 1997 Ian Lance Taylor <ian@cygnus.com>
2004
ccd0e5e2
ILT
2005 * coffcode.h (bfd_coff_backend_data): Change
2006 _bfd_coff_compute_section_file_positions to return a boolean
2007 value. Change all callers.
2008 (coff_compute_section_file_positions): Change return type to
2009 boolean. If the size of the last section changed, then output a
2010 zero byte at the end of the file.
2011 * libcoff.h: Rebuild.
2012
e8c4696e
ILT
2013 * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space
2014 for at least 6 output symbols.
2015 (xcoff_write_global_symbol): When emitting TOC entry relocs, also
2016 emit a TC csect to represent the space they take up. For an XO
2017 symbol, just emit a reference, not a csect.
2018
4104dff6
ILT
2019 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
2020 Solaris doesn't like the combined options, and the -f is
2021 unnecessary.
5bd7c941 2022 (stamp-tshlink, install): Likewise.
4104dff6 2023
358bb592
ILT
2024 * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
2025 handling when little endian.
2026
77bf22e6
JL
2027Thu Mar 6 13:51:51 1997 Jeffrey A Law (law@cygnus.com)
2028
5847e6dd
JL
2029 * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
2030 (mn10300_elf_relocate_section): Likewise.
2031 (elf_backend_relocate_section): Define.
2032
77bf22e6
JL
2033 * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE
2034 relocs. Replace them with generic PCREL_{8,16,32} relocs.
2035 (elf32_mn10300_howto_table): Likewise.
2036 (elf32_mn10300_reloc_map): Likewise.
2037 (bfd_elf32_mn10300_reloc): Delete unused function.
2038
13b58694
FF
2039Thu Mar 6 12:19:59 1997 Fred Fish <fnf@cygnus.com>
2040
2041start-sanitize-tic80
2042 * coff-tic80.c (rtype2howto): If passed a relocation type we don't
2043 understand, just set the howto field to NULL, and the caller will
2044 print an appropriate error message.
2045end-sanitize-tic80
2046 * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and
2047 code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif
2048 block. Use NULL for initializations of "ptr" rather than bare 0.
2049 * coff-h8300.c: Fix typo in comment.
2050 * coff-h8500.c: Ditto.
2051 * coff-w65.c: Ditto
2052 * coff-z8k.c: Ditto.
cf2cd4cf 2053
da171461
DE
2054Wed Mar 5 13:59:09 1997 Doug Evans <dje@seba.cygnus.com>
2055
2056 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc.
2057 (m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
2058 m32r_elf_get_relocated_section_contents): First pass at relax support.
2059
da171461
DE
2060Mon Mar 3 13:27:09 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
2061
2062 * elflink.h (elf_link_add_object_symbols): Use correct sh_size
2063 entry for reading verdef records.
2064 Use correct braces for computing increments of extverdaux and
2065 exteverdef record pointers.
2066
4b4ac3ae
FF
2067start-sanitize-tic80
2068Sun Mar 2 22:47:54 1997 Fred Fish <fnf@cygnus.com>
2069
2070 * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
2071 instead of 4.
2072
2073end-sanitize-tic80
a48ef404
ILT
2074Sun Mar 2 16:25:35 1997 Ian Lance Taylor <ian@cygnus.com>
2075
2076 * elflink.h (elf_link_find_version_dependencies): Check that
2077 DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is
2078 set.
2079
84fd6e7e
FF
2080start-sanitize-tic80
2081Fri Feb 28 16:52:40 1997 Fred Fish <fnf@cygnus.com>
2082
2083 * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC.
2084
2085end-sanitize-tic80
af4dffff
ILT
2086Fri Feb 28 15:06:45 1997 Ian Lance Taylor <ian@cygnus.com>
2087
73769e1f
ILT
2088 * targets.c (bfd_default_vector): Make non-const.
2089 (find_target): New static function, broken out of
2090 bfd_find_target.
2091 (bfd_set_default_target): New function.
2092 (bfd_find_target): Call find_target. When defaulting, use
2093 bfd_default_vector[0] if it is not NULL.
2094 * libbfd-in.h (bfd_default_vector): Adjust declaration.
2095 * bfd-in2.h, libbfd.h: Rebuild.
2096
af4dffff
ILT
2097 * syms.c (bfd_is_local_label): Return false if the symbol has no
2098 name.
2099 * coff-i960.c (coff_i960_is_local_label_name): New function.
2100 (coff_bfd_is_local_label_name): Define.
2101 * coff-m68k.c (m68k_coff_is_local_label_name): New function.
2102 (coff_bfd_is_local_label_name): Define.
2103 * coff-rs6000.c (xcoff_is_local_label_name): New function.
2104 (coff_bfd_is_local_label_name): Define.
2105 * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning
2106 with .. or _.L_ as local.
2107 * elf32-i386.c (elf_i386_is_local_label_name): New function.
2108 (bfd_elf32_bfd_is_local_label_name): Define.
2109 * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols
2110 beginning with $ as local.
2111
85d6f0b4
ILT
2112Thu Feb 27 18:36:23 1997 Ian Lance Taylor <ian@cygnus.com>
2113
e316f514
ILT
2114 * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
2115 rather than comparing against info->lprefix.
2116 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2117 * elflink.h (elf_link_input_bfd): Likewise.
2118 * linker.c (_bfd_generic_link_output_symbols): Likewise.
2119 * xcofflink.c (xcoff_link_input_bfd): Likewise.
2120
2121 * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as
2122 _bfd_elf_is_local_label_name if not already defined.
2123 * elf.c (_bfd_elf_is_local_label_name): New function.
2124 * elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
2125
2126 * coff-m88k.c (coff_bfd_is_local_label_name): Define.
2127 (m88k_is_local_label_name): New static function.
2128
2129 * coffcode.h (coff_bfd_is_local_label_name): Define as
2130 _bfd_coff_is_local_label_name if not already defined.
2131 * coffgen.c (_bfd_coff_is_local_label_name): New function.
2132 * libcoff-in.h (_bfd_coff_is_local_label_name): Declare.
2133 * libcoff.h: Rebuild.
cf2cd4cf 2134
35a3e78e
ILT
2135 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
2136 to _bfd_is_local_label_name.
2137 (bfd_target): Likewise.
2138 * syms.c (bfd_is_local_label): Define as function, not macro.
2139 (bfd_is_local_name): Define.
2140 * libbfd.c (bfd_generic_is_local_label_name): Rename from
2141 bfd_generic_is_local_label, and take a string rather than a
2142 symbol.
2143 * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define.
2144 (_bfd_nosymbols_bfd_is_local_label_name): Define.
2145 (bfd_generic_is_local_label): Don't declare.
2146 (bfd_generic_is_local_label_name): Declare.
2147 * bfd-in2.h, libbfd.h: Rebuild.
2148 * All backends: Change local_label to local_label_name.
2149
85d6f0b4
ILT
2150 * elf32-mips.c (struct mips_got_info): Add assigned_gotno field.
2151 (mips_elf_relocate_got_local): Change return type to boolean.
2152 Don't assume that the first zero entry is unassigned; instead, use
2153 assigned_gotno.
2154 (mips_elf_relocate_section): Check return value of
2155 mips_elf_relocate_got_local.
2156 (mips_elf_create_got_section): Initialize assigned_gotno field.
2157
56819c99
MH
2158start-sanitize-d30v
2159Wed Feb 26 15:19:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
2160
2161 * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit
2162 relocations.
2163
cf2cd4cf 2164end-sanitize-d30v
fa802cb0
ILT
2165Wed Feb 26 13:33:03 1997 Ian Lance Taylor <ian@cygnus.com>
2166
2167 * elflink.h (elf_link_input_bfd): Don't skip symbols from sections
2168 that have no contents merely because linker_mark is not set.
2169
2170Tue Feb 25 18:51:35 1997 Stan Shebs <shebs@andros.cygnus.com>
2171
2172 * config.bfd (mips*-*-lnews*): New target.
2173 * coff-mips.c (mips_relocate_section): Make assert compare
2174 content byteorder instead of header byteorder.
2175 (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian
2176 data.
55ef0d90 2177 * targets.c (bfd_target_vector): Add ecoff_biglittle_vec.
fa802cb0
ILT
2178 * configure.in (ecoff_biglittle_vec): Add case.
2179 * configure: Update.
2180
7b4be668
ILT
2181Tue Feb 25 00:32:49 1997 Ian Lance Taylor <ian@cygnus.com>
2182
b08f5ac2
ILT
2183 * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose
2184 name begins with ".note".
2185 (map_sections_to_segments): Add a PT_NOTE segment for any loadable
2186 section whose name begins with ".note".
2187 (get_program_header_size): Corresponding change.
2188
7b4be668
ILT
2189 * elf32-mips.c (mips_elf_relocate_section): Check for misaligned
2190 jal and for jal overflow.
2191
2192Mon Feb 24 17:53:14 1997 Ian Lance Taylor <ian@cygnus.com>
2193
2194 From Eric Youngdale <eric@andante.jic.com>:
2195 * elflink.h (elf_link_add_archive_symbols): If a default symbol is
2196 not found, try looking it up again without the version name.
2197 (elf_link_add_object_symbols): Always link against the dynamic
2198 symbol table of a dynamic object. When linking against a dynamic
2199 object, include version strings in symbol names, and set up
2200 version information. Add indirect symbols for default versions.
2201 (elf_link_create_dynamic_sections): Add special version sections.
2202 (struct elf_assign_sym_version_info): Define.
2203 (struct elf_find_verdep_info): Define.
2204 (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set
2205 up version sections.
2206 (elf_adjust_dynamic_symbol): Ignore indirect symbols.
2207 (elf_link_find_version_dependencies): New static function.
2208 (elf_link_assign_sym_version): New static function.
2209 (elf_link_renumber_dynsyms): New static function.
2210 (struct elf_final_link_info): Add symver_sec field.
2211 (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count
2212 local symbols of a dynamic object. Handle DT_VER* constants.
2213 (elf_link_output_extsym): Simplify BFD_ASSERT checking for a
2214 dynamic object. Skip indirect symbols from ELF objects. Remove
2215 the version name before choosing a hash bucket. Write out the
2216 version information if appropriate.
2217 (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN.
2218 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
2219 (bfd_elf64_size_dynamic_sections): Likewise.
2220 * bfd-in2.h: Rebuild.
2221 * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field.
2222 Change elf_link_hash_flags to unsigned short.
2223 (ELF_LINK_HIDDEN): Define.
2224 (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr,
2225 dynverdef_hdr, dynversym_section, dynverdef_section,
2226 dynverref_section, cverdefs, cverrefs, verdef, verref.
2227 (elf_dynversym, elf_dynverdef, elf_dynverref): Define.
2228 (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare.
2229 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare.
2230 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare.
2231 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare.
2232 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare.
2233 (_bfd_elf_slurp_version_tables): Declare.
2234 * elf.c (_bfd_elf_swap_verdef_in): New function.
2235 (_bfd_elf_swap_verdef_out): Likewise.
2236 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise.
2237 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise.
2238 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise.
2239 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise.
2240 (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print
2241 version information if there is any.
2242 (_bfd_elf_link_hash_newfunc): Initialize verinfo field.
2243 (bfd_section_from_shdr): Handle SHT_GNU_ver* section types.
2244 (elf_fake_sections): Handle .gnu.version* section names.
2245 (assign_section_numbers): Handle SHT_GNU_ver* section types.
2246 (_bfd_elf_slurp_version_tables): New function.
2247 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include
2248 version name in string entered in dynamic hash table.
2249 * elfcode.h: Include fnmatch.h.
2250 * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic
2251 symbol which was forced to become local.
2252 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2253 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2254 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2255 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2256
7b951eed
JL
2257Fri Feb 21 16:15:18 1997 Jeffrey A Law (law@cygnus.com)
2258
2259 * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify
2260 somewhat.
2261 (mn10200_elf_relax_section): Correctly compute a symbol's value
2262 when the symbol is local, but not in the same section as we are
2263 relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16
2264 relaxing.
2265
77dd1a25
DE
2266Fri Feb 21 13:55:14 1997 Doug Evans <dje@seba.cygnus.com>
2267
2268 * elf32-m32r.c: Rewrite to use ELF backend linker.
2269 Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns.
2270 Add small data area support (R_M32R_SDA16).
2271 * reloc.c: Document BFD_RELOC_M32R_SDA16.
2272 * bfd-in2.h,libbfd.h: Regenerated.
2273
fd395661
JL
2274Thu Feb 20 23:50:31 1997 Jeffrey A Law (law@cygnus.com)
2275
2276 * elf32-mn10200.c (mn10200_elf_relax_section): New function.
2277 (mn10200_elf_relax_delete_bytes): Likewise.
2278 (mn10200_elf_symbol_address_p): Likewise.
2279 (mn10200_elf_get_relocated_section_contents): Likewise.
2280 (bfd_elf32_bfd_relax_section): Define.
2281 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
64af6679
JL
2282
2283 * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
2284 (mn10200_elf_relocate_section): Likewise.
2285 (elf_backend_relocate_section): Define.
2286
fd8d7c31
MH
2287start-sanitize-d30v
2288Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
2289
2290 * Makefile.in, archures.c, config.bfd, configure.in, elf.c,
cf2cd4cf 2291 reloc.c, targets.c: New target, elf-*-D30V.
fd8d7c31
MH
2292
2293 * bfd-in2.h, configure, libbfd.h: Rebuilt.
2294
2295 * cpu-d30v.c, elf32-d30v.c: New files.
cf2cd4cf
UD
2296
2297end-sanitize-d30v
92a956e8
FF
2298Tue Feb 18 15:31:48 1997 Fred Fish <fnf@cygnus.com>
2299
2300 * reloc.c (struct reloc_howto_struct): Fix typo in comment.
2301 * bfd-in2.h: Regenerated.
2302start-sanitize-tic80
2303 * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function.
2304 (rtype2howto): Add function.
2305 (tic80_howto_table): Add.
2306end-sanitize-tic80
cf2cd4cf 2307
92a956e8
FF
2308Tue Feb 18 11:41:00 1996 Dawn Perchik <dawn@cygnus.com>
2309
2310 * sysdep.h: Don't define errno in MSVC if error.h is included.
2311
8d1ba96e
JL
2312Tue Feb 18 10:04:13 1997 Jeffrey A Law (law@cygnus.com)
2313
2314 * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
2315 is initialized before it is used.
2316
8ceca983
ILT
2317Mon Feb 17 11:28:40 1997 Ian Lance Taylor <ian@cygnus.com>
2318
2319 * hp300hpux.c (convert_sym_type): Don't convert a secondary common
2320 symbol into a weak undefined symbol; leave it as a common symbol.
2321
54626f1a
ILT
2322Fri Feb 14 19:08:03 1997 Ian Lance Taylor <ian@cygnus.com>
2323
2324 * elflink.h (elf_link_add_object_symbols): Don't issue a warning
2325 about a symbol defined in a dynamic object if it has already been
2326 defined in a regular object.
2327
236969ac
ILT
2328Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)
2329
2330 * makefile.vms: Add gcc flags to allow compiling with current gcc
2331 snapshot
2332 (targmatch.h): New dependency.
2333
54626f1a
ILT
2334 * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
2335 openVMS/Alpha.
2336 * evax.h (ALPHA_R_CODEADDR): New relocation.
2337 * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
2338 openVMS/Alpha.
2339 * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
2340 relocation.
2341 * bfd-in2.h, libbfd.h: Rebuild.
2342
2343 Restrict symbol length to 64 bytes, case preserving:
2344 * evax-emh.c (_bfd_evax_write_emh): Remove case hacking.
2345 * evax-misc.c (_bfd_evax_case_hack_symbol): Remove.
2346 (_bfd_evax_length_hash_symbol): Added.
2347 * evax-etir.c (_bfd_evax_write_etir): Call
2348 _bfd_evax_length_hash_symbol before output of symbol.
2349 * evax-egsd.c (_bfd_evax_write_egsd): Likewise.
2350 * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove.
2351
2352 * evax-emh.c: Output filename to object file without path.
2353
2354 * evax-egsd.c: New sections for local and global commons.
2355
2356 * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c,
2357 evax-misc.c, evax.h: Remove 8 bit characters from copyright
2358 notices. Replace AXP with Alpha.
2359
62332d05
ILT
2360Wed Feb 12 18:10:30 1997 Ian Lance Taylor <ian@cygnus.com>
2361
2362 * sunos.c (sunos_create_dynamic_sections): We need the dynamic
2363 sections if we are creating a shared library.
2364
3883007e
DE
2365Tue Feb 11 15:45:43 1997 Doug Evans <dje@canuck.cygnus.com>
2366
2367 * configure.host (i386-windows): Don't set host64=true.
2368
a4183ba5
ILT
2369Tue Feb 11 15:27:32 1997 Ian Lance Taylor <ian@cygnus.com>
2370
2371 * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
2372 (elf_mips16_gprel_howto): New static variable.
2373 (mips16_gprel_reloc): New static function.
2374 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
2375 (mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
2376 (mips_elf_relocate_section): Handle R_MIPS16_GPREL.
2377 * reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
2378 * bfd-in2.h, libbfd.h: Rebuild.
2379
97cbfc23 2380Mon Feb 10 23:25:00 1997 Doug Evans <dje@seba.cygnus.com>
b9c5ee68
DE
2381
2382 * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true
2383 for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}.
2384
276c2d7d
GRK
2385start-sanitize-r5900
2386 Fri Feb 7 16:20:17 1997 Gavin Koch <gavin@cygnus.com>
cf2cd4cf 2387
276c2d7d 2388 * config.bfd: add r5900
cf2cd4cf
UD
2389
2390end-sanitize-r5900
ba4a4594
ILT
2391Fri Feb 7 12:39:11 1997 Ian Lance Taylor <ian@cygnus.com>
2392
2393 * elflink.h (elf_link_input_bfd): If we've discarded a section,
2394 the output section will be the absolute section; don't print an
2395 assertion message for that case when doing a relocateable link.
2396
e900e695
ILT
2397Thu Feb 6 16:55:43 1997 Ian Lance Taylor <ian@cygnus.com>
2398
2399 * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
2400 (struct mips_elf_link_hash_entry): Add new fields fn_stub,
2401 need_fn_sub, call_stub, and call_fp_stub.
2402 (struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
2403 (mips_elf_link_hash_newfunc): Initialize new fields.
2404 (mips_elf_link_hash_table_create): Likewise.
2405 (mips_elf_relocate_section): Redirect relocations to use mips16
2406 stubs when appropriate.
2407 (mips_elf_check_relocs): Attach stub sections to the appropriate
2408 symbol. Set need_fn_stub when appropriate.
2409 (mips_elf_always_size_sections): New static function.
2410 (mips_elf_check_mips16_stubs): New static function.
2411 (elf_backend_always_size_sections): Define.
2412 * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
2413
2414 * elflink.h (elf_link_input_bfd): Discard local symbols that are
2415 attached to sections which are not being included in the link.
2416
5b61a02a
ILT
2417Wed Feb 5 13:20:17 1997 Ian Lance Taylor <ian@cygnus.com>
2418
2419 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
2420 symbol value when computing the addend for a pc_relative
2421 pcrel_offset reloc.
2422
bcb686ca
ILT
2423Mon Feb 3 11:54:06 1997 Ian Lance Taylor <ian@cygnus.com>
2424
5a50eec6
ILT
2425 * cofflink.c (_bfd_coff_generic_relocate_section): If doing a
2426 relocateable link, just skip pc_relative pcrel_offset relocs.
2427 * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
2428 structure for an ARM26 reloc which can be resolved.
2429 (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
2430 reloc can be resolved.
2431
bcb686ca
ILT
2432 * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
2433 error in overflow check for R_RELBYTE.
2434
167dc907
ILT
2435Fri Jan 31 14:07:27 1997 Ian Lance Taylor <ian@cygnus.com>
2436
6c58561e
ILT
2437 * ieee.c (ieee_slurp_section_data): Pick up the start address.
2438 From Mark Rasin <mark.rasin@telrad.co.il>.
2439
167dc907
ILT
2440 * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
2441 debugging symbols.
2442
1a2faf1f
JL
2443Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com)
2444
2445 * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
2446 (elf_mn10200_howto_table): Likewise.
2447 (mn10200_reloc_map): Likewise.
2448
1d5c6cfd
DE
2449Mon Jan 27 12:07:35 1997 Doug Evans <dje@seba.cygnus.com>
2450
2451 * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
2452 * bfd-in2.h, libbfd.h: Regenerated.
2453 * elf32-m32r.c: Add support for them.
2454
9950f925
ILT
2455Mon Jan 27 12:25:02 1997 Ian Lance Taylor <ian@cygnus.com>
2456
54aa1dea
ILT
2457 * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
2458 * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt.
54aa1dea
ILT
2459 * elf32-v850.c (v850_elf_final_link_relocate): Remove used
2460 r_format and r_pcrel. Always return a value.
54aa1dea
ILT
2461 * riscix.c (MY_final_link_callback): Define to dummy value.
2462
9950f925
ILT
2463 * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
2464 relocations against the text segment, look up the output name of
2465 the reloc section.
2466 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2467 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
2468 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2469 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2470 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2471
0716c2e9 2472start-sanitize-tic80
8c00b01d
FF
2473Wed Jan 22 15:40:28 1997 Fred Fish <fnf@cygnus.com>
2474
2475 * coff-tic80.c (tic80coff_vec): Use correct data put/get
2476 routines for little endian data.
2477 * coffcode.h (coff_write_object_contents): Set magic to
2478 TIC80_ARCH_MAGIC for TIc80.
2479
0716c2e9
FF
2480Tue Jan 21 12:32:43 1997 Fred Fish <fnf@cygnus.com>
2481
2482 * coff-tic80.c (tic80coff_vec): Change to little endian data
2483 as the default.
2484
2485end-sanitize-tic80
db109ca2
ILT
2486Thu Jan 16 17:45:57 1997 Ian Lance Taylor <ian@cygnus.com>
2487
2488 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
2489 auxiliary_filters parameter to be const char * const *. Accept a
2490 NULL terminated array.
2491 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
2492 (bfd_elf32_size_dynamic_sections): Update declaration.
2493 * bfd-in2.h: Rebuild.
2494
2495Wed Jan 15 11:21:32 1997 Ian Lance Taylor <ian@cygnus.com>
2496
2497 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a
2498 NOTYPE symbol in a text section as a FUNC symbol.
2499
2500 * coffcode.h (coff_compute_section_file_positions): Force
2501 relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
2502
e1616e16
DE
2503Tue Jan 14 08:46:33 1997 Doug Evans <dje@canuck.cygnus.com>
2504
2505 * libaout.h (machine_type): Reserve several values for sparclet.
2506
4af93ad0
MM
2507start-sanitize-tic80
2508Mon Jan 13 22:39:08 1997 Michael Meissner <meissner@tiktok.cygnus.com>
2509
2510 * config.bfd (tic80-*-*): Don't require 'coff'.
2511
91eb4378 2512end-sanitize-tic80
0ce71ebd
MM
2513Mon Jan 13 19:36:25 1997 Michael Meissner <meissner@tiktok.cygnus.com>
2514
2515 * elf32-v850.c (v850_elf_howto_table): Set the special_function
2516 table to v850_elf_reloc for all non-standard relocations.
2517 (v850_elf_check_relocs): Add check for h being non-null.
2518 (v850_elf_reloc): Add R_V850_ZDA_OFFSET support. Use switch
2519 statement instead of multiple ifs.
2520 (v850_elf_relocate_section): Fix up error message, don't just call
2521 abort.
2522
483e1b91
JL
2523Mon Jan 6 13:28:35 1997 Jeffrey A Law (law@cygnus.com)
2524
09a7bde3 2525 * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
40131692
JL
2526 Use bfd_elf_generic_reloc as special function for all relocs.
2527 (bfd_elf32_mn10200_reloc): Remove unnecessary function.
2528
2529 * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for
483e1b91
JL
2530 24bit pc-relative reloc.
2531
28eb95aa
FF
2532start-sanitize-tic80
2533Fri Jan 3 16:33:00 1997 Fred Fish <fnf@cygnus.com>
2534
2535 * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
2536 * coff-tic80.c (tic80coff_vec): Data byte order is big endian and
2537 header byte order is little endian. Use correct bfd_get and
2538 bfd_put routines for little endian headers.
2539 * coffcode.h (coff_set_arch_mach_hook): Set arch to
2540 bfd_arch_tic80 for TIC80_ARCH_MAGIC number.
2541
2542end-sanitize-tic80
b3ef3894
JL
2543Fri Jan 3 16:54:08 1997 Jeffrey A Law (law@cygnus.com)
2544
2545 * reloc.c: Add BFD_RELOC_24.
2546 * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
2547 (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
2548 * bfd-in2.h, libbfd.h: Rebuilt.
2549
ff12f303
ILT
2550Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>
2551
2552 elf64-alpha multiple .got rewrite:
2553
2554 * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry.
2555 (bfd_elf*_mkobject): Don't define here ...
2556 * elfxx-target.h: ... but rather here. Default always_size_sections
2557 hook to NULL.
cf2cd4cf 2558 * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was
ff12f303
ILT
2559 what the #defines in elf-bfd.h transmuted it to anyway.
2560
2561 * section.c: Add SEC_LINKER_CREATED flag.
2562 * bfd-in2.h: Rebuild.
2563 * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to
2564 relocation section flags.
2565 (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of
2566 SEC_IN_MEMORY to recognize generated bits.
2567 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections):
2568 Likewise.
2569 * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections,
2570 mips_elf_create_compact_rel_section, mips_elf_create_got_section,
2571 mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise.
2572 * elf32-ppc.c (ppc_elf_create_linker_section,
2573 ppc_elf_size_dynamic_sections): Likewise.
2574 * elf32-sparc.c (elf32_sparc_check_relocs,
2575 elf32_sparc_size_dynamic_sections): Likewise.
cf2cd4cf 2576 * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to
ff12f303
ILT
2577 section flags.
2578 (_bfd_elf_create_dynamic_sections): Likewise.
2579 (_bfd_elf_make_linker_section_rela): Likewise.
2580 * elflink.h (elf_link_create_dynamic_sections): Likewise.
2581 (bfd_elf,size_dynamic_sections): Call the always_size_sections hook.
2582 (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY
2583 to identify generated bits.
2584 (elf_link_input_bfd): Likewise.
2585
2586 * elf64-alpha.c: Rewrite everything touching relocations.
2587
de224d6a
MM
2588Fri Jan 3 11:42:53 1997 Michael Meissner <meissner@tiktok.cygnus.com>
2589
2590 * elf32-v850.c (all functions and static variables): Go through
2591 and regularize names to be of the form v850_elf_<xxx>.
2592 (toplevel): Include <elf/v850.h>.
2593 (enum reloc_type): Move to include/elf/v850.h.
2594 (v850_elf_check_relocs): For common variables, if the variable is
2595 referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable
2596 into the appropriate section.
2597 (elf_backend_check_relocs): Define.
2598
afaed5e9
MM
2599Tue Dec 31 15:15:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2600
2601 * elf32-v850.c (elf_v850_howto_table): Fix some spacing.
2602
148437ec
ILT
2603Tue Dec 31 14:44:50 1996 Ian Lance Taylor <ian@cygnus.com>
2604
7c342fc5
ILT
2605 * config.bfd (mips*el-*-linux*): New target.
2606 (mips*-*-linux*): New target.
2607
2608 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
2609 Return a useful value.
2610
6ded6615
ILT
2611 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
2612
dda7af9f
ILT
2613 * configure.in: Check ac_cv_func_mmap_fixed_mapped, not
2614 ac_cv_func_mmap.
2615 * configure: Rebuild.
ab98712a
ILT
2616 * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
2617 ac_cv_func_mmap in bfd/configure.host.
dda7af9f 2618
148437ec
ILT
2619 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
2620 filter_shlib and auxiliary_filter_shlib parameters.
2621 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and
2622 DT_FILTER.
2623 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
2624 (bfd_elf64_size_dynamic_sections): Likewise.
2625 * bfd-in2.h: Rebuild.
2626
1eeccb22
ILT
2627Mon Dec 30 18:48:52 1996 Ian Lance Taylor <ian@cygnus.com>
2628
2629 * xcofflink.c (xcoff_build_ldsyms): When exporting all defined
2630 symbols, don't export a symbol which is defined by an object in an
2631 archive which contains shared objects.
2632
60b26712 2633start-sanitize-tic80
fc46a9ec
FF
2634Mon Dec 30 16:12:58 1996 Fred Fish <fnf@cygnus.com>
2635
2636 * archures.c (enum bfd_architecture): Add bfd_arch_tic80
2637 for TI TMS320c80 (MVP).
2638 (bfd_archures_list): Add bfd_tic80_arch.
2639 * bfd-in2.h: Regenerate by running "make headers".
2640
60b26712
FF
2641Sun Dec 29 16:18:52 1996 Fred Fish <fnf@cygnus.com>
2642
2643 * cpu-tic80.c (bfd_tic80_arch): Add struct.
2644 * configure.in (case $vec): Correct typo, "tb" not "tp".
2645 Also add cofflink.o for tic80coff_vec.
2646 * configure: Regenerate with autoconf.
2647
2648end-sanitize-tic80
412f8c93
ILT
2649Mon Dec 30 11:54:56 1996 Ian Lance Taylor <ian@cygnus.com>
2650
2651 * libbfd.c: Patch up the mmap code so that it is only built if BFD
2652 is configured with --with-mmap.
2653
5a608f5b 2654start-sanitize-tic80
fc46a9ec 2655Sun Dec 29 10:48:57 1996 Fred Fish <fnf@cygnus.com>
5a608f5b
FF
2656
2657 * Makefile.in (BFD32_BACKENDS): Add coff-tic80.o
2658 (ALL_MACHINES): Add cpu-tic80.o
2659 (cpu-tic80.o, coff-tic80.o): Add dependencies.
2660 * coff-tic80.c: Add skeleton, cloned from another coff config.
2661 * coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC
2662 for TIc80.
2663
2664end-sanitize-tic80
60b26712 2665Fri Dec 27 20:56:41 1996 Fred Fish <fnf@cygnus.com>
cd6213ff
FF
2666
2667 * TODO: Correct a misspelling.
2668start-sanitize-tic80
2669 * coff-tic80.c: New file for TI TMS320C80 (MVP).
2670 * cpu-tic80.c: New file for TI TMS320C80 (MVP).
2671 * configure.in (case $vec): Add tic80coff_vec entry.
2672 * configure: Regenerate with autoconf.
2673 * archures.c (bfd_tic80_arch): Declare.
2674 * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80.
2675 * config.bfd (case ${targ}): Add tic80*-*-coff* target.
2676 * targets.c (tic80coff_vec): Add decl as extern bfd_target.
2677 (bfd_target_vector): Add tic80coff_vec entry.
2678end-sanitize-tic80
2679
6b8ec6f3
ILT
2680Fri Dec 27 11:48:12 1996 H.J. Lu <hjl@lucon.org>
2681
2682 * elflink.h (elf_buckets): Add some more values for larger
2683 binaries.
2684
78650abd
ILT
2685Thu Dec 26 18:36:54 1996 Ian Lance Taylor <ian@cygnus.com>
2686
2687 * Makefile.in (install): Move subdir_do out of conditional. From
2688 Fred Fish <fnf@cygnus.com>.
2689
8d16fe5c
JL
2690Wed Dec 18 10:04:30 1996 Jeffrey A Law (law@cygnus.com)
2691
2692 * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
2693 32 bit relocs.
2694 (elf_mn10200_howto_table): Likewise.
2695 (mn10200_reloc_map): Likewise.
2696
69e2ff18
ILT
2697Tue Dec 17 11:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
2698
e4f4813f
ILT
2699 * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
2700 mips16 symbol during the link.
2701 (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a
2702 mips16 symbol.
2703 (mips_elf_link_output_symbol_hook): New static function.
2704 (elf_backend_link_output_symbol_hook): Define.
2705
69e2ff18
ILT
2706 * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
2707 not zero.
2708
e85f2fbd
ILT
2709Mon Dec 16 14:38:39 1996 Ian Lance Taylor <ian@cygnus.com>
2710
2711 * elf.c (bfd_section_from_shdr): Don't check for reloc sections
2712 against SEC_DEBUGGING sections here (revert patch of December 5).
2713 * elfcode.h (elf_object_p): Check for them here, instead.
2714
e35765a9
ILT
2715Sun Dec 15 14:46:06 1996 Ian Lance Taylor <ian@cygnus.com>
2716
2717 * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
2718 * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
2719 slurp_reloc_table.
2720 (_bfd_elf_get_dynamic_reloc_upper_bound): New function.
2721 (_bfd_elf_canonicalize_dynamic_reloc): New function.
2722 * elf-bfd.h (struct elf_size_info): Update declaration of
2723 slurp_reloc_table.
2724 (_bfd_elf_get_dynamic_reloc_upper_bound): Declare.
2725 (_bfd_elf_canonicalize_dynamic_reloc): Declare.
2726 * elfxx-target.h: Use new dynamic reloc routines by default.
2727 * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic
2728 parameter.
2729
6270adfb
ILT
2730Fri Dec 13 13:18:49 1996 Dan Wilder <dan@gasboy.com>
2731
2732 * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
2733 if NAMES_HAVE_UNDERSCORE is defined.
2734
21e45f82
DE
2735Fri Dec 13 11:13:23 1996 Doug Evans <dje@canuck.cygnus.com>
2736
2737 * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
2738
e7bab9df
MM
2739Thu Dec 12 15:07:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2740
2741 * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the
2742 supported relocs.
2743
a5147005
ILT
2744Thu Dec 12 14:55:41 1996 Ian Lance Taylor <ian@cygnus.com>
2745
440f3914
ILT
2746 * elflink.h (elf_link_add_object_symbols): Only add a weak
2747 symbol if the real definition is in the dynamic symbol table.
2748 After finding the real definition, then, if it is dynamic, add the
2749 weak symbol to the dynamic symbol table.
2750
e5c3708d
ILT
2751 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
2752
a5147005
ILT
2753 * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
2754 function.
2755 (ppcboot_bfd_print_private_bfd_data): Don't take the address of an
2756 array.
2757
2758Tue Dec 10 23:23:52 1996 Jeffrey A Law (law@cygnus.com)
2759
2760 * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
2761 variants.
2762 (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise.
2763 (bfd_elf32_mn10300_reloc): Write data in little endian format.
2764 * reloc.c: Remove mn10300 big endian relocs.
2765 * bfd-in2.h, libbfd.h: Rebuilt.
2766
2767 * elf32-mn10200.c: Update from elf32-mn10300.c.
cf2cd4cf 2768
207e944c
JL
2769Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com)
2770
31cffd2e
JL
2771 * elf32-mn10300.c (elf_symbol_leading_char): Define.
2772
207e944c
JL
2773 * elf32-mn10300.c: Add some comments.
2774
6dcf1ef5
ILT
2775Fri Dec 6 17:16:43 1996 Ian Lance Taylor <ian@cygnus.com>
2776
2777 * ihex.c (ihex_scan): Always initialize buf before jumping to
2778 error_return.
2779 (ihex_read_section): Likewise.
2780
d28f058e
JL
2781Thu Dec 5 22:29:18 1996 Jeffrey A Law (law@cygnus.com)
2782
2783 * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
2784 inplace for most relocs.
2785
80be821d
ILT
2786Thu Dec 5 13:24:46 1996 Ian Lance Taylor <ian@cygnus.com>
2787
2788 * elflink.h (elf_link_add_object_symbols): Calling check_relocs
2789 even if SEC_ALLOC is not set.
2790 * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC
2791 when deciding whether to copy a reloc into a shared object.
2792 (elf_i386_relocate_section): Likewise.
2793 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
2794 (elf32_sparc_relocate_section): Likewise.
2795 * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a
2796 reloc section if it is not set in the source section.
2797 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
2798 * elf.c (bfd_section_from_shdr): Mark a reloc section associated
2799 with a SEC_DEBUGGING section as SEC_DEBUGGING.
2800
e5c4495c
MM
2801Wed Dec 4 14:18:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2802
2803 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that
2804 expects a .got.plt until we actually create it.
2805
179b58d9
ILT
2806Mon Dec 2 12:13:51 1996 Ian Lance Taylor <ian@cygnus.com>
2807
e5c4495c
MM
2808 * cofflink.c (_bfd_coff_generic_relocate_section): Print an error
2809 message for bfd_reloc_outofrange, rather than aborting. From
2810 Philippe De Muyter <phdm@info.ucl.ac.be>.
2811
179b58d9
ILT
2812 * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in
2813 a relocateable link, don't try to process them. From Heinz Wrobel
2814 <wrobel@lpr.e-technik.tu-muenchen.de>.
2815
943686fa
JL
2816Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com)
2817
2818 * elf32-mn10300.c (mn10300_info_howto): Renamed from
a5147005 2819 mn10300_info_howto_rel. Tweak reloc argument to be an
943686fa
JL
2820 Elf32_Internal_Rela.
2821 (USE_RELA): Define instead of USE_REL.
2822 (elf_info_to_howto, elf_info_howto_rel): Corresponding changes.
2823
0e0f4106
PS
2824Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2825
2826 * configure.in, configure: Handle mips*-sgi-irix6*.
2827 * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32
2828 core files.
2829
15aafe49
ILT
2830Wed Nov 27 12:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
2831
2832 * elf32-i386.c (elf_i386_relocate_section): Warn about a
2833 relocation against a symbol defined in a section with no output
2834 section.
2835
6c02f1a0
ILT
2836Tue Nov 26 11:07:31 1996 Ian Lance Taylor <ian@cygnus.com>
2837
dfc7020d
ILT
2838 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.
2839 * configure, config.in: Rebuild with autoconf 2.12.
2840
6c02f1a0
ILT
2841 * elf-bfd.h (struct elf_link_hash_entry): Add other field.
2842 * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field.
2843 (swap_out_syms): Set st_other from existing st_other field.
2844 * elflink.h (elf_link_add_object_symbols): Store st_other in hash
2845 table other field.
2846 (elf_link_output_extsym): Set the other field from the global hash
2847 table entry.
2848 * elf32-mips.c (enum reloc_type): Add R_MIPS16_26.
2849 (elf_mips16_jump_howto): New static variable.
2850 (mips16_jump_reloc): New static function.
2851 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP.
2852 (mips_info_to_howto_rel): Handle R_MIPS16_26.
2853 (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26
2854 to a mips16 symbol.
2855 * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs.
2856 * bfd-in2.h, libbfd.h: Rebuild.
2857 * cpu-mips.c (arch_info_struct): Add mips:16 entry.
2858
f082b5ea
ILT
2859Mon Nov 25 11:23:32 1996 Ian Lance Taylor <ian@cygnus.com>
2860
2861 * configure.host: Use long long for mips-sgi-irix6*.
2862
2863 * coffswap.h (coff_swap_scnhdr_out): Make line number overflow
2864 only a warning. From Philippe De Muyter <phdemuyt@ulb.ac.be>.
2865
12fdaaf8
JL
2866Mon Nov 25 08:52:29 1996 Jeffrey A Law (law@cygnus.com)
2867
2868 * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function.
2869 (enum reloc_type): Add more reloc types.
2870 (elf32_mn10300_howto_table): Update for new reloc types.
2871 (elf32_mn10300_reloc_map): Update for new reloc types.
2872 * reloc.c: Add some new relocs for the mn10300 series.
2873 * bfd-in2.h, libbfd.h: Rebuilt.
cf2cd4cf 2874
23def276
JL
2875Sat Nov 23 13:26:18 1996 Jeffrey A Law (law@cygnus.com)
2876
2877 * som.c (setup_sections): Don't lose for a space which has
2878 no data, but some symbols.
2879
a600a89e
ILT
2880Fri Nov 22 11:32:13 1996 Ian Lance Taylor <ian@cygnus.com>
2881
2882 * sunos.c (struct sunos_link_hash_table): Add got_needed field.
2883 (sunos_link_hash_table_create): Initialize got_needed.
2884 (sunos_create_dynamic_sections): Only set .got section size if it
2885 is not already set. Set got_needed.
2886 (bfd_sunos_size_dynamic_sections): Check got_needed. Only set
2887 sdynptr, and only handle dynamic sections, if dynamic sections are
2888 needed.
2889 (sunos_scan_std_relocs): Pass false to create_dynamic_sections.
2890 Initialize .got section.
2891 (sunos_scan_ext_relocs): Likewise.
2892 (sunos_write_dynamic_symbol): Set up PLT entry even if this is not
2893 a dynamic symbol.
2894 (sunos_finish_dynamic_link): Check got_needed. Only set up
2895 dynamic linking information if needed.
2896
aa09d6b2 2897Thu Nov 21 10:31:31 1996 Rob Savoye (rob@cygnus.com)
cf2cd4cf 2898
aa09d6b2
RS
2899 * config.bfd: Added VersaDOS format to the Ericsson configuration.
2900
c3239e66
JL
2901Wed Nov 20 16:31:31 1996 Jeffrey A Law (law@cygnus.com)
2902
2903 * elf32-mn10300.c: Rough cut at relocs for the mn10300.
2904
c3239e66
JL
2905Wed Nov 13 08:12:38 1996 Jeffrey A Law (law@cygnus.com)
2906
2907 * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h
2908 anymore.
2909
c3239e66
JL
2910Tue Nov 12 13:30:00 1996 Dawn Perchik <dawn@cygnus.com>
2911
2912 * filemode.c: Include sysdep.h.
2913 * ihex.c: Add casts to eliminate compiler warnings.
2914 * sunos.c: Add casts to eliminate compiler warnings.
2915
9e23db76
MM
2916Mon Nov 11 10:37:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2917
2918 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt
2919 section.
2920 (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make
2921 appropriate relocations in the .so file if shared.
2922 (ppc_elf_relocate_section): Ditto.
2923
affcfcf9
DE
2924Tue Oct 29 15:03:02 1996 Doug Evans <dje@canuck.cygnus.com>
2925
2926 * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
2927 complain_overflow_unsigned.
2928
421a2956
MH
2929Tue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2930
2931 * elf32-d10v.c (elf_d10v_howto_table): Don't complain on
2932 overflows for R_D10V_16 and R_D10V_18.
2933
061cc10b
ILT
2934Tue Oct 29 13:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
2935
2936 * ieee.c (ieee_write_section_part): Use LMA rather than VMA.
2937 (do_with_relocs): Likewise.
2938 (do_as_repeat): Likewise.
2939 (copy_expression): Likewise.
2940
2941Fri Oct 25 16:56:40 1996 Ian Lance Taylor <ian@cygnus.com>
2942
2943 * ieee.c (ieee_write_external_part): Correctly record whether
2944 there is an external part.
2945
061cc10b
ILT
2946Thu Oct 24 14:32:52 1996 Jeffrey A Law (law@cygnus.com)
2947
2948 * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly
2949 handle tda offsets for sld.w and sst.w instructions.
2950 Fix alignment check in sld.w and sst.w tda reloc handling.
2951
27c7e907
SG
2952Thu Oct 24 09:08:47 1996 Stu Grossman (grossman@critters.cygnus.com)
2953
2954 * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows.
2955
90ffe48b
JL
2956Wed Oct 23 00:53:16 1996 Jeffrey A Law (law@cygnus.com)
2957
2958 * elf32-v850.c: Add comments about assumptions about
2959 char, short & long sizes.
2960 (elf32_v850_bfd_final_link_relocate): Fix sign extension
2961 problems for several relocs.
2962
2963 * elf32-v850.c (elf32_v850_howto_table): Fix typo in
2964 R_V850_SDA_OFFSET entry.
2965
84be2a8f
ILT
2966Wed Oct 23 00:20:34 1996 Ian Lance Taylor <ian@cygnus.com>
2967
2968 * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
2969 Store import file index in ldindx.
2970 (xcoff_build_ldsyms): Assume that ldsym was not previously
2971 allocated. For an imported symbol, copy ldindx into l_ifile.
2972
725b96f5
JL
2973Tue Oct 22 19:20:38 1996 Jeffrey A Law (law@cygnus.com)
2974
c322f1b5 2975 * elf32-v850.c (elf_v850_howto_table): Fix ordering of
90ffe48b
JL
2976 R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET. Fix various
2977 fields in R_V850_TDA_OFFSET.
c322f1b5 2978 (elf32_v850_bfd_final_link_relocate): Tweak pc-relative
90ffe48b 2979 relocs to work more like other relocs. Handle R_V850_TDA_OFFSET
c322f1b5
JL
2980 relocations.
2981
725b96f5
JL
2982 * elf32-v850.c: Include bfdlink.h.
2983 (bfd_elf32_v850_reloc): Return an error if we get a reloc
2984 we can't handle.
2985 (elf32_v850_bfd_final_link_relocate): New function.
2986 (v850_elf_relocation_section): Likewise.
2987 (elf_backend_relocate_section): Define.
2988
40c0ea5a
ILT
2989Tue Oct 22 17:22:43 1996 Ian Lance Taylor <ian@cygnus.com>
2990
2991 * binary.c (binary_set_section_contents): Ignore sections which
2992 don't have SEC_LOAD and SEC_ALLOC set.
2993
9c52f4b2
JL
2994Mon Oct 21 12:13:05 1996 Jeffrey A Law (law@cygnus.com)
2995
2996 * linker.c (_bfd_generic_final_link): Avoid losing static
2997 symbols in the .bss section.
2998
bd4dd3d0
ILT
2999Mon Oct 21 10:54:58 1996 Ian Lance Taylor <ian@cygnus.com>
3000
68553b63
ILT
3001 * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64.
3002 (mips32_64bit_reloc): New static function.
3003 (mips_reloc_map): Add entry for BFD_RELOC_64.
3004 (mips_elf_relocate_section): Handle R_MIPS_64.
3005
bd4dd3d0
ILT
3006 * linker.c (default_indirect_link_order): Print an error message
3007 when attempting to do a relocateable link with different object
3008 file formats, rather than calling abort.
3009
56910544
DE
3010Thu Oct 17 10:43:29 1996 Doug Evans <dje@canuck.cygnus.com>
3011
3012 * reloc.c (m32r relocs): Rename them.
3013 * bfd-in2.h, libbfd.h: Regenerated.
3014 * elf32-m32r.c: Update.
3015 (m32r_elf_10_pcrel_reloc): New function.
3016 (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it.
3017 (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks.
3018
e1d98a0a
JL
3019Wed Oct 16 11:24:35 1996 Jeffrey A Law (law@cygnus.com)
3020
4948949e
JL
3021 * linker.c (_bfd_generic_final_link): Set "linker_mark" for
3022 all sections that will be included in the output file.
3023 (_bfd_generic_link_output_symbols): Discard symbols in sections
3024 which are being discarded.
b6d08fce
JL
3025 * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,
3026 R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET.
3027 (elf_v850_howto_table): Corresponding changes.
3028 (elf_v850_reloc_map): Corresponding changes.
3029 * reloc.c: Add additional V850 relocations.
3030 * bfd-in2.h, libbfd.h: Rebuilt.
3031
e1d98a0a
JL
3032 * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
3033 no longer want in pc-relative relocs.
3034
05f1baaa
JL
3035Tue Oct 15 22:17:37 1996 Jeffrey A Law (law@cygnus.com)
3036
3037 * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
3038 accept a reloc against an undefined sybmol!
3039
1336da39
SG
3040Tue Oct 15 16:17:28 1996 Stu Grossman (grossman@critters.cygnus.com)
3041
3042 * elf32-v850.c: Define elf_symbol_leading_char to be '_'.
3043
c24453fe
ILT
3044Tue Oct 15 12:40:41 1996 Ian Lance Taylor <ian@cygnus.com>
3045
ede836b9
ILT
3046 * VERSION: Bump for new relocation.
3047
c24453fe
ILT
3048 * hosts/i386bsd.h: If NBPG is not defined, define it as
3049 PAGE_SIZE, for recent versions of FreeBSD.
3050
e7a50458
ILT
3051Mon Oct 14 12:37:26 1996 Ian Lance Taylor <ian@cygnus.com>
3052
3053 * configure.host: Use `long long' as the 64 bit type on a Solaris
3054 host, since both gcc and the SunPRO compilers support it.
3055
6b31fd3a
ILT
3056Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu>
3057
cf2cd4cf 3058 * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a
6b31fd3a
ILT
3059 mistake to have reused the ECOFF LITERAL for ELF since they have
3060 different semantics.
3061 * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL.
3062 * bfd-in2.h, libbfd.h: Rebuild.
3063
3064 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
3065 section overflow.
3066
3067 * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a
3068 dynamic relocation for an undefweak symbol when we are building
3069 a static executable.
3070
f20f2474
SS
3071Thu Oct 10 11:15:06 1996 Stan Shebs <shebs@andros.cygnus.com>
3072
3073 * mpw-make.sed (config.bfd, targmatch.sed): Edit references to
3074 point explicitly to srcdir.
3075 (targmatch.h): Edit references to point explicitly to objdir.
3076
3e222a5a
ILT
3077Thu Oct 10 14:14:23 1996 Ian Lance Taylor <ian@cygnus.com>
3078
3079 * config.bfd: When setting targ_cpu, don't get confused by
3080 linux-gnu.
3081
81501797
SG
3082Tue Oct 8 08:51:19 1996 Stu Grossman (grossman@critters.cygnus.com)
3083
3084 * configure.host: Add support for windows host (a build done
3085 under the Microsoft build environment).
3086
fe4ff515
ILT
3087Tue Oct 8 11:40:16 1996 Ian Lance Taylor <ian@cygnus.com>
3088
1c4794f5
ILT
3089 * elflink.h (elf_link_add_object_symbols): If a symbol is a weak
3090 definition in a dynamic object, add it to the dynamic symbol table
3091 if any dynamic object mentions it. Reverts part of last patch.
3092
9d81de19
ILT
3093 * sunos.c (struct sunos_link_hash_table): Add got_base field.
3094 (sunos_link_hash_table_create): Initialize got_base.
3095 (bfd_sunos_size_dynamic_sections): If the .got section is more
3096 than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to
3097 0x1000.
3098 (sunos_check_dynamic_reloc): Subtract got_base from a base
3099 relative relocation.
3100
fe4ff515
ILT
3101 * elf32-mips.c (elf_mips_isa): New static function.
3102 (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking
3103 -mips1 and -mips2 code together, or -mips3 and -mips4 code.
3104
1233f74b
ILT
3105Mon Oct 7 11:44:17 1996 Ian Lance Taylor <ian@cygnus.com>
3106
3107 * archive.c (do_slurp_coff_armap): Only treat archive as little
3108 endian for i960 COFF.
3109
a3d5a706
ILT
3110Fri Oct 4 13:49:01 1996 Ian Lance Taylor <ian@cygnus.com>
3111
65f56a58
ILT
3112 * coffcode.h (coff_compute_section_file_positions): Adjust sofar
3113 by the change in size of the section when EXEC_P is not set.
3114
a9dd34a9
ILT
3115 * coff-m68k.c (coff_rtype_to_howto): Define if not defined.
3116 (m68kcoff_rtype_to_howto): New static function.
3117 * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
3118 VMA to the addend for a PC relative reloc.
3119
05a68c24
ILT
3120 * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
3121 HP/UX 10.20.
3122 * Makefile.in: Rebuild dependencies.
3123
a3d5a706
ILT
3124 * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when
3125 som.h is included.
3126
c00ae065
JL
3127Fri Oct 4 11:41:39 1996 Jeffrey A Law (law@cygnus.com)
3128
3129 * Makefile.in: Remove explicit dependencies for mn10200 and
3130 mn10300 files.
3131 (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c.
3132 (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c
3133 (dependencies): Rebuilt.
3134
dee99794
ILT
3135Thu Oct 3 16:57:51 1996 Ian Lance Taylor <ian@cygnus.com>
3136
1d871eb7
ILT
3137 * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms
3138 during this function.
3139
6b5af55c
ILT
3140 * elflink.c (_bfd_elf_create_linker_section): Only use an existing
3141 section if the flags are compatible.
3142
dee99794
ILT
3143 * configure.in: Add havevecs, and put it in tdefaults.
3144 * mpw-config.in: Likewise.
3145 * configure: Rebuild.
3146 * targmatch.sed: New file; a sed script to build targmatch.h from
3147 config.bfd.
3148 * config.bfd: Add #if, #endif, and comments for targmatch.h.
3149 * targets.c: Include "fnmatch.h".
3150 (struct targmatch): Define.
3151 (bfd_target_match): Define by including targmatch.h.
3152 (bfd_find_target): If the target is not found by name, search for
3153 it as a configuration triplet.
3154 * Makefile.in: Rebuild dependencies.
3155 (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o,
3156 i386dynix.o, m68k4knetbsd.o, and riscix.o.
3157 (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c,
3158 hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c.
3159 (HFILES): Add targmatch.h. Also, alphabetize and reindent.
3160 (CFILES): Remove i386dynix.c and hp300bsd.c.
3161 (targmatch.h): New target.
3162 (do_clean): Remove targmatch.h.
3163
3164 * configure.in: Add BFD_NEED_DECLARATION(getenv).
3165 * acconfig.h: Add NEED_DECLARATION_GETENV.
3166 * configure, config.in: Rebuild.
3167 * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv.
3168 * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
3169
ae1b99e4
JL
3170Thu Oct 3 09:29:09 1996 Jeffrey A Law (law@cygnus.com)
3171
3172 * cpu-mn10x00.c, elf32-mn10x00: Removed.
3173 * cpu-mn10200.c, cpu-mn10300.c: New files.
3174 * elf32-mn10200.c, elf32-mn10300.c: New files.
3175 * Makefile.in: Break mn10x00 support into two separate
3176 configurations, mn10200 and mn10300.
3177 * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise.
3178 * bfd-in2.h, configure: Rebuilt.
3179
4c7f3fde
JM
3180Thu Oct 3 15:38:19 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3181
3182 * Makefile.in (do_clean): Move config.log to do_distclean.
3183
efc2b064
JL
3184Wed Oct 2 21:40:55 1996 Jeffrey A Law (law@cygnus.com)
3185
3186 * cpu-mn10x00.c, elf32-mn10x00.c: New files.
3187 * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o.
3188 (BFD32_BACKENDS): Similarly for elf32-mn10x00.o.
3189 (elf32-mn10x00.o): Add dependencies.
3190 * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00.
3191 (bfd_mn10x00_arch): Declare.
3192 (bfd_archures_list): Add bfd_mn10x00_arch.
3193 * config.bfd: Add mn10x00-*-*.
3194 * configure.in: Add bfd_elf32_mn10x00_vec.
3195 * elf.c (prep_headers): Handle bfd_arch_mn10x00.
3196 * targets.c (bfd_elf32_mn10x00_vec): Declare.
3197 (bfd_target_vector): Add bfd_elf32_mn10x00_vec.
3198 * bfd-in2.h, configure: Rebuilt.
cf2cd4cf 3199
bf53bd9f
ILT
3200Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de>
3201
3202 openVMS/Alpha: Provide filename and case_hack flags via
3203 symbol table from gas.
3204 Add case_hack code for symbol output from vax/vms.
3205 * evax-alpha.c (evax_initialize): Remove filename handling,
3206 filename is provided via symbol table.
3207 (evax_get_symtab): Use local symbol count when setting up table.
3208 * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when
3209 debugging.
3210 (_bfd_evax_write_egsd): Skip file name symbol.
3211 * evax-emh.c (get_vms_time_string): Local function now.
3212 (_bfd_evax_write_emh): Extract source filename and case_hack flags
3213 from symbol table.
3214 * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names
3215 through _bfd_evax_case_hack_symbol.
3216 * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New
3217 functions.
3218 (_bfd_evax_basename): Removed.
3219 (_bfd_get_vms_time_string): Moved to evax-emh.c.
3220 * evax.h (evax_private_data_struct): Remove filename.
3221 (flag_hash_long_names, flag_show_after_trunc,
3222 flag_no_hash_mixed_case, vms_name_mapping): New flags for
3223 vms_case_hack.
3224
263d4a62
ILT
3225Wed Oct 2 12:02:02 1996 Ian Lance Taylor <ian@cygnus.com>
3226
a0fe6c2d
ILT
3227 * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl.
3228 (N_GETMID_NET, N_GETFLAG_NET): Likewise.
3229 (NO_SWAP_MAGIC): Don't define.
3230 (SWAP_MAGIC): Define.
3231
263d4a62
ILT
3232 * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
3233 no hash table entry for a global symbol.
3234
161ac690
ILT
3235Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>
3236
3237 * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
3238
0db6249c
ILT
3239Tue Oct 1 12:31:39 1996 Ian Lance Taylor <ian@cygnus.com>
3240
8dd53b5c
ILT
3241 * cofflink.c (coff_link_add_symbols): Don't override a meaningful
3242 symbol type with T_NULL. Warn if symbol type changes. Based on
e5c4495c 3243 patch from Philippe De Muyter <phdm@info.ucl.ac.be>.
8dd53b5c 3244
0db6249c
ILT
3245 * elflink.h (elf_link_add_object_symbols): Only put a symbol from
3246 a dynamic object in the dynamic symbol table if it is referenced
3247 or defined by a regular object.
3248
0db6249c
ILT
3249Fri Sep 27 18:41:07 1996 Stu Grossman (grossman@critters.cygnus.com)
3250
3251 * elf32-v850.c (bfd_elf32_v850_is_local_label): New function to
3252 remove dwarf local labels. Shrinks binaries by a factor of 3!
3253
0db6249c
ILT
3254Mon Sep 23 13:33:00 1996 Ian Lance Taylor <ian@cygnus.com>
3255
3256 * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
3257 by hand, rather than by calling bfd_make_section.
3258
80675684
DE
3259Mon Sep 23 09:23:41 1996 Doug Evans <dje@seba.cygnus.com>
3260
3261 * reloc.c: Rename m32r relocs.
3262 * bfd-in2.h, libbfd.h: Rebuilt.
3263 * elf32-m32r.c: Update.
80675684 3264
a5a43df1
ILT
3265Fri Sep 20 11:43:43 1996 Ian Lance Taylor <ian@cygnus.com>
3266
e12ab364
ILT
3267 * aoutx.h (aout_link_input_section_ext): When doing a relocateable
3268 link, adjust the symbol index of a base relative reloc. Don't
3269 change the addend of a PC relative reloc if pcrel_offset is set.
3270 * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for
3271 a relocateable link.
3272
a5a43df1
ILT
3273 * reloc.c (bfd_perform_relocation): Apply the relocation even if
3274 it is zero, in case src_mask matters.
3275 (bfd_install_relocation): Likewise.
3276
e425358f
ILT
3277Thu Sep 19 11:03:06 1996 Ian Lance Taylor <ian@cygnus.com>
3278
3279 * xcofflink.c (xcoff_link_add_symbols): Always initialize
3280 keep_syms.
3281 (_bfd_xcoff_bfd_final_link): Don't set target_index
3282 to an uninitialized value.
3283
7f21c97c
ILT
3284Tue Sep 17 14:18:31 1996 Ian Lance Taylor <ian@cygnus.com>
3285
3286 * coffcode.h (coff_slurp_line_table): Warn about illegal symbol
3287 indices, rather than crashing.
3288 (coff_slurp_reloc_table): Likewise. Check whether the howto field
3289 is NULL.
8d784abe
ILT
3290 * coff-sh.c (sh_relocate_section): Check for an illegal symbol
3291 index.
7f21c97c 3292
9859bc31
ILT
3293Mon Sep 16 12:39:36 1996 Ian Lance Taylor <ian@cygnus.com>
3294
1153e84b
ILT
3295 * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D
3296 reloc to 0.
3297 (coff_arm_adjust_symndx): New static function.
3298 (coff_adjust_symndx): Define.
3299
9859bc31
ILT
3300 * srec.c (srec_scan): Accept multiple symbols on a single line.
3301 From Pascal Martin <pmartin@alsys.com>.
3302
3303 * README: New file.
3304
f8b82e49
DE
3305Fri Sep 13 14:32:42 1996 Doug Evans <dje@canuck.cygnus.com>
3306
3307 * aoutf1.h (MY_bfd_merge_private_bfd_data): Define.
3308 (sunos_merge_private_bfd_data): New function.
3309
0a7b8735
ILT
3310Fri Sep 13 15:50:57 1996 Ian Lance Taylor <ian@cygnus.com>
3311
76d30c3f
ILT
3312 * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
3313 than input BFD.
3314 (bfd_merge_private_bfd_data): Likewise.
3315 * section.c (bfd_copy_private_section_data): Likewise.
3316 * syms.c (bfd_copy_private_symbol_data): Likewise.
3317 * bfd-in2.h: Rebuild.
3318 * aout-target.h (MY_bfd_copy_private_section_data): Check that
3319 both BFD's are the right flavour.
3320 * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise.
3321 * elf.c (_bfd_elf_copy_private_symbol_data): Likewise.
3322 * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise.
3323 (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3324 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise.
3325 (ppc_elf_merge_private_bfd_data): Likewise.
3326 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise.
3327 * peicode.h (pe_bfd_copy_private_section_data): Likewise.
3328
0a7b8735
ILT
3329 * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for
3330 R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes
3331 its sanity check.
3332
3ebefb07
DE
3333Thu Sep 12 11:45:57 1996 Doug Evans <dje@seba.cygnus.com>
3334
3335 * reloc.c: Add m32r relocs.
3336 * bfd-in2.h, libbfd.h: Rebuilt.
6cb9c903 3337 * cpu-m32r.c,elf32-m32r.c: New files.
3ebefb07 3338
cacfb845
ILT
3339Thu Sep 12 11:10:05 1996 Ian Lance Taylor <ian@cygnus.com>
3340
3341 * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
3342
d7775b43
ILT
3343Wed Sep 11 11:57:56 1996 Ian Lance Taylor <ian@cygnus.com>
3344
e461da9b
ILT
3345 * tekhex.c (first_phase): Change type parameter from char to int.
3346 (out): Likewise.
3347 (pass_over): Change func to expect int, not char.
3348
d7775b43
ILT
3349 * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
3350 rather than SEC_LOAD when aligning the file offset for the first
3351 section in a segment.
3352
ea3f0585
FF
3353Tue Sep 10 16:18:30 1996 Fred Fish <fnf@cygnus.com>
3354
3355 * syms.c (coff_section_type): Make arg const.
3356 * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
3357 to make_bfd_asection().
3358 * elf-bfd.h (bfd_section_from_phdr): Add prototype.
3359 * elfcode.h (bfd_section_from_phdr): Remove prototype.
3360 (_bfd_elf_stringtab_init): Remove prototype.
3361
3362 * netbsd-core.c (swap_abort): Add prototype.
3363 * aix386-core.c (swap_abort): Ditto & make static
3364 * hpux-core.c (swap_abort): Ditto & make static.
3365 * irix-core.c (swap_abort): Ditto & make static.
3366 * ptrace-core.c (swap_abort): Ditto & make static.
3367 * trad-core.c (swap_abort): Ditto & make static.
3368 * coffswap.h (coff_swap_reloc_in): Ditto.
3369 (coff_swap_reloc_out): Ditto.
3370 (coff_swap_filehdr_in): Ditto.
3371 (coff_swap_filehdr_out): Ditto.
3372 (coff_swap_sym_in): Ditto.
3373 (coff_swap_sym_out): Ditto.
3374 (coff_swap_aux_in): Ditto.
3375 (coff_swap_aux_out): Ditto.
3376 (coff_swap_lineno_in): Ditto.
3377 (coff_swap_lineno_out): Ditto.
3378 (coff_swap_aouthdr_in): Ditto.
3379 (coff_swap_aouthdr_out): Ditto.
3380 (coff_swap_scnhdr_in): Ditto.
3381 (coff_swap_scnhdr_out): Ditto.
3382 * ihex.c (ihex_sizeof_headers): Ditto.
3383 * tekhex.c (getsym): Ditto.
3384 (find_chunk): Ditto & make static.
3385 (insert_byte): Ditto.
3386 (first_phase): Ditto.
3387 (pass_over): Ditto.
3388 (tekhex_get_symtab): Ditto & make static.
3389 (tekhex_get_symtab_upper_bound): Ditto & make static.
3390 (tekhex_mkobject): Ditto.
3391 (tekhex_object_p): Ditto.
3392 (move_section_contents): Ditto.
3393 (tekhex_get_section_contents): Ditto.
3394 (tekhex_set_arch_mach): Ditto & make static.
3395 (tekhex_set_section_contents): Ditto.
3396 (writevalue): Ditto.
3397 (writesym): Ditto.
3398 (out): Ditto.
3399 (tekhex_write_object_contents): Ditto.
3400 (tekhex_sizeof_headers): Ditto.
3401 (tekhex_make_empty_symbol): Ditto.
3402 (tekhex_get_symbol_info): Ditto.
3403 (tekhex_print_symbol): Ditto.
3404 * irix-core.c (make_bfd_asection): Ditto.
3405 (irix_core_core_file_p): Ditto.
3406 (irix_core_core_file_failing_command): Ditto.
3407 (irix_core_core_file_failing_signal): Ditto.
3408 (irix_core_core_file_matches_executable_p): Ditto.
3409 (irix_core_make_empty_symbol): Ditto.
3410 * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
3411 * srec.c (srec_new_symbol): Ditto.
3412 (srec_get_section_contents): Ditto.
3413 (srec_set_arch_mach): Ditto.
3414 (srec_set_section_contents): Ditto.
3415 (internal_srec_write_object_contents): Ditto.
3416 (srec_write_object_contents): Ditto.
3417 (symbolsrec_write_object_contents): Ditto.
3418 (srec_sizeof_headers): Ditto.
3419 (srec_make_empty_symbol): Ditto.
3420 (srec_get_symtab_upper_bound): Ditto.
3421 (srec_get_symtab): Ditto.
3422 (srec_print_symbol): Ditto and make static.
3423 * elf.c (elf_read): Ditto
3424 (assign_section_numbers): Ditto.
3425 (elf_fake_sections): Ditto.
3426 (sym_is_global): Ditto.
3427 (elf_map_symbols): Ditto.
3428 (get_program_header_size): Ditto.
3429 * coffgen.c (make_a_section_from_file): Ditto.
3430 (coff_real_object_p): Ditto.
3431 (fixup_symbol_value): Ditto.
3432 (build_debug_section): Ditto.
3433 (copy_name): Ditto.
3434 * syms.c (coff_section_type): Ditto.
cf2cd4cf 3435
00d7a64b
JL
3436Mon Sep 9 22:36:01 1996 Jeffrey A Law (law@cygnus.com)
3437
3438 * bfd-in2.h: Rebuilt after m32r changes.
3439
71d7d44f
DE
3440Mon Sep 9 12:31:22 1996 Doug Evans <dje@canuck.cygnus.com>
3441
66e4c229 3442 * config.bfd,configure.in,configure: Add m32r support.
f0c12b73 3443 * Makefile.in,archures.c,elf.c,targets.c: Likewise.
71d7d44f
DE
3444 * config.bfd: Keep target list alphabetically sorted.
3445
629f776a
JL
3446Mon Sep 9 11:48:41 1996 Jeffrey A Law (law@cygnus.com)
3447
3448 * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
3449 to add in the constant part found in the instruction itself.
3450 (case R_V850_HI16_S): Likewise.
3451
9c85b19d
MH
3452Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3453
3454 * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
3455 and R_D10V_18 to be 1 (word).
3456
4be2140e
ILT
3457Thu Sep 5 15:23:08 1996 Ian Lance Taylor <ian@cygnus.com>
3458
3459 * stabs.c (_bfd_link_section_stabs): If the output_section field
3460 of either section is bfd_abs_section, then the linker is
3461 discarding the section and we should not optimize it.
3462
0cd98b92
DE
3463Tue Sep 3 12:16:20 1996 Doug Evans <dje@canuck.cygnus.com>
3464
3465 * Makefile.in (aout-sparcle.o): New target.
3466 * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
3467 * config.bfd (sparclet-*-aout*): Add case.
3468 * configure.in (sparcle_aout_vec): Add case.
3469 * configure: Regenerated.
0cd98b92
DE
3470 * targets.c (sparcle_aout_vec): Declare.
3471 (bfd_target_vector): Add sparcle_aout_vec.
3472 * aout-sparcle.c: New file.
3473
7b0af209 3474Tue Sep 3 00:57:02 1996 Jeffrey A Law (law@cygnus.com)
b5ef63c4 3475
e73b6ae6
JL
3476 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
3477 low order sign bit propogation for R_V850_HI16_S.
3478
3479 * elf32-v850.c (bfd_elf32_v850_reloc): New function for
7b0af209
JL
3480 handling V850 specific relocs.
3481 (elf_v850_howto_table): Use the new function for some
3482 relocations. Twiddle masks & shifts for some relocs.
3483 Set partial_inplace where needed.
3484
7b0af209
JL
3485Mon Sep 2 12:12:34 1996 Ian Lance Taylor <ian@cygnus.com>
3486
3487 * cpu-mips.c: Add an explicit mips:3000 entry, and change the
3488 default architecture to a machine number of 0.
3489 * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number
3490 for E_MIPS_ARCH_1.
3491 (_bfd_mips_elf_merge_private_bfd_data): If the machine number of
3492 the output BFD is the default, set it from the first input BFD.
3493
7b0af209
JL
3494Sun Sep 1 18:38:01 1996 Jeffrey A Law (law@cygnus.com)
3495
3496 * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs
3497 insert at bitpos zero. The HI16 relocs are shifted right
3498 by 16 bits. Fix src_mask for all relocs.
3499 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is
3500 little endian!
3501 (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little
3502 endian!
b5ef63c4 3503
bde9d875
ILT
3504Sun Sep 1 15:41:08 1996 Ian Lance Taylor <ian@cygnus.com>
3505
3506 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
3507 Rewrite to use BFD file read routines and to avoid using a fixed
3508 length for the file name.
3509
237b5c4c
JL
3510Sat Aug 31 10:22:25 1996 Jeffrey A Law (law@cygnus.com)
3511
3512 * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
3513 (elf_v850_howto_table): Add support for R_V850_{32,16,8}.
3514 (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
3515 to R_V850_{32,16,8}.
3516
01b49cb3
C
3517Fri Aug 30 18:06:04 1996 J.T. Conklin <jtc@hippo.cygnus.com>
3518
3519 * elf32-v850.c (reloc_type): Add R_V850_HI16_S.
3520 (elf_v850_howto_table): Add info for HI16_S reloc.
3521 (v850_reloc_map): Add HI_16_S reloc.
3522 * reloc.c: Define BFD_RELOC_V850_* relocs.
3523
492cfc71
ILT
3524Fri Aug 30 11:49:19 1996 Ian Lance Taylor <ian@cygnus.com>
3525
c86158e5
ILT
3526 Add SH ELF support.
3527 * elf32-sh.c: New file.
3528 * elf.c (prep_headers): Handle bfd_arch_sh.
3529 * elfcode.h (write_relocs): Handle absolute symbol.
3530 * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare.
3531 (_bfd_elf64_link_read_relocs): Declare.
3532 * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from
3533 elf_link_read_relocs. Make globally visible. Change all
3534 callers.
3535 (elf_link_input_bfd): Get external symbols from cache in
3536 symtab_hdr->contents. Get contents from cache in
3537 elf_section_data.
3538 * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
3539 already defined.
3540 * reloc.c: Define BFD_RELOC_SH_* relocs.
3541 * libbfd-in.h (_bfd_sh_align_load_span): Declare.
3542 * coff-sh.c (sh_insns_conflict): Fix a return value.
3543 (_bfd_sh_align_load_span): New globally visible function, broken
3544 out of sh_align_load.
3545 (sh_align_load): Call _bfd_sh_align_load_span.
3546 (sh_swap_insns): Change relocs parameter to PTR.
3547 * bfd-in2.h, libbfd.h: Rebuild.
3548 * targets.c (bfd_elf32_sh_vec): Declare.
3549 (bfd_elf32_shl_vec): Declare.
3550 * config.bfd (sh-*-elf*): New target.
3551 * configure.in (bfd_elf32_sh_vec): New target vector.
3552 (bfd_elf32_shl_vec): New target vector.
3553 * configure: Rebuild.
3554 * Makefile.in: Rebuild dependencies.
3555 (BFD32_BACKENDS): Add elf32-sh.o.
3556 (BFD32_BACKENDS_CFILES): Add elf32-sh.c.
3557
3558 * elf.c (map_sections_to_segments): Check that LMA does not skip a
3559 page before checking D_PAGED.
3560
492cfc71
ILT
3561 * ihex.c (ihex_scan): Removed unnecessary extbase variable.
3562 (ihex_write_object_contents): Remove extbase; always use segbase
3563 instead.
3564
f7954d86
MM
3565Thu Aug 29 16:52:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3566
3567 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
3568 * configure.host (i[345]86-*-*): Ditto.
3569 * config.bfd (i[345]86-*-*): Ditto.
3570 * configure: Regenerate.
3571
3572 * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
3573 elf.
3574
3575Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com)
3576
3577 * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument.
3578 * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype.
3579 * som.c (hppa_som_gen_reloc_type): Add new argument. If
3580 we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that
3581 will have an ST_CODE type, change the symbol's type to ST_DATA.
3582 * som.c (hppa_som_gen_reloc_type): Update prototype.
3583
4da624dd
ILT
3584Tue Aug 27 00:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
3585
3586 * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for
3587 R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible.
3588 (mips_elf_size_dynamic_sections): Don't require .got to exist.
3589 (mips_elf_finish_dynamic_sections): Likewise.
3590
9461513b
ILT
3591Thu Aug 22 10:54:38 1996 Ian Lance Taylor <ian@cygnus.com>
3592
1c952df6
ILT
3593 * configure.host (HLDENV): New variable to set. Set it for
3594 *-*-sysv4*, since those linkers may not support -R but they always
3595 support LD_RUN_PATH.
3596
9461513b
ILT
3597 * libieee.h (NSECTIONS): Don't define.
3598 (ieee_data_struct): Change section_table to asection **. Add
3599 section_table_size.
3600 * ieee.c (get_section_entry): If the table isn't big enough, make
3601 it bigger.
3602 (ieee_slurp_sections): Remove assertion about number of sections.
3603 (ieee_object_p): Adjust initialization of ieee to match changes to
3604 the structure.
3605
3606 * xcofflink.c (xcoff_mark): Don't copy relocs for undefined
3607 symbols merely because we are generating a shared library.
3608 (xcoff_build_ldsyms): Don't set up global linkage code for an
3609 undefined symbol merely because we are generating a shared
3610 library.
3611
0c1d95c7 3612Tue Aug 20 15:06:05 1996 J.T. Conklin <jtc@hippo.cygnus.com>
cf2cd4cf 3613
0c1d95c7
C
3614 * Makefile.in (ALL_MACHINES): Add cpu-v850.o.
3615 (BFD32_BACKENDS) Add elf32-v850.o.
3616 * archures.c: Add bfd_v850_arch.
3617 * bfd-in2.h: Add bfd_v850_arch.
3618 * config.bfd (v850-*-*): New target.
3619 * configure: (bfd_elf32_v850_vec) New vector.
3620 * configure.in: (bfd_elf32_v850_vec) New vector.
3621 * cpu-v850.c: New file.
3622 * elf.c (prep_headers): Added case bfd_arch_v850.
3623 * elf32-v850.c: New file.
3624 * targets.c (bfd_elf32_v850_vec): New vector.
cf2cd4cf 3625
0c1d95c7
C
3626Fri Aug 16 16:25:35 1996 Ian Lance Taylor <ian@cygnus.com>
3627
3628 * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
3629 a function code symbol for an XMC_XO symbol.
3630
22edd547
SS
3631Thu Aug 15 12:33:29 1996 Stan Shebs <shebs@andros.cygnus.com>
3632
3633 * mpw-config.in: Update editing of autoconf vars to reflect
3634 Jul 18 configure.in change.
3635 * mpw-make.sed: Update editing of include pathnames to be
3636 more general, add @DASH_C_FLAG@ to explicit compile rule edit.
3637
3638Thu Aug 15 10:35:13 1996 Richard Henderson <rth@tamu.edu>
3639
3640 * elf64-alpha.c (elf64_alpha_output_extsym): The section from
3641 which to offset to get the .plt entry address is ".plt".
3642
53ef6e60
JSC
3643Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk>
3644
3645 * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM,
3646 BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET):
3647 Added, for internal use by the ARM gas.
3648 * libbfd.h: Rebuilt
3649 * bfd-in2.h: Rebuilt
3650
37d7888d
ILT
3651Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu>
3652
3653 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
3654 in section dynidx start.
3655
e38d6d36
ILT
3656Tue Aug 13 14:35:38 1996 Ian Lance Taylor <ian@cygnus.com>
3657
3658 * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
3659 name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an
3660 optimization for g++.
3661
ae20860e
MM
3662Tue Aug 13 17:04:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3663
3664 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has
3665 the -mrelocatable-lib bit set and the other doesn't, clear the
3666 -mrelocatable-lib bit in the header.
3667
4596421b
ILT
3668Sat Aug 10 22:59:17 1996 Ian Lance Taylor <ian@cygnus.com>
3669
3670 * elflink.h (elf_link_add_object_symbols): Do not resolve a common
3671 symbol against a STT_FUNC symbol in a shared library.
3672
f11e3f62
ILT
3673Fri Aug 9 12:44:57 1996 Ian Lance Taylor <ian@cygnus.com>
3674
410bc61d
ILT
3675 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
3676 symbol is found, automatically define the corresponding function
3677 code.
3678
d92099f1
ILT
3679 * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
3680 if sym.n_numaux is not zero.
3681 (_bfd_coff_link_input_bfd): Permit the symbol and the hash table
3682 entry to disagree about the number of aux entries if the symbol
3683 has zero.
3684
f11e3f62
ILT
3685 * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
3686 section if it might be needed, not just if info->shared.
3687 (mips_elf_adjust_dynamic_symbol): Make room for a null element at
3688 the start of .rel.dyn if we are going to use it.
3689 (mips_elf_finish_dynamic_sections): Only clear the first element
3690 of .rel.dyn if the size is greater than zero.
3691
fbc4ed7d
ILT
3692Thu Aug 8 16:24:55 1996 Ian Lance Taylor <ian@cygnus.com>
3693
b2a05baf
ILT
3694 * xcofflink.c (xcoff_link_input_bfd): If we already called the
3695 undefined_symbol callback for a symbol, then don't issue any more
3696 warnings about loader relocs.
3697 (_bfd_ppc_xcoff_relocate_section): Don't do any further processing
3698 after calling the undefined_symbol callback.
3699
fbc4ed7d
ILT
3700 * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
3701 (xcoff_link_add_symbols): Permit multiple definitions of a symbol
3702 as the AIX linker seems to do.
3703
8612a388
ILT
3704Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>
3705
3706 * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
3707 (evax_initialize): Remove evax_reloc_table.
3708 (evax_close_and_cleanup): Ditto.
3709 (reloc_nil): Ditto.
3710 (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
3711 entries.
3712 (evax_bfd_reloc_type_lookup): Ditto.
3713 * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
3714 cooked_size == raw_size.
3715 * evax-emh.c (_bfd_evax_register_filename): Remove.
3716 * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
3717 * evax-misc.c (add_new_contents): Malloc section at full size.
3718 (_bfd_save_evax_section): Memcpy section contents directly.
3719 * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
3720 (evax_reloc_table): Remove.
3721
3722 * hosts/alphavms.h (O_ACCMODE): Define if needed.
3723
3724 * makefile.vms: Add better support for DEC C compilation
3725 Add evax.h dependencies
3726
3727 * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
3728 (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
3729 (BFD_RELOC_ALPHA_BASEREG): Remove.
3730 * bfd-in2.h, libbfd.h: Rebuild.
3731
320a5c6b
SG
3732Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com)
3733
3734 * archive.c (bsd_write_armap): Ifdef around calls to getuid and
3735 getgid if _WIN32 is defined.
3736 * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef.
3737
2055bf85
SG
3738Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com)
3739
3740 * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
3741 Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
3742 include file.
3743 * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE
3744 isn't defined.
3745
85fe9d3e
ILT
3746Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
3747
3748 * configure.in: Call BFD_NEEDED_DECLARATION on strstr and
3749 realloc.
3750 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
3751 (NEED_DECLARATION_REALLOC): New macro.
3752 * configure, config.in: Rebuild.
3753 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
3754 (realloc): Declare if NEED_DECLARATION_REALLOC.
3755
3756 * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
3757 <strings.h> if they exist.
3758
3759 * ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
3760
9b3307b0
ILT
3761Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
3762
cc425b55
ILT
3763 * cpu-i386.c (i8086_arch): Architecture info for the i8086.
3764
9b3307b0
ILT
3765 Based on patches from Eric Valette <valette@crf.canon.fr>:
3766 * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
3767 LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
3768 (elf_howto_table): Add entries for new relocs.
3769 (elf_i386_reloc_type_lookup): Handle new relocs.
3770 (elf_i386_info_to_howto): Just call abort.
3771 (elf_i386_info_to_howto_rel): Check that the reloc type is valid.
3772 (elf_i386_relocate_section): Likewise.
3773
75e3a45a
MH
3774Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3775
3776 * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
3777
191d910c
ILT
3778Mon Aug 5 13:42:41 1996 Ian Lance Taylor <ian@cygnus.com>
3779
b944e7e8
ILT
3780 * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
3781 only get the LMA from the phdr if they are in the same part of the
3782 file.
3783
191d910c
ILT
3784 * elf.c (map_sections_to_segments): Rewrite tests for starting a
3785 new segment to make them more comprehensible. If the relationship
3786 between the LMA and the VMA changed, start a new segment. Don't
3787 check dynsec when deciding whether to start a new segment for a
3788 writeable section; -N will now handle this.
3789
e751d506
JL
3790Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com)
3791
3792 * libhppa.h: Remove "esel" changes. Not the right approach.
3793 * som.c: Corresponding changes.
3794 (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
3795 which don't have a SOM symbol type associated with them.
3796 Reverses a 1994 change.
3797
cdb88e87
ILT
3798Wed Jul 31 15:50:55 1996 Ian Lance Taylor <ian@cygnus.com>
3799
3800 Make ld -N more reasonable for ELF:
3801 * elf.c (map_sections_to_segments): If D_PAGED is not set, set
3802 phdr_in_section to false, and always use a single load segment.
3803 (elf_sort_sections): Sort sections by LMA after VMA.
3804 (assign_file_positions_for_segments): If D_PAGED is not set, don't
3805 align to maxpagesize.
3806 (assign_file_positions_except_relocs): Likewise.
3807 * elfcode.h (elf_object_p): If a section is loaded but not page
3808 aligned, clear D_PAGED.
3809
d1b40d8e
JSC
3810Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>
3811
3812 * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
3813 Added, for internal use by the ARM gas.
3814 * libbfd.h: Rebuilt
3815 * bfd-in2.h: Rebuilt
3816
ad240a82
JL
3817Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com)
3818
3819 * libhppa.h (R_HPPA_ESEL): New field selector.
3820 (e_esel): Similarly.
3821 * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
3822 then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
3823 (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
3824
fb4dc1eb
ILT
3825Tue Jul 30 13:31:27 1996 Ian Lance Taylor <ian@cygnus.com>
3826
3827 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
3828 archive search before looking for stripped dynamic objects.
3829
b223f950
ILT
3830Fri Jul 26 17:51:39 1996 Ian Lance Taylor <ian@cygnus.com>
3831
3832 * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
3833 symbol a warning rather than an error.
3834
64f808f9
ILT
3835Wed Jul 24 12:02:53 1996 Ian Lance Taylor <ian@cygnus.com>
3836
3837 * elf.c (assign_file_positions_for_segments): Track the virtual
3838 memory position separately from the file position, and use it to
3839 compute the alignment adjustment.
3840
11609502
MH
3841Tue Jul 23 10:43:31 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3842
3843 * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
3844 and fixed mask on R_D10V_10_PCREL_L.
3845
9bd65136
ILT
3846Mon Jul 22 15:30:30 1996 Ian Lance Taylor <ian@cygnus.com>
3847
bf9884d4
ILT
3848 * elf64-mips.c: Include "aout/ar.h".
3849 (mips_elf64_slurp_armap): New static function.
3850 (mips_elf64_write_armap): New static function.
3851 (bfd_elf64_archive_*): Define.
3852 * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined.
3853 Use instead of bfd_generic_archive_p.
3854 (bfd_elfNN_write_archive_contents): Define if not defined. Use
3855 instead of _bfd_write_archive_contents.
3856 (bfd_elfNN_mkdarchive): Define if not defined. Use instead of
3857 _bfd_generic_mkarchive.
3858 (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use
3859 bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than
3860 _bfd_archive_coff.
3861 (TARGET_LITTLE_SYM): Likewise.
3862 * archive.c (bfd_slurp_armap): Check for and reject an archive map
3863 name of /SYM64/.
3864 * Makefile.in: Rebuild dependencies.
3865
3866 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle
3867 SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and
3868 SHT_MIPS_EVENTS sections.
3869 (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE,
3870 SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS
3871 sections.
3872 (_bfd_mips_elf_fake_sections): Likewise.
3873
9bd65136
ILT
3874 * libecoff.h (ecoff_data_type): Add rdata_in_text field.
3875 * ecoff.c (ecoff_compute_section_file_positions): Copy
3876 rdata_in_text from backend info to tdata. Clear it if any data
3877 section comes before .rdata.
3878 (_bfd_ecoff_write_object_contents): Use rdata_in_text field in
3879 tdata rather than backend info.
3880
194141a9
ILT
3881Fri Jul 19 18:15:51 1996 Ian Lance Taylor <ian@cygnus.com>
3882
3883 * configure.in: Fix test for whether a compiler has a 64 bit
3884 type. From Jim Wilson <wilson@cygnus.com>.
3885
a8a3d83a
ILT
3886Thu Jul 18 15:39:10 1996 Ian Lance Taylor <ian@cygnus.com>
3887
f4e14cb9
ILT
3888 * configure.host (mips-sgi-irix6*): New host.
3889
3890 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
3891 (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
3892 BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h
3893 to AC_OUTPUT call.
3894 * configure: Rebuild.
3895 * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
3896 (BFD_HOST_64_BIT): Define conditionally.
3897 (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
3898 (bfd_vma): Typedef as BFD_HOST_U_64_BIT.
3899 (symvalue, bfd_size_type): Likewise.
3900 * bfd-in2.h: Rebuild.
3901 * Makefile.in (do_clean): Remove bfd-tmp.h.
3902 (do_distclean): Remove bfd-in3.h.
3903 (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
3904 (bfd-in3.h): New target.
3905
74556b94
ILT
3906 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From
3907 Andrew Gierth <ANDREWG@microlise.co.uk>.
3908
ab659fd6
ILT
3909 * configure.host: Set INSTALL_SHLIB.
3910 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
3911 * configure: Rebuild.
3912 * Makefile.in (install): Use @INSTALL_SHLIB@.
3913
e8c249cb
ILT
3914 * config.bfd (mips*-*-irix6*): New target.
3915 * configure.host: Handle Irix 6 shared library like Irix 5.
3916
a8a3d83a
ILT
3917 * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
3918 symbol for a magic name.
3919 (xcoff_link_input_bfd): Don't change the reloc symbol for an
3920 XMC_TD symbol.
3921 (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
3922 XMC_TD symbol.
3923
b576c7b3
SS
3924Thu Jul 18 11:36:31 1996 Stan Shebs <shebs@andros.cygnus.com>
3925
3926 * mpw-config.in: Add ELF support to mips config, create the
3927 elf32-target.h file in the object dir.
3928 * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
3929
2ba0d82d
KK
3930Wed Jul 17 18:02:32 1996 Kim Knuttila <krk@cygnus.com>
3931
3932 * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
3933 Also removed most abort calls, in favor of using bfd reporting.
3934
b576c7b3 3935Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
50bd50d4 3936
b576c7b3
SS
3937 * Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
3938 (BFD32_BACKENDS) Add elf32-d10v.o.
50bd50d4
MH
3939 * archures.c: Add bfd_d10v_arch.
3940 * bfd-in2.h: Add bfd_d10v_arch.
3941 * config.bfd (d10v-*-*): New target.
3942 * configure: (bfd_elf32_d10v_vec) New vector.
3943 * configure.in: (bfd_elf32_d10v_vec) New vector.
3944 * cpu-d10v.c: New file.
3945 * elf.c (prep_headers): Added case bfd_arch_d10v.
3946 * elf32-d10v.c: New file.
3947 * libbfd.h: Rebuild.
b576c7b3
SS
3948 * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
3949 BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
50bd50d4 3950 * targets.c (bfd_elf32_d10v_vec): New vector.
cf2cd4cf 3951
2ce9802e
KK
3952Wed Jul 17 10:58:55 1996 Kim Knuttila <krk@cygnus.com>
3953
3954 * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
3955
9676e446 3956Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com)
3cc21bf6 3957
9676e446
SG
3958 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and
3959 bfd_mach_i386_i8086 machine types.
3cc21bf6 3960
f7171978
ILT
3961Wed Jul 10 12:42:56 1996 Ian Lance Taylor <ian@cygnus.com>
3962
3963 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
3964 and _FINI sections.
3965
74e2ab38
ILT
3966Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu>
3967
3968 * coffcode.h (coff_set_section_contents): A/UX does not require
3969 special handling of the _LIB section.
3970
01cfaa6b
JL
3971Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com)
3972
3973 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
3974 value for R_RELBYTE.
3975
3976 * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
3977 array if one was allocated.
3978
eb52b9dc
ILT
3979Tue Jul 9 12:21:54 1996 Ian Lance Taylor <ian@cygnus.com>
3980
3981 From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>:
3982 * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
3983 use_rld_obj_head and rld_value.
3984 (mips_elf_link_hash_table_create): Initialize new fields.
3985 (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
3986 dynamic.
3987 (mips_elf_create_dynamic_sections): Create .rld_map section. If
3988 __rld_obj_head symbol not seen, create an __rld_map symbol.
3989 (mips_elf_size_dynamic_sections): Make space in .rld_map section.
3990 Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
3991 (mips_elf_finish_dynamic_symbol): Save value of __rld_map or
3992 __rld_obj_head symbol.
3993 (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
3994
56b4cbaa
ILT
3995Mon Jul 8 16:18:03 1996 Ian Lance Taylor <ian@cygnus.com>
3996
9b292d4c
ILT
3997 * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
3998
dab45734
ILT
3999 * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
4000 ppc_elf_addr16_ha_reloc.
4001 (ppc_elf_addr16_ha_reloc): New static function.
4002
56b4cbaa
ILT
4003 * coff-mips.c (struct mips_hi): Define.
4004 (mips_refhi_list): New static variable.
4005 (mips_refhi_addr, mips_refhi_addend): Remove.
4006 (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
4007 (mips_reflo_reloc): Process mips_refhi_list.
4008 (mips_relhi_list): New static variable.
4009 (mips_relhi_addr, mips_relhi_addend): Remove.
4010 (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
4011 (mips_rello_reloc): Process mips_relhi_list.
4012 (mips_relocate_section): Permit an arbitrary number of REFHI or
4013 RELHI relocs before the associated REFLO or RELLO reloc.
4014
b777c6a7
ILT
4015Fri Jul 5 19:27:49 1996 Ian Lance Taylor <ian@cygnus.com>
4016
4017 * aout-target.h (MY(callback)): Set reloc_count fields.
4018
100b65dd
ILT
4019Thu Jul 4 12:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
4020
48f3aaf3
ILT
4021 * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
4022 sections unless this is a SunOS link.
4023
100b65dd
ILT
4024 * VERSION: Set to 2.7.1.
4025
4026 * Released binutils 2.7.
4027
a31e14f4
ILT
4028Wed Jul 3 14:59:47 1996 Ian Lance Taylor <ian@cygnus.com>
4029
4d3daf4f
ILT
4030 * i386aout.c: Include "aout/aout64.h".
4031 (i386aout_write_object_contents): New static function.
4032 (MY_write_object_contents): Define.
4033
a31e14f4
ILT
4034 * netbsd.h (MY(write_object_contents)): Make sure that
4035 adjust_sizes_and_vmas is called before fiddling with the magic
4036 number.
4037
d2d04f7a
ILT
4038Tue Jul 2 23:30:39 1996 Ian Lance Taylor <ian@cygnus.com>
4039
4040 * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
4041
4f6ee760
ILT
4042Sun Jun 30 13:34:33 1996 Ian Lance Taylor <ian@cygnus.com>
4043
4044 * libbfd-in.h (itos, stoi): Don't define.
4045 * libbfd.h: Rebuild.
4046 * i386lynx.c (KEEPIT): Define as udata.i.
4047 (NAME(lynx,swap_std_reloc_out)): Don't use stoi.
4048 (NAME(lynx,swap_ext_reloc_out)): Likewise.
4049 * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
4050 flags. Don't use stoi.
4051
4052 * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
4053
4054 * elf.c (map_sections_to_segments): Don't start a new segment for
4055 a writable section if it's on the same page as the previous
4056 segment. Reset the writable variable for a readonly section.
4057
dfb89b82
KK
4058Sat Jun 29 16:18:51 1996 Kim Knuttila <krk@cygnus.com>
4059
4060 * peicode.h (coff_swap_aouthdr_in): Missing initializations of
4061 first_thunk_address, thunk_size, and import_table_size.
4062 * peicode.h: Improved some diagnostics regarding edata sections.
4063
4064 * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
4065 on IMGLUE relocs.
4066 (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
4067 (TARGET_LITTLE_SYM): Added missing D_PAGED.
4068
8e80606f
ILT
4069Fri Jun 28 13:48:45 1996 Ian Lance Taylor <ian@cygnus.com>
4070
f93fb275
ILT
4071 * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
4072 with XCOFF_DEF_DYNAMIC set is really defined.
4073 (xcoff_link_check_dynamic_ar_symbols): Likewise.
4074 (xcoff_link_add_symbols): Only create special sections if using an
4075 XCOFF hash table.
4076
8e80606f
ILT
4077 * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
4078 aixcoff-rs6000.
4079 (bfd_install_relocation): Likewise.
4080
eec2f824
ILT
4081Fri Jun 28 11:17:00 1996 Richard Henderson <rth@tamu.edu>
4082
4083 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
4084 field.
4085 (ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
4086 (ALPHA_ELF_LINK_HASH_LU_MEM): Define.
4087 (ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
4088 (elf64_alpha_link_hash_newfunc): Initialize flags field.
4089 (elf64_alpha_check_relocs): Record types of LITUSE entries that
4090 are found for LITERAL relocs.
4091 (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
4092 taken, we cannot generate a .plt entry for the symbol.
4093
5304aea9
ILT
4094Thu Jun 27 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
4095
4096 * configure.in: Add AC_ISC_POSIX, and check for setitimer and
4097 sysconf functions (for gprof).
4098 * configure, config.in: Rebuild.
4099
017047d4
ILT
4100Wed Jun 26 16:29:02 1996 Ian Lance Taylor <ian@cygnus.com>
4101
f292bbe9
ILT
4102 * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
4103 an archive if it has a map. If the object file has the wrong
4104 xvec, reject it.
4105
566e2325
ILT
4106 * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
4107 BRADDR, SREL16, SREL32, or SREL64 reloc against an external
4108 symbol.
4109 (alpha_relocate_section): Likewise.
4110
017047d4
ILT
4111 * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
4112 (coff_swap_filehdr_out): Use FILHSZ, not sizeof.
4113 (coff_swap_sym_out): Use SYMESZ, not sizeof.
4114 (coff_swap_aux_out): Use AUXESZ, not sizeof.
4115 (coff_swap_lineno_out): Use LINESZ, not sizeof.
4116 (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
4117 (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
4118 * peicode.h: Corresponding changes.
4119
cb73f5d7
MM
4120Tue Jun 25 15:28:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4121
4122 * elflink.h (elf_create_pointer_linker_section): Comment out code
4123 dealing with making GOT pointers negative of the GOT symbol for
4124 now.
4125
297a4f1a
ILT
4126Tue Jun 25 11:41:24 1996 Richard Henderson <rth@tamu.edu>
4127
4128 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
4129 increment the .rela.plt size until after we're done creating the
4130 .plt entry.
4131 (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
4132 .rela.plt offset directly rather than calculating it.
4133
dbbfec07 4134Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
cf2cd4cf
UD
4135
4136 * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir):
01e58ff6 4137 Use autoconf-set values.
cf2cd4cf
UD
4138 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
4139 includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set
01e58ff6 4140 values.
dbbfec07
JM
4141 (docdir): Deleted.
4142 * configure.in (AC_PREREQ): autoconf v2.5 or higher.
4143 * configure: Rebuilt.
cf2cd4cf 4144
50004d8d
JL
4145Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com)
4146
4147 * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
4148 handling code > 1k away.
4149
4150Mon Jun 24 18:41:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4151
4152 * elflink.h (elf_create_pointer_linker_section): If DEBUG is
4153 defined, output whenever the symbol is updated.
4154
2e0567eb
ILT
4155Mon Jun 24 17:58:12 1996 Jouke Numan <jnuman@bazis.nl>
4156
4157 * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
4158 section to 0 if user_set_vma is set.
4159 * elflink.h (elf_bfd_final_link): Likewise.
4160
4161Sun Jun 23 20:42:51 1996 Doug Evans <dje@canuck.cygnus.com>
4162
4163 Partially undo patch of Jun 20.
4164 * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
4165 (coff_compute_section_file_positions): Likewise.
4166 (coff_write_object_contents): Likewise. Re-add deleted code, but
4167 use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
4168 * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
4169
bff4a496
ILT
4170Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
4171
4172 * config.bfd: Add support for *-*-rtems* configurations.
cf2cd4cf 4173
7ae6550f
ILT
4174Fri Jun 21 15:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
4175
4176 * elf.c (prep_headers): Add bfd_arch_alpha case.
4177
e8f46717
ILT
4178Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu>
4179
4180 * elf64-alpha.c: New file.
4181 * config.bfd (alpha-*-linuxecoff*): New target.
4182 (alpha-*-linux*, alpha-*-elf*): New targets.
4183 * configure.in (bfd_elf64_alpha_vec): New vector.
4184 * configure: Rebuild.
4185 * targets.c (bfd_elf64_alpha_vec): Declare.
4186 (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
4187 * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
4188 * bfd-in2.h, libbfd.h: Rebuild.
4189 * Makefile.in: Rebuild dependencies.
4190 (BFD64_BACKENDS): Add elf64-alpha.o.
4191 (BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
4192
bacecac8
ILT
4193Thu Jun 20 18:14:25 1996 Ian Lance Taylor <ian@cygnus.com>
4194
4195 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
4196 than relying on a right shift of 32.
4197
9ca108cd
DE
4198Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com>
4199
b9110a3c
DE
4200 * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
4201 ifdef to COFF_WITH_PE.
4202 (coff_compute_section_file_positions): Likewise.
4203 (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE.
4204 * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
4205 * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
4206 COFF_IMAGE_WITH_PE, always include.
4207
9ca108cd
DE
4208 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
4209
c2073f05
ILT
4210Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com>
4211
7fc6a16a
ILT
4212 * elf.c (map_sections_to_segments): Fix up the test for -Ttext to
4213 approximate the correct answer if SIZEOF_HEADERS was not used.
4214
c2073f05
ILT
4215 * binary.c (binary_set_section_contents): Set section file
4216 position based on LMA rather than VMA.
4217
4838929e
ILT
4218Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <manfred@lts.sel.alcatel.de>
4219
4220 * linker.c (_bfd_generic_link_output_symbols): Don't output any
4221 symbols if info->strip == strip_all.
4222
4223Tue Jun 18 15:17:36 1996 Jeffrey A. Law <law@rtl.cygnus.com>
4224
4225 * coff-h8300.c: Remove #if 0 code.
4226 (compatable): Don't allow mixing/matching of different architectures.
cf2cd4cf 4227
4838929e
ILT
4228 * archures.c (bfd_mach_h8300s): Add.
4229 * bfd-in2.h: Rebuilt.
4230 * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
4231 (BADMAG): Likewise.
4232 (h8300_reloc16_estimate): Likewise.
4233 (h8300_reloc16_extra_cases): Likewise.
4234 (h8300_bfd_link_add_symbols): Likewise.
4235 * coffcode.h (coff_set_arch_mach_hook): Likewise.
4236 (coff_set_flags): Likewise.
4237 * cpu-h8300.c (h8300_scan): Likewise.
4238 Add H8/S to bfd_h8300_arch list.
4239
c3d8e071
ILT
4240Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de>
4241
4242 Added support for Alpha OpenVMS:
4243 * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
4244 * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
4245 * config.h-vms, makefile.vms: New files.
4246 * config.bfd (alpha-*-*vms*): New target.
4247 * configure.in (evax_alpha_vec): New target vector.
4248 * configure: Rebuild.
4249 * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
4250 (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
4251 * targets.c (bfd_target_evax_flavour): Define.
4252 (evax_alpha_vec): Declare.
4253 (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
4254 if BFD64 is defined.
4255 * bfd-in2.h, libbfd.h: Rebuild.
4256 * Makefile.in: Rebuild dependencies.
4257 (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
4258 evax-emh.o, and evax-misc.o.
4259 (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
4260 evax-etir.c, evax-emh.c, and evax-misc.c.
4261 (HFILES): Add evax.h.
4262
142aa7d9
ILT
4263Tue Jun 18 13:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
4264
4265 * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
4266 pointer.
4267 (h8300_bfd_link_add_symbols): Likewise.
4268
b658d64d
JL
4269Mon Jun 17 10:06:50 1996 Jeffrey A. Law <law@rtl.cygnus.com>
4270
4271 * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
4272 * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
4273
2df1e84b
ILT
4274Mon Jun 17 12:49:11 1996 Ian Lance Taylor <ian@cygnus.com>
4275
4276 * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
4277 for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
4278 created.
4279 (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
4280 R_MIPS_32 relocs if creating a shared library.
4281
4282Thu Jun 13 20:14:51 1996 Doug Evans <dje@canuck.cygnus.com>
4283
4284 * peicode.h (add_data_entry): Use pei_section_data rather than
4285 _cooked_size. Corresponds to May 13 change in coffcode.h.
4286
8100e72c
ILT
4287Thu Jun 13 10:23:40 1996 Ian Lance Taylor <ian@cygnus.com>
4288
51bc9642
ILT
4289 * cofflink.c (_bfd_coff_final_link): Handle long section names.
4290 * coffcode.h (coff_write_object_contents): If there are long
4291 section names, always set the f_symptr field, even if there are no
4292 symbols.
4293 * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
4294 if there are no symbols.
4295
8100e72c
ILT
4296 * coffgen.c (make_a_section_from_file): Check return value of
4297 _bfd_coff_read_string_table.
4298 (coff_real_object_p): Check return value of
4299 make_a_section_from_file.
4300 (_bfd_coff_read_string_table): Check that there are some symbols
4301 before trying to read the string table size.
4302
0e3bd85e
ILT
4303Wed Jun 12 11:16:37 1996 Ian Lance Taylor <ian@cygnus.com>
4304
ed675a04
ILT
4305 * xcofflink.c (xcoff_link_add_symbols): When considering whether
4306 to replace a symbol in a dynamic object with a symbol from another
4307 dynamic object, do the replacement if the existing symbol is
4308 global linkage code.
4309
49144784
ILT
4310 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
4311 for _ptrgl, and treat it as global linkage code.
4312
0e3bd85e
ILT
4313 * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
4314 filename or N_SO symbol past the offset, and use it to indicate
4315 that there is no line number or function when appropriate.
4316
a5c7acea
ILT
4317Tue Jun 11 15:24:48 1996 Ian Lance Taylor <ian@cygnus.com>
4318
4319 * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
4320 common symbol defined by the linker. Don't export function code
4321 even if export_defineds is set.
4322
4323Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com)
4324
4325 * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
4326 and R_JMP_DEL.
4327 (rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
4328 (h8300_symbol_address_p): New function.
4329 (h8300_reloc16_estimate): Eliminate jumps made unnecessary by
4330 relaxing.
4331
890f5b7f
JL
4332Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com)
4333
4334 * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
4335 problems.
4336 (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
4337 correctly for the two variants. Allow relaxing if the target
4338 is 128 bytes away since after relaxation it'll be 126 bytes away.
4339 (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
4340 "dot" and "value". Allow relaxing if the target is 128 bytes
4341 away since after relaxation it'll be 126 bytes away.
4342 * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
4343 the given section until nothing changes.
4344
0593fc16
ILT
4345Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu>
4346
4347 * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
4348 alignment hack--we can get the lnnoptr info another way without
4349 suddenly increasing the alignment requirements. Set the flags for
4350 the _PDATA section.
4351 (ecoff_compute_section_file_positions): Do so.
4352
9b263b79
ILT
4353Thu Jun 6 11:24:37 1996 Ian Lance Taylor <ian@cygnus.com>
4354
bbf7c335
ILT
4355 * ieee.c (ieee_write_object_contents): Put a timestamp in the file
4356 to keep the HP emulator database happy.
4357
9b263b79
ILT
4358 * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
4359 From Kevin Buettner <kev@primenet.com>.
4360
4361Wed Jun 5 15:16:04 1996 Ian Lance Taylor <ian@cygnus.com>
4362
4363 * aoutx.h (translate_to_native_sym_flags): Don't try to print the
4364 name of a NULL section.
4365
26145b15
ILT
4366Tue Jun 4 18:53:58 1996 Ian Lance Taylor <ian@cygnus.com>
4367
4368 * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
4369 set, always call the notice callback.
4370
4371 * VERSION: Increment for bfdlink.h change.
4372
3a2080d8
ILT
4373Mon Jun 3 11:01:53 1996 Ian Lance Taylor <ian@cygnus.com>
4374
9d175198
ILT
4375 * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
4376 (sh_relax_delete_bytes): Correct handling of differently sized
4377 trailing alignment reloc.
4378
5a04f1bd
ILT
4379 * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
4380 * bfd-in2.h: Rebuild.
4381 * configure.in: Warn if there is no known 64 bit type.
4382 * configure: Rebuild.
4383
60c8b04f
ILT
4384 * Makefile.in: Rebuild dependencies.
4385 (BFD32_BACKENDS): Add ppcboot.o.
4386 (BFD32_BACKENDS_CFILES): Add ppcboot.c.
4387
3a2080d8
ILT
4388 * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
4389 From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
4390
903612a2
ILT
4391Sat Jun 1 21:49:58 1996 Ian Lance Taylor <ian@cygnus.com>
4392
4393 * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
4394 (bfd_mips_elf64_swap_reginfo_out): Move from here...
4395 * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
4396 (bfd_mips_elf64_swap_reginfo_out): ...to here.
4397
38893c8c
ILT
4398Fri May 31 13:51:28 1996 Ian Lance Taylor <ian@cygnus.com>
4399
bc05732b
ILT
4400 * elf64-mips.c: Improve reloc special_functions and handling of
4401 SHT_MIPS_OPTIONS section.
4402 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
4403 mips_elf_hi16_reloc and make globally visible.
4404 (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
4405 make globally visible.
4406 (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
4407 make globally visible.
4408 (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
4409 and make globally visible.
4410 (gprel16_with_gp): Check howto->src_mask before using value in
4411 insn.
4412 (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
4413 and make globally visible.
4414 (gprel32_with_gp): Check howto->src_mask before fetching value.
4415 (bfd_mips_elf_swap_options_in): New function.
4416 (bfd_mips_elf_swap_options_out): New function.
4417 (_bfd_mips_elf_set_private_flags): Rename from
4418 mips_elf_set_private_flags and make globally visible.
4419 (_bfd_mips_elf_copy_private_bfd_data): Rename from
4420 mips_elf_copy_private_bfd_data and make globally visible.
4421 (_bfd_mips_elf_merge_private_bfd_data): Rename from
4422 mips_elf_merge_private_bfd_data and make globally visible.
4423 (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
4424 for a SHT_MIPS_OPTIONS section.
4425 (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
4426 (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
4427 name of a SHT_MIPS_OPTIONS section.
4428 (_bfd_mips_elf_set_section_contents): New function.
4429 (mips_elf32_section_processing): Set the GP value in a
4430 SHT_MIPS_OPTIONS section.
4431 (_bfd_mips_elf_find_nearest_line): Rename from
4432 mips_elf_find_nearest_line and make globally visible.
4433 (bfd_elf32_set_section_contents): Define.
4434 * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
4435 (_bfd_mips_elf_lo16_reloc): Declare.
4436 (_bfd_mips_elf_gprel16_reloc): Declare.
4437 (_bfd_mips_elf_got16_reloc): Declare.
4438 (_bfd_mips_elf_gprel32_reloc): Declare.
4439 (_bfd_mips_elf_set_private_flags): Declare.
4440 (_bfd_mips_elf_copy_private_bfd_data): Declare.
4441 (_bfd_mips_elf_merge_private_bfd_data): Declare.
4442 (_bfd_mips_elf_find_nearest_line): Declare.
4443 (_bfd_mips_elf_set_section_contents): Declare.
4444
38893c8c
ILT
4445 * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
4446 elf_info_to_howto.
4447 (elf_info_to_howto): Define.
4448 * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
4449 elf_info_to_howto.
4450 (elf_info_to_howto): Define.
4451 * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
4452 elf_info_to_howto.
4453 (elf_info_to_howto): Define.
4454
4455 * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
4456 R_MOV16B[12], to match change in coff/internal.h.
4457
cabd8fa0
ILT
4458Thu May 30 12:38:49 1996 Ian Lance Taylor <ian@cygnus.com>
4459
00176555
ILT
4460 * elf64-mips.c: Extensive additions to provide better support for
4461 writing files and for gas.
4462 * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
4463 of mips_elf_object_p.
4464 (mips_elf32_object_p): Rename from mips_elf_object_p; call
4465 _bfd_mips_elf_object_p.
4466 (_bfd_mips_elf_final_write_processing): Rename from
4467 mips_elf_final_write_processing and make globally visible.
4468 (_bfd_mips_elf_fake_sections): Rename from
4469 mips_elf_fake_sections and make globally visible.
4470 (_bfd_mips_elf_section_from_bfd_section): Rename from
4471 mips_elf_section_from_bfd_section and make globally visible.
4472 (_bfd_mips_elf_section_processing): New function, broken out of
4473 mips_elf_section_processing.
4474 (mips_elf32_section_processing): Rename from
4475 mips_elf_section_processing; call
4476 _bfd_mips_elf_section_processing.
4477 (_bfd_mips_elf_symbol_processing): Rename from
4478 mips_elf_symbol_processing and make globally visible.
4479 (_bfd_mips_elf_read_ecoff_info): Rename from
4480 mips_elf_read_ecoff_info and make globally visible.
4481 (mips_elf32_ecoff_debug_swap): Rename from
4482 mips_elf_ecoff_debug_swap.
4483 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
4484 struct symbol_cache_entry.
4485 (_bfd_elf_validate_reloc): New function, moved in from
4486 elfcode.h:validate_reloc.
4487 * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
4488 to _bfd_elf_validate_reloc. Change all callers.
4489 * elf-bfd.h (bfd_section_from_shdr): Declare.
4490 (_bfd_elf_symbol_from_bfd_symbol): Declare.
4491 (_bfd_elf_validate_reloc): Declare.
4492 (_bfd_mips_elf_object_p): Declare.
4493 (_bfd_mips_elf_fake_sections): Declare.
4494 (_bfd_mips_elf_section_from_bfd_section): Declare.
4495 (_bfd_mips_elf_section_processing): Declare.
4496 (_bfd_mips_elf_symbol_processing): Declare.
4497 (_bfd_mips_elf_read_ecoff_info): Declare.
4498 (_bfd_mips_elf_final_write_processing): Declare.
4499 * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
4500 if already defined.
4501
cabd8fa0
ILT
4502 * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
4503 (mips_elf_final_write_processing): Likewise.
4504
d1bf45aa
ILT
4505Wed May 29 16:15:29 1996 Ian Lance Taylor <ian@cygnus.com>
4506
4507 64-bit MIPS ELF ABI objdump support:
4508 * elf64-mips.c: New file.
4509 * Makefile.in: Rebuild dependencies.
4510 (BFD64_BACKENDS): Add elf64-mips.o.
4511 (BFD64_BACKENDS_CFILES): Add elf64-mips.c.
4512 * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
4513 bfd_elf64_littlemips_vec to targ_selvecs.
4514 (mips*-*-elf*): Likewise.
4515 * confingure.in: Add bfd_elf64_bigmips_vec and
4516 bfd_elf64_littlemips_vec to vector switch.
4517 * configure: Rebuild.
4518 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
4519 broken out of mips_elf_section_from_shdr.
4520 (mips_elf32_section_from_shdr): Rename from
4521 mips_elf_section_from_shdr. Call new function.
4522 (elf_backend_section_from_shdr): Update name of renamed function.
4523 * elf-bfd.h (struct elf_size_info): Change second parameter of
4524 write_out_phdrs to be const. Likewise for second parameter of
4525 swap_symbol_out.
4526 (struct bfd_elf_section_data): Add rel_hdr2 field.
4527 (bfd_elf32_swap_symbol_in): Change second parameter to be const.
4528 (bfd_elf32_swap_symbol_out): Likewise.
4529 (bfd_elf32_swap_reloc_in): Likewise.
4530 (bfd_elf32_swap_reloc_out): Likewise.
4531 (bfd_elf32_swap_reloca_in): Likewise.
4532 (bfd_elf32_swap_reloca_out): Likewise.
4533 (bfd_elf32_swap_phdr_in): Likewise.
4534 (bfd_elf32_swap_phdr_out): Likewise.
4535 (bfd_elf32_swap_dyn_in): Likewise.
4536 (bfd_elf32_swap_dyn_out): Likewise.
4537 (bfd_elf32_slurp_symbol_table): Declare.
4538 (bfd_elf32_write_shdrs_and_ehdr): Declare.
4539 (bfd_elf32_write_out_phdrs): Declare.
4540 (bfd_elf64_swap_symbol_in): Change second parameter to be const.
4541 (bfd_elf64_swap_symbol_out): Likewise.
4542 (bfd_elf64_swap_reloc_in): Likewise.
4543 (bfd_elf64_swap_reloc_out): Likewise.
4544 (bfd_elf64_swap_reloca_in): Likewise.
4545 (bfd_elf64_swap_reloca_out): Likewise.
4546 (bfd_elf64_swap_phdr_in): Likewise.
4547 (bfd_elf64_swap_phdr_out): Likewise.
4548 (bfd_elf64_swap_dyn_in): Likewise.
4549 (bfd_elf64_swap_dyn_out): Likewise.
4550 (bfd_elf64_slurp_symbol_table): Declare.
4551 (bfd_elf64_write_shdrs_and_ehdr): Declare.
4552 (bfd_elf64_write_out_phdrs): Declare.
4553 (_bfd_mips_elf_section_from_shdr): Declare.
4554 * elf.c (bfd_section_from_shdr): Remove assertion requiring
4555 SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc
4556 section for the section, add the new one to rel_hdr2. Increment
4557 reloc_count rather than setting it.
4558 * elfcode.h (elf_slurp_symbol_table): Define name as macro.
4559 Remove static declaration.
4560 (elf_write_shdrs_and_ehdr): Define name as macro.
4561 (elf_write_out_phdrs): Likewise.
4562 (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
4563 (elf_swap_shdr_in, elf_swap_shdr_out): Declare.
4564 (elf_swap_symbol_in): Change second parameter to be const.
4565 (elf_swap_symbol_out): Likewise.
4566 (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
4567 (elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
4568 (elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
4569 (elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
4570 (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
4571 (elf_write_out_phdrs): Rename from write_out_phdrs. Change second
4572 parameter to be const. Make non-static.
4573 (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
4574 Make non-static.
4575 (elf_slurp_symbol_table): Make non-static.
4576 (NAME(_bfd_elf,size_info)): Update names of renamed functions.
4577 * elfxx-target.h (elf_info_to_howto): Define if not defined.
4578 (elf_backend_size_info): Likewise.
4579 (elfNN_bed): Use elf_backend_size_info.
4580 * targets.c (bfd_elf64_bigmips_vec): Declare.
4581 (bfd_elf64_littlemips_vec): Declare.
4582 (bfd_target_vector): Add bfd_elf64_bigmips_vec and
4583 bfd_elf64_littlemips_vec if BFD64 is defined.
cf2cd4cf 4584
d1bf45aa
ILT
4585 * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
4586
7dd3d45a
ILT
4587Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com>
4588
07692951
ILT
4589 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
4590 zeroes, in alignment holes.
4591
a4322a77
ILT
4592 * configure: Rebuild with autoconf 2.10.
4593
7dd3d45a
ILT
4594 * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
4595 potential leading underscore in the allocated buffer.
4596
0293d5b0
MM
4597Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4598
4599 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
4600 symbols into .sbss if this is a relocatable link.
4601
a5d0cd50
ILT
4602Thu May 23 12:26:24 1996 Ian Lance Taylor <ian@cygnus.com>
4603
4604 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
4605 undefined symbols when creating a shared library.
4606
4607Fri May 17 13:54:15 1996 Ian Lance Taylor <ian@cygnus.com>
4608
4609 * coff-sh.c: Add a bunch of new code and static const arrays to
4610 support aligning loads and stores on four byte memory boundaries.
4611 Also:
4612 (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
4613 R_SH_LABEL.
4614 (sh_relax_section): Look for R_SH_CODE relocs. If we find one,
4615 call sh_align_loads.
4616 (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
4617 as unused.
4618
c403d358
ILT
4619Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com>
4620
4621 * cache.c (bfd_open_file): Unlink the file before opening it for
4622 write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
4623
4624 * opncls.c (bfd_fdopenr): Set opened_once.
4625
2f710e17
ILT
4626Tue May 14 12:35:32 1996 Ian Lance Taylor <ian@cygnus.com>
4627
ff60fc3a
ILT
4628 * som.c (som_slurp_reloc_table): Clear external_relocs cache after
4629 freeing it.
4630
2f710e17
ILT
4631 * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
4632 the code unconditionally.
4633
efb33f6b
ILT
4634Mon May 13 19:51:37 1996 Ian Lance Taylor <ian@cygnus.com>
4635
4636 * libcoff-in.h (struct pei_section_tdata): Define structure.
4637 (pei_section_data): Define macro.
4638 * libcoff.h: Rebuild.
4639 * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
4640 store s_paddr field in pei_section_data.
4641 (coff_compute_section_file_positions): Use pei_section_data rather
4642 than _cooked_size, and don't overwrite an existing value.
4643 (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
4644 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
4645 * peicode.h (coff_bfd_copy_private_section_data): Define if
4646 COFF_IMAGE_WITH_PE.
4647 (pe_bfd_copy_private_section_data): New static function if
4648 COFF_IMAGE_WITH_PE.
4649
5ecd6d7f
ILT
4650Wed May 8 16:10:38 1996 Ian Lance Taylor <ian@cygnus.com>
4651
db1e2aa7
ILT
4652 * srec.c (srec_set_arch_mach): Write as a function rather than a
4653 macro definition.
4654
5ecd6d7f
ILT
4655 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
4656 no map, just check each member in turn to see whether it is
4657 required.
4658
aefee5c8
MM
4659Wed May 8 09:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4660
4661 * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
4662 table. Call BFD_ASSERT to validate header size, instead of
4663 calling fatal.
4664 (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
4665 name.
4666
0d1fcbbb
MM
4667Tue May 7 16:10:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4668
4669 * ppcboot.c: New target for looking at PPCbug boot records.
4670
4671 * config{ure.in,.bfd}: Add support for ppcboot target.
4672 * targets.c: Ditto.
4673 * configure: Regenerate.
cf2cd4cf 4674
f4597f8c
JL
4675Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com)
4676
4677 * coff-h8300.c (howto_table): Update names to match recent
4678 changes to include/coff/internal.h. Fix minor errors in the
4679 existing relocs. Add R_MOVL1 and R_MOVL2.
4680 (rtype2howto): Similarly.
4681 (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
4682 existing relaxing code and peform more relaxing.
4683 (h8300_reloc16_extra_cases): Likewise.
4684
0dc70e1a
JL
4685Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com)
4686
4687 * reloc16.c (bfd_coff_reloc16_get_value): Handle common
4688 symbols correctly.
4689
d1b8ccb0
PS
4690Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4691
4692 * elfcode.h (elf_object_p): Reject generic ELF target if
4693 e_machine matches an alternate machine code in a specific backend.
4694
4695 * netbsd-core.c (netbsd_core_vec): Remove initializer for
4696 obsolete align_power_min field.
4697
c9f5444e
JL
4698Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com)
4699
4700 * coff-h8300.c (reloc_howto_type): Add howto entry for
4701 R_PCRWORD_B.
4702 (rtype2howto): Handle R_PCRWORD_B.
4703 (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
4704 (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit
4705 pc-relative branch (R_PCRWORD) into an 8bit pc-relative
4706 branch (R_PCWORD_B).
4707
4ad842aa
ILT
4708Fri May 3 10:47:41 1996 Ian Lance Taylor <ian@cygnus.com>
4709
340d654f
ILT
4710 * aoutx.h (translate_from_native_sym_flags): Set the section for
4711 BSF_CONSTRUCTOR symbols.
4712
4ad842aa
ILT
4713 * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
4714 last_bf_index.
4715
9c7a5748
DE
4716Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com>
4717
4718 * coffcode.h (coff_write_object_contents): In comdat section lookup,
4719 stop looking when section is found.
4720
622c93a3
ILT
4721Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
4722
e8f3bb64 4723 * coffcode.h (STRING_SIZE_SIZE): Define.
9aac8e83
ILT
4724 (styp_to_sec_flags): Handle long symbol names when looking for the
4725 section symbol.
e8f3bb64
ILT
4726 (bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
4727 (bfd_coff_long_section_names): Define.
4728 (coff_write_object_contents): Handle long section names.
4729 (bfd_coff_std_swap_table): Initialize new field.
4730 * libcoff.h: Rebuild.
4731 * coffgen.c (make_a_section_from_file): Handle long section
4732 names.
4733 (coff_write_symbols): Handle long section names.
4734 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
4735 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4736 * pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
4737 * pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
4738 * pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
4739 * pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
4740 * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
4741 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
4742
622c93a3
ILT
4743 * bout.c (b_out_callback): Set lma of sections.
4744 (b_out_bfd_get_relocated_section_contents): Rename in_abfd
4745 parameter to output_bfd. Used input_bfd instead of output_bfd in
4746 several places.
4747
6b725f83
ILT
4748Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
4749
b7d1158a
ILT
4750 * aoutx.h (translate_from_native_sym_flags): Don't create
4751 SEC_CONSTRUCTOR sections.
4752 * ecoff.c (ecoff_set_symbol_info): Likewise.
4753
6b725f83
ILT
4754 * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
4755 From Don Bowman <bowman@waterloo.hp.com>.
4756
e28a1e77
DE
4757Tue Apr 30 17:06:32 1996 Doug Evans <dje@canuck.cygnus.com>
4758
4759 * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
4760 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
4761
abec70b9
ILT
4762Mon Apr 29 13:15:17 1996 Ian Lance Taylor <ian@cygnus.com>
4763
4764 * elf32-mips.c (struct mips_elf_link_hash_entry): Add
4765 mips_32_relocs field.
4766 (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
4767 (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
4768 relocs against a global symbol which is not defined in a regular
4769 file.
4770 (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
4771 against a global symbol, increment mips_32_relocs.
4772 (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
4773 the symbol is not defined in a regular file, make room in the
4774 .rel.dyn section.
4775
ecba7a3a
ILT
4776Fri Apr 26 18:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
4777
656c5b6d
ILT
4778 * ecoff.c (ecoff_compute_section_file_positions): Track the real
4779 file position and the virtual file position separately. Set
4780 filepos information bsaed on the real file position.
4781 (_bfd_ecoff_set_section_contents): Handle .lib sections like the
4782 Jan 23 change to coffcode.h.
4783
ecba7a3a
ILT
4784 * som.c (som_slurp_symbol_table): Set the symbol count to the
4785 number of BFD symbols created.
4786
e25a7988
MM
4787Fri Apr 26 12:34:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4788
4789 * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
4790 output file if linking shared objects. Loop to check all relocs,
4791 rather than returning false on first error.
4792
5c28a96e
MM
4793Thu Apr 25 13:25:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4794
3f7ca26b
MM
4795 * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
4796 (ppc_elf_additional_program_headers): If .interp section, bump #
4797 of program headers by 1.
4798 (ppc_elf_adjust_dynamic_symbol): Flesh out support.
4799 (ppc_elf_size_dynamic_sections): Add support for .plt section.
4800 (ppc_elf_check_relocs): Print out filename in debug code. Enable
4801 PLT support.
4802 (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
4803 debug output.
4804 (ppc_elf_relocate_section): If the output section isn't defined,
4805 don't abort, just give an error message.
4806
5c28a96e
MM
4807 * elflink.c (_bfd_elf_create_dynamic_sections): If the section
4808 being created is .sdata or .sdata2, don't make the symbol dynamic.
4809
f5d65485
ILT
4810Wed Apr 24 14:04:07 1996 Ian Lance Taylor <ian@cygnus.com>
4811
4812 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
4813 members of an archive for dynamic objects with no symbols, and
4814 pass them directly to check_archive_element.
4815 (xcoff_link_check_ar_symbols): Pass dynamic objects to
4816 xcoff_link_check_dynamic_ar_symbols.
4817 (xcoff_link_check_dynamic_ar_symbols): New static function.
4818
4819 * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
4820 from _bfd_nodynamic to _bfd_xcoff.
4821 * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
4822 Declare.
4823 (_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
4824 (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
4825 (_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
4826 * libcoff.h: Rebuild.
4827 * xcofflink.c (xcoff_swap_ldrel_in): New static function.
4828 (xcoff_get_section_contents): New static function.
4829 (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
4830 (_bfd_xcoff_canonicalize_dynamic_symtab): New function.
4831 (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
4832 (xcoff_dynamic_reloc): New static variable.
4833 (_bfd_xcoff_canonicalize_dynamic_reloc): New function.
4834 (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
cf2cd4cf 4835
f5d65485
ILT
4836Tue Apr 23 12:48:42 1996 Ian Lance Taylor <ian@cygnus.com>
4837
4838 * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
4839 if reloc_entry->addend is not 0.
4840 (CALC_ADDEND): Just set the addend to reloc.r_offset.
4841
34249b2f
DE
4842Mon Apr 22 18:29:01 1996 Doug Evans <dje@canuck.cygnus.com>
4843
4844 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
4845 R_SPARC_GLOB_JMP.
4846 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4847 Add entries for R_SPARC_[56].
4848 (sparc_reloc_map): Add entries for R_SPARC_[56].
4849
af50cd91
ILT
4850Mon Apr 22 15:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
4851
1726b8f0
ILT
4852 Optimize linking of stabs in sections as used in ELF and COFF.
4853 * stabs.c: New file.
4854 * libbfd-in.h (_bfd_link_section_stabs): Declare.
4855 (_bfd_write_section_stabs): Declare.
4856 (_bfd_write_stab_strings): Declare.
4857 * libbfd.h: Rebuild.
4858 * libcoff-in.h (struct coff_section_tdata): Add stab_info field.
4859 (struct coff_link_hash_table): Add stab_info field.
4860 * libcoff.h: Rebuild.
4861 * cofflink.c (_bfd_coff_link_hash_table_init): Initialize
4862 stab_info field.
4863 (coff_link_add_symbols): Call _bfd_link_section_stabs if
4864 appropriate.
4865 (_bfd_coff_final_link): Write out stab strings hash table.
4866 (_bfd_coff_link_input_bfd): Handle optimized stabs sections.
4867 * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
4868 hash table.
4869 * elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
4870 (struct bfd_elf_section_data): Add stab_info field.
4871 * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
4872 field.
4873 * elflink.h (elf_link_add_object_symbols): If appropriate, call
4874 _bfd_link_section_stabs.
4875 (elf_bfd_final_link): Write out stab strings hash table.
4876 (elf_link_input_bfd): Handle optimized stabs sections.
4877 * reloc.c (_bfd_final_link_relocate): Check address against
4878 _raw_size rather than _cooked_size.
4879 * Makefile.in: Rebuild dependencies.
4880 (BFD_LIBS): Add stabs.o
4881 (BFD_LIBS_CFILES): Add stabs.c.
4882
4883 * VERSION: Increment for bfdlink.h change.
4884
af50cd91
ILT
4885 * coffgen.c (coff_renumber_symbols): Correct handling of
4886 BSF_NOT_AT_END common symbols.
4887
f9fa5df3
ILT
4888Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com>
4889
4890 * coff-ppc.c (record_toc): Add cast to avoid warning.
4891 (ppc_allocate_toc_section): Likewise.
4892 (coff_ppc_relocate_section): Remove ANSI C string concatenation.
4893 (ppc_coff_reloc_type_lookup): Remove unreached code.
4894 * coffcode.h (coff_write_object_contents): Don't take the address
4895 of an array.
4896 * peicode.h (pe_print_idata): Add casts to avoid warning.
4897 (pe_print_edata): Likewise.
4898 (pe_print_reloc): Remove ANSI C string concatenation.
4899
d6e0e2f7
ILT
4900Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
4901
4902 * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
4903 and last_bf fields.
4904 * libcoff.h: Rebuild.
4905 * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
4906 symbols.
4907 (coff_swap_aux_out): Likewise.
4908 * peicode.h (coff_swap_aux_in): Likewise.
4909 (coff_swap_aux_out): Likewise.
4910 * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
4911 symbols.
4912 * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
4913 field.
4914 (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
4915 Fix up .bf endndx link fields.
4916 * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
4917 field.
4918 * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
4919 symbols.
4920
221d1e19
MM
4921Wed Apr 17 12:08:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4922
4923 * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
4924 on Solaris PowerPC systems doesn't get confused.
4925
4926 * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
4927 #ifdef PPC.
4928
4929 * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
4930 (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
4931 update did_reg and did_reg2.
4932
8f9a56c6
ILT
4933Wed Apr 17 13:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
4934
f97fca78
ILT
4935 * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
4936
8f9a56c6
ILT
4937 * linker.c (_bfd_generic_link_add_one_symbol): When calling the
4938 callback routines, pass h->root.string rather than name, in case
4939 copy is true and name is transient.
4940
603fdf16
SG
4941Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
4942
4943 * elfcore.h: Add support for core files with multiple threads.
4944 (Primarily for Solaris.)
4945
a2d914e1
ILT
4946Tue Apr 16 13:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
4947
cdf23557
ILT
4948 * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
4949 section->orelocation is NULL.
4950
a2d914e1
ILT
4951 * coffgen.c (bfd_coff_get_syment): New function.
4952 (bfd_coff_get_auxent): New function.
4953 * bfd-in.h (bfd_coff_get_syment): Declare.
4954 (bfd_coff_get_auxent): Declare.
4955 * bfd-in2.h: Rebuild.
4956
5cf36a32
ILT
4957Mon Apr 15 19:06:59 1996 Ian Lance Taylor <ian@cygnus.com>
4958
4959 * elf32-mips.c (struct mips_hi16): Define.
4960 (mips_hi16_addr, mips_hi16_addend): Remove.
4961 (mips_hi16_list): New static variable.
4962 (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
4963 (mips_elf_lo16_reloc): Process mips_hi16_list.
4964 (mips_elf_relocate_section): Permit an arbitrary number of HI16
4965 relocs before the associated LO16 reloc.
4966
b7fce5be
ILT
4967Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
4968
176512da
ILT
4969 * versados.c (versados_scan): Check bfd_alloc return value.
4970 (versados_object_p): Check all bfd_read return values. Require
4971 that lang field be less than 10, to avoid confusion with Intel Hex
4972 files.
4973
18de3f19
ILT
4974 * libaout.h (WRITE_HEADERS): Write out the relocs even if there
4975 aren't any symbols.
4976 * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
4977 not 0, for an absolute symbol.
4978 (NAME(aout,swap_ext_reloc_out)): Likewise.
4979
66ab4152
ILT
4980 * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
4981 (ihex_write_object_contents): For a large start address, output
4982 the full 32 bit address in record type 5.
4983
b7fce5be
ILT
4984 * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
4985 to int to avoid promotion problems in prototype.
4986
f1b45745
ILT
4987Tue Apr 9 11:44:21 1996 Ian Lance Taylor <ian@cygnus.com>
4988
f400f358
ILT
4989 * configure.host: Use ${srcdir} when looking for picfrag.
4990
3d9a5986
ILT
4991 * configure.host: Switch on ${libdir}, not $(libdir). From
4992 alan@spri.levels.unisa.edu.au (Alan Modra).
4993
f1b45745
ILT
4994 * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
4995 entry point, not just for DYNAMIC objects.
4996 * sunos.c (sunos_add_dynamic_symbols): Always call
4997 sunos_create_dynamic_sections. If called with a non DYNAMIC
4998 object, don't do anything else.
4999 (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
5000
6f21f2e3
ILT
5001Mon Apr 8 12:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
5002
639b5a09
ILT
5003 * configure.in: Permit --enable-shared to specify a list of
5004 directories.
5005 * configure: Rebuild.
5006
6f21f2e3
ILT
5007 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
5008 host when configuring with --enable-shard.
5009
3f5f565b
ILT
5010Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com>
5011
1ac75f5c
ILT
5012 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
5013 <jdp@polstra.com>.
5014
1a9951a9
ILT
5015 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
5016 to avoid crashing in bfd_hash_replace.
5017
f1ac3acb 5018 * sysdep.h: Use #ifdef, not #if.
3f5f565b 5019
eb5f58e0
ILT
5020Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com>
5021
5022 * config.in: Rebuild.
5023
ab1aa5cd
FF
5024Thu Apr 4 18:49:09 1996 Fred Fish <fnf@cygnus.com>
5025
5026 * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
5027 (AC_CHECK_HEADERS): Check for sys/time.h
5028 (AC_HEADER_TIME): Add macro.
5029 * configure: Rebuild.
5030 * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
5031 to control what combination of <time> and <sys/time.h>
5032 get included.
cf2cd4cf 5033
d1f74cd2
DE
5034Tue Apr 2 13:11:53 1996 Doug Evans <dje@canuck.cygnus.com>
5035
5036 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
5037 (aout_32_sunos4_write_object_contents): Likewise.
5038 * aoutx.h (NAME(aout,machine_type)): Handle
5039 bfd_mach_sparc_{sparclet,sparclite}.
5040 * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
5041 (bfd_mach_sparc_v9_p): Update.
5042 * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
5043 * libaout.h (enum machine_type): Add M_SPARCLET.
5044 * sunos.c (MACHTYPE_OK): Define.
5045 * bfd-in2.h: Regenerated.
5046
1dad72bd
ILT
5047Tue Apr 2 00:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
5048
19bfbcbe
ILT
5049 * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
5050 * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
5051 * elflink.c (_bfd_elf_create_got_section): Store the
5052 _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
5053 * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
5054 global offset table goes over 0x1000, set the value of
5055 _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
5056 (elf32_sparc_relocate_section): Subtract the offset of
5057 _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
5058
1dad72bd
ILT
5059 * elfcode.h: Don't include <string.h>.
5060
ca4e2190
JL
5061Mon Apr 1 10:39:24 1996 Jeffrey A Law (law@cygnus.com)
5062
5063 * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
5064 generic_link_hash_newfunc. All references changed.
5065 * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
5066 moved here from libbfd-in.h.
5067 * libbfd-in.h: Corresponding changes.
5068 * libbfd.h: Regenerated.
5069
ce6a7731
ILT
5070Mon Apr 1 12:35:36 1996 Ian Lance Taylor <ian@cygnus.com>
5071
aad53b0d
ILT
5072 * aoutx.h (aout_link_input_section_std): When reporting an
5073 overflow error, use the name of the symbol in the hash table if
5074 available.
5075 (aout_link_input_section_ext): Likewise.
5076
ce6a7731
ILT
5077 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
5078 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
5079
323b430f
SC
5080Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com>
5081
5082 * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
5083 * coffcode.h (coff_compute_section_file_positions): Likewise.
5084 (coff_write_object_contents): Likewise.
cf2cd4cf 5085
7fc1cd16
ILT
5086Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
5087
5a28331f
ILT
5088 * section.c (SEC_LINK_ONCE): Define.
5089 (SEC_LINK_DUPLICATES): Define.
5090 (SEC_LINK_DUPLICATES_DISCARD): Define.
5091 (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
5092 (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
5093 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
5094 * bfd-in2.h: Rebuild.
5095 * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
5096 SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
5097 (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
5098 into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set
5099 SEC_LINK_ONCE, and look through the symbol table for the setting
5100 for SEC_LINK_DUPLICATES.
5101 (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
5102 set for a section, find the section symbol in the symbol table,
5103 and set the aux entry based on SEC_LINK_DUPLICATES.
5104 * coffgen.c (coff_print_symbol): Add a space before "checksum".
5105 * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
5106 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
5107 * coff-i386.c (i386coff_vec): Likewise.
5108 * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
5109
7fc1cd16
ILT
5110 * VERSION: Bump to 2.6.1.
5111 * Makefile.in (stamp-h): Depend upon VERSION.
5112
9399a257
JL
5113Thu Mar 28 23:48:49 1996 Jeffrey A Law (law@cygnus.com)
5114
5115 * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
5116 * libbfd.h: Rebuilt.
5117 * linker.c (generic_link_hash_newfunc): No longer static.
5118 * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
5119 to override.
5120 * coff-h8300.c: Add two derived hash tables and their associated
5121 funtions and #defines for use by the h8300 linker.
5122 (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
5123 the function vector as needed. Place the address of the function
5124 vector entry in the location specified by the R_MEM_INDIRECT reloc.
5125 Rewrite the vectors section contents as necessary.
cf2cd4cf 5126 (h8300_bfd_link_add_symbols): New function for the h8300 linker.
9399a257
JL
5127 (coff_bfd_link_add_symbols): Define to use h8300 specific version.
5128 (coff_bfd_link_hash_table_create): Likewise.
5129
506f2bb4
ILT
5130Thu Mar 28 17:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
5131
5132 * libhppa.h: If gcc 2.7 or higher, declare all the functions with
5133 __attribute__ ((__unused__)) so that -Wall doesn't warn about
5134 them.
5135 (hppa_rebuild_insn): Pass pointer to correct type to
5136 low_sign_unext and dis_assemble_21.
5137
05a84ae1
DE
5138Thu Mar 28 11:00:36 1996 Doug Evans <dje@canuck.cygnus.com>
5139
5140 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
5141 Stick with sparc-*-{sysv4*,solaris2*}.
5142
919cf4b5
ILT
5143Wed Mar 27 10:43:34 1996 Ian Lance Taylor <ian@cygnus.com>
5144
8230f31c
ILT
5145 * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
5146 (coff_swap_aux_out): Swap out extra PE x_scn fields.
5147 * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
5148 * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
5149 fields is non-zero, print them.
5150
9addd1d4
ILT
5151 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
5152 ifdef. Remove unused variables.
5153 (ppc_record_data_in_toc_entry): Ifdef out. Removed unused
5154 variables.
5155 (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
5156 (get_symbol_value): Ifdef out.
5157 (pe_ppc_reloc): Ifdef out. Remove unused variables.
5158 (coff_ppc_relocate_section): Remove unused variables. Make
5159 fprintf strings and argument types correspond. Put before_addr in
5160 DEBUG_RELOC ifdef.
ff0e4a93
ILT
5161 (dump_toc): Make fprintf strings and argument types correspond.
5162 (ppc_process_before_allocation): Remove unused variables. Always
5163 return a value.
9addd1d4
ILT
5164 (ppc_reflo_reloc): Ifdef out.
5165 (ppc_addr32nb_reloc): Ifdef out.
5166 (ppc_coff_rtype2howto): Make fprintf strings and argument types
5167 correspond.
5168 (coff_ppc_rtype_to_howto): Likewise.
5169 (ppc_coff_swap_sym_in_hook): Remove unused variables.
5170
5171 * peicode.h (pe_print_idata): Move otherwise unused variables into
5172 the #ifdef where they are used. Always return a value.
ff0e4a93
ILT
5173 (pe_print_edata): Make fprintf strings and argument types
5174 correspond. Always return a value.
9addd1d4
ILT
5175 (pe_print_pdata): Removed unused variable addr_value. Always
5176 return a value.
5177 (pe_print_reloc): Remove unused variable onaline. Make fprintf
ff0e4a93 5178 strings and argument types correspond. Always return a value.
9addd1d4
ILT
5179
5180 * elf32-ppc.c (ppc_elf_fake_sections): Return true.
5181 (ppc_elf_finish_dynamic_symbol): Move definition of unused
5182 variable rela inside #if 0 section where it is used.
5183
c877bdf1
ILT
5184 * ns32k.h: New file.
5185 * cpu-ns32k.h: Include ns32k.h. Rename externally visible
5186 functions to start with _bfd_.
5187 * aout-ns32k.c: Include ns32k.h. Change references to renamed
5188 functions in cpu-ns32k.h.
5189 * Makefile.in: Rebuild dependencies.
5190 (HFILES): Add ns32k.h.
5191
ff0e4a93
ILT
5192 * section.c (struct sec): Add linker_mark field. Change
5193 user_set_vma and reloc_done to be single bit fields.
5194 (STD_SECTION): Update accordingly.
7ec49f91
ILT
5195 * bfd-in2.h: Rebuild.
5196 * aoutx.h (NAME(aout,final_link)): Mark sections included in the
5197 link.
5198 (aout_link_input_bfd): Don't link unmarked sections.
5199 * cofflink.c (_bfd_coff_final_link): Mark sections included in the
5200 link.
5201 (_bfd_coff_link_input_bfd): Don't link unmarked sections.
5202 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
5203 the link.
5204 * elflink.h (elf_bfd_final_link): Mark sections included in the
5205 link.
5206 (elf_link_input_bfd): Don't link unmarked sections.
5207 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
5208 in the link.
5209 (xcoff_link_input_bfd): Don't link unmarked sections.
5210
919cf4b5
ILT
5211 * coffswap.h (coff_swap_scnhdr_out): Include section name in
5212 overflow error messages.
5213
986cf3b8
ILT
5214Tue Mar 26 15:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
5215
fd681dcd
ILT
5216 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
5217 is not set, print "BFD: " before the error message.
5218
986cf3b8
ILT
5219 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
5220 Miles Bader <miles@gnu.ai.mit.edu>.
5221 * configure: Rebuild.
5222
3998d526
ILT
5223Fri Mar 22 12:17:00 1996 Ian Lance Taylor <ian@cygnus.com>
5224
c3dffbd7
ILT
5225 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
5226 symbols.
5227
3998d526
ILT
5228 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
5229 m68k-aout, m68k-coff, and m68k-elf targets.
5230
e4d27380
ILT
5231Fri Mar 22 11:33:44 1996 Martin Anantharaman <martin@goofy.imech.uni-duisburg.de>
5232
5233 * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
5234 (ieee_generic_stat_arch_elt): Restructured to prevent
5235 ieee_object_p from being called repeatedly.
5236
51776a11
SC
5237Thu Mar 21 11:00:47 1996 steve chamberlain <sac@slash.cygnus.com>
5238
5239 * coffcode.h (coff_write_object_contents): Allocate
5240 buffers large enough for any FILEHDR or AOUTHDR.
5241
5242Thu Mar 21 16:28:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
5243
5244 * ecofflink.c (lookup_line): New static function, renamed and
5245 slighly changed from old _bfd_ecoff_locate_line.
5246 (_bfd_ecoff_locate_line): Cache line number information. Use
5247 lookup_line for actual lookup.
5248
9e4ebb1b
MM
5249Thu Mar 21 14:59:11 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5250
5251 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
5252 multiple of 20 bytes.
5253
9e7427a4
ILT
5254Thu Mar 21 13:54:40 1996 Ian Lance Taylor <ian@cygnus.com>
5255
51776a11
SC
5256 * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
5257 allocate ecoff_find_line, and don't initialize by hand.
5258 * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
5259 mips_elf_find_line, and don't call memset.
5260
9e7427a4
ILT
5261 * coffcode.h (coff_compute_section_file_positions): If not
5262 producing a final executable, don't consider sofar when aligning
5263 the section to the correct size.
5264
5265Wed Mar 20 16:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
5266
5267 * coffcode.h (coff_add_missing_symbols): Ifdef out.
5268 (coff_write_object_contents): Don't call coff_add_missing_symbols.
5269 * coffgen.c (coff_section_symbol): Ifdef out.
5270
e7f9ba4f
ILT
5271Mon Mar 18 12:54:41 1996 Ian Lance Taylor <ian@cygnus.com>
5272
5273 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
5274 output_bfd is not NULL.
5275
34c4d647
DE
5276Thu Mar 14 17:12:06 1996 Doug Evans <dje@charmed.cygnus.com>
5277
5278 * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
5279 of bfd_alloc (fixes fix_line not being initialized).
5280 Delete zeroing of fix_{value,tag,end,scnlen} fields.
5281
4e054247
JL
5282Thu Mar 14 16:06:06 1996 Jeffrey A Law (law@cygnus.com)
5283
57289b5c
JL
5284 * coffcode.h: Allow specific backends to override the
5285 bfd_link_add_symbols routine.
5286
4e054247
JL
5287 * coff-h8300.c: Include genlink.h.
5288 (howto_table): Add R_MEM_INDIRECT.
5289 (rtype2howto): Support R_MEM_INDIRECT.
5290 (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
5291 for now.
cf2cd4cf 5292
a10d3dec
ILT
5293Tue Mar 12 12:41:17 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
5294
5295 * coff-alpha.c (alpha_relocate_section): Use
5296 info->callbacks_warning, rather than _bfd_error_handler, for
5297 "multiple gp" warning.
5298
ea2488ad
ILT
5299Tue Mar 12 12:10:55 1996 Ian Lance Taylor <ian@cygnus.com>
5300
8881b321
ILT
5301 * linker.c (bfd_wrapped_link_hash_lookup): New function.
5302 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
5303 table string. Use bfd_wrapped_link_hash_lookup.
5304 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
5305 table string.
5306 * aoutx.h (aout_link_write_symbols): Use the name from the hash
5307 table, if any, when writing out symbols.
5308 (aout_link_input_section_std): Use the name from the hash table,
5309 if any, when reporting undefined symbols.
5310 (aout_link_input_section_ext): Likewise.
5311 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
5312 * bout.c (get_value): Likewise.
5313 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
5314 * ecoff.c (ecoff_reloc_link_order): Likewise.
5315 * elflink.h (elf_link_add_object_symbols): Likewise.
cf2cd4cf 5316 (elf_reloc_link_order): Likewise.
8881b321
ILT
5317 * linker.c (_bfd_generic_link_output_symbols): Likewise.
5318 (_bfd_generic_reloc_link_order): Likewise.
5319 (default_indirect_link_order): Likewise.
5320 * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
5321 * sunos.c (sunos_add_one_symbol): Likewise.
5322 * xcofflink.c (xcoff_link_add_symbols): Likewise.
5323 (bfd_xcoff_link_count_reloc): Likewise.
5324 (xcoff_reloc_link_order): Likewise.
5325
5326 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
5327 into -1 for intern->rss.
5328
ea2488ad
ILT
5329 * configure: Rebuild with autoconf 2.8.
5330
c189fdfb
ILT
5331Mon Mar 11 12:28:31 1996 Ian Lance Taylor <ian@cygnus.com>
5332
5333 * stab-syms.c (__define_stab_duplicate): Define.
5334 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
5335 switch.
5336 * bfd-in.h (bfd_get_stab_name): Declare.
5337 * bfd-in2.h: Rebuild.
5338 * Makefile.in: Rebuild dependencies.
5339 (BFD_LIBS): Add stab-syms.o.
5340 (BFD_LIBS_CFILES): Add stab-syms.c.
5341 (BFD32_BACKENDS): Remove stab-syms.o.
5342 (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
5343 * configure.in: Don't list stab-syms.o in bfd_backends.
5344 * configure: Rebuild.
5345 * libaout.h (aout_stab_name): Don't declare.
5346 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
5347 not aout_stab_name.
5348
5349Fri Mar 8 11:26:20 1996 Ian Lance Taylor <ian@cygnus.com>
5350
5351 * elf.c (assign_file_positions_for_segments): Adjust file offset
5352 for section alignment even if SEC_LOAD is not set.
5353
c5bde1ef
ILT
5354Tue Mar 5 12:02:23 1996 Ian Lance Taylor <ian@cygnus.com>
5355
8f218e05
ILT
5356 * configure.in: Don't set SHLIB or SHLINK to an empty string,
5357 since they appear as targets in Makefile.in.
5358 * configure: Rebuild.
5359
c5bde1ef
ILT
5360 * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
5361 don't fiddle with a symbol which is not defined anywhere.
5362
cb84f028
ILT
5363Mon Mar 4 12:49:16 1996 Ian Lance Taylor <ian@cygnus.com>
5364
4e59f523
ILT
5365 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
5366 though they are defined in a shared library.
5367 (xcoff_build_ldsyms): Likewise.
5368
ea2504d5
ILT
5369 * coffgen.c (coff_find_nearest_line): Don't look at the line
5370 numbers for the section if section->lineno is NULL.
5371
cb84f028
ILT
5372 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
5373 message rather than calling BFD_ASSERT.
5374 * elfcode.h (write_relocs): Check return value of
5375 _bfd_elf_symbol_from_bfd_symbol.
5376
6e036cf7
MM
5377Fri Mar 1 09:42:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5378
5379 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
5380 for .sbss section.
5381
d08435de
JL
5382Wed Feb 28 11:25:47 1996 Jeffrey A Law (law@cygnus.com)
5383
5384 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
5385 and R_HPPA_NLRSEL.
5386 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
5387 hppa_reloc_field_selector_type_alt.
5388 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
5389 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
5390 selectors.
5391 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
5392
09609415
ILT
5393Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com>
5394
5395 * elf.c (assign_file_positions_for_segments): Adjust the segment
5396 memory size for the alignment of a SEC_ALLOC section, not just a
5397 SEC_LOAD section.
5398
55626bf0
ILT
5399Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5400
5401 * m68klinux.c: New file.
5402 * hosts/m68klinux.h: New file.
5403 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
5404 * configure.in (m68*-*-linux*): New native host.
5405 (m68klinux_vec): New vector.
5406 * configure: Rebuild.
5407 * targets.c (m68klinux_vec): Declare.
5408 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
5409 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
5410 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
5411 declaration from bfd_linux_size_dynamic_sections.
5412 (bfd_m68klinux_size_dynamic_sections): Declare.
5413 * bfd-in2.h: Rebuild.
5414 * Makefile.in: Rebuild dependencies.
5415 (BFD32_BACKENDS): Add m68klinux.o.
5416 (BFD32_BACKENDS_CFILES): Add m68klinux.c.
5417
6c7b3090
JL
5418Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com)
5419
5420 * libhppa.h (pa_arch): Add pa20.
5421 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
5422 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
5423 (hppa_field_adjust): Handle e_nsel.
5424 * som.c: Provide default definitions for many new relocs found only
5425 in hpux10 include files.
5426 (som_fixup_formats): Add several new relocs from hpux10.
5427 (som_hppa_howto_table): Add hpux10 relocs.
5428 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
5429
14fd4616
SS
5430Mon Feb 26 12:52:48 1996 Stan Shebs <shebs@andros.cygnus.com>
5431
5432 * mpw-make.sed: Edit out recent shared library support, and
5433 rules to rebuild .h files using doc/chew.
5434
3d9f042c
ILT
5435Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com>
5436
5437 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
5438 size even of sections with no contents.
5439
bdec6228
ILT
5440Mon Feb 26 14:01:13 1996 Ian Lance Taylor <ian@cygnus.com>
5441
88358469
ILT
5442 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
5443 starting with '$' the way we skip names starting with '.'. When
5444 updating x_endndx, don't be fooled by an index which has been
5445 merged.
5446
bdec6228
ILT
5447 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
5448 struct/union/enum type with no elements.
5449
053ae1d7
ILT
5450Sat Feb 24 11:38:58 1996 Ian Lance Taylor <ian@cygnus.com>
5451
15f4406c
ILT
5452 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
5453
c8435133
ILT
5454 * archive.c (bfd_generic_archive_p): If the first file in the
5455 archive can not be recognized as an object, don't assume that this
5456 is the wrong format.
5457
053ae1d7
ILT
5458 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
5459 format is not bfd_object.
5460 (bfd_elf_get_dt_soname): Likewise.
5461
ea74d979
ILT
5462Wed Feb 21 13:58:04 1996 Ian Lance Taylor <ian@cygnus.com>
5463
5464 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
5465 reloc.
5466
871a3f3b
C
5467Tue Feb 20 16:22:44 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5468
5469 * bfd.c (tdata): Add netbsd_core_data.
5470 * bfd-in2.h: Regenerated.
5471
5472Tue Feb 20 16:50:02 1996 Ian Lance Taylor <ian@cygnus.com>
5473
fe6fc35f
ILT
5474 * sunos.c (SUNOS_CONSTRUCTOR): Define.
5475 (sunos_add_one_symbol): Don't let a symbol from a dynamic object
5476 override a constructor symbol. Set SUNOS_CONSTRUCTOR when
5477 appropriate.
5478
871a3f3b
C
5479 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
5480 to get the symbol index, matching 14 Jul 95 change.
5481
d3785301
FF
5482Tue Feb 20 08:26:27 1996 Fred Fish <fnf@phydeaux.cygnus.com>
5483
5484 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
5485 Remove duplicate definition of gp.
5486
60a49e7f
ILT
5487Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
5488
81bdcecf
ILT
5489 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
5490 assume that we can set the GP value and then get the same value,
5491 since it won't be true if the output file is neither ELF nor
5492 ECOFF.
5493 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
5494 _bfd_get_gp_value here.
5495 (mips_gprel_reloc): Don't assume we can set and get the GP value.
5496 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
5497 mips_elf_final_gp.
5498 (mips_elf_lo16_reloc): Likewise.
5499 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
5500 Don't require that the BFD be ELF.
5501 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
5502 (mips_elf_gprel32_reloc): Likewise.
5503 (mips_elf_relocate_section): Don't assume we can set and get the
5504 GP value.
5505 (mips_elf_finish_dynamic_symbol): Don't bother to use
5506 _bfd_get_gp_value here.
5507
5508 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
5509 Don't change epdr between malloc and free. Be careful not to free
5510 NULL pointers. Zero out the first RPDR.
5511
7b61165a
ILT
5512 * configure.host: On Linux, only pass -rpath option if $(libdir)
5513 is neither /lib nor /usr/lib. From Alan Modra
5514 <alan@mullet.Levels.UniSA.Edu.Au>.
5515
60a49e7f
ILT
5516 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
5517 dt_name.
5518 (elf_dt_name): Rename from elf_dt_needed_name.
5519 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
5520 elf_dt_needed_name.
5521 (bfd_elf_get_dt_soname): New function.
5522 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
5523 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
5524 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
5525 * bfd-in2.h: Rebuild.
5526
b268e261
DE
5527Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com>
5528
5529 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
5530 _bfd_sparc_elf_reloc_type_lookup.
5531 (bfd_elf32_bfd_reloc_type_lookup): Update.
5532 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
5533 (sparc64_elf_howto_table): Define.
5534 (sparc_reloc_map): Define.
5535 (sparc64_elf_reloc_type_lookup): New function.
5536 (sparc_elf_wdisp16_reloc): New function.
5537 (elf_info_to_howto): Use sparc64_elf_howto_table.
5538 (sparc64_elf_relocate_section): Likewise.
5539 (bfd_elf64_bfd_reloc_type_lookup): Update.
5540
9e2ef098
ILT
5541Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com>
5542
5543 * configure.host: Check for 'do not mix' from native linker before
5544 trying to use -rpath.
5545
4c70373f
ILT
5546Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
5547
cba3f8a9
ILT
5548 * bfd.c (_bfd_get_gp_value): New function.
5549 (_bfd_set_gp_value): New function.
5550 * libbfd-in.h (_bfd_get_gp_value): Declare.
5551 (_bfd_set_gp_value): Declare.
5552 * libbfd.h: Rebuild.
5553 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
5554 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
5555 directly to the fields in the tdata information.
5556 (alpha_relocate_section): Likewise.
5557 * coff-mips.c (mips_adjust_reloc_in): Likewise.
5558 (mips_gprel_reloc): Likewise.
5559 (mips_relocate_section): Likewise.
5560 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
5561 (mips_elf_lo16_reloc): Likewise.
5562 (mips_elf_final_gp): Likewise.
5563 (mips_elf_gprel16_reloc): Likewise.
5564 (mips_elf_gprel32_reloc): Likewise.
5565 (mips_elf_relocate_section): Likewise.
5566 (mips_elf_finish_dynamic_symbol): Likewise.
5567
4c70373f
ILT
5568 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
5569
a0a2dd54
ILT
5570Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com>
5571
f54c7482 5572 * configure.in: Call AC_PROG_CC before configure.host.
65eed095
ILT
5573 * configure: Rebuild.
5574 * configure.host: Don't set information which autoconf should
5575 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
65eed095 5576
14293419
ILT
5577 * configure.host: Remove go32 and win32 host information, since it
5578 should no longer be needed.
5579
edf3fe48
ILT
5580 * elf.c (map_sections_to_segments): If we have a .dynamic section,
5581 then start a new segment rather than put a writable section in a
5582 readonly segment.
5583
b5e4f369
ILT
5584 * configure.host: Set RPATH_ENVVAR.
5585
f2e33e27
ILT
5586 * Makefile.in: Rebuild dependencies.
5587
a0a2dd54
ILT
5588 * elflink.c (_bfd_elf_create_linker_section): Remove unused
5589 zero_section variable.
5590
52c6bc4d
ILT
5591Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
5592
5593 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
5594 ($(srcdir)/libbfd.h): Rename from libbfd.h.
5595 ($(srcdir)/libcoff.h): Rename from libcoff.h.
5596
c9e5279f
ILT
5597Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
5598
cb50baea
ILT
5599 * ieee.c (ieee_write_expression): Only use an R variable for a
5600 local symbol. Don't output a zero offset. Handle a zero address.
5601 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
5602 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
5603 PCREL_OFFSET.
5604 (parse_expression): Don't try to handle multiple occurrences of a
5605 P variable. Handle I variables differently from X variables. Fix
5606 the order of minus expressions.
5607 (ieee_slurp_external_symbols): Generate an I variable for an NN
5608 record. Fix handling of ATI and ATX records.
5609 (ieee_slurp_sections): Only set minimal section attributes.
5610 Adjust them later, based on the section contents.
5611 (ieee_object_p): Read in the file until just after the ME record.
5612 Call ieee_slurp_section_data to set the section flags.
5613 (do_one): Add iterations parameter. Only repeat the first load
5614 item. Set the section and file reloc flags.
5615 (ieee_slurp_section_data): Set section flags. Pass iterations to
5616 do_one.
5617 (ieee_canonicalize_reloc): Handle I variables.
5618 (do_with_relocs): Only emit relocation size when necessary.
5619 Increase MAXRUN to 127. Change ov to be assigned, and take
5620 src_mask and pcrel_offset into account.
5621 (ieee_write_data_part): Skip sections that are not loaded.
5622 (ieee_write_external_part): Don't output optional last entry of WX
5623 records.
5624 (ieee_write_me_part): Make setting of me_record neater.
5625 (ieee_generic_stat_arch_elt): Get the size of an archive element.
5626
c9e5279f
ILT
5627 * syms.c (stt): Add entries for zerovars, vars, and code.
5628
5629 * elfcode.h (validate_reloc): New static function.
5630 (write_relocs): Call validate_reloc for non ELF relocs.
5631
5632 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
5633 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
5634 (TARGET_LITTLE_SYM): Likewise.
5635
5636 * config.bfd (m68*-*-psos*): New target.
5637
d9d65be6
ILT
5638Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
5639
5640 * i386msdos.c: Remove some #if 0 code.
5641 (msdos_write_object_contents): Don't include empty sections in the
5642 size computation, regardless of their address.
5643
5644Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5645
5646 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
5647 is NULL, ie, the -r switch is used.
5648
db5970c7
ILT
5649Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com>
5650
e9f03cd4
ILT
5651 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
5652 (BFD_RELOC_MIPS_GOT_LO16): Define.
b7384d22 5653 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
e9f03cd4
ILT
5654 * bfd-in2.h, libbfd.h: Rebuild.
5655 * elf32-mips.c (mips_reloc_map): Map new relocs.
5656
fe7c066a
ILT
5657 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
5658
1ab628e4
ILT
5659 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
5660 $(SHLINK).
5661
db5970c7
ILT
5662 * ieee.c (get_symbol): Set the section to bfd_abs_section.
5663 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
5664 simple number for the section address, rather than an expression.
5665 Limit the number of bytes between relocs to MAXRUN.
5666 (ieee_write_me_part): Set me_record to the file offset after the
5667 start address.
5668 (ieee_write_processor): New static function.
5669 (ieee_write_object_contents): Use ieee_write_processor.
5670
318b7c18
ILT
5671Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
5672
db5970c7
ILT
5673 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
5674
5675 * coff-aux.c: Change include of aux.h to aux-coff.h.
318b7c18 5676
56b64690
ILT
5677Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5678
5679 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
5680 relocation put the addend both in the reloc entry and the data.
5681 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
5682 GOT offset value.
5683
5684 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
5685 a R_68K_PCxx reloc against a defined global symbol directly.
5686 (elf_m68k_check_relocs): Don't count such a reloc.
5687
5688 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
5689 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
5690 symbol for now, otherwise always record the symbol as dynamic.
5691 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
5692 is not referenced by a dynamic object, and we are not making a
5693 shared object, then don't make a PLT entry. If we do make a PLT
5694 entry, make sure the symbol has been recorded as dynamic.
5695
5d649ca8
ILT
5696Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com>
5697
5698 * configure.host: When making a shared library, set HLDFLAGS to
5699 pass an appropriate -rpath option. Use the make variable SONAME
5700 as the shared library soname, rather than computing it here. On
5701 SunOS, build stamp-tshlink in place of $(SHLINK).
5702 * Makefile.in (SONAME): New variable.
5703 ($(SHLINK)): Make a link to the transformed name, as well.
5704 (stamp-tshlink): New target.
5705 (install): Skip stamp-tshlink during install.
5706
8cc98cd5
MM
5707Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5708
56b64690
ILT
5709 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
5710 linker sections have been set up yet.
5711
8cc98cd5
MM
5712 * elf.c (make_mapping): Add an additional argument to suppress
5713 making the first section include the program headers.
5714 (map_sections_to_segments): If the user used -Ttext such that the
5715 program headers are on a different page, do not set the flags
5716 saying that this section includes the program headers.
5717
fe16107d
C
5718Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5719
5720 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
5721 don't define TRAD_HEADER.
5722 * configure: Rebuild.
5723
5724 * netbsd-core.c: New file, support for NetBSD core files.
5725 * hosts/*nbsd.h: Removed.
5726
f1783016
DE
5727Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com>
5728
5729 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
5730 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
5731 * libbfd.h, bfd-in2.h: Regenerated.
5732 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
5733 bfd_elf32_bfd_reloc_type_lookup.
5734 (reloc_type{,_names}): Deleted.
5735 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
5736 Add sparc64 relocs.
5737 (sparc_reloc_map): Add sparc64 relocs.
5738 (sparc_elf_notsupported_reloc): New static function.
5739 (sparc_elf_wdisp16_reloc): New static function.
5740 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
5741 (elf32_sparc_relocate_section): Likewise.
5742 (bfd_elf32_bfd_reloc_type_lookup): Define.
5743 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
5744 (reloc_type{,_names}): Deleted.
5745 (elf_sparc_howto_table): Deleted.
5746 (sparc_reloc_map): Deleted.
5747 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
5748 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
5749
48fd00b6
ILT
5750Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
5751
2300e217
ILT
5752 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
5753 *-*-hpux* host.
5754
48fd00b6
ILT
5755 * Makefile.in (program_transform_name): New variable.
5756 (install): Transform library name before installing it.
5757
8adca582
ILT
5758Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com>
5759
cbe75cb6
ILT
5760 * archures.c (bfd_mach_i960_hx): Define.
5761 * bfd-in2.h: Rebuild.
5762 * cpu-i960.c (scan_960_mach): Accept machine "hx".
5763 (MATRIX): Expand entries for HX.
5764 (arch_info_struct): Add i960:hx entry.
5765 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
5766 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
5767 (coff_set_flags): Handle bfd_mach_i960_hx.
5768
44f795f7
ILT
5769 Support for building as a shared library, based on patches from
5770 Alan Modra <alan@spri.levels.unisa.edu.au>:
5771 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
5772 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
5773 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
5774 * configure: Rebuild.
5775 * configure.host: If --enable-shared, adjust shared library stuff
5776 based on the host. If the host is SunOS, and the linker supports
5777 -rpath, set HLDFLAGS to use it.
5778 * Makefile.in (ALLLIBS): New variable.
5779 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
5780 (COMMON_SHLIB, SHLINK): New variables.
5781 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
5782 (STAGESTUFF): Remove variable.
5783 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
5784 $(TARGETLIB).
5785 (stamp-ofiles): New target, like old ofiles target, but build
5786 using a temporary file and move-if-change, and touch stamp-ofiles
5787 when done.
5788 (ofiles): Just depend upon stamp-ofiles.
5789 (stamp-piclist, piclist): New targets.
5790 ($(SHLIB), $(SHLINK)): New targets.
5791 (targets.o, archures.o): Build twice if PICFLAG is set.
5792 (do_mostlyclean): Remove pic/*.o.
5793 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
5794 stamp-piclist.
5795 (do_distclean): Remove pic and stamp-picdir.
5796 (install): Install shared libraries.
5797 ($(OFILES)): Depend upon stamp-picdir.
5798 (stamp-picdir): New target.
5799
cb62d2bc
ILT
5800 * libcoff-in.h: Add comment reminding people that libcoff.h is a
5801 generated file.
5802 * libcoff.h: Rebuild.
5803
8adca582
ILT
5804 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
5805 flavour of a section with no owner.
5806
5807 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
5808 ELF_LINK_NON_ELF flag.
5809 (mips_elf_create_got_section): Likewise.
5810
5811 * elf.c: Revert last change, since it breaks dynamic linking.
5812 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
5813 field.
5814 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
5815 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
5816 (elfNN_bed): Don't initialize want_hdr_in_seg field.
5817
5818Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5819
5820 * elf.c (assign_file_positions_for_segments): If the backend does
5821 not want the elf header or the program headers in the address
5822 space, do not include them in the calculations.
5823
5824 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
5825 function to determine if we need additional program headers.
5826 (ppc_elf_modify_segment_map): Define as a NOP function for now.
5827 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
5828
0f09ddd4
ILT
5829Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com>
5830
5831 * coffcode.h: Move today's libcoff.h change into coffcode.h.
5832
b48f10ba
FF
5833Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com>
5834
0f09ddd4
ILT
5835 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
5836 back into one line. Some compilers (sunos 4.1.3 for example)
5837 won't accept args split across more than one line.
b48f10ba 5838
50761d3b
SC
5839Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
5840
5841 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
5842 * configure: Regenerate.
5843
9dce8260
JL
5844Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com)
5845
5846 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
5847 try to do arithmetic on a void *, cast it to a unsigned char * first.
5848
6c55897c
ILT
5849Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com>
5850
869b7d80
ILT
5851 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
5852 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
5853 ELF_LINK_NON_ELF.
5854 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
5855 flag for a newly defined symbol.
5856 (NAME(bfd_elf,record_link_assignment)): Likewise.
5857 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
5858 set the DEF or REF_REGULAR flags correctly.
5859
6f6956c6
ILT
5860 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
5861 (libbfd.h, libcoff.h): Corresponding change.
5862
6c55897c
ILT
5863 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
5864 a PLT32 reloc as dynamic.
5865 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
5866 is not referenced by a dynamic object, and we are not making a
5867 shared object, then don't make a PLT entry. If we do make a PLT
5868 entry, make sure the symbol has been recorded as dynamic.
5869
b06136f2
SC
5870Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com>
5871
5872 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
5873 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
5874 (powerpcle-*-cygwin32): New.
5875 * peicode.h (add_data_entry): Get address from vma.
5876
5c867ecd
MM
5877Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5878
5879 * elflink.c (_bfd_elf_create_linker_section): If the symbol
5880 attached to the section has already been created as an undefined
5881 symbol, treat it as if it hasn't been created yet.
5882
28c16b55
ILT
5883Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com>
5884
5885 * elflink.h (elf_bfd_final_link): Don't output initial dummy
5886 symbol or section symbols if stripping all symbols and this is not
5887 a relocateable link. Don't output the symbol string table if
5888 there are no symbols.
5889 (elf_link_flush_output_syms): Don't do anything if there are no
5890 symbols to flush.
5891
d19df9b5
ILT
5892Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
5893
5894 * coff-aux.c: New file.
5895 * hosts/m68kaux.h: New file.
5896 * config.bfd (m68*-apple-aux*): New target.
5897 * configure.in (m68*-apple-aux*): New native host.
5898 (m68kaux_coff_vec): New vector.
5899 * configure: Rebuild.
5900 * targets.c (m68kaux_coff_vec): Declare.
5901 * coffcode.h (bfd_coff_backend_data): Add field
5902 _bfd_coff_link_add_one_symbol.
5903 (bfd_coff_link_add_one_symbol): Define.
5904 (compare_arelent_ptr): New static function if TARG_AUX.
5905 (coff_write_relocs): If TARG_AUX, sort the relocs.
5906 (coff_write_object_contents): Set A/UX aouthdr magic number.
5907 (coff_link_add_one_symbol): Define if not defined.
5908 (bfd_coff_std_swap_table): Initialize new field.
5909 * libcoff.h: Rebuild.
5910 * cofflink.c (coff_link_add_symbols): Call
5911 bfd_coff_link_add_one_symbol rather than
5912 _bfd_generic_link_add_one_symbol.
5913 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
5914 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
5915 * coff-mips.c (mips_ecoff_backend_data): Likewise.
5916 * Makefile.in: Rebuild dependencies.
5917 (BFD32_BACKENDS): Add coff-aux.o.
5918 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
5919
a796aafd
ILT
5920Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5921
5922 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
5923 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
5924
a8763553
ILT
5925Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com>
5926
66761e59
ILT
5927 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
5928 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
5929 (maintainer-clean): Warn about deleting special files.
5930 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
5931
cf5138e3
ILT
5932 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
5933 warning symbols correctly.
5934 * elf32-i386.c (elf_i386_relocate_section): Likewise.
5935 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5936 * elf32-mips.c (mips_elf_relocate_section): Likewise.
5937 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5938 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5939 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5940
a8763553
ILT
5941 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
5942 warnings.
5943
bdd2e7f1
KK
5944Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com>
5945
cf2cd4cf 5946 * libcoff-in.h: aligned newly exported names with bfd naming
bdd2e7f1
KK
5947 conventions. Removed an erroneous define of POWERPC_LE_PE.
5948 * libcoff.h: Rebuild.
5949 * cofflink.c, coff-ppc.c: the above function name changes
5950
d2bb6c79
ILT
5951Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com>
5952
eb5bc1f3
ILT
5953 From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
5954 * ecoff.c (struct extsym_info): Define.
5955 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
5956 to ecoff_link_write_external.
5957 (ecoff_link_write_external): Accept a struct extsym_info pointer.
5958 Strip symbols when appropriate.
5959
052b35d2
ILT
5960 Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
5961 * syms.c (BSF_OBJECT): Define.
5962 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
5963 * bfd-in2.h: Rebuild.
5964 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
5965 STT_OBJECT symbol.
5966 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
5967 is set.
5968
53787b23
ILT
5969 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
5970 copying relocs into a shared object, treat a defined global symbol
5971 as a local symbol.
5972 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5973 * elf32-mips.c (mips_elf_relocate_section): Likewise.
5974 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5975
d2bb6c79
ILT
5976 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
5977 real defined symbol, not to a weak defined symbol.
5978
13d1a4dd
KK
5979Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com>
5980
5981 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
5982 and made a few static functions externs.
5983
5984 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
5985 POWERPC_LE_PE hack in cofflink.
5986
5987 * libcoff-in.h: promoted the following from cofflink.c to allow
5988 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
cf2cd4cf 5989 coff_debug_merge_element, struct coff_debug_merge_type,
13d1a4dd
KK
5990 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
5991 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
cf2cd4cf 5992 coff_debug_merge_hash_lookup, coff_link_section_info,
13d1a4dd
KK
5993 coff_final_link_info, coff_debug_merge_hash_newfunc,
5994 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
5995
5996 * libcoff.h: re-gen'd
5997
86aac8ea
ILT
5998Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com>
5999
6000 * syms.c: Include "bfdlink.h".
6001 (struct stab_find_info): Define.
6002 (_bfd_stab_section_find_nearest_line): New function.
6003 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
6004 * libbfd.h: Rebuild.
6005 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
6006 * elf.c (_bfd_elf_find_nearest_line): Try calling
6007 _bfd_stab_section_find_nearest_line before searching the ELF
6008 symbol table. Find the closest STT_FUNC symbol, not the last one.
6009 * libcoff-in.h (coff_data_type): Add line_info field.
bdd2e7f1 6010 * libcoff.h: Rebuild.
86aac8ea
ILT
6011 * coffgen.c (coff_find_nearest_line): Try calling
6012 _bfd_stab_section_find_nearest_line before searching the COFF
6013 symbol table.
6014 * Makefile.in: Rebuild dependencies.
6015
6016Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6017
6018 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
6019 4 bytes, so we get the correct value when updating the register
6020 field in little endian mode.
6021
43d36aad
ILT
6022Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com>
6023
f0a97077
ILT
6024 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
6025 entry_section fields. Add sntoc and snentry fields.
6026 * libcoff.h: Rebuild.
6027 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
6028 not toc_section and entry_section (the COFF file does not have any
6029 sections at this point).
6030 (coff_write_object_contents): Set o_snentry and o_sntoc from
6031 snentry and sntoc rather than entry_section and toc_section.
6032 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
6033 snentry, not toc_section and entry_section.
6034 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
6035 entry_section from hentry.
6036 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
ea2504d5 6037 set snenty.
f0a97077
ILT
6038 (xcoff_link_input_bfd): Set sntoc, not toc_section.
6039 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
6040 than using toc_section directly.
6041
9b4598d0
ILT
6042 * archures.c: Add missing `.' in enum bfd_architecture.
6043 * bfd-in2.h: Rebuild.
6044
43d36aad
ILT
6045 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
6046 Robert Lipe <robertl@arnet.com>.
6047
eb82bc60
MM
6048Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6049
6050 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
6051 to sections we allocate. Use bfd_zalloc to allocate initialial
6052 sections, not bfd_alloc.
6053 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
6054 SDA{,2}I16 relocations.
6055 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
6056 whether to put something in .sbss or not.
6057 (ppc_elf_relocate_section): Add support for more relocations. Add
c1e65e24
MM
6058 in sec->output_offset where appropriate. Make error messages
6059 include the symbol name.
eb82bc60
MM
6060
6061 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
6062 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
6063 doesn't get redefined messages if -shared.
6064
6065 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
6066 section if the rel_section field has been set up.
6067
9d621c7d
MM
6068Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6069
6070 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
6071 relocations.
6072
75c9ddc9
DE
6073Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com>
6074
6075 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
6076 of flags, only flags used are controlled by mach number. Bump up
6077 output file mach number to highest of input file mach numbers.
6078 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
6079 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
6080
72c513bc
DE
6081 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
6082 bfd_elf64_sparc_vec support.
6083
3cbe19d2
MM
6084Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6085
6086 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
6087 the embedded bit is set on some objects and not on others. Just
6088 or it together.
d8fd85ad
MM
6089 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
6090 relocations.
3cbe19d2 6091
5eb83ede
ILT
6092Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com>
6093
4a3d3b42
ILT
6094 * coffcode.h (coff_new_section_hook): Don't try to align the
6095 .stabstr section.
6096
5eb83ede
ILT
6097 * coffcode.h (coff_set_section_contents): Fix the handling of the
6098 .lib section to work even if the entire section contents are
6099 written at once. From Gvran Uddeborg <gvran@uddeborg.pp.se> and
6100 Robert Lipe <robertl@arnet.com>.
6101
05f927dd
MM
6102Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6103
6104 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
6105 memory here for contents.
6106
6107 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
6108 _SDA2_BASE_ by 32768.
6109 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
6110 started using. Allocate contents for .sdata and .sdata2 sections
6111 also.
6112 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
6113 rather than _name.
6114 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
6115 size _SDA{,2}_BASE_.
6116 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
6117 done.
6118
5bc513b4
DE
6119Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com>
6120
5a5bac64
DE
6121 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
6122
5bc513b4 6123 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
5bc513b4 6124 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
5bc513b4 6125 (bfd_mach_sparc_v9a): Define.
049f3d4c 6126 (bfd_mach_sparc_v9_p): Define.
5bc513b4
DE
6127 * bfd-in2.h: Regenerated.
6128 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
6129 bfd_mach_sparc_v9.
d3366d23 6130 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
5bc513b4
DE
6131 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
6132 to bfd_elf32_sparc_vec.
6133 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
5bc513b4 6134 Add v8plus{,a} support.
5bc513b4 6135 Add v9a support.
768b8ade 6136 (sparc_compatible): New function.
5bc513b4 6137 * elf32-sparc.h: #include "elf/sparc.h".
75c9ddc9 6138 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
5bc513b4 6139 elf32_sparc_final_write_processing): New functions.
75c9ddc9 6140 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
5bc513b4 6141 elf_backend_final_write_processing): Define.
5bc513b4 6142
3b3753b8
MM
6143Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6144
6145 * elf-bfd.h (struct elf_link_hash_entry): Add
6146 linker_section_pointer field.
6147 (enum elf_linker_section_enum): Enumeration for new way of
6148 creating linker dynamic sections and symbols.
6149 (elf_linker_section{,_pointers}): New structures for creating
6150 dynamic sections and symbols.
6151 (elf_obj_tdata): Add linker_section_pointers and linker_section
6152 fields.
6153 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
6154 (_bfd_elf_create_linker_section): New declarations.
6155 (_bfd_elf_find_pointer_linker_section): Ditto.
6156 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
6157 (_bfd_elf_make_linker_section_rela): Ditto.
6158
6159 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
6160
6161 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
6162 (ppc_elf_create_linker_section): New function to create the
6163 sections .got, .sdata, and .sdata2.
6164 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
6165 needed.
6166 (ppc_elf_check_relocs): Support more of the eabi relocations.
6167 (ppc_elf_relocate_section): Ditto.
6168 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
6169 if the .sdata{,2} + .sbss{,2} section size is > 32k.
6170
6171 * elflink.h (elf_create_pointer_linker_section): New function to
6172 create initialized pointers in dynamic linker sections.
6173 (elf_finish_pointer_linker_section): Actually intialize the
6174 pointers created above.
6175
6176 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
6177 macros to provide both 32 and 64 bit versions of
6178 elf_create_pointer_linker_section.
6179 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
6180 provide both 32 and 64 bit versions of
6181 elf_finish_pointer_linker_section.
6182
6183 * elflink.c (_bfd_elf_create_linker_section): New function to
6184 create a linker section.
6185 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
6186 given address in the linker pointer offsets created for a given
6187 symbol.
6188 (_bfd_elf_make_linker_section_rela): Make a RELA section
6189 corresponding to the generated linker section.
6190
6b3eb07e
DE
6191Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com>
6192
6193 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
6194
e7894f6b
KK
6195Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com>
6196
6197 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
6198 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
6199 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
6200 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
6201 toc entry in an objdump) for now.
cf2cd4cf 6202 (ppc_do_last, ppc_get_last): New function - needed to save processing
e7894f6b 6203 the toc owner to the end.
cf2cd4cf 6204 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
e7894f6b
KK
6205 toc owner last.
6206
cf2cd4cf
UD
6207 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
6208 toc owner from being done till last. Must define POWERPC_LE_PC
e7894f6b
KK
6209 to enable it.
6210
6211 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
6212
6213 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
6214 to INFO.
6215 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
6216 SizeOfImage for PowerPC. Ignore the size of the .junk section.
6217
80b99ca0
ILT
6218Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
6219
6220 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
6221
df96df4c
ILT
6222Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
6223
6224 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
6225 back to first.
6226 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
6227
d49ddb85
ILT
6228Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com>
6229
6230 * elf.c (assign_file_positions_for_segments): Don't increment file
6231 offset for a segment which contains no loadable sections.
6232
4500a112
MM
6233Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6234
6235 * reloc.c: Add new PowerPC relocations.
6236 * {bfd-in2,libbfd}.h: Regenerate.
6237
6238 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
6239 (ppc_elf_reloc_type_lookup): Lookup new relocations.
6240
252239f8
ILT
6241Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com>
6242
20ab764e
ILT
6243 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
6244 entries.
6245
0a4ffa2d
ILT
6246 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
6247 info->shared.
6248
45ca3195
ILT
6249 * coffgen.c (coff_find_nearest_line): Don't try to cache
6250 information in sections that are not owned by a BFD. From Richard
6251 Henderson <richard@atheist.tamu.edu>.
6252
252239f8
ILT
6253 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
6254 from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
6255 * elflink.h (elf_link_output_extsym): Remove special check for
6256 _rld_new_interface.
6257
6258 * ecoffswap.h: Add prototypes for static functions.
6259
bd2d10c0
MM
6260Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6261
6262 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
6263 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
6264 references.
6265 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
6266 to satisfy a TOC16 relocation. Rewrite unsupported relocation
6267 support. Begin support for R_PPC_SDA{2,}REL.
6268
1c3a295b
MM
6269Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6270
6271 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
6272 create the .got and .got.neg sections.
6273 (ppc_elf_size_dynamic_sections): Call it.
6274 (ppc_elf_check_relocs): Call it.
6275 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
6276 (ppc_elf_check_relocs): Add error messages for relocations we
6277 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
6278 relocation.
6279
57081126
MM
6280Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6281
6282 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
6283 section flags for V.4 and eabi.
6284
3c38b3df
ILT
6285Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com>
6286
14899eb7
ILT
6287 * elf.c (assign_file_positions_for_segments): If a segment
6288 contains no sections, don't mark it as readable.
6289
98bb57ad
ILT
6290 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
6291 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
6292
02fcd126
ILT
6293 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
6294 dynamic section, if there is one.
6295 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
6296 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
6297 (bfd_elf64_swap_dyn_in): Likewise.
6298 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
6299 PTR.
6300 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
6301
3c38b3df
ILT
6302 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
6303 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
6304 <pirker@eiunix.tuwien.ac.at>.
6305
83f4323e
MM
6306Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6307
6308 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
6309 PowerPC V.4 and eabi.
6310 * bfd-in2.h: Regenerate.
6311 * libfd.h: Regenerate.
6312
6313 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
6314
6315 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
6316 section type and SHF_EXCLUDE section flag, turning them into the
6317 appropriate bfd section flag.
6318
a0271667
ILT
6319Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
6320
c9746fb6
ILT
6321 * xcofflink.c (xcoff_link_add_symbols): Create the special
6322 sections if we see a DYNAMIC object, in case that is the only
6323 XCOFF input object we see.
cf2cd4cf 6324
5b3b9ff6
ILT
6325 * elf32-mips.c: Extensive changes for a start at dynamic linking
6326 support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
6327
6328 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
6329 (struct elf_backend_data): Remove
6330 elf_backend_create_program_headers field. Add
6331 elf_backend_additional_program_headers and
6332 elf_backend_modify_segment_map fields.
6333 * elfxx-target.h (elf_backend_type_change_ok): Define if not
6334 defined.
6335 (elf_backend_additional_program_headers): Likewise.
6336 (elf_backend_modify_segment_map): Likewise.
6337 (elf_backend_create_program_headers): Don't define.
6338 (elfNN_bed): Change to account for field changes.
6339 * elf.c (assign_file_positions_for_segments): Call new
6340 modify_segment_map backend function. Don't call old
6341 create_program_headers backend function.
6342 (get_program_header_size): Call additional_program_headers rather
6343 than create_program_headers.
6344 * elflink.h (elf_link_add_object_symbols): Initialize
6345 type_change_ok from new backend field.
6346 (elf_link_output_extsym): Don't warn if _rld_new_interface is
6347 defined.
6348 (elf_reloc_link_order): Treat a reloc against a defined symbol as
6349 a reloc against the appropriate section.
6350
761f377f
ILT
6351 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
6352 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
6353 (elf_flags_init): Rename from elf_ppc_flags_init.
6354 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
6355 elf_ppc_flags_init.
6356 (ppc_elf_copy_private_bfd_data): Likewise.
6357 (ppc_elf_merge_private_bfd_data): Likewise.
6358
a0271667
ILT
6359 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
6360 relocation entries.
6361
64d5f5d0
ILT
6362Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
6363
6364 * coff-alpha.c (alpha_relocate_section): During final link, allow
6365 output .lita section to be bigger than 64k by adjusting gp value
6366 on a per-input section basis.
6367 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
6368 field.
6369 (struct ecoff_section_tdata): Add gp field.
6370
c40d9c77
ILT
6371Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com>
6372
64d5f5d0
ILT
6373 Handle Alpha ECOFF changes in OSF/1 3.2.
6374 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
6375 field.
6376 * coff-alpha.c: Include "aout/ar.h".
6377 (alpha_ecoff_get_relocated_section_contents): Don't require an
6378 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
6379 3.2 doesn't generate one.
6380 (alpha_relocate_section): Likewise.
6381 (alpha_ecoff_slurp_armap): Define.
6382 (alpha_ecoff_slurp_extended_name_table): Define.
6383 (alpha_ecoff_construct_extended_name_table): Define.
6384 (alpha_ecoff_truncate_arname): Define.
6385 (alpha_ecoff_write_armap): Define.
6386 (alpha_ecoff_generic_stat_arch_elt): Define.
6387 (alpha_ecoff_update_armap_timestamp): Define.
6388 (ARFZMAG): Define.
6389 (alpha_ecoff_read_ar_hdr): New static function.
6390 (alpha_ecoff_get_elt_at_filepos): New static function.
6391 (alpha_ecoff_openr_next_archived_file): New static function.
6392 (alpha_ecoff_get_elt_at_index): New static function.
6393 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
6394 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
6395 _bfd_ecoff to alpha_ecoff.
6396 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
6397 field from backend structure, rather than always calling
6398 _bfd_get_elt_at_filepos.
6399 * coff-mips.c (mips_ecoff_backend_data): Initialize
6400 get_elt_at_filepos field.
6401 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
6402 from _bfd_generic_read_ar_hdr with minor changes.
6403 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
6404 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
6405 * libbfd.h: Rebuild.
6406
6407 * bfd-in.h (BFD_IN_MEMORY): Define.
6408 * libbfd-in.h (struct bfd_in_memory): Define.
6409 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
6410 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
6411 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
6412 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
6413 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
6414 (bfd_get_size): Handle BFD_IN_MEMORY flag.
6415 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
6416 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
6417 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
6418 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
6419 iostream.
6420 (bfd_openstreamr): Likewise.
6421 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
6422 BFD_IN_MEMORY is not set.
6423 * riscix.c (riscix_some_aout_object_p): Likewise.
6424 * bfd-in2.h, libbfd.h: Rebuild.
6425
6426 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
6427 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
6428 (bfd_get_elt_at_index): Define.
6429 * archive.c (_bfd_generic_get_elt_at_index): Rename from
6430 bfd_get_elt_at_index. Change index parameter from int to
6431 symindex.
6432 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
6433 (_bfd_noarchive_get_elt_at_index): Define.
6434 (_bfd_archive_bsd_get_elt_at_index): Define.
6435 (_bfd_archive_coff_get_elt_at_index): Define.
6436 * bfd-in2.h, libbfd.h: Rebuild.
6437 * aout-target.h (MY_get_elt_at_index): Define if not defined.
6438 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
6439 * ieee.c (ieee_get_elt_at_index): Define.
6440 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
6441 * oasys.c (oasys_get_elt_at_index): Define.
6442 * som.c (som_get_elt_at_index): Define.
6443
c40d9c77
ILT
6444 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
6445 numbers to the .text section.
6446
efa77952
ILT
6447Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com>
6448
6449 * ieee.c (ieee_write_debug_part): Change return type to boolean.
6450 If there is a SEC_DEBUGGING section, get the contents of the debug
6451 information part from it.
6452 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
6453 section in memory.
6454 (ieee_write_object_contents): Check ieee_write_debug_part return.
6455
767f22d5
FF
6456Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com>
6457
6458 * config.bfd (i[345]86-*-freebsd*): Add target.
6459 * configure.in (i386freebsd_vec): Add vec.
6460 * configure: Regenerate.
6461 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
6462 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
6463 Rebuild dependencies..
6464 * freebsd.h: New file.
6465 * i386freebsd.c: New file.
6466 * targets.c (i386freebsd_vec): Declare.
6467 (bfd_target_vector): Add i386freebsd_vec.
6468 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
6469 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
cf2cd4cf 6470
f8254a3c
ILT
6471Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com>
6472
6473 * ieee.c (ieee_slurp_debug): New static function.
6474 (ieee_object_p): Call it.
6475 (ieee_slurp_section_data): Skip debugging sections.
6476 (ieee_get_reloc_upper_bound): Likewise.
6477 (ieee_get_section_contents): Likewise.
6478 (ieee_canonicalize_reloc): Likewise.
6479 (ieee_write_section_part): Likewise.
6480 (ieee_write_debug_part): Likewise.
6481 (ieee_write_data_part): Likewise.
6482 (init_for_output): Likewise.
6483
07a159db
MM
6484Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net>
6485
6486 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
6487 work.
6488 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
6489 relocs, since ppc_elf_relocate_section handles the linker case.
6490 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
6491 used.
6492 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
6493 ppc_elf_relocate_section since that is now the only caller.
6494 (ppc_elf_relocate_section): Ditto.
6495
d812945a
ILT
6496Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
6497
6498 * coffcode.h (coff_write_object_contents): If we don't know the
6499 section of the entry point for an XCOFF executable, always set the
6500 entry address to -1.
6501
3a56d0b4
MM
6502Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6503
6504 * elf.c (bfd_section_from_shdr): Add support for note sections.
6505
c4406e50
ILT
6506Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
6507
d812945a
ILT
6508 * bfd-in.h (struct _symbol_info): Add stab_type field.
6509 * bfd-in2.h: Rebuild.
6510 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
6511
c4406e50
ILT
6512 * elf32-ppc.c: Remove trailing newline from calls to
6513 _bfd_error_handler.
6514 (ppc_elf_merge_private_bfd_data): Only warn about endianness
6515 difference if target endianness is known.
6516
08556813
MM
6517Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6518
6519 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
6520 old style TOC16 references without using R_PPC_GOT.
6521 (ppc_reloc_type): Ditto.
6522 (ppc_elf_reloc_type_lookup): Add support for TOC16.
6523 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
6524 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
6525 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
6526 (ppc_elf_check_relocs): New function for GOT/PLT support that is
6527 work in progress.
6528 (ppc_elf_adjust_dynamic_symbol): Ditto.
6529 (ppc_elf_adjust_dynindx): Ditto.
6530 (ppc_elf_size_dynamic_sections): Ditto.
6531 (ppc_elf_finish_dynamic_symbol): Ditto.
6532 (ppc_elf_finish_dynamic_sections): Ditto.
6533 (ELF_DYNAMIC_INTERPRETER): Define.
6534
86587dd4
KR
6535Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com>
6536
6537 * elf.c (copy_private_bfd_data): When attaching sections to
6538 segments ignore sections that won't be allocated. Patch from
6539 Andreas Schwab.
6540
bf7f243f
KR
6541Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com>
6542
6543 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
6544 anything else.
6545
d9518e2e
ILT
6546Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com>
6547
6548 * coff-i960.c (CALC_ADDEND): Define.
6549 (coff_i960_relocate_section): Add the input section VMA to the
6550 addend for PC relative relocs.
6551
6552Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com>
6553
6554 * peicode.h (pe_print_pdata): Must test the entire entry for zero
6555 to correctly terminate.
6556
010a405a
ILT
6557Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com>
6558
dc092b6b
ILT
6559 * targets.c (enum bfd_endian): Define.
6560 (bfd_target): Rename byteorder_big_p to byteorder, and change it
6561 from boolean to enum bfd_endian. Change header_byteorder_big_p
6562 correspondingly.
6563 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
6564 (bfd_header_big_endian, bfd_header_little_endian): New macros.
6565 * bfd-in2.h: Rebuild.
6566 * All targets: Change initialization of byteorder and
6567 header_byteorder to use enum bfd_endian values rather than
6568 booleans.
6569 * All files: Change all references to byteorder_big_p and
6570 header_byteorder_big_p to use new bfd_*_endian macros.
6571
010a405a
ILT
6572 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
6573 s_vaddr.
6574 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
6575 vma.
6576 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
6577
fcb43906
SC
6578Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com>
6579
6580 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
6581
0d709d31
ILT
6582Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com>
6583
14578105
ILT
6584 * ieee.c: Lots of minor cleanups. Make many functions return
6585 errors rather than calling abort. Also:
6586 (ieee_write_twobyte): Remove; change callers to call existing
6587 ieee_write_2bytes function.
6588 (ieee_write_expression): Don't output the section twice when
6589 outputting a local symbol. Don't emit an extraneous zero if there
6590 is only one term.
6591 (ieee_slurp_sections): Set the lma as well as the vma.
6592 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
6593
0d709d31
ILT
6594 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
6595 a recognized one or bfd_arch_unknown.
6596 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
6597 to succeed.
6598 (ihex_get_symtab): Likewise.
6599
14dc2f77
ILT
6600Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com>
6601
6602 * aoutx.h: Include <ctype.h>.
6603 (struct aout_link_includes_table): Define.
6604 (struct aout_link_includes_totals): Define.
6605 (struct aout_link_includes_entry): Define.
6606 (aout_link_includes_lookup): Define macro.
6607 (struct aout_final_link_info): Add includes field.
6608 (aout_link_includes_newfunc): New static function.
6609 (NAME(aout,final_link)): Initialize includes hash table.
6610 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
6611
480ccad5
SS
6612Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com>
6613
6614 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
6615
3920d9c9
KK
6616Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com>
6617
6618 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
6619
207345f2
KK
6620Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com>
6621
6622 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
6623 (pe_print_private_bfd_data): call pe_print_reloc.
6624 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
6625 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
6626 up some debugging as well.
6627
273c019e
ILT
6628Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com>
6629
6630 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
6631 <rfg@monkeys.com>.
6632
010d9f2d
ILT
6633Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com>
6634
6635 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
6636 when setting sections to NULL.
6637
4a4a66bd
ILT
6638Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com>
6639
6640 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
6641 field.
6642 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
6643 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
6644 for all symbols.
6645 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
6646 * bfd-in2.h: Rebuild.
6647
545bf026
KK
6648Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com>
6649
6650 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
6651
1f4ae0d6
ILT
6652Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com>
6653
55cac920
ILT
6654 * ihex.c (ihex_scan): Handle record types 4 and 5.
6655 (ihex_object_p): Permit types 4 and 5.
6656 (ihex_set_section_contents): Remove check for out of range
6657 addresses.
6658 (ihex_write_object_contents): Generate types 4 and 5.
6659
1f4ae0d6
ILT
6660 * elflink.h (elf_link_output_extsym): Just ignore warning and
6661 indirect references to symbols which don't really exist.
6662
53d45489
KK
6663Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com>
6664
6665 * peicode.h (pe_print_idata): Minor format fixes
6666 (pe_print_edata): New function. Under private printing, this formats
6667 the edata section of a PE file.
6668 (pe_print_private_bfd_data): Added call to pe_print_edata.
6669
361e8876
DE
6670Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
6671
6672 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
6673 index, don't call stoi.
6674
58142f10
ILT
6675Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com>
6676
ffd15489
ILT
6677 * srec.c (srec_scan): Set lma as well as vma.
6678
6679 * ihex.c: New file; support for Intel Hex format.
6680 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
6681 (ihex_vec): Declare.
6682 (bfd_target_vector): Always include ihex_vec.
6683 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
6684 * Makefile.in: Rebuild dependencies.
6685 (BFD_LIBS): Add ihex.o
6686 (BFD_LIBS_CFILES): Add ihex.c.
6687 * bfd-in2.h: Rebuild.
6688
ae0a6bea
ILT
6689 * elf.c (assign_file_positions_for_segments): Sort the sections in
6690 each segment.
6691 (get_program_header_size): Return the right size if segment_map is
6692 not NULL.
6693 (copy_private_bfd_data): Don't bother to sort the sections.
6694
6695 * bfd.c (bfd_record_phdr): New function.
6696 * bfd-in.h (bfd_record_phdr): Declare.
6697 * bfd_in2.h: Rebuild.
6698
ce0ee4bf
ILT
6699 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
6700 BFD_ASSERT.
6701
58142f10
ILT
6702 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
6703 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
6704 bfd_size_type.
6705 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
6706 (bfd_zmalloc): Change declaration.
6707 * libbfd.h: Rebuild.
6708 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
6709 and realloc. Don't set bfd_error_no_memory if they fail.
6710
59066248
KK
6711Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com>
6712
6713 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
cf2cd4cf 6714 uses as well. Added a new howto to deal with TOCREL16 relocs that
59066248
KK
6715 are TOCDEFN as well.
6716 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
6717 to handle RVA relocs from dlltool.
6718 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
6719 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
6720 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
6721
cf2cd4cf 6722 * coffcode.h (coff_set_alignment_hook): check idata$X sections
59066248
KK
6723 to get the right section alignment.
6724
6933148a
ILT
6725Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com>
6726
6727 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
6728 p_paddr if p_paddr is zero.
6729 (make_mapping): Set includes_filehdr and includes_phdrs for first
6730 PT_LOAD segment.
6731 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
6732 segment.
6733 (assign_file_positions_for_segments): Handle includes_filehdr and
6734 includes_phdrs. Remove special handling of PT_PHDR and first
6735 PT_LOAD segments.
6736 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
6737 when appropriate. Remove special handling of PT_PHDR segment.
6738 Use a more complex condition for when a section is included in a
6739 segment to handle Solaris linker oddities.
6740
f62fed1c
ILT
6741Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
6742
6743 * coff-m88k.c (howto_table): Reformatted for easier reading;
6744 special_function now points to new function m88k_special_reloc.
6745 (howto_hvrt16): Function previously used for handling HVRT16 relocs
6746 removed.
6747 (rtype2howto): Do not add reloc's r_offset to the addend, this will
6748 be done correctly by m88k_special_reloc.
6749 (reloc_processing): New function to be used by RELOC_PROCESSING.
6750 (RELOC_PROCESSING): Define to call reloc_processing.
6751
64ecde46
ILT
6752Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
6753
b00c57ec
ILT
6754 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
6755 (pe_print_pdata): Likewise.
6756
a9713b91
ILT
6757 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
6758 obstack_alloc fails.
6759 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
6760 fails.
6761 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
6762 * Many files: don't set bfd_error_no_memory if one of the above
6763 routines fails.
6764
3dbf33ee
ILT
6765 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
6766 if p_paddr_valid is set.
6767 (copy_private_bfd_data): New static function.
6768 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
6769
44ef8897
ILT
6770 * elf.c (assign_file_positions_for_segments): Fix case where extra
6771 program headers were allocated.
6772
27fb8f29
ILT
6773 * elf.c (_bfd_elf_print_private_bfd_data): New function.
6774 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
6775 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
6776 _bfd_elf_print_private_bfd_data.
6777
64ecde46
ILT
6778 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
6779 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
6780 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
6781 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
6782 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
6783 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
6784 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
6785
fd0198f0
ILT
6786Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
6787
6788 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
6789 * elf.c (make_mapping): New static function.
6790 (map_sections_to_segments): New static function.
6791 (elf_sort_sections): New static function.
6792 (assign_file_positions_for_segments): New static function.
6793 (map_program_segments): Remove.
6794 (get_program_header_size): Remove sorted_hdrs, count, and
6795 maxpagesize parameters. Simplify.
6796 (assign_file_positions_except_relocs): When generating an
6797 executable, use assign_file_positions_for_segments.
6798 (elf_sort_hdrs): Remove.
6799 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
6800 to get_program_header_size.
6801
3b3f7625
ILT
6802Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
6803
1ff0461b
ILT
6804 * hp300hpux.c (MY(callback)): Set lma as well as vma.
6805
80c8485c
ILT
6806 * configure, config.in: Regenerate with autoconf 2.7.
6807
3b3f7625
ILT
6808 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
6809 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
6810
fa63d1ef
ILT
6811Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
6812
a877f591
ILT
6813 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
6814 (ecoff_sec_to_styp_flags): Likewise.
6815 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
6816 (ecoff_set_symbol_info): Handle scRConst.
6817 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
6818 (ecoff_compute_section_file_positions): Handle .rconst section.
6819 (_bfd_ecoff_write_object_contents): Likewise.
6820 (ecoff_link_check_archive_element): Handle scRConst.
6821 (ecoff_link_add_externals): Likewise.
6822 (ecoff_link_write_external): Handle .rconst section.
6823 (ecoff_reloc_link_order): Likewise.
6824 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
6825 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
6826 section.
6827 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
6828
fa63d1ef
ILT
6829 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
6830 DEF_DYNAMIC flag is set.
6831
25bada65
KR
6832Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
6833
6834 * host-aout.c: If TRAD_HEADER is defined, include it.
6835
7938b4cb
ILT
6836Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
6837
85e493f0
ILT
6838 * aclocal.m4 (AC_PROG_CC): Remove local definition.
6839 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
6840 (BFD_NEED_DECLARATION): New function.
6841 * configure.in: Use BFD_NEED_DECLARATION.
bd77213b
ILT
6842 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
6843 * configure, config.in: Rebuild with autoconf 2.6.
85e493f0 6844
83dcdc61
ILT
6845 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
6846 special_sections before returning when called with a non XCOFF
6847 BFD.
6848
7938b4cb
ILT
6849 * coffgen.c (coff_renumber_symbols): Sort common symbols with
6850 global symbols.
6851
6852 * coffcode.h (coff_compute_section_file_positions): Only pad the
6853 previous section to force file alignment when creating an
6854 executable.
6855
b5403ad7
ILT
6856Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
6857
a418e05d
ILT
6858 * coffcode.h (coff_compute_section_file_positions): If
6859 RS6000COFF_C, set up the .debug section.
6860
b5403ad7
ILT
6861 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
6862 if it is not large enough to accomodate the entire TOC area with
6863 signed 16 bit offsets.
6864 (xcoff_write_global_symbol): Handle negative TOC offsets in global
6865 linkage code.
6866 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
6867 TOC anchor to use the TOC value used in the output file.
6868
90a7abbc
ILT
6869Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
6870
6871 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
6872 (_bfd_coff_read_string_table): Likewise.
6873
177b1932
DE
6874Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
6875
6876 * pe-arm.c: Fix typos.
6877 * coff-arm.c: Likewise.
6878
6879Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
6880
6881 * coff-ppc.c (list_ele): Added "cat"egory member.
6882 (record_toc): New category parameter (priv or pub).
6883 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
6884 (ppc_process_before_allocation): Removed embrionic data-in-toc from
6885 the mainline. It addes extra toc cells in error.
6886 (ppc_coff_swap_sym_in_hook): Added some documentation.
6887 (dump_toc): Can now diagnose "virtual toc" chicanery.
6888
e34314c4
ILT
6889Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
6890
6891 * elf-bfd.h (struct elf_link_hash_table): Change type of
6892 dynsymcount and bucketcount fields from size_t to bfd_size_type.
6893
73a68447
ILT
6894Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
6895
535e9e29
ILT
6896 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
6897 pointerize C_LEAFSTAT or C_LEAFEXT entries.
6898
73a68447
ILT
6899 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
6900 DT_INIT and DT_FINI entries if the _init or _fini symbol is
6901 defined or mentioned in a regular file.
6902
cd2b2402
KK
6903Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
6904
6905 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
6906 (coff_ppc_relocate_section): Handle TOCDEFN attribute
6907 (coff_ppc_relocate_section): Correct REL24 handling
6908 (ppc_process_before_allocation): Correct TOCDEFN handling
6909
6910 * peicode.h (dir_names): Added name descriptions
6911
b218076e
KR
6912Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
6913
6914 * VERSION: Updated to cygnus-2.6.
6915
6916Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
6917
6918 * targets.c (m68k4knetbsd_vec): Declare.
6919
e9f30616
ILT
6920Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
6921
6922 * targets.c (bfd_target): Change type of second argument to
6923 _bfd_print_private_bfd_data from void * to PTR.
6924 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
6925 using PTR rather than void *.
6926 * bfd-in2, libbfd.h: Rebuild.
6927 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
6928 to PTR.
6929 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
6930 _bfd_generic_bfd_print_private_bfd_data rather than casting
6931 bfd_true.
6932
ae75c4a4
KR
6933Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
6934
6935 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
6936 "DO NOT DELETE" lines or blank lines that mkdep writes on some
6937 systems.
6938 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
6939 BFD64_BACKENDS_CFILES): New variables.
6940 (CFILES): Use them.
cf2cd4cf 6941
bebcd3db
ILT
6942Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
6943
4b71e164
ILT
6944 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
6945 not at the file position of the first section.
6946 * coffcode.h (coff_compute_section_file_positions): Avoid using
6947 unportable #elif.
6948 (coff_write_object_contents): When generating a PPC PE executable
6949 with no symbols, round up the file size to a COFF_PAGE_SIZE
6950 boundary.
6951 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
6952 don't write out a string table.
6953
631b10f4
ILT
6954 * elf.c (bfd_section_from_shdr): When using a different section
6955 header, pass the new one to _bfd_elf_make_section_from_shdr.
6956 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
6957 (elf_map_symbols): Add section VMA to symbol value when comparing
6958 against 0.
6959 (_bfd_elf_compute_section_file_positions): Only build symbol table
6960 if there are some symbols. Set file offset of symtab and strtab
6961 sections.
6962 (assign_file_positions_except_relocs): Remove dosyms parameter.
6963 Change all callers. Never set file offset of symtab and strtab
6964 sections.
6965 (_bfd_elf_copy_private_section_data): New function.
6966 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
6967 (_bfd_elf_copy_private_symbol_data): New function.
6968 (swap_out_syms): Check for special mapping of st_shndx created by
6969 copy_private_symbol_data.
6970 * elfxx-target.h: Use new copy routines.
6971 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
6972 (_bfd_elf_copy_private_section_data): Declare.
6973
6974 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
6975
6976 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
6977 C_NT_WEAK.
6978
bebcd3db
ILT
6979 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
6980 _bfd_dummy_target, matching the recent change to archive
6981 recognition.
6982
7ad4ba81
ILT
6983Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
6984
afa67334
ILT
6985 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
6986 arithmetic on PTR types.
6987
f2bd8915
ILT
6988 * aout-target.h (MY(callback)): Set the lma of the sections.
6989
7ad4ba81
ILT
6990 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
6991 symbol into a reloc against the section.
6992
93b6a3f8
KK
6993Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
6994
6995 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
6996 glue for the relocs: IMGLUE and IFGLUE.
6997 (record_toc): new function - tracks toc contents
6998 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
6999 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
7000 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
7001 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
125d37c4 7002 (ppc_record_toc_entry): Removed a debug define (duh)
93b6a3f8
KK
7003
7004 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
7005 (pe_print_idata): New function - formats the idata section data
7006 (pe_print_pdata): New function - formats the pdata section data
7007 (pe_print_private_bfd_data): calls to above
7008
c769947b
SS
7009Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
7010
7011 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
7012 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
7013 TARGET_SYM and TARGET_NAME for vector and BFD name.
7014 * coff-pmac.c (pmac_xcoff_vec): Remove.
7015 (TARGET_SYM, TARGET_NAME): Define.
7016 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
7017 machine to 0, not all PowerMacs are 601s.
7018
7019Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
7020
7021 * elfcode.h (elf_object_p): Read in any program headers.
7022 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
7023 based on the program headers, if any.
7024 (elf_fake_sections): Set sh_addr from the vma, not the lma.
7025 (map_program_segments): Set p_paddr of program headers based on
7026 the lma.
7027
ee174815
ILT
7028Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
7029
839087b7
ILT
7030 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
7031 failure.
7032
922530a6
ILT
7033 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
7034 trying to do a relocateable link with a non-a.out object file.
7035
7036 * archive.c (bfd_generic_archive_p): Check the first object file
7037 in an archive even if target_defaulted is set. If the object file
7038 has the wrong xvec, reject it.
7039
a1774c51
ILT
7040 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
7041 be represented, report the name via _bfd_error_handler.
7042 (translate_to_native_sym_flags): Likewise.
7043 * elf32-mips.c (mips_elf_final_link): Likewise.
7044 * oasys.c (oasys_write_sections): Likewise.
7045
4a378b13
ILT
7046 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
7047 which checks for STYP_OVRFLO sections.
7048 (coff_compute_section_file_positions): If RS6000COFF_C, handle
7049 reloc and lineno count overflows.
7050 (coff_write_object_contents): Call coff_count_linenumbers before
7051 coff_compute_section_file_positions. If RS6000COFF_C, handle
7052 reloc and lineno count overflows.
7053 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
7054 relocs before dealing with .pad sections. Count overflow section
7055 headers when handling .pad sections.
7056
7906bf87
ILT
7057 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
7058 if RS6000COFF_C.
7059
ee174815
ILT
7060 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
7061 (struct xcoff_link_hash_table): Add descriptor_section and
7062 special_sections fields.
7063 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
7064 (xcoff_link_add_symbols): Set linkage section alignment. Create
7065 descriptor section. Check for magic symbol names (_text, etc.),
7066 and record them in special_sections if found. Set
7067 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
7068 descriptor field to point back to the function code symbol.
7069 (xcoff_sweep): Always mark the special descriptor_section.
7070 (bfd_xcoff_export_symbol): Check whether the symbol might be a
7071 function descriptor, and mark it if it is.
7072 (bfd_xcoff_size_dynamic_sections): Add new special_sections
7073 parameter, and fill it in. Allocate space for the descriptor
7074 section.
7075 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
7076 global linkage code. If an undefined function descriptor is
7077 exported, arrange to define it. Warn about any other undefined
7078 exported symbol.
7079 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
7080 (xcoff_write_global_symbol): Create a function descriptor when
7081 necessary.
7082 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
7083 * bfd-in2.h: Rebuild.
7084
0e829f18
KK
7085Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
7086
7087 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
7088 (ppc_coff_link_hash_table): new types for hashing
7089 (ppc_coff_link_hash_newfunc): hash entry constructor
7090 (ppc_coff_link_hash_table_init): hash table initializer
7091 (ppc_coff_link_hash_table_create): hash table constructor
7092 (ppc_record_toc_entry): changed references to hash table
7093 (coff_ppc_relocate_section): changed references to hash table
7094
7095 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
7096 * libcoff.h: Rebuild
7097
7098 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
7099 (coff_link_add_symbols): removed toc_offset init
7100
7ac84736
KR
7101Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
7102
b27cc4bc
KR
7103 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
7104 first.
7105
7ac84736
KR
7106 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
7107 if it is given and mmep is available.
7108 * acconfig.h: Undef USE_MMAP.
7109 * configure, config.in: Regenerated.
7110 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
7111 table handling the old way.
7112 (aout_get_external_symbols): Don't complain if last byte of string
7113 table is nonzero.
7114 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
7115 (bfd_free_window) [! USE_MMAP]: Don't define.
7116 (bfd_get_file_window,
7117 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
7118
1b3b0c03
ILT
7119Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
7120
7121 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
7122 0xffff0000.
7123
092abcdf
ILT
7124Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
7125
33698029
ILT
7126 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
7127 compatible with AMD generated COFF files. Try to support both AMD
7128 and GNU formats simultaneously.
7129 (coff_a29k_relocate_section): Likewise.
7130
0bb8ff19
ILT
7131 * libbfd.c (bfd_get_file_window): Change writable parameter from
7132 int to boolean; update all callers. Pass MAP_SHARED if not
7133 writable--it's required on Solaris. Cast fprintf argument to
7134 avoid warning.
7135 * bfd-in.h (bfd_get_file_window): Update declaration.
7136 * bfd-in2.h: Rebuild.
7137 * aoutx.h: Update calls to bfd_get_file_window.
7138
0634a431
ILT
7139 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
7140 Change all uses.
7141 (xcoff_swap_ldhdr_in): New static function.
7142 (xcoff_swap_ldsym_in): New static function.
7812bf9c 7143 (xcoff_find_reloc): Handle the case of a single reloc correctly.
0634a431
ILT
7144 (xcoff_link_add_symbols): If we just created a descriptor, pass it
7145 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
417acf22 7146 Handle XTY_ER/XMC_XO symbols correctly.
0634a431
ILT
7147 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
7148 rather than normal symbol table.
417acf22
ILT
7149 (bfd_xcoff_import_symbol): It's not an error if the symbol is
7150 already defined with the same absolute value.
0634a431
ILT
7151 (xcoff_mark): When considering called symbols, check whether the
7152 descriptor is from a dynamic object, rather than the symbol
7153 itself.
7154 (xcoff_build_ldsyms): Likewise.
7155
092abcdf
ILT
7156 * libbfd.c (bfd_get_file_window): Change return type to boolean.
7157 Cast realloc and malloc return values. If malloc or realloc fail,
7158 set bfd_error_no_memory.
7159 * bfd-in.h (bfd_get_file_window): Change type to boolean.
7160 * bfd-in2.h: Rebuild.
7161
d6f41a7d
KK
7162Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
7163
7164 * coff-ppc.c (ppc_record_toc_entry): new function.
7165 (in_reloc_p): changed return value.
7166 (coff_ppc_relocate_section): much rework.
7167 (ppc_allocate_toc_section): new function.
7168 (ppc_process_before_allocation): new function.
7169 (ppc_coff_swap_sym_in_hook): new function.
7170
7171 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
7172 (coff_link_add_symbols): initialize toc_offset.
7173
7174 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
7175 (coff_swap_aouthdr_out): Added more sections to the data
7176 dictionary for the pe file header. Also changed linker version
7177 number on the ppc side.
7178 (dir_names): small improvements to the dictionary printing.
7179 (pe_mkobject_hook): save the file level flags.
7180
7181 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
7182 (pe_tdata): added real_flags field
7183 (coff_tdata): added local_toc_sym_map and access macro
7184
7185 * libcoff.h (coff_link_hash_entry): added toc_offset field
7186 (pe_tdata): added real_flags field
7187 (coff_tdata): added local_toc_sym_map and access macro
7188
7189 * coffcode.h (coff_set_alignment_hook): added hook for PE.
7190 (coff_mkobject): init for local_toc_sym_map
7191 (coff_write_object_contents): set the internal_a.magic to
7192 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
7193 ppc compilers use.
7194
6bc200f2
ILT
7195Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
7196
c0971298
ILT
7197 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
7198 entries until both the line number address and the function name
7199 address are too large.
7200
6a468850
ILT
7201 * configure.in: Call AC_CHECK_PROG to find and cache AR.
7202 * configure: Rebuilt.
7203
6bc200f2
ILT
7204 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
7205 is defined in the environment.
7206
c44bf94c
JL
7207Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
7208
7209 * som.c (som_get_section_contents_in_window): Define to use
7210 generic version.
7211
cf587de8
ILT
7212Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
7213
7214 * coff-i860.c: New file, based on coff-i386.c.
7215 * cpu-i860.c: New file, based on cpu-i386.c.
7216 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
7217 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
7218 targets, using i860coff_vec.
7219 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
7220 trad-core.o and hosts/i860mach3.h.
7221 (i860coff_vec): Use coff-i860.o and cofflink.o.
7222 * configure: Rebuild.
7223 * Makefile.in: Rebuild dependencies.
7224 (ALL_MACHINES): Add cpu-i860.o.
7225 (BFD32_BACKENDS): Add coff-i860.o.
7226 (CFILES): Add cpu-i860.c and coff-i860.c.
7227 * targets.c (i860coff_vec): Declare.
cf2cd4cf 7228 (bfd_target_vector): Add &i860coff_vec.
cf587de8
ILT
7229 * archures.c (bfd_i860_arch): Declare.
7230 (bfd_archures_list): Add &bfd_i860_arch.
7231 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
7232 (coff_set_flags): Handle bfd_arch_i860.
7233 (coff_write_object_contents): Handle I860 a.out magic number.
7234
83c23fca
ILT
7235Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
7236
7237 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
7238 the created .tc section to 2.
7239 (xcoff_mark): Don't keep a .loader reloc for a call to an
7240 undefined symbol when creating a shared library.
7241 (xcoff_build_ldsyms): When creating a shared library, generate
7242 global linkage code for a call to an undefined symbol.
7243
5d9eb9c3
KR
7244Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
7245
7246 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
7247 BFD32_BACKENDS, BFD64_BACKENDS.
7248 (.dep1): Put mkdep output in a separate file.
7249 Rebuilt dependencies.
7250
ffacb892
KR
7251 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
7252 value.
7253
4fe6d901
KR
7254 Permit use of mmap when available:
7255
7256 * configure.in: Check for mmap, madvise, mprotect.
7257 * config.in, configure: Regenerated.
7258
7259 * libbfd.c (struct _bfd_window_internal): Define type.
7260 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
7261 functions.
7262 (ok_to_map): New static variable for debugging.
7263 (_bfd_generic_get_section_contents_in_window): New function.
7264 * bfd-in.h (bfd_window_internal): Declare type.
7265 (bfd_window): Define type.
7266 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
7267 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
7268 Declare.
7269
7270 * libaout.h (struct aoutdata): Add two window fields.
7271 (obj_aout_sym_window, obj_aout_string_window): New macros.
7272 * aoutx.h (some_aout_object_p): Initialize windows.
7273 (aout_get_external_symbols): Get symbol data and strings in
7274 windows instead of explicitly allocated buffers.
7275 (slurp_symbol_table): Free window instead of memory.
7276 (bfd_free_cached_info): Release windows instead of freeing storage
7277 directly.
7278 (aout_link_free_symbols): Ditto.
7279
7280 * targets.c (bfd_target): Add new field for
7281 get_section_contents_in_window.
7282 (BFD_JUMP_TABLE_GENERIC): Updated.
7283 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
7284 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
7285 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
7286 macros for get_section_contents_in_window field.
7287
d9e771e3
FF
7288Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
7289
7290 * core.c: Renamed to corefile.c
7291 * makefile.dos (OBJS): Change core.o to corefile.o
7292 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
cf2cd4cf 7293
583db7a8
ILT
7294Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
7295
7296 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
7297 to o. Clobber and restore the list of new csects around the call
7298 to _bfd_generic_link_add_one_symbol, in case it wants to report a
7299 linker error and the linker wants to read the symbol table. Reset
7300 the line number count of a real section even if it has no relocs.
7301 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
7302
7303 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
7304 is too small.
7305
68aed7db
ILT
7306Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
7307
18a9609c
ILT
7308 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
7309 an undefined symbol in a shared link.
7310
68aed7db
ILT
7311 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
7312 oldtype from bfd_link_order_type to bfd_link_hash_type. From
7313 phdm@info.ucl.ac.be (Philippe De Muyter).
7314
7f82c7e1
ILT
7315Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
7316
7317 * coff-m88k.c (rtype2howto): New static function.
7318 (RTYPE2HOWTO): Use it rather than a macro definition.
7319
7320 * coffcode.h (coff_write_object_contents): set internal_a.magic
7321 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
7322
4c8b9746 7323 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
7f82c7e1
ILT
7324 define TRAD_HEADER to new file hosts/delta68.h.
7325 m88*-motorola-sysv*, however, does use ptrace-core.o.
7326 * hosts/delta68.h: New file.
7327
7328 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
7329 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
7330
619c7730
KR
7331Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
7332
7333 * i386linux.c (MY(vec)): Declare before use.
7334
73246ff8
ILT
7335Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
7336
e8d6d5d0
ILT
7337 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
7338 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
7339
b2193cc5
ILT
7340 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
7341 BFD is not of the right type.
7342 (bfd_elf_get_needed_list): Likewise.
7343 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
7344 * sunos.c (bfd_sunos_get_needed_list): Likewise.
7345 * xcofflink.c (XCOFF_XVECP): Define.
7346 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
7347 of the right type.
7348 (bfd_xcoff_import_symbol): Likewise.
7349 (bfd_xcoff_export_symbol): Likewise.
7350 (bfd_xcoff_link_count_reloc): Likewise.
7351 (bfd_xcoff_record_link_assignment): Likewise.
7352 (bfd_xcoff_size_dynamic_sections): Likewise.
7353
baabeb74
ILT
7354 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
7355 table index against the number of symbols for a base relative
7356 reloc.
7357
73246ff8
ILT
7358 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
7359 static function.
7360 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
7361 full_aouthdr flag here...
7362 (_bfd_xcoff_bfd_final_link): ...not here.
7363
6ab826bd
FF
7364Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
7365
7366 * libelf.h: Rename to elf-bfd.h to avoid conflict with
7367 systems that have a system <libelf.h>.
7368 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
7369 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
7370 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
7371 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
7372 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
7373 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
7374 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
7375
999cc186
ILT
7376Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
7377
0652d579
ILT
7378 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
7379 set, set BSF_WEAK in symbol. Change all callers.
7380 (ecoff_get_extr): Set weakext based on BSF_WEAK.
7381 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
7382 _bfd_generic_link_add_one_symbol.
7383 (ecoff_indirect_link_order): Check that the section tdata relocs
7384 are not NULL before using them.
7385
999cc186
ILT
7386 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
7387 define TRAD_HEADER as hosts/alphalinux.h.
7388 * configure: Rebuild.
7389 * hosts/alphalinux.h: New file.
7390 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
7391 not int.
7392
e6080520
ILT
7393Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
7394
2bd0aeb9
ILT
7395 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
7396 C_ECOMM storage classes.
7397
e6080520
ILT
7398 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
7399 of xcoff_mark.
7400 (xcoff_mark): Call xcoff_mark_symbol.
7401 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
7402 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
7403 doing it by hand.
7404 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
7405
5fe14a9f
ILT
7406Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
7407
f630a0a4
ILT
7408 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
7409 field.
7410 (xcoff_find_reloc): New static function.
7411 (xcoff_link_add_symbols): Use it.
7412 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
7413 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
7414 relocate the value of C_DECL.
7415
5fe14a9f
ILT
7416 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
7417
dff77ed7
SC
7418Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
7419
7420 * cofflink.c (_bfd_coff_generic_relocate_section): Make
7421 callback decide what goes in .relocs.
7422 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
7423 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
7424 there is one.
7425
697a8fe8
ILT
7426Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
7427
7428 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
7429 absolute section.
7430
2d7de17d
ILT
7431Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
7432
7433 * xcofflink.c: More improvements, mostly to fix handling of
7434 constructors and a few other special cases.
7435 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
7436 zero, reverting yesterday's change.
7437 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
7438 (bfd_xcoff_link_count_reloc): Declare.
7439 (bfd_xcoff_record_link_assignment): Declare.
7440 * bfd-in2.h: Rebuild.
7441
f552f751
NH
7442Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
7443
4906b2a3 7444 * PORTING, aout-arm.c, aout-encap.c, aout-target.h,
f552f751
NH
7445 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
7446 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
7447 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
7448 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
7449 Change PAGE_SIZE to TARGET_PAGE_SIZE.
7450
7451 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
7452 format.
7453
7454 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
7455 segments includes the a.out header. See to that the magic number
7456 *always* is big-endian.
7457
7458 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
7459 m68k4k NetBSD configurations.
7460
7461 * configure.in, configure: Separate i386 & mips NetBSD
7462 configurations from other BSD ones. Don't assume DEC is the only
7463 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
7464 configurations. Add support for m68k4k NetBSD object format.
7465
7466 * libaout.h: Added M_68K4K_NETBSD magic.
6fd1f40d
NH
7467
7468 * m68k4knetbsd.c: New file.
cf2cd4cf 7469
f552f751
NH
7470 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
7471
7472 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
7473 <machine/endian.h>.
7474
6fd1f40d 7475 * hosts/mipsnbsd.h: New file.
cf2cd4cf 7476
867d923d
ILT
7477Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
7478
7479 * xcofflink.c: Numerous changes to get closer to a working XCOFF
7480 linker.
7481 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
7482 toc_section, and entry_section fields.
7483 (struct xcoff_section_tdata): Remove ldrel_count field.
7484 * libcoff.h: Rebuild.
7485 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
7486 fields.
7487 (coff_compute_section_file_positions): If RS6000COFF_C, generate
7488 full a.out header if full_aouthdr is set in xcoff_data.
7489 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
7490 based on sections stored in xcoff_data.
7491 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
7492 fields.
aad2c618
ILT
7493 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
7494 (rs6000coff_vec): Set symbol_leading_char to '.'.
867d923d
ILT
7495 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
7496 value stored in ret rather than returning a pointer value.
cf2cd4cf 7497
6bd9ffdb
MM
7498Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7499
7500 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
7501 format for now.
7502
9d14250f
JL
7503Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
7504
7505 * som.c (som_slurp_string_table): Allocate the strings with malloc
7506 since they're free'd by free_cached_info.
7507 (som_slurp_symbol_table): Similarly for the symbol table.
7508
a2bd0529
PB
7509Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
7510
7511 * Makefile.in (diststuff): Don't make headers.
7512
28a0c103
ILT
7513Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
7514
356cd465
ILT
7515 * Makefile.in: Rebuild dependencies.
7516
1edd3a7b
ILT
7517 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
7518 output_bfd is not SunOS.
7519 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
7520 non-SunOS input files.
7521
28a0c103
ILT
7522 * xcofflink.c: Extensive changes to support linking shared objects
7523 and generating a .loader section.
7524 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
b73322d9
ILT
7525 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
7526 last_symndx, and ldrel_count fields.
28a0c103
ILT
7527 * libcoff.h: Rebuild.
7528 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
7529 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
7530 is set.
7531 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
7532 (bfd_xcoff_export_symbol): Declare.
7533 (bfd_xcoff_size_dynamic_sections): Declare.
7534 * bfd-in2.h: Rebuild.
7535
aadf04f7
SS
7536Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
7537
7538 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
7539 * configure: Rebuild.
7540 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
7541 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
7542 contents.
7543 (pmac_xcoff_vec): Update to use new xcoff support.
7544 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
7545 (xcoff_write_armap): Declare buf as unsigned char.
7546 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
7547
7548 * mpw-make.sed: Generalize subdir_do edit.
cf2cd4cf 7549
ddf4639b
JL
7550Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
7551
7552 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
7553 correctly. Don't initialize asect->vma.
7554
e7bedf65
KR
7555Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
7556
7557 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
7558 something a little less than the page size.
7559
7560Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
7561
7562 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
7563
3a70e298
SC
7564Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
7565
7566 * coff-i386.c (coff_i386_reloc_type_lookup): New.
7567 * coffcode.h (coff_write_object_contents): If .bss is before
7568 .data us that as data_start.
7569 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
7570 calc correct.
7571 * peicode.h (add_data_entry): Use _cooked_size of data directory.
7572 (coff_swap_outhdr_out): Hardwire in version number.
cf2cd4cf 7573
5a2846e3
KR
7574Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
7575
3c3a5268
KR
7576 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
7577 major and minor to *_vno, since the former are also macros in
7578 SunOS header files. Cast result of bfd_alloc to appropriate
7579 type.
7580
5a2846e3
KR
7581 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
7582 before assigning to sec_data.
7583
0f6c885e
ILT
7584Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
7585
7586 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
7587 now relative to the section, not absolute.
7588 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
7589 get the file name when there is a N_SO directory name. When
7590 handling stabs, remember that section->vma was added to the
7591 offset.
7592
11fa6636
ILT
7593Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
7594
7595 * sunos.c (struct sunos_link_hash_table): Add needed field.
7596 (sunos_link_hash_table_create): Call bfd_release, not free.
7597 (sunos_link_hash_table_create): Initialize needed field.
7598 (sunos_add_dynamic_symbols): Record needed objects.
7599 (bfd_sunos_get_needed_list): New function.
7600 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
7601 * bfd-in2.h: Rebuild.
7602
c974e19e
SC
7603Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
7604
7605 * libcoff-in.h (pe_data_type.in_reloc_p): New.
7606
22a35f0b
ILT
7607Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
7608
54406786
ILT
7609 * bfd-in.h (struct bfd_link_needed_list): Rename from
7610 bfd_elf_link_needed_list.
7611 * bfd-in2.h: Rebuild.
7612 * elf.c, elflink.h, libelf.h: Corresponding changes.
7613
dd984644
ILT
7614 Add start at AIX linker support; no shared libraries yet.
7615 * xcofflink.c: New file.
7616 * configure.in (rs600coff_vec): Use xcofflink.o.
7617 * configure: Rebuild.
7618 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
7619 fields.
7620 (struct xcoff_section_tdata): Define.
7621 (xcoff_section_data): Define macro.
7622 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
7623 (_bfd_xcoff_bfd_link_add_symbols): Declare.
7624 (_bfd_xcoff_bfd_final_link): Declare.
7625 (_bfd_ppc_xcoff_relocate_section): Declare.
7626 * libcoff.h: Rebuild.
7627 * coff-rs6000.c: Clean up a bit.
7628 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
7629 cputype, csects, and debug_indices.
7630 (xcoff_copy_private_bfd_data): Copy cputype.
7631 (xcoff_howto_table): Rename from rs6000coff_howto_table.
7632 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
7633 (xcoff_reloc_type_lookup): Rename from
7634 rs6000coff_reloc_type_lookup.
7635 (coff_relocate_section): Define.
7636 (_bfd_xcoff_sizeof_headers): Define.
7637 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
7638 (_bfd_xcoff_bfd_relax_section): Define.
7639 (_bfd_xcoff_bfd_link_split_section): Define.
7640 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
7641 coff.
7642 * coffcode.h (coff_compute_section_file_positions): If AIX,
7643 increment sofar by SMALL_AOUTSZ if not executable.
7644 (coff_write_object_contents): If AIX, always output an a.out
7645 header; if not executable, header size of SMALL_AOUTSZ.
7646 * hash.c (struct bfd_strtab_hash): Add xcoff field.
7647 (_bfd_stringtab_init): Initialize xcoff field.
7648 (_bfd_xcoff_stringtab_init): New function.
7649 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
7650 (_bfd_stringtab_emit): In XCOFF mode, write out length.
7651 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
7652 * libbfd.h: Rebuild.
7653 * Makefile.in: Rebuild dependencies.
7654 (BFD32_BACKENDS): Add xcofflink.o.
7655 (CFILES): Add xcofflink.c.
7656
22a35f0b
ILT
7657 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
7658 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
7659 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
7660
fb417a21
MM
7661Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7662
7663 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
7664
7665Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
7666
7667 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
7668 * config.in: Regenerated.
7669
7670 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
7671 (_bfd_chunksize): New variable.
7672 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
7673 for obstack chunk size.
7674 * configure.in: Check for getpagesize.
7675 * configure: Regenerated.
7676
7677 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7678
7679 * trad-core.c (rawptr): Make it a local variable of
7680 ptrace_unix_core_file_p.
7681
b1e46369
SC
7682Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
7683
7684 * coff-arm.c (in_reloc_p): New.
7685 * coff-i386.c (in_reloc_p): New.
7686 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
7687 (coff_write_object_contents): Only set has_reloc_section
7688 if PE_IMAGE.
7689 * cofflink.c (_bfd_coff_generic_relocate_section): Call
7690 in_reloc_p to decide if reloc should be emitted.
7691 * libcoff.h (pe_data_type.in_reloc_p): New.
7692 * peicode.h (pe_mkobject): Initialize in_reloc_p.
7693
ee9f09cd
ILT
7694Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
7695
b1e46369
SC
7696 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
7697 (_bfd_coff_read_internal_relocs): Likewise.
7698 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
7699 (_bfd_coff_read_internal_relocs): Likewise.
7700
ee9f09cd
ILT
7701 * elflink.h (elf_link_add_object_symbols): Correct conditions
7702 under which type and size change warnings are issued.
7703
78b31b6b
ILT
7704Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
7705
7706 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
7707 a symbol which is not in a real section.
7708 (coff_write_native_symbol): Corresponding change.
7709
7710 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
7711 coff_link_hash_newfunc and make non-static.
7712 (_bfd_coff_link_hash_table_init): New function, broken out of
7713 _bfd_coff_link_hash_table_create.
7714 (_bfd_coff_link_hash_table_create): Use it.
7715 (process_embedded_commands): Make static.
7716 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
7717 (_bfd_coff_link_hash_table_init): Declare.
7718 * libcoff.h: Rebuild.
7719
7720 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
7721 field in XCOFF tdata.
7722 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
7723 U802ROMAGIC, for clarity. Try to set arch and machine correctly
7724 based on cputype stored in a.out header, or in n_type of initial
7725 .file symbol.
7726 (coff_write_object_contents): Set cputype correctly in a.out
7727 header.
7728 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
7729 warnings.
7730 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
7731 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
7732 old resv1 field.
7733 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
7734 * libcoff.h: Rebuild.
7735
7736 * cpu-rs6000.c (rs6000_compatible): New static function.
7737 (bfd_rs6000_arch): Use it.
7738 * cpu-powerpc.c (powerpc_compatible): New static function.
7739 (arch_info_struct): Define various flavours of PowerPC.
7740 (bfd_powerpc_arch): Use powerpc_compatible. Point at
7741 arch_info_struct.
7742
9dd7e56f
FF
7743Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
7744
78b31b6b 7745 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9dd7e56f 7746
8235c112
ILT
7747Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
7748
7749 * elflink.h (elf_link_add_object_symbols): Don't warn about
7750 changing the size or type if the old definition was weak.
7751
0322af0d
ILT
7752Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
7753
49488f2b
ILT
7754 * coffcode.h (combined_entry_type): Add fix_line field.
7755 (coff_slurp_line_table): Warn if we try to set the lineno field of
7756 a symbol twice.
7757 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
7758 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
7759 * coffgen.c (coff_mangle_symbols): Handle fix_line.
7760 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
7761 absolute section.
7762 (coff_print_symbol): Print fix_value symbols in a useful fashion.
7763 * libcoff.h: Rebuild.
7764
5f710a3a
ILT
7765 * libcoff-in.h (struct xcoff_tdata): Define.
7766 (xcoff_data): Define.
7767 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
7768 * bfd-in2.h, libcoff.h: Rebuild.
7769 * coff-rs6000.c (xcoff_mkobject): New static function.
7770 (coff_mkobject): Define.
7771 (xcoff_copy_private_bfd_data): New static function.
7772 (coff_bfd_copy_private_bfd_data): Define.
7773 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
7774 signed to bitfield.
7775 (rs6000coff_vec): Add DYNAMIC to object_flags.
7776 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
7777 .loader sections specially.
7778 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
7779 section alignment from the XCOFF tdata information.
7780 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
7781 F_SHROBJ, and copy the extra a.out header information into the
7782 XCOFF tdata structure.
7783 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
7784 F_DYNLOAD and the extra a.out header information.
7785 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
7786 C_HIDEXT symbol with attached csect information.
7787 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
7788 in the o_maxdata field.
7789 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
7790 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
7791 end if BSF_NOT_AT_END is set.
3f2c5b2d 7792
0322af0d
ILT
7793 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
7794 _bfd_read_ar_hdr_fn.
7795 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
7796 * bfd-in2.h, libbfd.h: Rebuild.
7797 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
7798 return value.
7799 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
7800 (bfd_slurp_bsd_armap_f2): Likewise.
7801 (_bfd_slurp_extended_name_table): Likewise.
7802
3266eaff
KR
7803Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
7804
7805 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7806
7807 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
7808 when the symbol table is empty.
7809
7810 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
7811 space for section symbols, since we don't output them either.
7812 (elf_m68k_adjust_dynindx): Removed.
7813
7814 * ptrace-core.c (rawptr): Make it a local variable of
7815 ptrace_unix_core_file_p.
3266eaff 7816
249479fa
MM
7817Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7818
45b5d2f0
MM
7819 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
7820 NULL.
7821
249479fa
MM
7822 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
7823 Mac object file formats.
7824
c53fac12
ILT
7825Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
7826
4372f33f
ILT
7827 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
7828 auxent if there isn't one.
7829 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
7830 rather than FILNMLEN as the maximum name length.
7831
0fc9ada9
ILT
7832 * coffcode.h (bfd_coff_backend_data): Add new field
7833 _bfd_coff_print_aux.
7834 (bfd_coff_print_aux): New static function.
7835 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
7836 scnlen field of an XTY_LD csect aux entry.
7837 (coff_print_aux): New static function.
7838 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
7839 in coff_pointerize_aux_hook.
7840 (bfd_coff_std_swap_table): Initialize new field.
7841 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
7842 * libcoff.h: Rebuild.
7843 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
7844 * coff-mips.c (mips_ecoff_backend_data): Likewise.
7845
7860fe38
ILT
7846 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
7847 if there are symbols, for native AIX ld compatibility.
7848
c80cc833
ILT
7849 * coffcode.h (bfd_coff_backend_data): Add new field
7850 _bfd_coff_pointerize_aux_hook.
7851 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
7852 or I960, and as 0 otherwise.
7853 (bfd_coff_std_swap_table): Initialize new field.
7854 * libcoff.h: Rebuild.
7855 * coffgen.c (coff_pointerize_aux): Change parameters to take
7856 symbol pointer instead of type and class, and to take aux index.
7857 Call _bfd_coff_pointerize_aux_hook if it is defined.
7858 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
7859 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
7860 * coff-mips.c (mips_ecoff_backend_data): Likewise.
7861
c53fac12
ILT
7862 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
7863 read-only/host-only support.
7864
7865 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
7866 BSF_LOCAL.
d11e6b52
ILT
7867 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
7868 RS6000COFF_C.
c53fac12
ILT
7869
7870 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
7871 BFD_JUMP_TABLE_ARCHIVE accordingly.
7872 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
7873 (_bfd_compute_and_write_armap): Declare.
7874 (_bfd_generic_read_ar_hdr): Declare.
7875 (_bfd_read_ar_hdr): Define.
7876 (_bfd_noarchive_read_ar_hdr): Define.
7877 (_bfd_archive_bsd_read_ar_hdr): Define.
7878 (_bfd_archive_coff_read_ar_hdr): Define.
7879 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
7880 _bfd_read_ar_hdr instead.
7881 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
7882 (_bfd_compute_and_write_armap): Rename from
7883 compute_and_write_armap. Make non-static. Change all callers.
7884 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
7885 than _bfd_snarf_ar_hdr.
7886 * aout-target.h (MY_read_ar_hdr): Define if not defined.
7887 * ieee.c (ieee_read_ar_hdr): Define.
7888 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
7889 * oasys.c (oasys_read_ar_hdr): Define.
7890 * som.c (som_read_ar_hdr): Define.
7891 * bfd-in2.h, libbfd.h: Rebuild.
7892
f8e47484
SC
7893Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
7894
7895 * peicode.c (coff_swap_filehdr_in): If symptr is
7896 zero, there aren't any symbols, even if nsyms is set.
7897
2b874a2d
ILT
7898Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
7899
aca73687
ILT
7900 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
7901 field.
7902 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
7903 sections, and set styp correctly for them: .got, .hash, .dynamic,
7904 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
7905 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
7906 types.
7907 (ecoff_sort_hdrs): New static function.
7908 (ecoff_compute_section_file_positions): Return boolean, not void.
7909 Sort the sections by VMA before looking through them. Put the
7910 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
7911 section on an appropriate boundary within the page.
7912 (ecoff_compute_reloc_file_positions): Check return value of
7913 ecoff_compute_section_file_positions.
7914 (_bfd_ecoff_set_section_contents): Likewise.
7915 (_bfd_ecoff_write_object_contents): Check for various Alpha
7916 section types when incrementing text_size and data_size. Call
7917 adjust_headers backend function if it exists.
7918 * coff-alpha.c (alpha_adjust_headers): New static function.
7919 (alpha_ecoff_backend_data): Initialize adjust_headers field.
7920 * coff-mips.c (mips_ecoff_backend_data): Likewise.
7921
2b874a2d
ILT
7922 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
7923
c780e5db
JL
7924Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
7925
7926 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
7927 of ALTERNATE_AIX_CORE_FORMAT.
7928 * configure.in (aix4): No longer need CORE_FLAGS.
7929 * configure: Updated.
7930
2a01c351
KR
7931Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
7932
7933 NS32k changes from Ian Dall:
7934 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
7935 macros.
7936 (aout_link_input_section_std, aout_link_input_section_ext,
7937 aout_link_reloc_link_order): Call them instead of _bfd_*
7938 versions.
7939 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
7940 to zero.
7941 (backend_data): Use it instead of hardcoded zero.
7942
7943 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
7944 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
7945
7946 * ns32knetbsd.c: Include bfd.h.
7947 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
7948 (MY_bfd_reloc_type_lookup): Declare function too.
7949 * pc532-mach.c (set_sizes): Don't declare.
7950 (MY_text_includes_header, MY_exec_header_not_counted): Define.
7951 (backend_data, MY_backend_data): Don't define.
7952
7953 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
7954 ns32k-*-lites* like ns32k-*-netbsd*.
7955
7956 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
7957 compile on lites.
7958
5944d75b
ILT
7959Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
7960
7961 * coffcode.h (coff_write_object_contents): Restore setting
7962 f_timdat to 0, deleted on August 22.
7963
db344f82
SC
7964Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
7965
7966 * coffcode.h (coff_bfd_copy_private_symbol_data,
7967 coff_bfd_copy_private_section_data,
7968 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
7969 * peicode.h (coff_bfd_copy_private_bfd_data): New
7970 (pe_bfd_copy_private_bfd_data): New.
7971 (coff_swap_scnhdr_in): Swap bss size into the right place.
7972 (pe_print_private_bfd_data): Add some newlines.
5944d75b 7973
c780e5db 7974Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
97f1feda
JL
7975
7976 * som.c (setup_sections): Don't die if a space has no subspaces.
7977
3d7c42c9
ILT
7978Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
7979
7980 * elflink.h (elf_link_add_object_symbols): Don't let a weak
7981 dynamic symbol override a common symbol. Don't change the size or
7982 type if they have been set and the new symbol is not a definition.
7983 Warn if the size or type changes.
7984
c780e5db 7985Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
709af562
JL
7986
7987 * som.c (som_begin_writing): Don't write the symbol table or
7988 symbol strings.
7989 (som_finish_writing): Write them here. Place them after the
7990 subspace data, but before the relocs.
7991
7992Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
7993
7994 * sunos.c (sunos_add_one_symbol): Just pass false, not
7995 info->shared_library, to sunos_create_dynamic_sections.
7996 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
7997 section.
7998 (sunos_check_dynamic_reloc): Remove .text section assertion.
7999
7009e451
SS
8000Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
8001
8002 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
8003 * configure, configure.in: Add pmac_xcoff_vec case.
8004 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
8005 * coff-pmac.c: New file, PowerMac XCOFF support.
8006 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
8007 * targets.c (pmac_xcoff_vec): Declare.
8008
8009 * mpw-config.in: Various changes to be compatible with the
8010 autoconf-based configury.
8011 * mpw-make.sed: New file, sed commands to translate Unix
8012 makefile into MPW syntax.
8013 * mpw-make.in: Remove.
8014 * hosts/mpw.h: Remove.
8015 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
8016 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
8017
b91537be
SC
8018Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
8019
8020 * binary.c (binary_get_symtab): Return an empty string on error.
8021 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
8022
30360a6f
KK
8023Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
8024
8025 * coff-ppc.c: Reformatted according to gnu conventions
8026 Removed irrelevant "if 0" code
8027
20d1e233
ILT
8028Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
8029
69fd4fdd
ILT
8030 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
8031 symbols rather than as indirect symbols.
8032 (MY(slurp_symbol_table)): Don't do anything special about
8033 secondary symbols.
8034
46b5a892
ILT
8035 * coffcode.h (coff_new_section_hook): Make sure that the alignment
8036 of .ctors and .dtors sections is no larger than 2.
8037
9db59230
ILT
8038 * sunos.c (sunos_add_one_symbol): Don't change
8039 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
8040 undef list.
8041 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
8042 dynamic symbols when creating a shared library.
8043 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
8044 shared library.
8045 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
8046 written even if it is not defined in a regular object.
8047 (sunos_write_dynamic_symbol): Use plt_offset for the address of
8048 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
8049 rather than the constant 22.
8050 (sunos_check_dynamic_reloc): Handle creating a shared library.
8051 (sunos_finish_dynamic_link): Set the first entry in the GOT to
8052 zero when creating a shared library.
8053 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
8054 write it out at the start of the symbol table.
8055
20d1e233
ILT
8056 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
8057
a11e10fe
DE
8058Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
8059
8060 * config.bfd: Add arm-*-coff.
8061 * configure.in, configure: Add armcoff_{little,big}_vec.
8062 * targets.c (armcoff_{little,big}_vec): Declare.
8063 (bfd_target_vector): Add armcoff_{little,big}_vec.
8064 * coff-arm.c (armcoff_{little,big}_vec): Always define.
8065
99062cfc
ILT
8066Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
8067
8068 * targets.c (bfd_find_target): Remove debugging code.
8069
deacbe0f
KK
8070Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
8071
cf2cd4cf 8072 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
deacbe0f
KK
8073 support on powerpc.
8074 * Makefile.in: added *-ppc files
8075 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
8076 allow pe based .o's to be shared with other tools on ppc/NT
8077 * config.bfd: added powerpc[le]-[pe|winnt] config support
cf2cd4cf 8078 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
deacbe0f
KK
8079 * peicode.h: Added more section flags for PE on ppc
8080 Added coff_swap_filehdr_out to allow peicode.h to be
8081 used for non-image PE files on ppc.
8082 Check for image, or not, before copying pe_opthdr
8083 * targets.c: Added new bfd's
30360a6f
KK
8084 * targets.c: Removed two inactive bfds that shouldn't have made it this
8085 far.
deacbe0f 8086
d22b02e0
MM
8087Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
8088
8089 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
8090 explicit values to initialize all relocs. Change all users.
8091 (ppc_elf_brtaken_inner): New function to handle branch predicition
8092 relocs.
8093 (ppc_elf_brtaken_reloc): Ditto.
8094 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
8095 relocs use ppc_elf_unsupported_reloc.
8096 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
8097 needs to be reported.
8098 (ppc_elf_relocate_section): Support branch prediction relocs.
8099
fcf490c0
ILT
8100Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
8101
e6cb7b41
ILT
8102 * bfd.c (bfd_assert): Remove \n from string passed to
8103 _bfd_error_handler.
8104
1af85fbb
ILT
8105 * coff-i386.c: (TWO_DATA_SECS): Don't define.
8106 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
8107 (bfd_coff_make_section_hook): Don't define.
8108 (coff_make_section_hook): Remove.
8109 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
8110 (styp_to_sec_flags): Likewise.
8111 (coff_write_object_contents): Likewise.
8112 (bfd_coff_std_swap_table): Don't initialize make_section_hook
8113 field.
8114 * libcoff.h: Rebuild.
8115 * coffgen.c (make_a_section_from_file): Just call
8116 bfd_make_section_anyway, not bfd_make_section or
8117 bfd_coff_make_section_hook.
8118 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
8119 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
8120 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
8121 make_section_hook field.
8122 * coff-mips.c (mips_ecoff_backend_data): Likewise.
8123
fcf490c0
ILT
8124 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
8125 pointers into value field for warning and indirect symbols; just
8126 leave the value field alone.
8127 * linker.c (generic_link_add_symbol_list): Use next symbol for
8128 warning and indirect symbols, rather than looking in symbol value.
8129 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
8130 parameter. Change all callers. Remove support for indirect
8131 symbols; it didn't work anyhow.
8132 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
8133 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
8134 * bfd-in2.h: Rebuild.
8135
cc47d19a
MM
8136Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
8137
8138 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
8139 go back to telling the tools this reloc operates on 32 bits.
8140
81449d47
ILT
8141Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
8142
7a7fbffb
ILT
8143 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
8144 rather than a direct fprintf.
8145 * archive.c (_bfd_write_archive_contents): Likewise.
8146 * coffcode.h (coff_slurp_symbol_table): Likewise.
8147 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
8148 (ppc_elf_unsupported_reloc): Likewise.
8149 (ppc_elf_relocate_section): Likewise.
8150 * i386linux.c (linux_tally_symbols): Likewise.
8151 (linux_finish_dynamic_link): Likewise.
8152 * osf-core.c (osf_core_core_file_p): Likewise.
8153 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
8154 * som.c (som_sizeof_headers): Likewise.
8155 * srec.c (srec_bad_byte): Likewise.
8156 * bfd.c (bfd_assert): Likewise. Also change file to be const.
8157 * libbfd-in.h (bfd_assert): Declare first parameter const.
8158 * libbfd.h: Rebuild.
8159 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
8160 bfd_reloc_overflow is enough.
8161 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
8162 * coff-h8500.c (rtype2howto): Likewise.
8163 * coff-z8k.c (rtype2howto): Likewise.
8164 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
8165 * elf.c (_bfd_elf_get_lineno): Likewise.
8166 (_bfd_elf_no_info_to_howto): Likewise.
8167 (_bfd_elf_no_info_to_howto_rel): Likewise.
8168 * hp300hpux.c (convert_sym_type): Likewise.
8169 (MY(swap_std_reloc_in)): Likewise.
8170 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
8171
f1c6dd5d
ILT
8172 * libaout.h (struct aoutdata): Add line_buf field.
8173 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
8174 and filename_buffer. Instead, use a malloc buffer stored in the
8175 new line_buf field. Remove length restrictions.
8176
f0500a41
ILT
8177 * coffgen.c (string_size): Remove static variable.
8178 (debug_string_size, debug_string_section): Likewise.
8179 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
8180 and debug_string_size_p parameters. Use them instead of the
8181 global variables. Change all callers.
8182 (coff_write_symbol): Likewise.
8183 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
8184 (coff_write_symbols): Add local variables to replace removed
8185 global variables.
8186
25b5a53d
ILT
8187 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
8188 function, and line_base fields.
8189 * libcoff.h: Rebuild.
8190 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
8191 information, rather than using static variables.
8192
641ac26a
ILT
8193 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
8194 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
8195
81449d47
ILT
8196 * init.c (initialized): Remove static variable.
8197 (bfd_init): Don't bother setting initialized.
8198 (bfd_check_init): Remove.
8199 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
8200 * libbfd.h: Rebuild.
8201
138b9b81
PS
8202Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8203
8204 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
8205 size for full core dumps. Copy core file header to private data.
8206 (rs6000coff_core_file_failing_command,
8207 rs6000coff_core_file_failing_signal): New functions to extract
8208 the file name and terminating signal from the core file.
8209 * coff-rs6000.c: Use them.
8210
2ffbb79a
ILT
8211Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
8212
8213 Change arch info to be const, initialized at compile time.
8214 * archures.c: Reindent many functions. Change CONST to const.
8215 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
8216 nothing set it anyhow. Make next const.
8217 (bfd_arch_info_list): Remove.
8218 (bfd_archures_list): Rename from archures_init_table. Change from
8219 a table of function pointers to a table of bfd_arch_info_type
8220 structure addresses.
8221 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
8222 (bfd_lookup_arch): Likewise.
8223 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
8224 const pointer.
8225 (bfd_default_arch_struct): Make const.
8226 (bfd_arch_init, bfd_arch_linkin): Remove.
8227 (bfd_get_arch_info): Return a const pointer.
8228 * init.c (bfd_init): Don't call bfd_arch_init.
8229 * bfd.c (struct _bfd): Make arch_info const.
8230 * bfd-in2.h: Rebuild.
8231 * libbfd.h: Rebuild.
8232 * configure.in: Put & before everything in $selarchs.
8233 * configure: Rebuild.
8234 * cpu-*.c: Change bfd_*_arch from a function which calls
8235 bfd_arch_linkin to a const structure.
8236 * ieee.c (ieee_object_p): Make arch const.
8237
02f85cda
MM
8238Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
8239
8240 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
8241 PowerPC V.4.
8242 * bfd-in2.h: Regenerate.
8243 * libbfd.h: Regenerate.
8244
8245 * elf32-ppc.c (reloc_type): Update names to match current draft.
8246 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
8247 relative. Update names to current V.4 draft.
8248 (ppc_elf_reloc_type_lookup): Add support for more relocations.
8249 (ppc_elf_relocate_section): Rename relocations to match draft.
8250
dd82c578
MM
8251Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
8252
8253 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
8254 compiled with -mrelocatable-lib to be linked with either normal
8255 modules or -mrelocatable modules.
8256
f69e888e
ILT
8257Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
8258
e18c4e8f
ILT
8259 * coffcode.h (coff_write_object_contents): Clear the vstamp field
8260 in the a.out header.
8261
f69e888e
ILT
8262 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
8263 a reloc against a local symbol, even if it's not a section.
8264
a5655244
ILT
8265Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
8266
8267 * targets.c (bfd_target): Remove unused align_power_min field.
8268 * bfd-in2.h: Rebuild.
8269 * All backends: Remove initialization of align_power_min.
8270
500d7394
SC
8271Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
8272
8273 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
500d7394 8274
049df0a8
ILT
8275Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
8276
8277 * config.bfd (mips-dec-netbsd*): New target.
8278 * configure.host (mips-dec-netbsd*): New host.
8279 * configure.in (mips-dec-netbsd*): New native.
8280 * configure: Rebuild.
8281
1862bbd8
ILT
8282Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
8283
8284 Make the COFF backend linker merge common types:
8285 * cofflink.c (struct coff_debug_merge_element): Define.
8286 (struct coff_debug_merge_type): Define.
8287 (struct coff_debug_merge_hash_entry): Define.
8288 (struct coff_debug_merge_hash_table): Define.
8289 (coff_debug_merge_hash_table_init): Define.
8290 (coff_debug_merge_hash_table_free): Define.
8291 (coff_debug_merge_hash_lookup): Define.
8292 (struct coff_final_link_info): Add debug_merge field.
8293 (coff_debug_merge_hash_newfunc): New static function.
8294 (_bfd_coff_final_link): Allocate and free debug_merge table.
8295 (coff_link_input_bfd): Merge identical enum, struct and union
8296 types.
8297
a208a70f
ILT
8298Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
8299
8300 Convert i960 COFF to use COFF backend linker.
8301 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
8302 structure to store the symbol being used.
8303 (coff_i960_start_final_link): New static function.
8304 (coff_i960_relocate_section): New static function.
8305 (coff_i960_adjust_symndx): New static function.
8306 (coff_start_final_link): Define.
8307 (coff_relocate_section): Define.
8308 (coff_adjust_symndx): Define.
8309 * coffcode.h (bfd_coff_backend_data): Add new callback function
8310 _bfd_coff_start_final_link.
8311 (bfd_coff_start_final_link): Define.
8312 (coff_start_final_link): Define if not defined.
8313 (bfd_coff_std_swap_table): Add coff_start_final_link.
8314 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
8315 visible.
8316 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
8317 function callback is not NULL.
8318 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
8319 (_bfd_coff_internal_syment_name): Declare.
8320 * libcoff.h: Rebuild.
8321 * configure.in (icoff_big_vec): Add cofflink.o.
8322 (icoff_little_vec): Likewise.
8323 * configure: Rebuild.
8324
f0abedbe
FF
8325Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
8326
8327 * Makefile.in (clean-info): Remove extraneous tab from line
8328 following action.
8329
aa4b3dc5
ILT
8330Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
8331
8332 * cofflink.c (coff_link_input_bfd): Fail if a section with no
8333 contents has relocs.
8334
4ca63811 8335Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
beee31b1
SC
8336
8337 * coffcode.h (coff_compute_section_file_positions): Keep the
cf2cd4cf 8338 raw size safe.
beee31b1
SC
8339 (coff_write_object_contents): Remember if it's a relocatable
8340 file.
8341 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
8342 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
8343 if relocatable file. Swap out saved raw size.
8344
ae115e51
ILT
8345Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
8346
9521bac3
ILT
8347 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
8348 (maintainer-clean): Rename from realclean, passing
8349 maintainer-clean down to subdirectories, but leave realclean as a
8350 synonym.
8351
4ca63811
ILT
8352 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
8353 warning callback.
8354
5aa4c3ff
ILT
8355 * dep-in.sed: Remove config.h from generated dependencies.
8356
396aaeb2
ILT
8357 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
8358 broken out of sunos_canonicalize_dynamic_symtab.
8359 (sunos_canonicalize_dynamic_symtab): Call new function
8360 sunos_slurp_dynamic_symtab.
8361 (sunos_add_dynamic_symbols): Add three new parameters. Return the
8362 dynamic symbol table to the caller.
8363 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
8364 callback to override the symbols being read.
8365 * libaout.h (struct aout_backend_data): Add three new parameters
8366 to add_dynamic_symbols callback.
8367
ae115e51
ILT
8368 Extensive minor changes to avoid various gcc warnings. Also:
8369 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
8370 * archures.c (bfd_arch_info_type): Change mach field from long to
8371 unsigned long.
8372 (bfd_lookup_arch): Change machine parameter from long to unsigned
8373 long.
8374
b088e4b2
ILT
8375Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
8376
8377 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
8378 a symbol with a non-zero plt_offset.
8379
1dff7902
ILT
8380Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
8381
2b71e1e4
ILT
8382 * elfcode.h (align_file_position): Remove; not used.
8383
1dff7902
ILT
8384 * configure.in: Only check for <sys/procfs.h> on a native system,
8385 and make sure it defines prstatus_t.
8386 * configure: Rebuild.
8387
870015b1
ILT
8388Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
8389
535c89f0
ILT
8390 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
8391
936b870c
ILT
8392 * config.in: Rename from config.h.in.
8393 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
a7873a6c 8394 Check for config.h:config.in when creating stamp-h.
936b870c 8395 * configure: Rebuild.
a7873a6c
ILT
8396 * Makefile.in (stamp-h): Depend upon config.in rather than
8397 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
8398 calling config.status.
936b870c 8399
870015b1
ILT
8400 * Makefile.in (do_distclean): Remove config.h and stamp-h.
8401 (Makefile): Just rebuild Makefile.
8402 (config.h, stamp-h): New targets.
8403 * configure.in: Create stamp-h when rebuilding config.h.
8404 * configure: Rebuild.
8405
b7577823
ILT
8406Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
8407
8408 * configure.in: Call AC_CONFIG_HEADER. Substitute
8409 HOST_64BIT_LONG. Check that various header files exist. Check
8410 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
8411 and/or free need to be declared. Don't make a link to sysdep.h.
8412 Define TRAD_HEADER for various hosts.
8413 * configure: Rebuild.
8414 * configure.host: Don't set my_host. Add definitions taken from
8415 host header files for various entries. Remove entries which now
8416 do nothing.
8417 * acconfig.h: New file.
8418 * config.h.in: New file, built by autoheader.
8419 * sysdep.h: New file.
8420 * Makefile.in (do_distclean): Don't remove sysdep.h.
8421 (RECONFIG): Remove.
8422 (LOCAL_H_DEPS): New variable.
8423 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
8424 $(RECONFIG).
8425 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
8426 ($(OPTIONAL_BACKENDS)): Likewise.
8427 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
8428 looking through sysdep.h.
8429 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
8430 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
8431 (fprintf_vma, sprintf_vma): Likewise.
8432 (int64_type, uint64_type): Don't define.
8433 * bfd-in2.h: Rebuild.
8434 * archures.c, bfd.c, srec.c: Include <ctype.h>.
8435 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
8436 * lynx-core.c: Include stuff from old hosts/lynx.h.
8437 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
8438 rather than NO_FCNTL.
8439 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
8440 rather than NATIVE_HPPAHPUX_COMPILER.
8441 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
8442 is defined.
8443 * hosts/*.h: Remove all header files which merely include,
8444 declare, and define things. Leave header files which define
8445 information needed by trad-core.c.
8446
8447 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
8448 (BFD_CC_FOR_BUILD): Define.
8449 * configure.in: Use BFD_CC_FOR_BUILD.
8450 * configure: Rebuild.
8451
7a93ebdd
ILT
8452Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
8453
4c2e4d0e
ILT
8454 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
8455 * configure: Rebuild.
8456
7a93ebdd
ILT
8457 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
8458 a global symbol.
8459
866bb9e5
JM
8460Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8461
8462 * config.bfd: i386pe_ve -> i386pe_vec.
8463
2b79a104
ILT
8464Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
8465
f515fb2f
ILT
8466 * configure.host: Incorporate host Makefile fragments by setting
8467 shell variables.
8468 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
8469 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
8470 value based on whether the code is being compiled by a cross
8471 compiler. Don't substitute host_makefile_frag or frags.
8472 * aclocal.m4: New file to define local AC_PROG_CC.
8473 * configure: Rebuild.
8474 * Makefile.in (INSTALL): Set to @INSTALL@.
8475 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
8476 (INSTALL_DATA): Set to @INSTALL_DATA@.
8477 (AR): Set to @AR@.
8478 (CC): Define as @CC@.
8479 (CFLAGS): Set to @CFLAGS@.
8480 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
8481 (@host_makefile_frag@): Remove.
8482 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
8483 after other options.
8484 (config.status): Remove dependency upon @frags@.
8485 * config/*.mh, config/README: Remove.
8486
2b79a104
ILT
8487 * config.bfd: Rewrite to incorporate the contents of the Makefile
8488 fragments by setting shell variables, rather than merely returning
8489 the name of a Makefile fragment.
8490 * configure.in: Use shell variables set by config.bfd rather than
8491 looking at the target Makefile fragment files. Don't substitute
8492 target_makefile_frag. Do substitute TDEFINES.
8493 * configure: Rebuild.
8494 * Makefile.in (@target_makefile_frag@): Remove.
8495 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
8496 * config/*.mt: Remove.
8497
2cb159a5
KR
8498Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
8499
8500 * configure.in: Put changequote lines around "i[345]86" patterns
8501 section of core file support.
8502
ef07871c
JL
8503Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
8504
8505 * som.c (som_bfd_print_private_bfd_data): Define to use the
8506 generic version.
8507
1613e075
SC
8508Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
8509
8510 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
8511 entry, text_start and data_start.
8512
a52a3ce8
ILT
8513Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
8514
a21227ef
ILT
8515 * Makefile.in (OFILES): Remove $(TDEPFILES).
8516 * config/apollo.mt (TDEPFILES): Remove.
8517 * config/README: Update.
8518
a52a3ce8
ILT
8519 * configure.in: For a native configuration, set COREFILE and
8520 COREFLAG based on the canonical host name.
8521 * configure: Rebuild.
8522 * Makefile.in: Rebuild dependencies.
8523 (ALL_CFLAGS): Add @COREFLAG@.
8524 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
8525 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
8526 support routines. Check LYNX_CORE rather than HOST_LYNX.
8527 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
8528 * i386lynx.c: Likewise.
8529 * m68klynx.c: Likewise.
8530 * sparclynx.c: Likewise.
8531 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
8532 * *-core.c: Comment changes.
8533 * config/decstation.mh (HDEPFILES): Remove.
8534 (HDEFINES): Remove -DTRAD_CORE.
8535 * config/irix3.mh (RANLIB): Remove.
8536 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
8537 (HDEFINES): Remove -DIRIX_CORE.
8538 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
8539 (HDEFINES): Remove -DTRAD_CORE.
8540 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
8541 * config/ultra3.mh (RANLIB): Remove.
8542 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
8543 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
8544 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
8545 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
8546 * config/hppahpux.mh, config/hppaosf.mh: Remove.
8547 * config/i386aix.mh, config/i386bsd.mh: Remove.
8548 * config/i386linux.mh, config/i386mach3.mh: Remove.
8549 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
8550 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
8551 * config/mipsmach3.mh, config/news-mips.mh: Remove.
8552 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
8553 * config/rs600.mh, config/rs6000lynx.mh: Remove.
8554 * config/solaris2.mh, config/stratus.mh: Remove.
8555 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
8556 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
8557
d6f672b8
ILT
8558Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
8559
8560 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
8561 DT_FINI entry if the appropriate symbol is not in the hash table.
8562
8563 * libelf.h (struct elf_backend_data): Add create_program_headers
8564 and want_hdr_in_seg fields.
8565 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
8566 defined.
8567 (elf_backend_create_program_headers): Likewise.
8568 (elfNN_bed): Initialize create_program_headers and
8569 want_hdr_in_seg.
8570 * elf.c (get_program_header_size): Call create_program_headers
8571 backend routine.
8572 (map_program_segments): Check want_hdr_in_seg backend field. Call
8573 create_program_headers backend routine.
8574
8575 * elf.c (assign_file_positions_except_relocs): Align non allocated
8576 sections when creating an executable.
8577
8578 * elfcode.h (elf_swap_phdr_in): Make non static.
8579 (elf_swap_phdr_out): Make non static.
8580 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
8581 (bfd_elf32_swap_phdr_out): Declare.
8582 (bfd_elf64_swap_phdr_in): Declare.
8583 (bfd_elf64_swap_phdr_out): Declare.
8584
8585 * ecofflink.c (ecoff_collect_shuffle): New static function.
8586 (_bfd_ecoff_get_accumulated_pdr): New function.
8587 (_bfd_ecoff_get_accumulated_sym): New function.
8588 (_bfd_ecoff_get_accumulated_ss): New function.
8589 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
8590 (_bfd_ecoff_get_accumulated_sym): Declare.
8591 (_bfd_ecoff_get_accumulated_ss): Declare.
8592 * libbfd.h: Rebuild.
8593
0cb70568
ILT
8594Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
8595
d6f672b8
ILT
8596 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
8597
0cb70568
ILT
8598 * elflink.h (elf_link_add_object_symbols): Handle indirect and
8599 warning symbols. If any section is named .gnu.warning.XXX, treat
8600 the contents as a warning to be issued if the symbol XXX is
8601 referenced.
8602 (elf_link_output_extsym): For an indirect or warning symbol, just
8603 output the symbol it points to.
8604
8605 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
8606 if bfd_hash_allocate fails, since it will already be set.
8607 (generic_link_hash_newfunc): Likewise.
8608 (archive_hash_newfunc): Likewise.
8609 (hash_entry_bfd): New static function.
8610 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
8611 callback. Allocate a new warning using the hash table newfunc.
8612 Use bfd_hash_replace to update the entry in the hash table, rather
8613 than assuming we can copy the fields with structure assignment.
8614
8615 * hash.c (bfd_hash_replace): New function.
8616 * bfd-in.h (bfd_hash_replace): Declare.
8617 * bfd-in2.h: Rebuild.
8618
f14db880
JSC
8619Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
8620
8621 * config.bfd: Add mips*vr4300-*-elf* target.
8622 * config/mipsbvr4300.mt: Added.
8623
1613e075 8624See file ChangeLog.2
e6d739eb 8625
41126f15
JK
8626\f
8627Local Variables:
c6c7035c 8628mode: change-log
41126f15 8629left-margin: 8
6ec3bb6a
ILT
8630fill-column: 74
8631version-control: never
8632End:
This page took 0.617103 seconds and 4 git commands to generate.