* elf.c (elf_corefile_note): cast malloc to avoid warning.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
c3eb25fc
SC
1Sat Nov 30 21:19:15 1991 Steve Chamberlain (sac at rtl.cygnus.com)
2
dff5e602
SC
3 * elf.c (elf_corefile_note): cast malloc to avoid warning.
4 * Makefile.in: Fixed dependencies due to file rename
5
c3eb25fc
SC
6 * aout-encap.c, aoutf1.h, aoutx.h, archive.c, bout.c, coff-a29k.c,
7 coff-h8300.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c,
8 coff-mips.c, coff-rs6000.c, cpu-h300.c, elf.c, i386aout.c,
9 newos3.c, stab-syms.c, syms.c: All these files have had their
10 #includes altered to point to the new places.
11
eb8983c9
FF
12Fri Nov 29 20:04:49 1991 Fred Fish (fnf at cygnus.com)
13
14 * config/mh-i386v4, config/mh-i386-elf, hosts/h-i386v4.h: New files.
15
16 * configure.in: Add vendor "ncr" as supported per-target vendor.
17 Add svr4 case for i386 per-host case.
18
19 * elf.c (elf_object_p, elf_core_file_p): Add missing "break" to
20 ELFDATA2LSB cases.
21
37217060
PB
22Fri Nov 29 12:16:51 1991 Per Bothner (bothner at cygnus.com)
23
24 * syms.c (bfd_decode_symclass): Return 'A'
25 for symbols that are both absolute and global.
26 * archive.c (bfd_special_undocumented_glue): Return NULL
27 if bfd_ar_hdr_from_filesystem returns NULL.
28
3b4f1a5d
SC
29Tue Nov 26 09:10:55 1991 Steve Chamberlain (sac at cygnus.com)
30
31 * Makefile.in: added coff-h8300
32 * configure.in: now h8 is a coff target
33 * cpu-h8300.c: fix various disassembly problems
34 * libcoff.h: took out some code which has been #0ed for a long
35 time.
36 * targets.c: added h8 coff
37 * coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c
38 added new macro RTYPE2HOWTO to take a load of #ifdefs out of
39 coffcode.h
40 * coffcode.h: Started to change the way machine dependencies are
41 handled, from the nest of #ifdefs to macros defined in the
42 including coff-<foo>.c
43
f39eae7b
JG
44Fri Nov 22 08:11:42 1991 John Gilmore (gnu at cygnus.com)
45
e6e265ce
JG
46 * aoutx.h (some_aout_object_p): Set the `executable' bit
47 if the entry point is contained in the text segment, even if the
48 text segment is at location 0.
49
853f0a70
JG
50 * coff-mips.c, coffcode.h: Peter Schauer's patch to kludge in
51 nonstandard MIPS sections (.rdata, .sdata, etc).
52
f8adc62d 53 * aoutx.h, bfd.c, coffcode.h, ieee.c, oasys.c, targets.c: CONST lint.
8c4a1ace
JG
54 * libbfd-in.h, libbfd.h, aoutx.h, coffcode.h, elf.c, libaout.h:
55 Rename ALIGN to BFD_ALIGN to avoid conflict with BSD <sys/param.h>.
1e310759 56 * libbfd.c: Lint.
f39eae7b
JG
57 * host-aout.c, trad-core.c: Fix write_armap prototypes. Lint.
58
7de245d3
PB
59Thu Nov 21 19:56:40 1991 Per Bothner (bothner at cygnus.com)
60
61 * stab-syms.c, syms.c: Moved bfd_stab_name() and bfd_stab_names[]
62 from syms.c to new file stab-syms.c. Also, since GNU extended
63 type codes such as N_SETT are no longer in ../include/stab.def,
64 include them manually.
65 * stab-syms.c, aoutx.h: Renamed bfd_stab_name() and
66 bfd_stab_names[] to aout_stab_name() and aout_stab_names[].
67 * libaout.h: Added prototype for aout_stab_name().
68 * Makefile.in: Update Makefile for new stab-syms.[co].
69
98d43107
JG
70Thu Nov 21 11:50:49 1991 John Gilmore (gnu at cygnus.com)
71
72 * libaout.h (WORK_OUT_FILE_POSITIONS): One more try at this
73 rather complicated seeming problem. Eliminate LOGICAL_ versions,
74 just make N_XXX work by excluding the header from the text segment.
75 * aoutx.h: Fix comments to match.
76
77Tue Nov 19 18:49:01 1991 Per Bothner (bothner at cygnus.com)
78
79 * libaout.h (WORK_OUT_FILE_POSITIONS): Use new LOGICAL_TXTADDR,
80 LOGICAL_TXTOFF, LOGICAL_TXTSIZE macros to figure out numbers
81 for the "logical" text segment (i.e. never consider the exec
82 header to be part of the text segment). This change is
83 needed for consistency with various other parts of bfd and ld.
84 * aoutx.h (NAME(aout,soe_aout_object_p)): Fix comment,
85 and move calculation of obj_textsec(abfd)->size to libaout.h.
86 * bfd-in.h: Removed bogus ';'.
87
88 * Makefile.in: Add MINIMIZE flag to select lean
89 or bloated target_vector.
90 * targets.c: Use new MINIMIZE macro, and add trad_core if needed.
91 * newsos3.c: Fixes to ../include/aout64.h remove need
92 for special N_TXTOFF macro, but require N_HEADER_IN_TEXT.
93
94Mon Nov 18 12:00:59 1991 Per Bothner (bothner at cygnus.com)
95
96 * aout-target.h, aoutf1.h, newsos3.c: Make aout-target.h
97 handle both little and big-endian targets, with little
98 the default unless TARGET_IS_BIG_ENDIAN_P is defined.
99 * host-aout.c: Add FIXME note.
100
101Sun Nov 17 13:29:39 1991 Per Bothner (bothner at cygnus.com)
102
103 * targets.c: Make the default target_vector contain
104 just &DEFAULT_VECTOR. This makes executables a lot smaller.
105 Old behavior can be gotten by defining ALL_TARGETS.
106 * aoutf1.h, demo64.c, i386aout.c, newsos3.c, sunos.c:
107 Factored out common code into new file aout-target.h.
108 Saves a lot of duplicate code for a.out variants.
109
110Fri Nov 15 13:00:43 1991 Per Bothner (bothner at cygnus.com)
111
112 Get 'make headers' to work when configured with +subdirs.
113 * Makefile.in: Add $(subdir) to docdir path.
114 * doc/Makefile.in (protos): Add $(srcdir) prefix
115 to name of sed scripts.
116
c9f19dac
PB
117Thu Nov 14 19:49:10 1991 Per Bothner (bothner at cygnus.com)
118
119 * aoutx.h (NAME(aout,print_symbol)): Fix thinko.
120 * syms.c (bfd_stab_names): Turn on new GNU_EXTRA_STABS macro
121 to include names of N_SETT etc.
122
7d68537f
FF
123Thu Nov 14 19:11:13 1991 Fred Fish (fnf at cygnus.com)
124
58df00e9
FF
125 * elf.c: Add minimal support for ELF symbol tables. Generates
126 canonical bfd symbol tables from ELF symbol tables. Change the
127 name of some functions from bfd_<name> to elf_<name>.
128
7d68537f
FF
129 * syms.c: Trivial fix to comment to remove a redundant "to".
130
131Wed Nov 13 17:02:01 1991 John Gilmore (gnu at cygnus.com)
132
133 * coff-{i386,m68k,m88k}.c: Change name of file format to standard
134 form that GDB recognizes as COFF.
135
6ea296a6
SC
136Wed Nov 13 09:09:41 1991 Steve Chamberlain (sac at cygnus.com)
137
7d68537f 138 * ieee.c (ieee_object_p): cast NULL correctly.
56b10d6d
SC
139 * configure.in: added harris host
140
6ea296a6
SC
141 * coff-a29k.c: Lots of changes, most from David Wood.
142
5685fb50
JG
143Tue Nov 12 07:21:41 1991 John Gilmore (gnu at cygnus.com)
144
145 * coff-m88k.c (coff_write_armap): Just #undef it.
146
080f6324
SC
147Mon Nov 11 20:30:18 1991 Steve Chamberlain (sac at cygnus.com)
148
149 * Makefile.in: standardize on MINUS_G to disable debugging
150 * coff-m88k.c: create coff armaps instead of bsd ones.
151 * opncls.c (bfd_close_all_done), (bfd_close): Mask out random bits
152 when calling chmod.
153
4807bcf9
FF
154Mon Nov 11 19:07:32 1991 Fred Fish (fnf at cygnus.com)
155
156 * elf.c: Additions to support ELF format core files.
157 * config/mh-amix: Add -DHAVE_PROCFS to HDEFINES, since host
158 has support for /proc (all the include files in particular).
159
ff7ce170
PB
160Mon Nov 11 18:36:47 1991 Per Bothner (bothner at cygnus.com)
161
162 * aoutx.h (NAME(aout,find_nearest_line)): Handle the case
163 of two N_SO stabs, one for directory, and one for filename.
164
165 * bfd-in.h (print_vma): Factor out duplicate definition.
166
167 Exit a little more gracefully when malloc returns NULL.
168 * libbfd.c: New function bfd_xmalloc (malloc wrapper).
169 * opncls.c, syms.c, bout.c, aoutx.h: Replace malloc by bfd_xmalloc.
170 * libbfd.h: Rre-generated due to libbfd.c update.
171
a6c1d731
FF
172Sat Nov 9 13:45:01 1991 Fred Fish (fnf at cygnus.com)
173
f135f137
FF
174 * config/mt-m68k-elf: Define DEFAULT_VECTOR as elf_big_vec.
175
a6c1d731
FF
176 * elf.c (elf_object_p): Don't try to create a bfd section for
177 the first ELF section header. It is just a placeholder.
178
285dbe19
JG
179Sat Nov 9 03:04:26 1991 John Gilmore (gnu at cygnus.com)
180
181 * coff-rs6000.c, config/mh-rs6000: Make it work on archive and
182 core files, when compiling native.
183 * hosts/h-rs6000.h: Define FASCIST_FDOPEN for bfd_fdopenr.
184
185 FIXME: The aoutf1.h change below needs to be reversed back
186 to the way it was.
187
85e0c721
SC
188Thu Nov 7 11:03:55 1991 Steve Chamberlain (sac at rtl.cygnus.com)
189
190 * coffcode.h: Defined new macros [PUT|GET]LINENO_LNNO for
191 manipulation of lnno fields in lineno structs in a coff-<f>.h
192 independent way. Override it in coff-<f>.h to your favourite
193 number if you don't have a 16bit lnno field. (coff_swap_lineno_in)
194 (coff_swap_lineno_out): modified to use the new macros.
195
196Mon Nov 4 11:38:33 1991 Steve Chamberlain (sac at cygnus.com)
197
198 * aoutf1.h (sunos4_callback): Now defaults to 68020 rather than
199 unknown arch when the magic number doesn't specify the
200 architecture, since some OSs (eg old sun3s) don't set the number, and
201 020 is probably the right answer anyway.
202
e18e24af
PB
203Sun Nov 3 12:07:08 1991 Per Bothner (bothner at cygnus.com)
204
205 * hosts/h-news.h, hosts/h-rtbsd.h:
206 Get rid of MISSING_VFPRINTF, since libiberty provides one.
207 * bfd-in.h (bfd_print_symbol_type_hopw enum): Add new option
208 bfd_print_symbol_nm, for use by nm.
209 * aoutx.h (NAME(aout,print_symbol)): Add code for new
210 bfd_print_symbol_nm option, to print in nm format.
211 * coffcode.h (coff_print_symbol), ieee.c (ieee_print_symbol)
212 oasys.c (oasys_print_symbol): Provide stub implementations
213 for bfd_print_symbol_nm.
214 * syms.c: New function bfd_decode_symclass, used by nm printer.
215 New function bfd_stab_name to look up string name of stab code.
216
522e0ead
SC
217Sat Nov 2 14:26:03 1991 Steve Chamberlain (steve at cygnus.com)
218
219 * Makefile.in: Added ctor.c
220 * archures.c (bfd_default_arch_struct) added
221 bfd_default_reloc_type_lookup.
222 * coffcode.h: removed a load of #if 0ed code.
223 (coff_compute_file_section_positions): now works out the section
224 alignment and size correctly in all cases.
285dbe19 225 (coff_get_symtab): looks for constructor symbols and calls the
522e0ead 226 right function when they're found. (coff_canonicalize_reloc):
285dbe19 227 knows when a section is full of constructors and does the right
522e0ead
SC
228 thing.
229 * cpu-m88k.c: Added default_reloc_type lookup to the architecture
230 description.
231 * libbfd-in.h: (bfd_default_reloc_type_lookup) defun added.
232 * libcoff.h: removed #if 0ed code
233 * reloc.c: (bfd_reloc_code_real_type) added BFD_RELOC_CTOR for
285dbe19 234 arch independent constructor relocation type.
522e0ead
SC
235 (bfd_reloc_type_lookup): removed the comment "this will go away"
236 since it won't. (bfd_howto_32): stolen from 88k, this is a 32bit
237 reloc which is used when BFD_RELOC_CTOR falls through to give a
285dbe19 238 default 32bit reloc for constructors.
522e0ead
SC
239 (bfd_default_reloc_type_lookup): added.
240 * aoutf1.h: fixed SEGMENT_SIZE typo.
241
6d7c88c3
JG
242Thu Oct 31 18:23:06 1991 John Gilmore (gnu at cygnus.com)
243
244 * coff-rs6000.c: Change name to "aixcoff-rs6000", to avoid
245 matching prefix "coff".
246 * coffcode.h (coff_swap_aux_in, coff_swap_aux_out): Handle
247 rs/6000 csect records.
248
01dd1b2b
SC
249Sun Oct 27 16:56:58 1991 Steve Chamberlain (steve at cygnus.com)
250
da6745fd 251 * coff-m88k.c, targets.c: change name of m88k_bcs to m88kbcs
01dd1b2b
SC
252 * configure.in: add motorola delta88 cases
253 * libbfd.h, libbfd-in.h, archive.c, ieee.c, elf.c, srec.c: fix
254 write_armap prototype
255 * libbfd.c: add doc on bfd_write_bigendian_4byte_int
256
156e3852
JG
257Fri Oct 25 02:48:19 1991 John Gilmore (gnu at cygnus.com)
258
259 * Rename COFF-related files in `coff-ARCH.c' form.
260 coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c,
261 coff-mips.c, coff-rs6000.c to be exact.
262
263 * Makefile.in: Only supply TARGET_DEFAULTS to targets.c, reducing
264 make output clutter.
265 * config/mt-*: Ditto.
266
cbdc7909
JG
267Thu Oct 24 22:40:07 1991 John Gilmore (gnu at cygnus.com)
268