* dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
60a49e7f
ILT
1Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
2
7b61165a
ILT
3 * configure.host: On Linux, only pass -rpath option if $(libdir)
4 is neither /lib nor /usr/lib. From Alan Modra
5 <alan@mullet.Levels.UniSA.Edu.Au>.
6
60a49e7f
ILT
7 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
8 dt_name.
9 (elf_dt_name): Rename from elf_dt_needed_name.
10 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
11 elf_dt_needed_name.
12 (bfd_elf_get_dt_soname): New function.
13 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
14 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
15 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
16 * bfd-in2.h: Rebuild.
17
b268e261
DE
18Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com>
19
20 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
21 _bfd_sparc_elf_reloc_type_lookup.
22 (bfd_elf32_bfd_reloc_type_lookup): Update.
23 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
24 (sparc64_elf_howto_table): Define.
25 (sparc_reloc_map): Define.
26 (sparc64_elf_reloc_type_lookup): New function.
27 (sparc_elf_wdisp16_reloc): New function.
28 (elf_info_to_howto): Use sparc64_elf_howto_table.
29 (sparc64_elf_relocate_section): Likewise.
30 (bfd_elf64_bfd_reloc_type_lookup): Update.
31
9e2ef098
ILT
32Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com>
33
34 * configure.host: Check for 'do not mix' from native linker before
35 trying to use -rpath.
36
4c70373f
ILT
37Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
38
cba3f8a9
ILT
39 * bfd.c (_bfd_get_gp_value): New function.
40 (_bfd_set_gp_value): New function.
41 * libbfd-in.h (_bfd_get_gp_value): Declare.
42 (_bfd_set_gp_value): Declare.
43 * libbfd.h: Rebuild.
44 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
45 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
46 directly to the fields in the tdata information.
47 (alpha_relocate_section): Likewise.
48 * coff-mips.c (mips_adjust_reloc_in): Likewise.
49 (mips_gprel_reloc): Likewise.
50 (mips_relocate_section): Likewise.
51 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
52 (mips_elf_lo16_reloc): Likewise.
53 (mips_elf_final_gp): Likewise.
54 (mips_elf_gprel16_reloc): Likewise.
55 (mips_elf_gprel32_reloc): Likewise.
56 (mips_elf_relocate_section): Likewise.
57 (mips_elf_finish_dynamic_symbol): Likewise.
58
4c70373f
ILT
59 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
60
a0a2dd54
ILT
61Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com>
62
f54c7482 63 * configure.in: Call AC_PROG_CC before configure.host.
65eed095
ILT
64 * configure: Rebuild.
65 * configure.host: Don't set information which autoconf should
66 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
65eed095 67
14293419
ILT
68 * configure.host: Remove go32 and win32 host information, since it
69 should no longer be needed.
70
edf3fe48
ILT
71 * elf.c (map_sections_to_segments): If we have a .dynamic section,
72 then start a new segment rather than put a writable section in a
73 readonly segment.
74
b5e4f369
ILT
75 * configure.host: Set RPATH_ENVVAR.
76
f2e33e27
ILT
77 * Makefile.in: Rebuild dependencies.
78
a0a2dd54
ILT
79 * elflink.c (_bfd_elf_create_linker_section): Remove unused
80 zero_section variable.
81
52c6bc4d
ILT
82Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
83
84 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
85 ($(srcdir)/libbfd.h): Rename from libbfd.h.
86 ($(srcdir)/libcoff.h): Rename from libcoff.h.
87
c9e5279f
ILT
88Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
89
cb50baea
ILT
90 * ieee.c (ieee_write_expression): Only use an R variable for a
91 local symbol. Don't output a zero offset. Handle a zero address.
92 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
93 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
94 PCREL_OFFSET.
95 (parse_expression): Don't try to handle multiple occurrences of a
96 P variable. Handle I variables differently from X variables. Fix
97 the order of minus expressions.
98 (ieee_slurp_external_symbols): Generate an I variable for an NN
99 record. Fix handling of ATI and ATX records.
100 (ieee_slurp_sections): Only set minimal section attributes.
101 Adjust them later, based on the section contents.
102 (ieee_object_p): Read in the file until just after the ME record.
103 Call ieee_slurp_section_data to set the section flags.
104 (do_one): Add iterations parameter. Only repeat the first load
105 item. Set the section and file reloc flags.
106 (ieee_slurp_section_data): Set section flags. Pass iterations to
107 do_one.
108 (ieee_canonicalize_reloc): Handle I variables.
109 (do_with_relocs): Only emit relocation size when necessary.
110 Increase MAXRUN to 127. Change ov to be assigned, and take
111 src_mask and pcrel_offset into account.
112 (ieee_write_data_part): Skip sections that are not loaded.
113 (ieee_write_external_part): Don't output optional last entry of WX
114 records.
115 (ieee_write_me_part): Make setting of me_record neater.
116 (ieee_generic_stat_arch_elt): Get the size of an archive element.
117
c9e5279f
ILT
118 * syms.c (stt): Add entries for zerovars, vars, and code.
119
120 * elfcode.h (validate_reloc): New static function.
121 (write_relocs): Call validate_reloc for non ELF relocs.
122
123 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
124 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
125 (TARGET_LITTLE_SYM): Likewise.
126
127 * config.bfd (m68*-*-psos*): New target.
128
d9d65be6
ILT
129Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
130
131 * i386msdos.c: Remove some #if 0 code.
132 (msdos_write_object_contents): Don't include empty sections in the
133 size computation, regardless of their address.
134
135Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
136
137 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
138 is NULL, ie, the -r switch is used.
139
db5970c7
ILT
140Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com>
141
e9f03cd4
ILT
142 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
143 (BFD_RELOC_MIPS_GOT_LO16): Define.
b7384d22 144 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
e9f03cd4
ILT
145 * bfd-in2.h, libbfd.h: Rebuild.
146 * elf32-mips.c (mips_reloc_map): Map new relocs.
147
fe7c066a
ILT
148 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
149
1ab628e4
ILT
150 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
151 $(SHLINK).
152
db5970c7
ILT
153 * ieee.c (get_symbol): Set the section to bfd_abs_section.
154 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
155 simple number for the section address, rather than an expression.
156 Limit the number of bytes between relocs to MAXRUN.
157 (ieee_write_me_part): Set me_record to the file offset after the
158 start address.
159 (ieee_write_processor): New static function.
160 (ieee_write_object_contents): Use ieee_write_processor.
161
318b7c18
ILT
162Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
163
db5970c7
ILT
164 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
165
166 * coff-aux.c: Change include of aux.h to aux-coff.h.
318b7c18 167
56b64690
ILT
168Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
169
170 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
171 relocation put the addend both in the reloc entry and the data.
172 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
173 GOT offset value.
174
175 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
176 a R_68K_PCxx reloc against a defined global symbol directly.
177 (elf_m68k_check_relocs): Don't count such a reloc.
178
179 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
180 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
181 symbol for now, otherwise always record the symbol as dynamic.
182 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
183 is not referenced by a dynamic object, and we are not making a
184 shared object, then don't make a PLT entry. If we do make a PLT
185 entry, make sure the symbol has been recorded as dynamic.
186
5d649ca8
ILT
187Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com>
188
189 * configure.host: When making a shared library, set HLDFLAGS to
190 pass an appropriate -rpath option. Use the make variable SONAME
191 as the shared library soname, rather than computing it here. On
192 SunOS, build stamp-tshlink in place of $(SHLINK).
193 * Makefile.in (SONAME): New variable.
194 ($(SHLINK)): Make a link to the transformed name, as well.
195 (stamp-tshlink): New target.
196 (install): Skip stamp-tshlink during install.
197
8cc98cd5
MM
198Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
199
56b64690
ILT
200 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
201 linker sections have been set up yet.
202
8cc98cd5
MM
203 * elf.c (make_mapping): Add an additional argument to suppress
204 making the first section include the program headers.
205 (map_sections_to_segments): If the user used -Ttext such that the
206 program headers are on a different page, do not set the flags
207 saying that this section includes the program headers.
208
fe16107d
C
209Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
210
211 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
212 don't define TRAD_HEADER.
213 * configure: Rebuild.
214
215 * netbsd-core.c: New file, support for NetBSD core files.
216 * hosts/*nbsd.h: Removed.
217
f1783016
DE
218Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com>
219
220 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
221 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
222 * libbfd.h, bfd-in2.h: Regenerated.
223 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
224 bfd_elf32_bfd_reloc_type_lookup.
225 (reloc_type{,_names}): Deleted.
226 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
227 Add sparc64 relocs.
228 (sparc_reloc_map): Add sparc64 relocs.
229 (sparc_elf_notsupported_reloc): New static function.
230 (sparc_elf_wdisp16_reloc): New static function.
231 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
232 (elf32_sparc_relocate_section): Likewise.
233 (bfd_elf32_bfd_reloc_type_lookup): Define.
234 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
235 (reloc_type{,_names}): Deleted.
236 (elf_sparc_howto_table): Deleted.
237 (sparc_reloc_map): Deleted.
238 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
239 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
240
48fd00b6
ILT
241Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
242
2300e217
ILT
243 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
244 *-*-hpux* host.
245
48fd00b6
ILT
246 * Makefile.in (program_transform_name): New variable.
247 (install): Transform library name before installing it.
248
8adca582
ILT
249Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com>
250
cbe75cb6
ILT
251 * archures.c (bfd_mach_i960_hx): Define.
252 * bfd-in2.h: Rebuild.
253 * cpu-i960.c (scan_960_mach): Accept machine "hx".
254 (MATRIX): Expand entries for HX.
255 (arch_info_struct): Add i960:hx entry.
256 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
257 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
258 (coff_set_flags): Handle bfd_mach_i960_hx.
259
44f795f7
ILT
260 Support for building as a shared library, based on patches from
261 Alan Modra <alan@spri.levels.unisa.edu.au>:
262 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
263 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
264 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
265 * configure: Rebuild.
266 * configure.host: If --enable-shared, adjust shared library stuff
267 based on the host. If the host is SunOS, and the linker supports
268 -rpath, set HLDFLAGS to use it.
269 * Makefile.in (ALLLIBS): New variable.
270 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
271 (COMMON_SHLIB, SHLINK): New variables.
272 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
273 (STAGESTUFF): Remove variable.
274 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
275 $(TARGETLIB).
276 (stamp-ofiles): New target, like old ofiles target, but build
277 using a temporary file and move-if-change, and touch stamp-ofiles
278 when done.
279 (ofiles): Just depend upon stamp-ofiles.
280 (stamp-piclist, piclist): New targets.
281 ($(SHLIB), $(SHLINK)): New targets.
282 (targets.o, archures.o): Build twice if PICFLAG is set.
283 (do_mostlyclean): Remove pic/*.o.
284 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
285 stamp-piclist.
286 (do_distclean): Remove pic and stamp-picdir.
287 (install): Install shared libraries.
288 ($(OFILES)): Depend upon stamp-picdir.
289 (stamp-picdir): New target.
290
cb62d2bc
ILT
291 * libcoff-in.h: Add comment reminding people that libcoff.h is a
292 generated file.
293 * libcoff.h: Rebuild.
294
8adca582
ILT
295 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
296 flavour of a section with no owner.
297
298 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
299 ELF_LINK_NON_ELF flag.
300 (mips_elf_create_got_section): Likewise.
301
302 * elf.c: Revert last change, since it breaks dynamic linking.
303 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
304 field.
305 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
306 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
307 (elfNN_bed): Don't initialize want_hdr_in_seg field.
308
309Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
310
311 * elf.c (assign_file_positions_for_segments): If the backend does
312 not want the elf header or the program headers in the address
313 space, do not include them in the calculations.
314
315 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
316 function to determine if we need additional program headers.
317 (ppc_elf_modify_segment_map): Define as a NOP function for now.
318 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
319
0f09ddd4
ILT
320Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com>
321
322 * coffcode.h: Move today's libcoff.h change into coffcode.h.
323
b48f10ba
FF
324Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com>
325
0f09ddd4
ILT
326 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
327 back into one line. Some compilers (sunos 4.1.3 for example)
328 won't accept args split across more than one line.
b48f10ba 329
50761d3b
SC
330Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
331
332 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
333 * configure: Regenerate.
334
9dce8260
JL
335Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com)
336
337 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
338 try to do arithmetic on a void *, cast it to a unsigned char * first.
339
6c55897c
ILT
340Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com>
341
869b7d80
ILT
342 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
343 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
344 ELF_LINK_NON_ELF.
345 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
346 flag for a newly defined symbol.
347 (NAME(bfd_elf,record_link_assignment)): Likewise.
348 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
349 set the DEF or REF_REGULAR flags correctly.
350
6f6956c6
ILT
351 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
352 (libbfd.h, libcoff.h): Corresponding change.
353
6c55897c
ILT
354 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
355 a PLT32 reloc as dynamic.
356 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
357 is not referenced by a dynamic object, and we are not making a
358 shared object, then don't make a PLT entry. If we do make a PLT
359 entry, make sure the symbol has been recorded as dynamic.
360
b06136f2
SC
361Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com>
362
363 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
364 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
365 (powerpcle-*-cygwin32): New.
366 * peicode.h (add_data_entry): Get address from vma.
367
5c867ecd
MM
368Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
369
370 * elflink.c (_bfd_elf_create_linker_section): If the symbol
371 attached to the section has already been created as an undefined
372 symbol, treat it as if it hasn't been created yet.
373
28c16b55
ILT
374Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com>
375
376 * elflink.h (elf_bfd_final_link): Don't output initial dummy
377 symbol or section symbols if stripping all symbols and this is not
378 a relocateable link. Don't output the symbol string table if
379 there are no symbols.
380 (elf_link_flush_output_syms): Don't do anything if there are no
381 symbols to flush.
382
d19df9b5
ILT
383Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
384
385 * coff-aux.c: New file.
386 * hosts/m68kaux.h: New file.
387 * config.bfd (m68*-apple-aux*): New target.
388 * configure.in (m68*-apple-aux*): New native host.
389 (m68kaux_coff_vec): New vector.
390 * configure: Rebuild.
391 * targets.c (m68kaux_coff_vec): Declare.
392 * coffcode.h (bfd_coff_backend_data): Add field
393 _bfd_coff_link_add_one_symbol.
394 (bfd_coff_link_add_one_symbol): Define.
395 (compare_arelent_ptr): New static function if TARG_AUX.
396 (coff_write_relocs): If TARG_AUX, sort the relocs.
397 (coff_write_object_contents): Set A/UX aouthdr magic number.
398 (coff_link_add_one_symbol): Define if not defined.
399 (bfd_coff_std_swap_table): Initialize new field.
400 * libcoff.h: Rebuild.
401 * cofflink.c (coff_link_add_symbols): Call
402 bfd_coff_link_add_one_symbol rather than
403 _bfd_generic_link_add_one_symbol.
404 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
405 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
406 * coff-mips.c (mips_ecoff_backend_data): Likewise.
407 * Makefile.in: Rebuild dependencies.
408 (BFD32_BACKENDS): Add coff-aux.o.
409 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
410
a796aafd
ILT
411Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
412
413 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
414 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
415
a8763553
ILT
416Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com>
417
66761e59
ILT
418 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
419 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
420 (maintainer-clean): Warn about deleting special files.
421 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
422
cf5138e3
ILT
423 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
424 warning symbols correctly.
425 * elf32-i386.c (elf_i386_relocate_section): Likewise.
426 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
427 * elf32-mips.c (mips_elf_relocate_section): Likewise.
428 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
429 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
430 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
431
a8763553
ILT
432 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
433 warnings.
434
bdd2e7f1
KK
435Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com>
436
437 * libcoff-in.h: aligned newly exported names with bfd naming
438 conventions. Removed an erroneous define of POWERPC_LE_PE.
439 * libcoff.h: Rebuild.
440 * cofflink.c, coff-ppc.c: the above function name changes
441
d2bb6c79
ILT
442Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com>
443
eb5bc1f3
ILT
444 From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
445 * ecoff.c (struct extsym_info): Define.
446 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
447 to ecoff_link_write_external.
448 (ecoff_link_write_external): Accept a struct extsym_info pointer.
449 Strip symbols when appropriate.
450
052b35d2
ILT
451 Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
452 * syms.c (BSF_OBJECT): Define.
453 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
454 * bfd-in2.h: Rebuild.
455 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
456 STT_OBJECT symbol.
457 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
458 is set.
459
53787b23
ILT
460 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
461 copying relocs into a shared object, treat a defined global symbol
462 as a local symbol.
463 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
464 * elf32-mips.c (mips_elf_relocate_section): Likewise.
465 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
466
d2bb6c79
ILT
467 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
468 real defined symbol, not to a weak defined symbol.
469
13d1a4dd
KK
470Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com>
471
472 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
473 and made a few static functions externs.
474
475 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
476 POWERPC_LE_PE hack in cofflink.
477
478 * libcoff-in.h: promoted the following from cofflink.c to allow
479 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
480 coff_debug_merge_element, struct coff_debug_merge_type,
481 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
482 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
483 coff_debug_merge_hash_lookup, coff_link_section_info,
484 coff_final_link_info, coff_debug_merge_hash_newfunc,
485 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
486
487 * libcoff.h: re-gen'd
488
86aac8ea
ILT
489Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com>
490
491 * syms.c: Include "bfdlink.h".
492 (struct stab_find_info): Define.
493 (_bfd_stab_section_find_nearest_line): New function.
494 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
495 * libbfd.h: Rebuild.
496 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
497 * elf.c (_bfd_elf_find_nearest_line): Try calling
498 _bfd_stab_section_find_nearest_line before searching the ELF
499 symbol table. Find the closest STT_FUNC symbol, not the last one.
500 * libcoff-in.h (coff_data_type): Add line_info field.
bdd2e7f1 501 * libcoff.h: Rebuild.
86aac8ea
ILT
502 * coffgen.c (coff_find_nearest_line): Try calling
503 _bfd_stab_section_find_nearest_line before searching the COFF
504 symbol table.
505 * Makefile.in: Rebuild dependencies.
506
507Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
508
509 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
510 4 bytes, so we get the correct value when updating the register
511 field in little endian mode.
512
43d36aad
ILT
513Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com>
514
f0a97077
ILT
515 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
516 entry_section fields. Add sntoc and snentry fields.
517 * libcoff.h: Rebuild.
518 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
519 not toc_section and entry_section (the COFF file does not have any
520 sections at this point).
521 (coff_write_object_contents): Set o_snentry and o_sntoc from
522 snentry and sntoc rather than entry_section and toc_section.
523 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
524 snentry, not toc_section and entry_section.
525 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
526 entry_section from hentry.
527 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
528 set snentyr.
529 (xcoff_link_input_bfd): Set sntoc, not toc_section.
530 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
531 than using toc_section directly.
532
9b4598d0
ILT
533 * archures.c: Add missing `.' in enum bfd_architecture.
534 * bfd-in2.h: Rebuild.
535
43d36aad
ILT
536 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
537 Robert Lipe <robertl@arnet.com>.
538
eb82bc60
MM
539Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
540
541 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
542 to sections we allocate. Use bfd_zalloc to allocate initialial
543 sections, not bfd_alloc.
544 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
545 SDA{,2}I16 relocations.
546 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
547 whether to put something in .sbss or not.
548 (ppc_elf_relocate_section): Add support for more relocations. Add
c1e65e24
MM
549 in sec->output_offset where appropriate. Make error messages
550 include the symbol name.
eb82bc60
MM
551
552 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
553 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
554 doesn't get redefined messages if -shared.
555
556 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
557 section if the rel_section field has been set up.
558
9d621c7d
MM
559Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
560
561 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
562 relocations.
563
75c9ddc9
DE
564Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com>
565
566 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
567 of flags, only flags used are controlled by mach number. Bump up
568 output file mach number to highest of input file mach numbers.
569 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
570 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
571
72c513bc
DE
572 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
573 bfd_elf64_sparc_vec support.
574
3cbe19d2
MM
575Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
576
577 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
578 the embedded bit is set on some objects and not on others. Just
579 or it together.
d8fd85ad
MM
580 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
581 relocations.
3cbe19d2 582
5eb83ede
ILT
583Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com>
584
4a3d3b42
ILT
585 * coffcode.h (coff_new_section_hook): Don't try to align the
586 .stabstr section.
587
5eb83ede
ILT
588 * coffcode.h (coff_set_section_contents): Fix the handling of the
589 .lib section to work even if the entire section contents are
590 written at once. From Gvran Uddeborg <gvran@uddeborg.pp.se> and
591 Robert Lipe <robertl@arnet.com>.
592
05f927dd
MM
593Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
594
595 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
596 memory here for contents.
597
598 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
599 _SDA2_BASE_ by 32768.
600 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
601 started using. Allocate contents for .sdata and .sdata2 sections
602 also.
603 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
604 rather than _name.
605 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
606 size _SDA{,2}_BASE_.
607 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
608 done.
609
5bc513b4
DE
610Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com>
611
5a5bac64
DE
612 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
613
5bc513b4 614 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
5bc513b4 615 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
5bc513b4 616 (bfd_mach_sparc_v9a): Define.
049f3d4c 617 (bfd_mach_sparc_v9_p): Define.
5bc513b4
DE
618 * bfd-in2.h: Regenerated.
619 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
620 bfd_mach_sparc_v9.
d3366d23 621 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
5bc513b4
DE
622 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
623 to bfd_elf32_sparc_vec.
624 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
5bc513b4 625 Add v8plus{,a} support.
5bc513b4 626 Add v9a support.
768b8ade 627 (sparc_compatible): New function.
5bc513b4 628 * elf32-sparc.h: #include "elf/sparc.h".
75c9ddc9 629 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
5bc513b4 630 elf32_sparc_final_write_processing): New functions.
75c9ddc9 631 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
5bc513b4 632 elf_backend_final_write_processing): Define.
5bc513b4 633
3b3753b8
MM
634Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
635
636 * elf-bfd.h (struct elf_link_hash_entry): Add
637 linker_section_pointer field.
638 (enum elf_linker_section_enum): Enumeration for new way of
639 creating linker dynamic sections and symbols.
640 (elf_linker_section{,_pointers}): New structures for creating
641 dynamic sections and symbols.
642 (elf_obj_tdata): Add linker_section_pointers and linker_section
643 fields.
644 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
645 (_bfd_elf_create_linker_section): New declarations.
646 (_bfd_elf_find_pointer_linker_section): Ditto.
647 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
648 (_bfd_elf_make_linker_section_rela): Ditto.
649
650 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
651
652 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
653 (ppc_elf_create_linker_section): New function to create the
654 sections .got, .sdata, and .sdata2.
655 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
656 needed.
657 (ppc_elf_check_relocs): Support more of the eabi relocations.
658 (ppc_elf_relocate_section): Ditto.
659 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
660 if the .sdata{,2} + .sbss{,2} section size is > 32k.
661
662 * elflink.h (elf_create_pointer_linker_section): New function to
663 create initialized pointers in dynamic linker sections.
664 (elf_finish_pointer_linker_section): Actually intialize the
665 pointers created above.
666
667 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
668 macros to provide both 32 and 64 bit versions of
669 elf_create_pointer_linker_section.
670 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
671 provide both 32 and 64 bit versions of
672 elf_finish_pointer_linker_section.
673
674 * elflink.c (_bfd_elf_create_linker_section): New function to
675 create a linker section.
676 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
677 given address in the linker pointer offsets created for a given
678 symbol.
679 (_bfd_elf_make_linker_section_rela): Make a RELA section
680 corresponding to the generated linker section.
681
6b3eb07e
DE
682Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com>
683
684 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
685
e7894f6b
KK
686Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com>
687
688 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
689 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
690 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
691 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
692 toc entry in an objdump) for now.
693 (ppc_do_last, ppc_get_last): New function - needed to save processing
694 the toc owner to the end.
695 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
696 toc owner last.
697
698 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
699 toc owner from being done till last. Must define POWERPC_LE_PC
700 to enable it.
701
702 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
703
704 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
705 to INFO.
706 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
707 SizeOfImage for PowerPC. Ignore the size of the .junk section.
708
80b99ca0
ILT
709Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
710
711 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
712
df96df4c
ILT
713Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
714
715 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
716 back to first.
717 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
718
d49ddb85
ILT
719Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com>
720
721 * elf.c (assign_file_positions_for_segments): Don't increment file
722 offset for a segment which contains no loadable sections.
723
4500a112
MM
724Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
725
726 * reloc.c: Add new PowerPC relocations.
727 * {bfd-in2,libbfd}.h: Regenerate.
728
729 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
730 (ppc_elf_reloc_type_lookup): Lookup new relocations.
731
252239f8
ILT
732Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com>
733
20ab764e
ILT
734 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
735 entries.
736
0a4ffa2d
ILT
737 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
738 info->shared.
739
45ca3195
ILT
740 * coffgen.c (coff_find_nearest_line): Don't try to cache
741 information in sections that are not owned by a BFD. From Richard
742 Henderson <richard@atheist.tamu.edu>.
743
252239f8
ILT
744 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
745 from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
746 * elflink.h (elf_link_output_extsym): Remove special check for
747 _rld_new_interface.
748
749 * ecoffswap.h: Add prototypes for static functions.
750
bd2d10c0
MM
751Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
752
753 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
754 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
755 references.
756 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
757 to satisfy a TOC16 relocation. Rewrite unsupported relocation
758 support. Begin support for R_PPC_SDA{2,}REL.
759
1c3a295b
MM
760Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
761
762 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
763 create the .got and .got.neg sections.
764 (ppc_elf_size_dynamic_sections): Call it.
765 (ppc_elf_check_relocs): Call it.
766 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
767 (ppc_elf_check_relocs): Add error messages for relocations we
768 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
769 relocation.
770
57081126
MM
771Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
772
773 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
774 section flags for V.4 and eabi.
775
3c38b3df
ILT
776Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com>
777
14899eb7
ILT
778 * elf.c (assign_file_positions_for_segments): If a segment
779 contains no sections, don't mark it as readable.
780
98bb57ad
ILT
781 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
782 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
783
02fcd126
ILT
784 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
785 dynamic section, if there is one.
786 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
787 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
788 (bfd_elf64_swap_dyn_in): Likewise.
789 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
790 PTR.
791 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
792
3c38b3df
ILT
793 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
794 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
795 <pirker@eiunix.tuwien.ac.at>.
796
83f4323e
MM
797Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
798
799 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
800 PowerPC V.4 and eabi.
801 * bfd-in2.h: Regenerate.
802 * libfd.h: Regenerate.
803
804 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
805
806 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
807 section type and SHF_EXCLUDE section flag, turning them into the
808 appropriate bfd section flag.
809
a0271667
ILT
810Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
811
c9746fb6
ILT
812 * xcofflink.c (xcoff_link_add_symbols): Create the special
813 sections if we see a DYNAMIC object, in case that is the only
814 XCOFF input object we see.
815
5b3b9ff6
ILT
816 * elf32-mips.c: Extensive changes for a start at dynamic linking
817 support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
818
819 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
820 (struct elf_backend_data): Remove
821 elf_backend_create_program_headers field. Add
822 elf_backend_additional_program_headers and
823 elf_backend_modify_segment_map fields.
824 * elfxx-target.h (elf_backend_type_change_ok): Define if not
825 defined.
826 (elf_backend_additional_program_headers): Likewise.
827 (elf_backend_modify_segment_map): Likewise.
828 (elf_backend_create_program_headers): Don't define.
829 (elfNN_bed): Change to account for field changes.
830 * elf.c (assign_file_positions_for_segments): Call new
831 modify_segment_map backend function. Don't call old
832 create_program_headers backend function.
833 (get_program_header_size): Call additional_program_headers rather
834 than create_program_headers.
835 * elflink.h (elf_link_add_object_symbols): Initialize
836 type_change_ok from new backend field.
837 (elf_link_output_extsym): Don't warn if _rld_new_interface is
838 defined.
839 (elf_reloc_link_order): Treat a reloc against a defined symbol as
840 a reloc against the appropriate section.
841
761f377f
ILT
842 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
843 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
844 (elf_flags_init): Rename from elf_ppc_flags_init.
845 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
846 elf_ppc_flags_init.
847 (ppc_elf_copy_private_bfd_data): Likewise.
848 (ppc_elf_merge_private_bfd_data): Likewise.
849
a0271667
ILT
850 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
851 relocation entries.
852
64d5f5d0
ILT
853Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
854
855 * coff-alpha.c (alpha_relocate_section): During final link, allow
856 output .lita section to be bigger than 64k by adjusting gp value
857 on a per-input section basis.
858 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
859 field.
860 (struct ecoff_section_tdata): Add gp field.
861
c40d9c77
ILT
862Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com>
863
64d5f5d0
ILT
864 Handle Alpha ECOFF changes in OSF/1 3.2.
865 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
866 field.
867 * coff-alpha.c: Include "aout/ar.h".
868 (alpha_ecoff_get_relocated_section_contents): Don't require an
869 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
870 3.2 doesn't generate one.
871 (alpha_relocate_section): Likewise.
872 (alpha_ecoff_slurp_armap): Define.
873 (alpha_ecoff_slurp_extended_name_table): Define.
874 (alpha_ecoff_construct_extended_name_table): Define.
875 (alpha_ecoff_truncate_arname): Define.
876 (alpha_ecoff_write_armap): Define.
877 (alpha_ecoff_generic_stat_arch_elt): Define.
878 (alpha_ecoff_update_armap_timestamp): Define.
879 (ARFZMAG): Define.
880 (alpha_ecoff_read_ar_hdr): New static function.
881 (alpha_ecoff_get_elt_at_filepos): New static function.
882 (alpha_ecoff_openr_next_archived_file): New static function.
883 (alpha_ecoff_get_elt_at_index): New static function.
884 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
885 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
886 _bfd_ecoff to alpha_ecoff.
887 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
888 field from backend structure, rather than always calling
889 _bfd_get_elt_at_filepos.
890 * coff-mips.c (mips_ecoff_backend_data): Initialize
891 get_elt_at_filepos field.
892 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
893 from _bfd_generic_read_ar_hdr with minor changes.
894 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
895 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
896 * libbfd.h: Rebuild.
897
898 * bfd-in.h (BFD_IN_MEMORY): Define.
899 * libbfd-in.h (struct bfd_in_memory): Define.
900 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
901 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
902 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
903 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
904 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
905 (bfd_get_size): Handle BFD_IN_MEMORY flag.
906 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
907 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
908 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
909 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
910 iostream.
911 (bfd_openstreamr): Likewise.
912 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
913 BFD_IN_MEMORY is not set.
914 * riscix.c (riscix_some_aout_object_p): Likewise.
915 * bfd-in2.h, libbfd.h: Rebuild.
916
917 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
918 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
919 (bfd_get_elt_at_index): Define.
920 * archive.c (_bfd_generic_get_elt_at_index): Rename from
921 bfd_get_elt_at_index. Change index parameter from int to
922 symindex.
923 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
924 (_bfd_noarchive_get_elt_at_index): Define.
925 (_bfd_archive_bsd_get_elt_at_index): Define.
926 (_bfd_archive_coff_get_elt_at_index): Define.
927 * bfd-in2.h, libbfd.h: Rebuild.
928 * aout-target.h (MY_get_elt_at_index): Define if not defined.
929 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
930 * ieee.c (ieee_get_elt_at_index): Define.
931 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
932 * oasys.c (oasys_get_elt_at_index): Define.
933 * som.c (som_get_elt_at_index): Define.
934
c40d9c77
ILT
935 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
936 numbers to the .text section.
937
efa77952
ILT
938Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com>
939
940 * ieee.c (ieee_write_debug_part): Change return type to boolean.
941 If there is a SEC_DEBUGGING section, get the contents of the debug
942 information part from it.
943 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
944 section in memory.
945 (ieee_write_object_contents): Check ieee_write_debug_part return.
946
767f22d5
FF
947Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com>
948
949 * config.bfd (i[345]86-*-freebsd*): Add target.
950 * configure.in (i386freebsd_vec): Add vec.
951 * configure: Regenerate.
952 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
953 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
954 Rebuild dependencies..
955 * freebsd.h: New file.
956 * i386freebsd.c: New file.
957 * targets.c (i386freebsd_vec): Declare.
958 (bfd_target_vector): Add i386freebsd_vec.
959 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
960 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
961
f8254a3c
ILT
962Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com>
963
964 * ieee.c (ieee_slurp_debug): New static function.
965 (ieee_object_p): Call it.
966 (ieee_slurp_section_data): Skip debugging sections.
967 (ieee_get_reloc_upper_bound): Likewise.
968 (ieee_get_section_contents): Likewise.
969 (ieee_canonicalize_reloc): Likewise.
970 (ieee_write_section_part): Likewise.
971 (ieee_write_debug_part): Likewise.
972 (ieee_write_data_part): Likewise.
973 (init_for_output): Likewise.
974
07a159db
MM
975Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net>
976
977 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
978 work.
979 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
980 relocs, since ppc_elf_relocate_section handles the linker case.
981 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
982 used.
983 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
984 ppc_elf_relocate_section since that is now the only caller.
985 (ppc_elf_relocate_section): Ditto.
986
d812945a
ILT
987Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
988
989 * coffcode.h (coff_write_object_contents): If we don't know the
990 section of the entry point for an XCOFF executable, always set the
991 entry address to -1.
992
3a56d0b4
MM
993Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
994
995 * elf.c (bfd_section_from_shdr): Add support for note sections.
996
c4406e50
ILT
997Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
998
d812945a
ILT
999 * bfd-in.h (struct _symbol_info): Add stab_type field.
1000 * bfd-in2.h: Rebuild.
1001 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
1002
c4406e50
ILT
1003 * elf32-ppc.c: Remove trailing newline from calls to
1004 _bfd_error_handler.
1005 (ppc_elf_merge_private_bfd_data): Only warn about endianness
1006 difference if target endianness is known.
1007
08556813
MM
1008Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1009
1010 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
1011 old style TOC16 references without using R_PPC_GOT.
1012 (ppc_reloc_type): Ditto.
1013 (ppc_elf_reloc_type_lookup): Add support for TOC16.
1014 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
1015 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
1016 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
1017 (ppc_elf_check_relocs): New function for GOT/PLT support that is
1018 work in progress.
1019 (ppc_elf_adjust_dynamic_symbol): Ditto.
1020 (ppc_elf_adjust_dynindx): Ditto.
1021 (ppc_elf_size_dynamic_sections): Ditto.
1022 (ppc_elf_finish_dynamic_symbol): Ditto.
1023 (ppc_elf_finish_dynamic_sections): Ditto.
1024 (ELF_DYNAMIC_INTERPRETER): Define.
1025
86587dd4
KR
1026Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com>
1027
1028 * elf.c (copy_private_bfd_data): When attaching sections to
1029 segments ignore sections that won't be allocated. Patch from
1030 Andreas Schwab.
1031
bf7f243f
KR
1032Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com>
1033
1034 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
1035 anything else.
1036
d9518e2e
ILT
1037Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com>
1038
1039 * coff-i960.c (CALC_ADDEND): Define.
1040 (coff_i960_relocate_section): Add the input section VMA to the
1041 addend for PC relative relocs.
1042
1043Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com>
1044
1045 * peicode.h (pe_print_pdata): Must test the entire entry for zero
1046 to correctly terminate.
1047
010a405a
ILT
1048Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com>
1049
dc092b6b
ILT
1050 * targets.c (enum bfd_endian): Define.
1051 (bfd_target): Rename byteorder_big_p to byteorder, and change it
1052 from boolean to enum bfd_endian. Change header_byteorder_big_p
1053 correspondingly.
1054 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
1055 (bfd_header_big_endian, bfd_header_little_endian): New macros.
1056 * bfd-in2.h: Rebuild.
1057 * All targets: Change initialization of byteorder and
1058 header_byteorder to use enum bfd_endian values rather than
1059 booleans.
1060 * All files: Change all references to byteorder_big_p and
1061 header_byteorder_big_p to use new bfd_*_endian macros.
1062
010a405a
ILT
1063 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
1064 s_vaddr.
1065 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
1066 vma.
1067 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
1068
fcb43906
SC
1069Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com>
1070
1071 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
1072
0d709d31
ILT
1073Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com>
1074
14578105
ILT
1075 * ieee.c: Lots of minor cleanups. Make many functions return
1076 errors rather than calling abort. Also:
1077 (ieee_write_twobyte): Remove; change callers to call existing
1078 ieee_write_2bytes function.
1079 (ieee_write_expression): Don't output the section twice when
1080 outputting a local symbol. Don't emit an extraneous zero if there
1081 is only one term.
1082 (ieee_slurp_sections): Set the lma as well as the vma.
1083 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
1084
0d709d31
ILT
1085 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
1086 a recognized one or bfd_arch_unknown.
1087 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
1088 to succeed.
1089 (ihex_get_symtab): Likewise.
1090
14dc2f77
ILT
1091Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com>
1092
1093 * aoutx.h: Include <ctype.h>.
1094 (struct aout_link_includes_table): Define.
1095 (struct aout_link_includes_totals): Define.
1096 (struct aout_link_includes_entry): Define.
1097 (aout_link_includes_lookup): Define macro.
1098 (struct aout_final_link_info): Add includes field.
1099 (aout_link_includes_newfunc): New static function.
1100 (NAME(aout,final_link)): Initialize includes hash table.
1101 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
1102
480ccad5
SS
1103Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com>
1104
1105 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
1106
3920d9c9
KK
1107Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com>
1108
1109 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
1110
207345f2
KK
1111Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com>
1112
1113 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
1114 (pe_print_private_bfd_data): call pe_print_reloc.
1115 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
1116 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
1117 up some debugging as well.
1118
273c019e
ILT
1119Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com>
1120
1121 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
1122 <rfg@monkeys.com>.
1123
010d9f2d
ILT
1124Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com>
1125
1126 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
1127 when setting sections to NULL.
1128
4a4a66bd
ILT
1129Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com>
1130
1131 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
1132 field.
1133 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
1134 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
1135 for all symbols.
1136 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
1137 * bfd-in2.h: Rebuild.
1138
545bf026
KK
1139Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com>
1140
1141 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
1142
1f4ae0d6
ILT
1143Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com>
1144
55cac920
ILT
1145 * ihex.c (ihex_scan): Handle record types 4 and 5.
1146 (ihex_object_p): Permit types 4 and 5.
1147 (ihex_set_section_contents): Remove check for out of range
1148 addresses.
1149 (ihex_write_object_contents): Generate types 4 and 5.
1150
1f4ae0d6
ILT
1151 * elflink.h (elf_link_output_extsym): Just ignore warning and
1152 indirect references to symbols which don't really exist.
1153
53d45489
KK
1154Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com>
1155
1156 * peicode.h (pe_print_idata): Minor format fixes
1157 (pe_print_edata): New function. Under private printing, this formats
1158 the edata section of a PE file.
1159 (pe_print_private_bfd_data): Added call to pe_print_edata.
1160
361e8876
DE
1161Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
1162
1163 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
1164 index, don't call stoi.
1165
58142f10
ILT
1166Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com>
1167
ffd15489
ILT
1168 * srec.c (srec_scan): Set lma as well as vma.
1169
1170 * ihex.c: New file; support for Intel Hex format.
1171 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
1172 (ihex_vec): Declare.
1173 (bfd_target_vector): Always include ihex_vec.
1174 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
1175 * Makefile.in: Rebuild dependencies.
1176 (BFD_LIBS): Add ihex.o
1177 (BFD_LIBS_CFILES): Add ihex.c.
1178 * bfd-in2.h: Rebuild.
1179
ae0a6bea
ILT
1180 * elf.c (assign_file_positions_for_segments): Sort the sections in
1181 each segment.
1182 (get_program_header_size): Return the right size if segment_map is
1183 not NULL.
1184 (copy_private_bfd_data): Don't bother to sort the sections.
1185
1186 * bfd.c (bfd_record_phdr): New function.
1187 * bfd-in.h (bfd_record_phdr): Declare.
1188 * bfd_in2.h: Rebuild.
1189
ce0ee4bf
ILT
1190 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
1191 BFD_ASSERT.
1192
58142f10
ILT
1193 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
1194 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
1195 bfd_size_type.
1196 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
1197 (bfd_zmalloc): Change declaration.
1198 * libbfd.h: Rebuild.
1199 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
1200 and realloc. Don't set bfd_error_no_memory if they fail.
1201
59066248
KK
1202Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com>
1203
1204 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
1205 uses as well. Added a new howto to deal with TOCREL16 relocs that
1206 are TOCDEFN as well.
1207 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
1208 to handle RVA relocs from dlltool.
1209 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
1210 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
1211 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
1212
1213 * coffcode.h (coff_set_alignment_hook): check idata$X sections
1214 to get the right section alignment.
1215
6933148a
ILT
1216Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com>
1217
1218 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1219 p_paddr if p_paddr is zero.
1220 (make_mapping): Set includes_filehdr and includes_phdrs for first
1221 PT_LOAD segment.
1222 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
1223 segment.
1224 (assign_file_positions_for_segments): Handle includes_filehdr and
1225 includes_phdrs. Remove special handling of PT_PHDR and first
1226 PT_LOAD segments.
1227 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
1228 when appropriate. Remove special handling of PT_PHDR segment.
1229 Use a more complex condition for when a section is included in a
1230 segment to handle Solaris linker oddities.
1231
f62fed1c
ILT
1232Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1233
1234 * coff-m88k.c (howto_table): Reformatted for easier reading;
1235 special_function now points to new function m88k_special_reloc.
1236 (howto_hvrt16): Function previously used for handling HVRT16 relocs
1237 removed.
1238 (rtype2howto): Do not add reloc's r_offset to the addend, this will
1239 be done correctly by m88k_special_reloc.
1240 (reloc_processing): New function to be used by RELOC_PROCESSING.
1241 (RELOC_PROCESSING): Define to call reloc_processing.
1242
64ecde46
ILT
1243Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
1244
b00c57ec
ILT
1245 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
1246 (pe_print_pdata): Likewise.
1247
a9713b91
ILT
1248 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
1249 obstack_alloc fails.
1250 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
1251 fails.
1252 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
1253 * Many files: don't set bfd_error_no_memory if one of the above
1254 routines fails.
1255
3dbf33ee
ILT
1256 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
1257 if p_paddr_valid is set.
1258 (copy_private_bfd_data): New static function.
1259 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
1260
44ef8897
ILT
1261 * elf.c (assign_file_positions_for_segments): Fix case where extra
1262 program headers were allocated.
1263
27fb8f29
ILT
1264 * elf.c (_bfd_elf_print_private_bfd_data): New function.
1265 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
1266 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
1267 _bfd_elf_print_private_bfd_data.
1268
64ecde46
ILT
1269 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
1270 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
1271 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
1272 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
1273 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
1274 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
1275 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
1276
fd0198f0
ILT
1277Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
1278
1279 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
1280 * elf.c (make_mapping): New static function.
1281 (map_sections_to_segments): New static function.
1282 (elf_sort_sections): New static function.
1283 (assign_file_positions_for_segments): New static function.
1284 (map_program_segments): Remove.
1285 (get_program_header_size): Remove sorted_hdrs, count, and
1286 maxpagesize parameters. Simplify.
1287 (assign_file_positions_except_relocs): When generating an
1288 executable, use assign_file_positions_for_segments.
1289 (elf_sort_hdrs): Remove.
1290 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
1291 to get_program_header_size.
1292
3b3f7625
ILT
1293Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
1294
1ff0461b
ILT
1295 * hp300hpux.c (MY(callback)): Set lma as well as vma.
1296
80c8485c
ILT
1297 * configure, config.in: Regenerate with autoconf 2.7.
1298
3b3f7625
ILT
1299 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
1300 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
1301
fa63d1ef
ILT
1302Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
1303
a877f591
ILT
1304 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
1305 (ecoff_sec_to_styp_flags): Likewise.
1306 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
1307 (ecoff_set_symbol_info): Handle scRConst.
1308 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
1309 (ecoff_compute_section_file_positions): Handle .rconst section.
1310 (_bfd_ecoff_write_object_contents): Likewise.
1311 (ecoff_link_check_archive_element): Handle scRConst.
1312 (ecoff_link_add_externals): Likewise.
1313 (ecoff_link_write_external): Handle .rconst section.
1314 (ecoff_reloc_link_order): Likewise.
1315 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
1316 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
1317 section.
1318 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
1319
fa63d1ef
ILT
1320 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
1321 DEF_DYNAMIC flag is set.
1322
25bada65
KR
1323Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
1324
1325 * host-aout.c: If TRAD_HEADER is defined, include it.
1326
7938b4cb
ILT
1327Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
1328
85e493f0
ILT
1329 * aclocal.m4 (AC_PROG_CC): Remove local definition.
1330 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
1331 (BFD_NEED_DECLARATION): New function.
1332 * configure.in: Use BFD_NEED_DECLARATION.
bd77213b
ILT
1333 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
1334 * configure, config.in: Rebuild with autoconf 2.6.
85e493f0 1335
83dcdc61
ILT
1336 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
1337 special_sections before returning when called with a non XCOFF
1338 BFD.
1339
7938b4cb
ILT
1340 * coffgen.c (coff_renumber_symbols): Sort common symbols with
1341 global symbols.
1342
1343 * coffcode.h (coff_compute_section_file_positions): Only pad the
1344 previous section to force file alignment when creating an
1345 executable.
1346
b5403ad7
ILT
1347Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
1348
a418e05d
ILT
1349 * coffcode.h (coff_compute_section_file_positions): If
1350 RS6000COFF_C, set up the .debug section.
1351
b5403ad7
ILT
1352 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
1353 if it is not large enough to accomodate the entire TOC area with
1354 signed 16 bit offsets.
1355 (xcoff_write_global_symbol): Handle negative TOC offsets in global
1356 linkage code.
1357 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
1358 TOC anchor to use the TOC value used in the output file.
1359
90a7abbc
ILT
1360Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
1361
1362 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
1363 (_bfd_coff_read_string_table): Likewise.
1364
177b1932
DE
1365Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
1366
1367 * pe-arm.c: Fix typos.
1368 * coff-arm.c: Likewise.
1369
1370Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
1371
1372 * coff-ppc.c (list_ele): Added "cat"egory member.
1373 (record_toc): New category parameter (priv or pub).
1374 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
1375 (ppc_process_before_allocation): Removed embrionic data-in-toc from
1376 the mainline. It addes extra toc cells in error.
1377 (ppc_coff_swap_sym_in_hook): Added some documentation.
1378 (dump_toc): Can now diagnose "virtual toc" chicanery.
1379
e34314c4
ILT
1380Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
1381
1382 * elf-bfd.h (struct elf_link_hash_table): Change type of
1383 dynsymcount and bucketcount fields from size_t to bfd_size_type.
1384
73a68447
ILT
1385Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
1386
535e9e29
ILT
1387 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
1388 pointerize C_LEAFSTAT or C_LEAFEXT entries.
1389
73a68447
ILT
1390 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
1391 DT_INIT and DT_FINI entries if the _init or _fini symbol is
1392 defined or mentioned in a regular file.
1393
cd2b2402
KK
1394Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
1395
1396 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
1397 (coff_ppc_relocate_section): Handle TOCDEFN attribute
1398 (coff_ppc_relocate_section): Correct REL24 handling
1399 (ppc_process_before_allocation): Correct TOCDEFN handling
1400
1401 * peicode.h (dir_names): Added name descriptions
1402
b218076e
KR
1403Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
1404
1405 * VERSION: Updated to cygnus-2.6.
1406
1407Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
1408
1409 * targets.c (m68k4knetbsd_vec): Declare.
1410
e9f30616
ILT
1411Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
1412
1413 * targets.c (bfd_target): Change type of second argument to
1414 _bfd_print_private_bfd_data from void * to PTR.
1415 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
1416 using PTR rather than void *.
1417 * bfd-in2, libbfd.h: Rebuild.
1418 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
1419 to PTR.
1420 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
1421 _bfd_generic_bfd_print_private_bfd_data rather than casting
1422 bfd_true.
1423
ae75c4a4
KR
1424Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
1425
1426 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
1427 "DO NOT DELETE" lines or blank lines that mkdep writes on some
1428 systems.
1429 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
1430 BFD64_BACKENDS_CFILES): New variables.
1431 (CFILES): Use them.
1432
bebcd3db
ILT
1433Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
1434
4b71e164
ILT
1435 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
1436 not at the file position of the first section.
1437 * coffcode.h (coff_compute_section_file_positions): Avoid using
1438 unportable #elif.
1439 (coff_write_object_contents): When generating a PPC PE executable
1440 with no symbols, round up the file size to a COFF_PAGE_SIZE
1441 boundary.
1442 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
1443 don't write out a string table.
1444
631b10f4
ILT
1445 * elf.c (bfd_section_from_shdr): When using a different section
1446 header, pass the new one to _bfd_elf_make_section_from_shdr.
1447 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
1448 (elf_map_symbols): Add section VMA to symbol value when comparing
1449 against 0.
1450 (_bfd_elf_compute_section_file_positions): Only build symbol table
1451 if there are some symbols. Set file offset of symtab and strtab
1452 sections.
1453 (assign_file_positions_except_relocs): Remove dosyms parameter.
1454 Change all callers. Never set file offset of symtab and strtab
1455 sections.
1456 (_bfd_elf_copy_private_section_data): New function.
1457 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
1458 (_bfd_elf_copy_private_symbol_data): New function.
1459 (swap_out_syms): Check for special mapping of st_shndx created by
1460 copy_private_symbol_data.
1461 * elfxx-target.h: Use new copy routines.
1462 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
1463 (_bfd_elf_copy_private_section_data): Declare.
1464
1465 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
1466
1467 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
1468 C_NT_WEAK.
1469
bebcd3db
ILT
1470 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
1471 _bfd_dummy_target, matching the recent change to archive
1472 recognition.
1473
7ad4ba81
ILT
1474Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
1475
afa67334
ILT
1476 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
1477 arithmetic on PTR types.
1478
f2bd8915
ILT
1479 * aout-target.h (MY(callback)): Set the lma of the sections.
1480
7ad4ba81
ILT
1481 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
1482 symbol into a reloc against the section.
1483
93b6a3f8
KK
1484Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
1485
1486 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
1487 glue for the relocs: IMGLUE and IFGLUE.
1488 (record_toc): new function - tracks toc contents
1489 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
1490 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
1491 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
1492 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
125d37c4 1493 (ppc_record_toc_entry): Removed a debug define (duh)
93b6a3f8
KK
1494
1495 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
1496 (pe_print_idata): New function - formats the idata section data
1497 (pe_print_pdata): New function - formats the pdata section data
1498 (pe_print_private_bfd_data): calls to above
1499
c769947b
SS
1500Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
1501
1502 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
1503 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
1504 TARGET_SYM and TARGET_NAME for vector and BFD name.
1505 * coff-pmac.c (pmac_xcoff_vec): Remove.
1506 (TARGET_SYM, TARGET_NAME): Define.
1507 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
1508 machine to 0, not all PowerMacs are 601s.
1509
1510Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
1511
1512 * elfcode.h (elf_object_p): Read in any program headers.
1513 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
1514 based on the program headers, if any.
1515 (elf_fake_sections): Set sh_addr from the vma, not the lma.
1516 (map_program_segments): Set p_paddr of program headers based on
1517 the lma.
1518
ee174815
ILT
1519Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
1520
839087b7
ILT
1521 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
1522 failure.
1523
922530a6
ILT
1524 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
1525 trying to do a relocateable link with a non-a.out object file.
1526
1527 * archive.c (bfd_generic_archive_p): Check the first object file
1528 in an archive even if target_defaulted is set. If the object file
1529 has the wrong xvec, reject it.
1530
a1774c51
ILT
1531 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
1532 be represented, report the name via _bfd_error_handler.
1533 (translate_to_native_sym_flags): Likewise.
1534 * elf32-mips.c (mips_elf_final_link): Likewise.
1535 * oasys.c (oasys_write_sections): Likewise.
1536
4a378b13
ILT
1537 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
1538 which checks for STYP_OVRFLO sections.
1539 (coff_compute_section_file_positions): If RS6000COFF_C, handle
1540 reloc and lineno count overflows.
1541 (coff_write_object_contents): Call coff_count_linenumbers before
1542 coff_compute_section_file_positions. If RS6000COFF_C, handle
1543 reloc and lineno count overflows.
1544 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
1545 relocs before dealing with .pad sections. Count overflow section
1546 headers when handling .pad sections.
1547
7906bf87
ILT
1548 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
1549 if RS6000COFF_C.
1550
ee174815
ILT
1551 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
1552 (struct xcoff_link_hash_table): Add descriptor_section and
1553 special_sections fields.
1554 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
1555 (xcoff_link_add_symbols): Set linkage section alignment. Create
1556 descriptor section. Check for magic symbol names (_text, etc.),
1557 and record them in special_sections if found. Set
1558 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
1559 descriptor field to point back to the function code symbol.
1560 (xcoff_sweep): Always mark the special descriptor_section.
1561 (bfd_xcoff_export_symbol): Check whether the symbol might be a
1562 function descriptor, and mark it if it is.
1563 (bfd_xcoff_size_dynamic_sections): Add new special_sections
1564 parameter, and fill it in. Allocate space for the descriptor
1565 section.
1566 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
1567 global linkage code. If an undefined function descriptor is
1568 exported, arrange to define it. Warn about any other undefined
1569 exported symbol.
1570 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
1571 (xcoff_write_global_symbol): Create a function descriptor when
1572 necessary.
1573 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
1574 * bfd-in2.h: Rebuild.
1575
0e829f18
KK
1576Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
1577
1578 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
1579 (ppc_coff_link_hash_table): new types for hashing
1580 (ppc_coff_link_hash_newfunc): hash entry constructor
1581 (ppc_coff_link_hash_table_init): hash table initializer
1582 (ppc_coff_link_hash_table_create): hash table constructor
1583 (ppc_record_toc_entry): changed references to hash table
1584 (coff_ppc_relocate_section): changed references to hash table
1585
1586 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
1587 * libcoff.h: Rebuild
1588
1589 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
1590 (coff_link_add_symbols): removed toc_offset init
1591
7ac84736
KR
1592Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
1593
b27cc4bc
KR
1594 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
1595 first.
1596
7ac84736
KR
1597 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
1598 if it is given and mmep is available.
1599 * acconfig.h: Undef USE_MMAP.
1600 * configure, config.in: Regenerated.
1601 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
1602 table handling the old way.
1603 (aout_get_external_symbols): Don't complain if last byte of string
1604 table is nonzero.
1605 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
1606 (bfd_free_window) [! USE_MMAP]: Don't define.
1607 (bfd_get_file_window,
1608 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
1609
1b3b0c03
ILT
1610Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
1611
1612 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
1613 0xffff0000.
1614
092abcdf
ILT
1615Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
1616
33698029
ILT
1617 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
1618 compatible with AMD generated COFF files. Try to support both AMD
1619 and GNU formats simultaneously.
1620 (coff_a29k_relocate_section): Likewise.
1621
0bb8ff19
ILT
1622 * libbfd.c (bfd_get_file_window): Change writable parameter from
1623 int to boolean; update all callers. Pass MAP_SHARED if not
1624 writable--it's required on Solaris. Cast fprintf argument to
1625 avoid warning.
1626 * bfd-in.h (bfd_get_file_window): Update declaration.
1627 * bfd-in2.h: Rebuild.
1628 * aoutx.h: Update calls to bfd_get_file_window.
1629
0634a431
ILT
1630 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
1631 Change all uses.
1632 (xcoff_swap_ldhdr_in): New static function.
1633 (xcoff_swap_ldsym_in): New static function.
7812bf9c 1634 (xcoff_find_reloc): Handle the case of a single reloc correctly.
0634a431
ILT
1635 (xcoff_link_add_symbols): If we just created a descriptor, pass it
1636 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
417acf22 1637 Handle XTY_ER/XMC_XO symbols correctly.
0634a431
ILT
1638 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
1639 rather than normal symbol table.
417acf22
ILT
1640 (bfd_xcoff_import_symbol): It's not an error if the symbol is
1641 already defined with the same absolute value.
0634a431
ILT
1642 (xcoff_mark): When considering called symbols, check whether the
1643 descriptor is from a dynamic object, rather than the symbol
1644 itself.
1645 (xcoff_build_ldsyms): Likewise.
1646
092abcdf
ILT
1647 * libbfd.c (bfd_get_file_window): Change return type to boolean.
1648 Cast realloc and malloc return values. If malloc or realloc fail,
1649 set bfd_error_no_memory.
1650 * bfd-in.h (bfd_get_file_window): Change type to boolean.
1651 * bfd-in2.h: Rebuild.
1652
d6f41a7d
KK
1653Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
1654
1655 * coff-ppc.c (ppc_record_toc_entry): new function.
1656 (in_reloc_p): changed return value.
1657 (coff_ppc_relocate_section): much rework.
1658 (ppc_allocate_toc_section): new function.
1659 (ppc_process_before_allocation): new function.
1660 (ppc_coff_swap_sym_in_hook): new function.
1661
1662 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
1663 (coff_link_add_symbols): initialize toc_offset.
1664
1665 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
1666 (coff_swap_aouthdr_out): Added more sections to the data
1667 dictionary for the pe file header. Also changed linker version
1668 number on the ppc side.
1669 (dir_names): small improvements to the dictionary printing.
1670 (pe_mkobject_hook): save the file level flags.
1671
1672 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
1673 (pe_tdata): added real_flags field
1674 (coff_tdata): added local_toc_sym_map and access macro
1675
1676 * libcoff.h (coff_link_hash_entry): added toc_offset field
1677 (pe_tdata): added real_flags field
1678 (coff_tdata): added local_toc_sym_map and access macro
1679
1680 * coffcode.h (coff_set_alignment_hook): added hook for PE.
1681 (coff_mkobject): init for local_toc_sym_map
1682 (coff_write_object_contents): set the internal_a.magic to
1683 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
1684 ppc compilers use.
1685
6bc200f2
ILT
1686Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
1687
c0971298
ILT
1688 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
1689 entries until both the line number address and the function name
1690 address are too large.
1691
6a468850
ILT
1692 * configure.in: Call AC_CHECK_PROG to find and cache AR.
1693 * configure: Rebuilt.
1694
6bc200f2
ILT
1695 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
1696 is defined in the environment.
1697
c44bf94c
JL
1698Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
1699
1700 * som.c (som_get_section_contents_in_window): Define to use
1701 generic version.
1702
cf587de8
ILT
1703Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
1704
1705 * coff-i860.c: New file, based on coff-i386.c.
1706 * cpu-i860.c: New file, based on cpu-i386.c.
1707 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
1708 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
1709 targets, using i860coff_vec.
1710 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
1711 trad-core.o and hosts/i860mach3.h.
1712 (i860coff_vec): Use coff-i860.o and cofflink.o.
1713 * configure: Rebuild.
1714 * Makefile.in: Rebuild dependencies.
1715 (ALL_MACHINES): Add cpu-i860.o.
1716 (BFD32_BACKENDS): Add coff-i860.o.
1717 (CFILES): Add cpu-i860.c and coff-i860.c.
1718 * targets.c (i860coff_vec): Declare.
1719 (bfd_target_vector): Add &i860coff_vec.
1720 * archures.c (bfd_i860_arch): Declare.
1721 (bfd_archures_list): Add &bfd_i860_arch.
1722 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
1723 (coff_set_flags): Handle bfd_arch_i860.
1724 (coff_write_object_contents): Handle I860 a.out magic number.
1725
83c23fca
ILT
1726Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
1727
1728 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
1729 the created .tc section to 2.
1730 (xcoff_mark): Don't keep a .loader reloc for a call to an
1731 undefined symbol when creating a shared library.
1732 (xcoff_build_ldsyms): When creating a shared library, generate
1733 global linkage code for a call to an undefined symbol.
1734
5d9eb9c3
KR
1735Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
1736
1737 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
1738 BFD32_BACKENDS, BFD64_BACKENDS.
1739 (.dep1): Put mkdep output in a separate file.
1740 Rebuilt dependencies.
1741
ffacb892
KR
1742 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
1743 value.
1744
4fe6d901
KR
1745 Permit use of mmap when available:
1746
1747 * configure.in: Check for mmap, madvise, mprotect.
1748 * config.in, configure: Regenerated.
1749
1750 * libbfd.c (struct _bfd_window_internal): Define type.
1751 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
1752 functions.
1753 (ok_to_map): New static variable for debugging.
1754 (_bfd_generic_get_section_contents_in_window): New function.
1755 * bfd-in.h (bfd_window_internal): Declare type.
1756 (bfd_window): Define type.
1757 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
1758 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
1759 Declare.
1760
1761 * libaout.h (struct aoutdata): Add two window fields.
1762 (obj_aout_sym_window, obj_aout_string_window): New macros.
1763 * aoutx.h (some_aout_object_p): Initialize windows.
1764 (aout_get_external_symbols): Get symbol data and strings in
1765 windows instead of explicitly allocated buffers.
1766 (slurp_symbol_table): Free window instead of memory.
1767 (bfd_free_cached_info): Release windows instead of freeing storage
1768 directly.
1769 (aout_link_free_symbols): Ditto.
1770
1771 * targets.c (bfd_target): Add new field for
1772 get_section_contents_in_window.
1773 (BFD_JUMP_TABLE_GENERIC): Updated.
1774 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
1775 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
1776 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
1777 macros for get_section_contents_in_window field.
1778
d9e771e3
FF
1779Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
1780
1781 * core.c: Renamed to corefile.c
1782 * makefile.dos (OBJS): Change core.o to corefile.o
1783 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
1784
bf917766
SG
1785start-sanitize-gm
1786Sat Nov 4 10:16:54 1995 Stu Grossman (grossman@cygnus.com)
1787
1788 * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to
1789 targ_selvecs to allow debugging under Irix-5 native.
1790
1791end-sanitize-gm
583db7a8
ILT
1792Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
1793
1794 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
1795 to o. Clobber and restore the list of new csects around the call
1796 to _bfd_generic_link_add_one_symbol, in case it wants to report a
1797 linker error and the linker wants to read the symbol table. Reset
1798 the line number count of a real section even if it has no relocs.
1799 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
1800
1801 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
1802 is too small.
1803
68aed7db
ILT
1804Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
1805
18a9609c
ILT
1806 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
1807 an undefined symbol in a shared link.
1808
68aed7db
ILT
1809 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
1810 oldtype from bfd_link_order_type to bfd_link_hash_type. From
1811 phdm@info.ucl.ac.be (Philippe De Muyter).
1812
7f82c7e1
ILT
1813Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1814
1815 * coff-m88k.c (rtype2howto): New static function.
1816 (RTYPE2HOWTO): Use it rather than a macro definition.
1817
1818 * coffcode.h (coff_write_object_contents): set internal_a.magic
1819 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
1820
4c8b9746 1821 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
7f82c7e1
ILT
1822 define TRAD_HEADER to new file hosts/delta68.h.
1823 m88*-motorola-sysv*, however, does use ptrace-core.o.
1824 * hosts/delta68.h: New file.
1825
1826 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
1827 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
1828
619c7730
KR
1829Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
1830
1831 * i386linux.c (MY(vec)): Declare before use.
1832
73246ff8
ILT
1833Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
1834
e8d6d5d0
ILT
1835 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
1836 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
1837
b2193cc5
ILT
1838 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
1839 BFD is not of the right type.
1840 (bfd_elf_get_needed_list): Likewise.
1841 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
1842 * sunos.c (bfd_sunos_get_needed_list): Likewise.
1843 * xcofflink.c (XCOFF_XVECP): Define.
1844 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
1845 of the right type.
1846 (bfd_xcoff_import_symbol): Likewise.
1847 (bfd_xcoff_export_symbol): Likewise.
1848 (bfd_xcoff_link_count_reloc): Likewise.
1849 (bfd_xcoff_record_link_assignment): Likewise.
1850 (bfd_xcoff_size_dynamic_sections): Likewise.
1851
baabeb74
ILT
1852 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
1853 table index against the number of symbols for a base relative
1854 reloc.
1855
73246ff8
ILT
1856 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
1857 static function.
1858 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
1859 full_aouthdr flag here...
1860 (_bfd_xcoff_bfd_final_link): ...not here.
1861
6ab826bd
FF
1862Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
1863
1864 * libelf.h: Rename to elf-bfd.h to avoid conflict with
1865 systems that have a system <libelf.h>.
1866 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
1867 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
1868 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
1869 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
1870 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
1871 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
1872 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
1873
999cc186
ILT
1874Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
1875
0652d579
ILT
1876 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
1877 set, set BSF_WEAK in symbol. Change all callers.
1878 (ecoff_get_extr): Set weakext based on BSF_WEAK.
1879 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
1880 _bfd_generic_link_add_one_symbol.
1881 (ecoff_indirect_link_order): Check that the section tdata relocs
1882 are not NULL before using them.
1883
999cc186
ILT
1884 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
1885 define TRAD_HEADER as hosts/alphalinux.h.
1886 * configure: Rebuild.
1887 * hosts/alphalinux.h: New file.
1888 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
1889 not int.
1890
e6080520
ILT
1891Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
1892
2bd0aeb9
ILT
1893 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
1894 C_ECOMM storage classes.
1895
e6080520
ILT
1896 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
1897 of xcoff_mark.
1898 (xcoff_mark): Call xcoff_mark_symbol.
1899 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
1900 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
1901 doing it by hand.
1902 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
1903
5fe14a9f
ILT
1904Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
1905
f630a0a4
ILT
1906 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
1907 field.
1908 (xcoff_find_reloc): New static function.
1909 (xcoff_link_add_symbols): Use it.
1910 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
1911 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
1912 relocate the value of C_DECL.
1913
5fe14a9f
ILT
1914 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
1915
dff77ed7
SC
1916Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
1917
1918 * cofflink.c (_bfd_coff_generic_relocate_section): Make
1919 callback decide what goes in .relocs.
1920 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
1921 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
1922 there is one.
1923
697a8fe8
ILT
1924Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
1925
1926 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
1927 absolute section.
1928
2d7de17d
ILT
1929Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
1930
1931 * xcofflink.c: More improvements, mostly to fix handling of
1932 constructors and a few other special cases.
1933 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
1934 zero, reverting yesterday's change.
1935 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
1936 (bfd_xcoff_link_count_reloc): Declare.
1937 (bfd_xcoff_record_link_assignment): Declare.
1938 * bfd-in2.h: Rebuild.
1939
f552f751
NH
1940Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
1941
1942 * PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
1943 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
1944 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
1945 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
1946 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
1947 Change PAGE_SIZE to TARGET_PAGE_SIZE.
1948
1949 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
1950 format.
1951
1952 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
1953 segments includes the a.out header. See to that the magic number
1954 *always* is big-endian.
1955
1956 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
1957 m68k4k NetBSD configurations.
1958
1959 * configure.in, configure: Separate i386 & mips NetBSD
1960 configurations from other BSD ones. Don't assume DEC is the only
1961 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
1962 configurations. Add support for m68k4k NetBSD object format.
1963
1964 * libaout.h: Added M_68K4K_NETBSD magic.
6fd1f40d
NH
1965
1966 * m68k4knetbsd.c: New file.
f552f751
NH
1967
1968 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
1969
1970 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
1971 <machine/endian.h>.
1972
6fd1f40d
NH
1973 * hosts/mipsnbsd.h: New file.
1974
d6d44ef9
SG
1975start-sanitize-gm
1976Fri Oct 27 09:41:51 1995 Stu Grossman (grossman@cygnus.com)
1977
1978 * config.bfd: Add config stuff for mips*-*-magic* to set
1979 targ_defvec to ecoff_big_vec.
1980
1981end-sanitize-gm
867d923d
ILT
1982Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
1983
1984 * xcofflink.c: Numerous changes to get closer to a working XCOFF
1985 linker.
1986 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
1987 toc_section, and entry_section fields.
1988 (struct xcoff_section_tdata): Remove ldrel_count field.
1989 * libcoff.h: Rebuild.
1990 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
1991 fields.
1992 (coff_compute_section_file_positions): If RS6000COFF_C, generate
1993 full a.out header if full_aouthdr is set in xcoff_data.
1994 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
1995 based on sections stored in xcoff_data.
1996 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
1997 fields.
aad2c618
ILT
1998 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
1999 (rs6000coff_vec): Set symbol_leading_char to '.'.
867d923d
ILT
2000 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
2001 value stored in ret rather than returning a pointer value.
2002
6bd9ffdb
MM
2003Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2004
2005 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
2006 format for now.
2007
9d14250f
JL
2008Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
2009
2010 * som.c (som_slurp_string_table): Allocate the strings with malloc
2011 since they're free'd by free_cached_info.
2012 (som_slurp_symbol_table): Similarly for the symbol table.
2013
a2bd0529
PB
2014Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
2015
2016 * Makefile.in (diststuff): Don't make headers.
2017
28a0c103
ILT
2018Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
2019
356cd465
ILT
2020 * Makefile.in: Rebuild dependencies.
2021
1edd3a7b
ILT
2022 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
2023 output_bfd is not SunOS.
2024 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
2025 non-SunOS input files.
2026
28a0c103
ILT
2027 * xcofflink.c: Extensive changes to support linking shared objects
2028 and generating a .loader section.
2029 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
b73322d9
ILT
2030 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
2031 last_symndx, and ldrel_count fields.
28a0c103
ILT
2032 * libcoff.h: Rebuild.
2033 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
2034 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
2035 is set.
2036 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
2037 (bfd_xcoff_export_symbol): Declare.
2038 (bfd_xcoff_size_dynamic_sections): Declare.
2039 * bfd-in2.h: Rebuild.
2040
aadf04f7
SS
2041Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
2042
2043 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
2044 * configure: Rebuild.
2045 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
2046 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
2047 contents.
2048 (pmac_xcoff_vec): Update to use new xcoff support.
2049 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
2050 (xcoff_write_armap): Declare buf as unsigned char.
2051 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
2052
2053 * mpw-make.sed: Generalize subdir_do edit.
2054
ddf4639b
JL
2055Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
2056
2057 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
2058 correctly. Don't initialize asect->vma.
2059
e7bedf65
KR
2060Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
2061
2062 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
2063 something a little less than the page size.
2064
2065Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
2066
2067 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
2068
3a70e298
SC
2069Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
2070
2071 * coff-i386.c (coff_i386_reloc_type_lookup): New.
2072 * coffcode.h (coff_write_object_contents): If .bss is before
2073 .data us that as data_start.
2074 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
2075 calc correct.
2076 * peicode.h (add_data_entry): Use _cooked_size of data directory.
2077 (coff_swap_outhdr_out): Hardwire in version number.
2078
5a2846e3
KR
2079Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
2080
3c3a5268
KR
2081 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
2082 major and minor to *_vno, since the former are also macros in
2083 SunOS header files. Cast result of bfd_alloc to appropriate
2084 type.
2085
5a2846e3
KR
2086 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
2087 before assigning to sec_data.
2088
0f6c885e
ILT
2089Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
2090
2091 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
2092 now relative to the section, not absolute.
2093 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
2094 get the file name when there is a N_SO directory name. When
2095 handling stabs, remember that section->vma was added to the
2096 offset.
2097
11fa6636
ILT
2098Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
2099
2100 * sunos.c (struct sunos_link_hash_table): Add needed field.
2101 (sunos_link_hash_table_create): Call bfd_release, not free.
2102 (sunos_link_hash_table_create): Initialize needed field.
2103 (sunos_add_dynamic_symbols): Record needed objects.
2104 (bfd_sunos_get_needed_list): New function.
2105 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
2106 * bfd-in2.h: Rebuild.
2107
c974e19e
SC
2108Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
2109
2110 * libcoff-in.h (pe_data_type.in_reloc_p): New.
2111
22a35f0b
ILT
2112Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
2113
54406786
ILT
2114 * bfd-in.h (struct bfd_link_needed_list): Rename from
2115 bfd_elf_link_needed_list.
2116 * bfd-in2.h: Rebuild.
2117 * elf.c, elflink.h, libelf.h: Corresponding changes.
2118
dd984644
ILT
2119 Add start at AIX linker support; no shared libraries yet.
2120 * xcofflink.c: New file.
2121 * configure.in (rs600coff_vec): Use xcofflink.o.
2122 * configure: Rebuild.
2123 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
2124 fields.
2125 (struct xcoff_section_tdata): Define.
2126 (xcoff_section_data): Define macro.
2127 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
2128 (_bfd_xcoff_bfd_link_add_symbols): Declare.
2129 (_bfd_xcoff_bfd_final_link): Declare.
2130 (_bfd_ppc_xcoff_relocate_section): Declare.
2131 * libcoff.h: Rebuild.
2132 * coff-rs6000.c: Clean up a bit.
2133 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
2134 cputype, csects, and debug_indices.
2135 (xcoff_copy_private_bfd_data): Copy cputype.
2136 (xcoff_howto_table): Rename from rs6000coff_howto_table.
2137 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
2138 (xcoff_reloc_type_lookup): Rename from
2139 rs6000coff_reloc_type_lookup.
2140 (coff_relocate_section): Define.
2141 (_bfd_xcoff_sizeof_headers): Define.
2142 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
2143 (_bfd_xcoff_bfd_relax_section): Define.
2144 (_bfd_xcoff_bfd_link_split_section): Define.
2145 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
2146 coff.
2147 * coffcode.h (coff_compute_section_file_positions): If AIX,
2148 increment sofar by SMALL_AOUTSZ if not executable.
2149 (coff_write_object_contents): If AIX, always output an a.out
2150 header; if not executable, header size of SMALL_AOUTSZ.
2151 * hash.c (struct bfd_strtab_hash): Add xcoff field.
2152 (_bfd_stringtab_init): Initialize xcoff field.
2153 (_bfd_xcoff_stringtab_init): New function.
2154 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
2155 (_bfd_stringtab_emit): In XCOFF mode, write out length.
2156 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
2157 * libbfd.h: Rebuild.
2158 * Makefile.in: Rebuild dependencies.
2159 (BFD32_BACKENDS): Add xcofflink.o.
2160 (CFILES): Add xcofflink.c.
2161
22a35f0b
ILT
2162 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
2163 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
2164 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
2165
fb417a21
MM
2166Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2167
2168 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
2169
2170Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
2171
2172 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
2173 * config.in: Regenerated.
2174
2175 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
2176 (_bfd_chunksize): New variable.
2177 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
2178 for obstack chunk size.
2179 * configure.in: Check for getpagesize.
2180 * configure: Regenerated.
2181
2182 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2183
2184 * trad-core.c (rawptr): Make it a local variable of
2185 ptrace_unix_core_file_p.
2186
b1e46369
SC
2187Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
2188
2189 * coff-arm.c (in_reloc_p): New.
2190 * coff-i386.c (in_reloc_p): New.
2191 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
2192 (coff_write_object_contents): Only set has_reloc_section
2193 if PE_IMAGE.
2194 * cofflink.c (_bfd_coff_generic_relocate_section): Call
2195 in_reloc_p to decide if reloc should be emitted.
2196 * libcoff.h (pe_data_type.in_reloc_p): New.
2197 * peicode.h (pe_mkobject): Initialize in_reloc_p.
2198
ee9f09cd
ILT
2199Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
2200
b1e46369
SC
2201 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
2202 (_bfd_coff_read_internal_relocs): Likewise.
2203 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
2204 (_bfd_coff_read_internal_relocs): Likewise.
2205
ee9f09cd
ILT
2206 * elflink.h (elf_link_add_object_symbols): Correct conditions
2207 under which type and size change warnings are issued.
2208
78b31b6b
ILT
2209Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
2210
2211 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
2212 a symbol which is not in a real section.
2213 (coff_write_native_symbol): Corresponding change.
2214
2215 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
2216 coff_link_hash_newfunc and make non-static.
2217 (_bfd_coff_link_hash_table_init): New function, broken out of
2218 _bfd_coff_link_hash_table_create.
2219 (_bfd_coff_link_hash_table_create): Use it.
2220 (process_embedded_commands): Make static.
2221 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
2222 (_bfd_coff_link_hash_table_init): Declare.
2223 * libcoff.h: Rebuild.
2224
2225 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
2226 field in XCOFF tdata.
2227 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
2228 U802ROMAGIC, for clarity. Try to set arch and machine correctly
2229 based on cputype stored in a.out header, or in n_type of initial
2230 .file symbol.
2231 (coff_write_object_contents): Set cputype correctly in a.out
2232 header.
2233 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
2234 warnings.
2235 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
2236 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
2237 old resv1 field.
2238 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
2239 * libcoff.h: Rebuild.
2240
2241 * cpu-rs6000.c (rs6000_compatible): New static function.
2242 (bfd_rs6000_arch): Use it.
2243 * cpu-powerpc.c (powerpc_compatible): New static function.
2244 (arch_info_struct): Define various flavours of PowerPC.
2245 (bfd_powerpc_arch): Use powerpc_compatible. Point at
2246 arch_info_struct.
2247
9dd7e56f
FF
2248Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
2249
78b31b6b 2250 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9dd7e56f 2251
8235c112
ILT
2252Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
2253
2254 * elflink.h (elf_link_add_object_symbols): Don't warn about
2255 changing the size or type if the old definition was weak.
2256
0322af0d
ILT
2257Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
2258
49488f2b
ILT
2259 * coffcode.h (combined_entry_type): Add fix_line field.
2260 (coff_slurp_line_table): Warn if we try to set the lineno field of
2261 a symbol twice.
2262 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
2263 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
2264 * coffgen.c (coff_mangle_symbols): Handle fix_line.
2265 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
2266 absolute section.
2267 (coff_print_symbol): Print fix_value symbols in a useful fashion.
2268 * libcoff.h: Rebuild.
2269
5f710a3a
ILT
2270 * libcoff-in.h (struct xcoff_tdata): Define.
2271 (xcoff_data): Define.
2272 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
2273 * bfd-in2.h, libcoff.h: Rebuild.
2274 * coff-rs6000.c (xcoff_mkobject): New static function.
2275 (coff_mkobject): Define.
2276 (xcoff_copy_private_bfd_data): New static function.
2277 (coff_bfd_copy_private_bfd_data): Define.
2278 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
2279 signed to bitfield.
2280 (rs6000coff_vec): Add DYNAMIC to object_flags.
2281 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
2282 .loader sections specially.
2283 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
2284 section alignment from the XCOFF tdata information.
2285 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
2286 F_SHROBJ, and copy the extra a.out header information into the
2287 XCOFF tdata structure.
2288 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
2289 F_DYNLOAD and the extra a.out header information.
2290 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
2291 C_HIDEXT symbol with attached csect information.
2292 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
2293 in the o_maxdata field.
2294 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
2295 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
2296 end if BSF_NOT_AT_END is set.
3f2c5b2d 2297
0322af0d
ILT
2298 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
2299 _bfd_read_ar_hdr_fn.
2300 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
2301 * bfd-in2.h, libbfd.h: Rebuild.
2302 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
2303 return value.
2304 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
2305 (bfd_slurp_bsd_armap_f2): Likewise.
2306 (_bfd_slurp_extended_name_table): Likewise.
2307
3266eaff
KR
2308Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
2309
2310 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2311
2312 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
2313 when the symbol table is empty.
2314
2315 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
2316 space for section symbols, since we don't output them either.
2317 (elf_m68k_adjust_dynindx): Removed.
2318
2319 * ptrace-core.c (rawptr): Make it a local variable of
2320 ptrace_unix_core_file_p.
3266eaff 2321
249479fa
MM
2322Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2323
45b5d2f0
MM
2324 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
2325 NULL.
2326
249479fa
MM
2327 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
2328 Mac object file formats.
2329
c53fac12
ILT
2330Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
2331
4372f33f
ILT
2332 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
2333 auxent if there isn't one.
2334 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
2335 rather than FILNMLEN as the maximum name length.
2336
0fc9ada9
ILT
2337 * coffcode.h (bfd_coff_backend_data): Add new field
2338 _bfd_coff_print_aux.
2339 (bfd_coff_print_aux): New static function.
2340 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
2341 scnlen field of an XTY_LD csect aux entry.
2342 (coff_print_aux): New static function.
2343 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
2344 in coff_pointerize_aux_hook.
2345 (bfd_coff_std_swap_table): Initialize new field.
2346 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
2347 * libcoff.h: Rebuild.
2348 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
2349 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2350
7860fe38
ILT
2351 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
2352 if there are symbols, for native AIX ld compatibility.
2353
c80cc833
ILT
2354 * coffcode.h (bfd_coff_backend_data): Add new field
2355 _bfd_coff_pointerize_aux_hook.
2356 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
2357 or I960, and as 0 otherwise.
2358 (bfd_coff_std_swap_table): Initialize new field.
2359 * libcoff.h: Rebuild.
2360 * coffgen.c (coff_pointerize_aux): Change parameters to take
2361 symbol pointer instead of type and class, and to take aux index.
2362 Call _bfd_coff_pointerize_aux_hook if it is defined.
2363 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
2364 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
2365 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2366
c53fac12
ILT
2367 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
2368 read-only/host-only support.
2369
2370 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
2371 BSF_LOCAL.
d11e6b52
ILT
2372 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
2373 RS6000COFF_C.
c53fac12
ILT
2374
2375 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
2376 BFD_JUMP_TABLE_ARCHIVE accordingly.
2377 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
2378 (_bfd_compute_and_write_armap): Declare.
2379 (_bfd_generic_read_ar_hdr): Declare.
2380 (_bfd_read_ar_hdr): Define.
2381 (_bfd_noarchive_read_ar_hdr): Define.
2382 (_bfd_archive_bsd_read_ar_hdr): Define.
2383 (_bfd_archive_coff_read_ar_hdr): Define.
2384 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
2385 _bfd_read_ar_hdr instead.
2386 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
2387 (_bfd_compute_and_write_armap): Rename from
2388 compute_and_write_armap. Make non-static. Change all callers.
2389 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
2390 than _bfd_snarf_ar_hdr.
2391 * aout-target.h (MY_read_ar_hdr): Define if not defined.
2392 * ieee.c (ieee_read_ar_hdr): Define.
2393 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
2394 * oasys.c (oasys_read_ar_hdr): Define.
2395 * som.c (som_read_ar_hdr): Define.
2396 * bfd-in2.h, libbfd.h: Rebuild.
2397
f8e47484
SC
2398Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
2399
2400 * peicode.c (coff_swap_filehdr_in): If symptr is
2401 zero, there aren't any symbols, even if nsyms is set.
2402
2b874a2d
ILT
2403Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
2404
aca73687
ILT
2405 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
2406 field.
2407 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
2408 sections, and set styp correctly for them: .got, .hash, .dynamic,
2409 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
2410 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
2411 types.
2412 (ecoff_sort_hdrs): New static function.
2413 (ecoff_compute_section_file_positions): Return boolean, not void.
2414 Sort the sections by VMA before looking through them. Put the
2415 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
2416 section on an appropriate boundary within the page.
2417 (ecoff_compute_reloc_file_positions): Check return value of
2418 ecoff_compute_section_file_positions.
2419 (_bfd_ecoff_set_section_contents): Likewise.
2420 (_bfd_ecoff_write_object_contents): Check for various Alpha
2421 section types when incrementing text_size and data_size. Call
2422 adjust_headers backend function if it exists.
2423 * coff-alpha.c (alpha_adjust_headers): New static function.
2424 (alpha_ecoff_backend_data): Initialize adjust_headers field.
2425 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2426
2b874a2d
ILT
2427 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
2428
c780e5db
JL
2429Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
2430
2431 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
2432 of ALTERNATE_AIX_CORE_FORMAT.
2433 * configure.in (aix4): No longer need CORE_FLAGS.
2434 * configure: Updated.
2435
2a01c351
KR
2436Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
2437
2438 NS32k changes from Ian Dall:
2439 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
2440 macros.
2441 (aout_link_input_section_std, aout_link_input_section_ext,
2442 aout_link_reloc_link_order): Call them instead of _bfd_*
2443 versions.
2444 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
2445 to zero.
2446 (backend_data): Use it instead of hardcoded zero.
2447
2448 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
2449 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
2450
2451 * ns32knetbsd.c: Include bfd.h.
2452 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
2453 (MY_bfd_reloc_type_lookup): Declare function too.
2454 * pc532-mach.c (set_sizes): Don't declare.
2455 (MY_text_includes_header, MY_exec_header_not_counted): Define.
2456 (backend_data, MY_backend_data): Don't define.
2457
2458 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
2459 ns32k-*-lites* like ns32k-*-netbsd*.
2460
2461 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
2462 compile on lites.
2463
5944d75b
ILT
2464Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
2465
2466 * coffcode.h (coff_write_object_contents): Restore setting
2467 f_timdat to 0, deleted on August 22.
2468
db344f82
SC
2469Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
2470
2471 * coffcode.h (coff_bfd_copy_private_symbol_data,
2472 coff_bfd_copy_private_section_data,
2473 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
2474 * peicode.h (coff_bfd_copy_private_bfd_data): New
2475 (pe_bfd_copy_private_bfd_data): New.
2476 (coff_swap_scnhdr_in): Swap bss size into the right place.
2477 (pe_print_private_bfd_data): Add some newlines.
5944d75b 2478
c780e5db 2479Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
97f1feda
JL
2480
2481 * som.c (setup_sections): Don't die if a space has no subspaces.
2482
3d7c42c9
ILT
2483Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
2484
2485 * elflink.h (elf_link_add_object_symbols): Don't let a weak
2486 dynamic symbol override a common symbol. Don't change the size or
2487 type if they have been set and the new symbol is not a definition.
2488 Warn if the size or type changes.
2489
c780e5db 2490Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
709af562
JL
2491
2492 * som.c (som_begin_writing): Don't write the symbol table or
2493 symbol strings.
2494 (som_finish_writing): Write them here. Place them after the
2495 subspace data, but before the relocs.
2496
2497Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
2498
2499 * sunos.c (sunos_add_one_symbol): Just pass false, not
2500 info->shared_library, to sunos_create_dynamic_sections.
2501 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
2502 section.
2503 (sunos_check_dynamic_reloc): Remove .text section assertion.
2504
7009e451
SS
2505Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
2506
2507 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
2508 * configure, configure.in: Add pmac_xcoff_vec case.
2509 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
2510 * coff-pmac.c: New file, PowerMac XCOFF support.
2511 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
2512 * targets.c (pmac_xcoff_vec): Declare.
2513
2514 * mpw-config.in: Various changes to be compatible with the
2515 autoconf-based configury.
2516 * mpw-make.sed: New file, sed commands to translate Unix
2517 makefile into MPW syntax.
2518 * mpw-make.in: Remove.
2519 * hosts/mpw.h: Remove.
2520 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
2521 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
2522
b91537be
SC
2523Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
2524
2525 * binary.c (binary_get_symtab): Return an empty string on error.
2526 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
2527
30360a6f
KK
2528Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
2529
2530 * coff-ppc.c: Reformatted according to gnu conventions
2531 Removed irrelevant "if 0" code
2532
20d1e233
ILT
2533Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
2534
69fd4fdd
ILT
2535 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
2536 symbols rather than as indirect symbols.
2537 (MY(slurp_symbol_table)): Don't do anything special about
2538 secondary symbols.
2539
46b5a892
ILT
2540 * coffcode.h (coff_new_section_hook): Make sure that the alignment
2541 of .ctors and .dtors sections is no larger than 2.
2542
9db59230
ILT
2543 * sunos.c (sunos_add_one_symbol): Don't change
2544 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
2545 undef list.
2546 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
2547 dynamic symbols when creating a shared library.
2548 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
2549 shared library.
2550 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
2551 written even if it is not defined in a regular object.
2552 (sunos_write_dynamic_symbol): Use plt_offset for the address of
2553 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
2554 rather than the constant 22.
2555 (sunos_check_dynamic_reloc): Handle creating a shared library.
2556 (sunos_finish_dynamic_link): Set the first entry in the GOT to
2557 zero when creating a shared library.
2558 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
2559 write it out at the start of the symbol table.
2560
20d1e233
ILT
2561 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
2562
a11e10fe
DE
2563Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
2564
2565 * config.bfd: Add arm-*-coff.
2566 * configure.in, configure: Add armcoff_{little,big}_vec.
2567 * targets.c (armcoff_{little,big}_vec): Declare.
2568 (bfd_target_vector): Add armcoff_{little,big}_vec.
2569 * coff-arm.c (armcoff_{little,big}_vec): Always define.
2570
99062cfc
ILT
2571Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
2572
2573 * targets.c (bfd_find_target): Remove debugging code.
2574
deacbe0f
KK
2575Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
2576
2577 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
2578 support on powerpc.
2579 * Makefile.in: added *-ppc files
2580 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
2581 allow pe based .o's to be shared with other tools on ppc/NT
2582 * config.bfd: added powerpc[le]-[pe|winnt] config support
2583 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
2584 * peicode.h: Added more section flags for PE on ppc
2585 Added coff_swap_filehdr_out to allow peicode.h to be
2586 used for non-image PE files on ppc.
2587 Check for image, or not, before copying pe_opthdr
2588 * targets.c: Added new bfd's
30360a6f
KK
2589 * targets.c: Removed two inactive bfds that shouldn't have made it this
2590 far.
deacbe0f 2591
d22b02e0
MM
2592Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2593
2594 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
2595 explicit values to initialize all relocs. Change all users.
2596 (ppc_elf_brtaken_inner): New function to handle branch predicition
2597 relocs.
2598 (ppc_elf_brtaken_reloc): Ditto.
2599 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
2600 relocs use ppc_elf_unsupported_reloc.
2601 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
2602 needs to be reported.
2603 (ppc_elf_relocate_section): Support branch prediction relocs.
2604
fcf490c0
ILT
2605Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
2606
e6cb7b41
ILT
2607 * bfd.c (bfd_assert): Remove \n from string passed to
2608 _bfd_error_handler.
2609
1af85fbb
ILT
2610 * coff-i386.c: (TWO_DATA_SECS): Don't define.
2611 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
2612 (bfd_coff_make_section_hook): Don't define.
2613 (coff_make_section_hook): Remove.
2614 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
2615 (styp_to_sec_flags): Likewise.
2616 (coff_write_object_contents): Likewise.
2617 (bfd_coff_std_swap_table): Don't initialize make_section_hook
2618 field.
2619 * libcoff.h: Rebuild.
2620 * coffgen.c (make_a_section_from_file): Just call
2621 bfd_make_section_anyway, not bfd_make_section or
2622 bfd_coff_make_section_hook.
2623 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
2624 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
2625 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
2626 make_section_hook field.
2627 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2628
fcf490c0
ILT
2629 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
2630 pointers into value field for warning and indirect symbols; just
2631 leave the value field alone.
2632 * linker.c (generic_link_add_symbol_list): Use next symbol for
2633 warning and indirect symbols, rather than looking in symbol value.
2634 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
2635 parameter. Change all callers. Remove support for indirect
2636 symbols; it didn't work anyhow.
2637 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
2638 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
2639 * bfd-in2.h: Rebuild.
2640
cc47d19a
MM
2641Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2642
2643 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
2644 go back to telling the tools this reloc operates on 32 bits.
2645
81449d47
ILT
2646Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
2647
7a7fbffb
ILT
2648 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
2649 rather than a direct fprintf.
2650 * archive.c (_bfd_write_archive_contents): Likewise.
2651 * coffcode.h (coff_slurp_symbol_table): Likewise.
2652 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
2653 (ppc_elf_unsupported_reloc): Likewise.
2654 (ppc_elf_relocate_section): Likewise.
2655 * i386linux.c (linux_tally_symbols): Likewise.
2656 (linux_finish_dynamic_link): Likewise.
2657 * osf-core.c (osf_core_core_file_p): Likewise.
2658 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
2659 * som.c (som_sizeof_headers): Likewise.
2660 * srec.c (srec_bad_byte): Likewise.
2661 * bfd.c (bfd_assert): Likewise. Also change file to be const.
2662 * libbfd-in.h (bfd_assert): Declare first parameter const.
2663 * libbfd.h: Rebuild.
2664 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
2665 bfd_reloc_overflow is enough.
2666 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
2667 * coff-h8500.c (rtype2howto): Likewise.
2668 * coff-z8k.c (rtype2howto): Likewise.
2669 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
2670 * elf.c (_bfd_elf_get_lineno): Likewise.
2671 (_bfd_elf_no_info_to_howto): Likewise.
2672 (_bfd_elf_no_info_to_howto_rel): Likewise.
2673 * hp300hpux.c (convert_sym_type): Likewise.
2674 (MY(swap_std_reloc_in)): Likewise.
2675 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
2676
f1c6dd5d
ILT
2677 * libaout.h (struct aoutdata): Add line_buf field.
2678 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
2679 and filename_buffer. Instead, use a malloc buffer stored in the
2680 new line_buf field. Remove length restrictions.
2681
f0500a41
ILT
2682 * coffgen.c (string_size): Remove static variable.
2683 (debug_string_size, debug_string_section): Likewise.
2684 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
2685 and debug_string_size_p parameters. Use them instead of the
2686 global variables. Change all callers.
2687 (coff_write_symbol): Likewise.
2688 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
2689 (coff_write_symbols): Add local variables to replace removed
2690 global variables.
2691
25b5a53d
ILT
2692 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
2693 function, and line_base fields.
2694 * libcoff.h: Rebuild.
2695 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
2696 information, rather than using static variables.
2697
641ac26a
ILT
2698 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
2699 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
2700
81449d47
ILT
2701 * init.c (initialized): Remove static variable.
2702 (bfd_init): Don't bother setting initialized.
2703 (bfd_check_init): Remove.
2704 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
2705 * libbfd.h: Rebuild.
2706
138b9b81
PS
2707Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2708
2709 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
2710 size for full core dumps. Copy core file header to private data.
2711 (rs6000coff_core_file_failing_command,
2712 rs6000coff_core_file_failing_signal): New functions to extract
2713 the file name and terminating signal from the core file.
2714 * coff-rs6000.c: Use them.
2715
2ffbb79a
ILT
2716Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
2717
2718 Change arch info to be const, initialized at compile time.
2719 * archures.c: Reindent many functions. Change CONST to const.
2720 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
2721 nothing set it anyhow. Make next const.
2722 (bfd_arch_info_list): Remove.
2723 (bfd_archures_list): Rename from archures_init_table. Change from
2724 a table of function pointers to a table of bfd_arch_info_type
2725 structure addresses.
2726 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
2727 (bfd_lookup_arch): Likewise.
2728 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
2729 const pointer.
2730 (bfd_default_arch_struct): Make const.
2731 (bfd_arch_init, bfd_arch_linkin): Remove.
2732 (bfd_get_arch_info): Return a const pointer.
2733 * init.c (bfd_init): Don't call bfd_arch_init.
2734 * bfd.c (struct _bfd): Make arch_info const.
2735 * bfd-in2.h: Rebuild.
2736 * libbfd.h: Rebuild.
2737 * configure.in: Put & before everything in $selarchs.
2738 * configure: Rebuild.
2739 * cpu-*.c: Change bfd_*_arch from a function which calls
2740 bfd_arch_linkin to a const structure.
2741 * ieee.c (ieee_object_p): Make arch const.
2742
02f85cda
MM
2743Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2744
2745 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
2746 PowerPC V.4.
2747 * bfd-in2.h: Regenerate.
2748 * libbfd.h: Regenerate.
2749
2750 * elf32-ppc.c (reloc_type): Update names to match current draft.
2751 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
2752 relative. Update names to current V.4 draft.
2753 (ppc_elf_reloc_type_lookup): Add support for more relocations.
2754 (ppc_elf_relocate_section): Rename relocations to match draft.
2755
dd82c578
MM
2756Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
2757
2758 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
2759 compiled with -mrelocatable-lib to be linked with either normal
2760 modules or -mrelocatable modules.
2761
f69e888e
ILT
2762Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
2763
e18c4e8f
ILT
2764 * coffcode.h (coff_write_object_contents): Clear the vstamp field
2765 in the a.out header.
2766
f69e888e
ILT
2767 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
2768 a reloc against a local symbol, even if it's not a section.
2769
a5655244
ILT
2770Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
2771
2772 * targets.c (bfd_target): Remove unused align_power_min field.
2773 * bfd-in2.h: Rebuild.
2774 * All backends: Remove initialization of align_power_min.
2775
500d7394
SC
2776Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
2777
2778 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
500d7394 2779
049df0a8
ILT
2780Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
2781
2782 * config.bfd (mips-dec-netbsd*): New target.
2783 * configure.host (mips-dec-netbsd*): New host.
2784 * configure.in (mips-dec-netbsd*): New native.
2785 * configure: Rebuild.
2786
1862bbd8
ILT
2787Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
2788
2789 Make the COFF backend linker merge common types:
2790 * cofflink.c (struct coff_debug_merge_element): Define.
2791 (struct coff_debug_merge_type): Define.
2792 (struct coff_debug_merge_hash_entry): Define.
2793 (struct coff_debug_merge_hash_table): Define.
2794 (coff_debug_merge_hash_table_init): Define.
2795 (coff_debug_merge_hash_table_free): Define.
2796 (coff_debug_merge_hash_lookup): Define.
2797 (struct coff_final_link_info): Add debug_merge field.
2798 (coff_debug_merge_hash_newfunc): New static function.
2799 (_bfd_coff_final_link): Allocate and free debug_merge table.
2800 (coff_link_input_bfd): Merge identical enum, struct and union
2801 types.
2802
a208a70f
ILT
2803Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
2804
2805 Convert i960 COFF to use COFF backend linker.
2806 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
2807 structure to store the symbol being used.
2808 (coff_i960_start_final_link): New static function.
2809 (coff_i960_relocate_section): New static function.
2810 (coff_i960_adjust_symndx): New static function.
2811 (coff_start_final_link): Define.
2812 (coff_relocate_section): Define.
2813 (coff_adjust_symndx): Define.
2814 * coffcode.h (bfd_coff_backend_data): Add new callback function
2815 _bfd_coff_start_final_link.
2816 (bfd_coff_start_final_link): Define.
2817 (coff_start_final_link): Define if not defined.
2818 (bfd_coff_std_swap_table): Add coff_start_final_link.
2819 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
2820 visible.
2821 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
2822 function callback is not NULL.
2823 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
2824 (_bfd_coff_internal_syment_name): Declare.
2825 * libcoff.h: Rebuild.
2826 * configure.in (icoff_big_vec): Add cofflink.o.
2827 (icoff_little_vec): Likewise.
2828 * configure: Rebuild.
2829
f0abedbe
FF
2830Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
2831
2832 * Makefile.in (clean-info): Remove extraneous tab from line
2833 following action.
2834
aa4b3dc5
ILT
2835Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
2836
2837 * cofflink.c (coff_link_input_bfd): Fail if a section with no
2838 contents has relocs.
2839
4ca63811 2840Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
beee31b1
SC
2841
2842 * coffcode.h (coff_compute_section_file_positions): Keep the
2843 raw size safe.
2844 (coff_write_object_contents): Remember if it's a relocatable
2845 file.
2846 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
2847 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
2848 if relocatable file. Swap out saved raw size.
2849
ae115e51
ILT
2850Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
2851
9521bac3
ILT
2852 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
2853 (maintainer-clean): Rename from realclean, passing
2854 maintainer-clean down to subdirectories, but leave realclean as a
2855 synonym.
2856
4ca63811
ILT
2857 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
2858 warning callback.
2859
5aa4c3ff
ILT
2860 * dep-in.sed: Remove config.h from generated dependencies.
2861
396aaeb2
ILT
2862 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
2863 broken out of sunos_canonicalize_dynamic_symtab.
2864 (sunos_canonicalize_dynamic_symtab): Call new function
2865 sunos_slurp_dynamic_symtab.
2866 (sunos_add_dynamic_symbols): Add three new parameters. Return the
2867 dynamic symbol table to the caller.
2868 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
2869 callback to override the symbols being read.
2870 * libaout.h (struct aout_backend_data): Add three new parameters
2871 to add_dynamic_symbols callback.
2872
ae115e51
ILT
2873 Extensive minor changes to avoid various gcc warnings. Also:
2874 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
2875 * archures.c (bfd_arch_info_type): Change mach field from long to
2876 unsigned long.
2877 (bfd_lookup_arch): Change machine parameter from long to unsigned
2878 long.
2879
b088e4b2
ILT
2880Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
2881
2882 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
2883 a symbol with a non-zero plt_offset.
2884
1dff7902
ILT
2885Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
2886
2b71e1e4
ILT
2887 * elfcode.h (align_file_position): Remove; not used.
2888
1dff7902
ILT
2889 * configure.in: Only check for <sys/procfs.h> on a native system,
2890 and make sure it defines prstatus_t.
2891 * configure: Rebuild.
2892
870015b1
ILT
2893Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
2894
535c89f0
ILT
2895 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
2896
936b870c
ILT
2897 * config.in: Rename from config.h.in.
2898 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
a7873a6c 2899 Check for config.h:config.in when creating stamp-h.
936b870c 2900 * configure: Rebuild.
a7873a6c
ILT
2901 * Makefile.in (stamp-h): Depend upon config.in rather than
2902 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
2903 calling config.status.
936b870c 2904
870015b1
ILT
2905 * Makefile.in (do_distclean): Remove config.h and stamp-h.
2906 (Makefile): Just rebuild Makefile.
2907 (config.h, stamp-h): New targets.
2908 * configure.in: Create stamp-h when rebuilding config.h.
2909 * configure: Rebuild.
2910
b7577823
ILT
2911Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
2912
2913 * configure.in: Call AC_CONFIG_HEADER. Substitute
2914 HOST_64BIT_LONG. Check that various header files exist. Check
2915 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
2916 and/or free need to be declared. Don't make a link to sysdep.h.
2917 Define TRAD_HEADER for various hosts.
2918 * configure: Rebuild.
2919 * configure.host: Don't set my_host. Add definitions taken from
2920 host header files for various entries. Remove entries which now
2921 do nothing.
2922 * acconfig.h: New file.
2923 * config.h.in: New file, built by autoheader.
2924 * sysdep.h: New file.
2925 * Makefile.in (do_distclean): Don't remove sysdep.h.
2926 (RECONFIG): Remove.
2927 (LOCAL_H_DEPS): New variable.
2928 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
2929 $(RECONFIG).
2930 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
2931 ($(OPTIONAL_BACKENDS)): Likewise.
2932 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
2933 looking through sysdep.h.
2934 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
2935 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
2936 (fprintf_vma, sprintf_vma): Likewise.
2937 (int64_type, uint64_type): Don't define.
2938 * bfd-in2.h: Rebuild.
2939 * archures.c, bfd.c, srec.c: Include <ctype.h>.
2940 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
2941 * lynx-core.c: Include stuff from old hosts/lynx.h.
2942 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
2943 rather than NO_FCNTL.
2944 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
2945 rather than NATIVE_HPPAHPUX_COMPILER.
2946 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
2947 is defined.
2948 * hosts/*.h: Remove all header files which merely include,
2949 declare, and define things. Leave header files which define
2950 information needed by trad-core.c.
2951
2952 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
2953 (BFD_CC_FOR_BUILD): Define.
2954 * configure.in: Use BFD_CC_FOR_BUILD.
2955 * configure: Rebuild.
2956
7a93ebdd
ILT
2957Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
2958
4c2e4d0e
ILT
2959 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
2960 * configure: Rebuild.
2961
7a93ebdd
ILT
2962 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
2963 a global symbol.
2964
866bb9e5
JM
2965Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
2966
2967 * config.bfd: i386pe_ve -> i386pe_vec.
2968
2b79a104
ILT
2969Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
2970
f515fb2f
ILT
2971 * configure.host: Incorporate host Makefile fragments by setting
2972 shell variables.
2973 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
2974 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
2975 value based on whether the code is being compiled by a cross
2976 compiler. Don't substitute host_makefile_frag or frags.
2977 * aclocal.m4: New file to define local AC_PROG_CC.
2978 * configure: Rebuild.
2979 * Makefile.in (INSTALL): Set to @INSTALL@.
2980 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
2981 (INSTALL_DATA): Set to @INSTALL_DATA@.
2982 (AR): Set to @AR@.
2983 (CC): Define as @CC@.
2984 (CFLAGS): Set to @CFLAGS@.
2985 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
2986 (@host_makefile_frag@): Remove.
2987 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
2988 after other options.
2989 (config.status): Remove dependency upon @frags@.
2990 * config/*.mh, config/README: Remove.
2991
2b79a104
ILT
2992 * config.bfd: Rewrite to incorporate the contents of the Makefile
2993 fragments by setting shell variables, rather than merely returning
2994 the name of a Makefile fragment.
2995 * configure.in: Use shell variables set by config.bfd rather than
2996 looking at the target Makefile fragment files. Don't substitute
2997 target_makefile_frag. Do substitute TDEFINES.
2998 * configure: Rebuild.
2999 * Makefile.in (@target_makefile_frag@): Remove.
3000 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
3001 * config/*.mt: Remove.
3002
2cb159a5
KR
3003Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
3004
3005 * configure.in: Put changequote lines around "i[345]86" patterns
3006 section of core file support.
3007
ef07871c
JL
3008Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
3009
3010 * som.c (som_bfd_print_private_bfd_data): Define to use the
3011 generic version.
3012
1613e075
SC
3013Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
3014
3015 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
3016 entry, text_start and data_start.
3017
a52a3ce8
ILT
3018Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
3019
a21227ef
ILT
3020 * Makefile.in (OFILES): Remove $(TDEPFILES).
3021 * config/apollo.mt (TDEPFILES): Remove.
3022 * config/README: Update.
3023
a52a3ce8
ILT
3024 * configure.in: For a native configuration, set COREFILE and
3025 COREFLAG based on the canonical host name.
3026 * configure: Rebuild.
3027 * Makefile.in: Rebuild dependencies.
3028 (ALL_CFLAGS): Add @COREFLAG@.
3029 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
3030 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
3031 support routines. Check LYNX_CORE rather than HOST_LYNX.
3032 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
3033 * i386lynx.c: Likewise.
3034 * m68klynx.c: Likewise.
3035 * sparclynx.c: Likewise.
3036 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
3037 * *-core.c: Comment changes.
3038 * config/decstation.mh (HDEPFILES): Remove.
3039 (HDEFINES): Remove -DTRAD_CORE.
3040 * config/irix3.mh (RANLIB): Remove.
3041 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
3042 (HDEFINES): Remove -DIRIX_CORE.
3043 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
3044 (HDEFINES): Remove -DTRAD_CORE.
3045 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
3046 * config/ultra3.mh (RANLIB): Remove.
3047 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
3048 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
3049 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
3050 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
3051 * config/hppahpux.mh, config/hppaosf.mh: Remove.
3052 * config/i386aix.mh, config/i386bsd.mh: Remove.
3053 * config/i386linux.mh, config/i386mach3.mh: Remove.
3054 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
3055 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
3056 * config/mipsmach3.mh, config/news-mips.mh: Remove.
3057 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
3058 * config/rs600.mh, config/rs6000lynx.mh: Remove.
3059 * config/solaris2.mh, config/stratus.mh: Remove.
3060 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
3061 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
3062
d6f672b8
ILT
3063Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
3064
3065 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
3066 DT_FINI entry if the appropriate symbol is not in the hash table.
3067
3068 * libelf.h (struct elf_backend_data): Add create_program_headers
3069 and want_hdr_in_seg fields.
3070 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
3071 defined.
3072 (elf_backend_create_program_headers): Likewise.
3073 (elfNN_bed): Initialize create_program_headers and
3074 want_hdr_in_seg.
3075 * elf.c (get_program_header_size): Call create_program_headers
3076 backend routine.
3077 (map_program_segments): Check want_hdr_in_seg backend field. Call
3078 create_program_headers backend routine.
3079
3080 * elf.c (assign_file_positions_except_relocs): Align non allocated
3081 sections when creating an executable.
3082
3083 * elfcode.h (elf_swap_phdr_in): Make non static.
3084 (elf_swap_phdr_out): Make non static.
3085 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
3086 (bfd_elf32_swap_phdr_out): Declare.
3087 (bfd_elf64_swap_phdr_in): Declare.
3088 (bfd_elf64_swap_phdr_out): Declare.
3089
3090 * ecofflink.c (ecoff_collect_shuffle): New static function.
3091 (_bfd_ecoff_get_accumulated_pdr): New function.
3092 (_bfd_ecoff_get_accumulated_sym): New function.
3093 (_bfd_ecoff_get_accumulated_ss): New function.
3094 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
3095 (_bfd_ecoff_get_accumulated_sym): Declare.
3096 (_bfd_ecoff_get_accumulated_ss): Declare.
3097 * libbfd.h: Rebuild.
3098
0cb70568
ILT
3099Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
3100
d6f672b8
ILT
3101 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
3102
0cb70568
ILT
3103 * elflink.h (elf_link_add_object_symbols): Handle indirect and
3104 warning symbols. If any section is named .gnu.warning.XXX, treat
3105 the contents as a warning to be issued if the symbol XXX is
3106 referenced.
3107 (elf_link_output_extsym): For an indirect or warning symbol, just
3108 output the symbol it points to.
3109
3110 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
3111 if bfd_hash_allocate fails, since it will already be set.
3112 (generic_link_hash_newfunc): Likewise.
3113 (archive_hash_newfunc): Likewise.
3114 (hash_entry_bfd): New static function.
3115 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
3116 callback. Allocate a new warning using the hash table newfunc.
3117 Use bfd_hash_replace to update the entry in the hash table, rather
3118 than assuming we can copy the fields with structure assignment.
3119
3120 * hash.c (bfd_hash_replace): New function.
3121 * bfd-in.h (bfd_hash_replace): Declare.
3122 * bfd-in2.h: Rebuild.
3123
f14db880
JSC
3124Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
3125
3126 * config.bfd: Add mips*vr4300-*-elf* target.
3127 * config/mipsbvr4300.mt: Added.
3128
1613e075 3129See file ChangeLog.2
e6d739eb 3130
41126f15
JK
3131\f
3132Local Variables:
3133mode: indented-text
3134left-margin: 8
6ec3bb6a
ILT
3135fill-column: 74
3136version-control: never
3137End:
This page took 0.400296 seconds and 4 git commands to generate.