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