* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
a864a26e
ILT
1Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2
3 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
4 .got section is now explicitly handled in elf.sc.
5
6Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7
8 * scripttempl/alpha.sc: Redo script to set . outside of sections
9 and not bother to explicitly specify section addresses.
10 Explicitly place .sdata section.
11
82950a80
ILT
12Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
13
14 * scripttempl/m68kcoff.sc: Put .bss in data segment.
15
16 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
17 0, and to only be marked as NOLOAD if relocating.
18 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
19 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
20 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
21 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
22 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
23 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
24 * scripttempl/sparclynx.sc: Likewise.
25
26Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
318b02b6
KR
27
28 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
29 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
30 New files.
31
3b21918a
ILT
32Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
33
34 * ld.h (args_type): Add field soname.
35 * lexsup.c (parse_args): Handle -soname argument.
36 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
37 pass soname.
38 * ld.texinfo: Document -soname.
39
69927008
ILT
40Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
41
42 * ldlang.c (lang_check): Don't try to set the architecture if the
43 input and output files are incompatible. Just warn.
44
6d445436
ILT
45Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
46
47 * configure.in: Change i[34]86 to i[345]86.
48
49Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
50
51 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
52
b400f56d
ILT
53Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
54
55 Make the ELF linker handle orphaned sections reasonably. Also,
56 define __start_SECNAME and __stop_SECNAME around sections whose
57 names can be represented in C, for the benefit of symbol sets in
58 glibc.
59 * ldemul.h (ldemul_place_orphan): Declare.
60 (ld_emulation_xfer_type): Add place_orphan field.
61 * ldemul.c (ldemul_place_orphan): New function.
62 * ldlang.h (wild_doit): Declare.
63 * ldlang.c (wild_doit): Make nonstatic.
64 (lang_place_orphans): Call ldemul_place_orphan.
65 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
66 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
67 static variables.
68 (gld${EMULATION_NAME}_place_orphan): New static function.
69 (gld${EMULATION_NAME}_place_section): New static function.
70 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
71
9e5a036f
ILT
72Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
73
74 * scripttempl/aout.sc: Add .linux-dynamic after .data.
75
c1a9aaa3
ILT
76Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
77
9e5a036f
ILT
78 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
79 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
c1a9aaa3 80
1fee94ec
ILT
81Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
82
83 * ldexp.h (exp_get_abs_int): Declare.
84
85Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
86
87 * ldlang.c (lang_do_assignments): Handle complex AT's better.
88 * ldexp.c (exp_get_abs_int): New function.
89
28d1c6ec
JM
90Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
91
92 * configure.in: add i960-nindy-coff support.
93
63936abc
JMD
94Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
95
96 * ldlex.l (yy_create_string_buffer): Handle change to internal
97 interface in flex 2.4.7.
98
bb329c20
JMD
99Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
100
101 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
102 New function; add 0x20 to any use of -Ttext.
103 (gld${EMULATION_NAME}_create_output_section_statements): New
104 function.
105 (ld_${EMULATION_NAME}_emulation): Use the new function
106 gld${EMULATION_NAME}_create_output_section_statements.
107
a1ed2435
ILT
108Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
109
110 * scripttempl/mips.sc: Redo script to set . outside of sections
111 and not bother to explicitly specify section addresses.
112
b019d460
ILT
113Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
114
115 * scripttempl/elf.sc: Copy several more relocation sections into
116 the output. Put .got.plt sections into .got.
117
309c8153
ILT
118Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
119
31ddb156
ILT
120 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
121
122 Add a new script operator, PROVIDE, to define a symbol only if it
123 is needed.
124 * ldgram.y (PROVIDE): New token.
125 (assignment): Accept PROVIDE.
126 * ldlex.l (PROVIDE): New token.
127 * ldexp.h (node_type): Add etree_provide to node_class enum.
128 (exp_provide): Declare.
129 * ldexp.c (exp_fold_tree): Handle etree_provide.
130 (exp_provide): New function.
131 (exp_print_tree): Handle etree_provide.
132 * ld.texinfo: Document PROVIDE.
133
36c6e8c3
ILT
134 * ldlang.c (lang_common): Pass desired alignment to
135 lang_one_common as power of two.
136 (lang_one_common): Get common symbol alignment from linker hash
137 table entry. Treat desired alignment as a power of two.
138
309c8153
ILT
139 * ldlang.c (wild_section): Attach all section with the given name,
140 not just the first one. If there is no name, attach all sections
141 even if the SEC_IS_COMMON flag is set.
142
a1ad915d
ILT
143Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
144
145 * ld.h (args_type): Add field rpath.
146 * lexsup.c (S_ISDIR): Define if not already defined.
147 (parse_args): Add support for -rpath. If -R is used to name a
148 directory, treat it as -rpath for Solaris compatibility.
149 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
150 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
151 * ldmain.c (main): Initialize command_line.rpath to NULL.
152 * ld.texinfo: Document -rpath option.
153
cdf71377
KR
154Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
155
156 * emulparams/pc532machaout.sh: New file. Pc532 mach script
157 parameters.
158
159 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
160
161 * config/pc532mach.mt: New file. Pc532 mach target support.
162
163 * config/pc532mach.mh: New file. Pc532 mach host support.
164
165 * config/netbsd532.mt: New file. Netbsd 532 target support.
166
167 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
168
169 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
170 dependency.
171
db770dfa
ILT
172Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
173
174 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
175 bfd_abs_section_ptr, not &bfd_abs_section.
176
177 * lexsup.c (parse_args): Changed "retain-symbols-file" from
178 no_argument to required_argument. From djm.
179
180Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
181
182 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
183 sections to force a VMA of 0; needed for ELF backends which have
184 not been converted to the new linker style.
185
aee611f5
JL
186Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
187
188 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
189 it was for the HPUX dynamic loader's use and it creates problems
190 with ELF GDB.
191
192Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
193
194 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
195 * ldlang.h (lang_do_assignments): Put external decl here.
196 * emultempl/hppaelf.em: Minor cleanups throughout file.
197 (hppa_elf_create_output_section_statements): Rewrite.
198 (hppaelf_finish): Rewrite.
199
111b24d5
JMD
200Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
201
03730624
JMD
202 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
203
111b24d5
JMD
204 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
205 accept plain -B.
206 * ld.texinfo: -Bstatic is not ignored.
207
1c883f34
SS
208Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
209
210 * ldlex.l: Recognize \r the same as \n.
211
212Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
213
214 Preliminary support for generating shared libraries, from Eric
215 Youngdale <ericy@cais.cais.com>.
216 * genscripts.sh: If the emulation parameter file sets
217 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
218 CREATE_SHLIB defined.
219 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
220 link_info.shared is set, use the .xs script file.
221 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
222 .interp section, and don't include TEXT_START_ADDR in the starting
223 address of the first section.
224 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
225 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
226
1f8b3b57
DM
227Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
228
229 * configure.in: Change --with-targets to --enable-targets.
230
3b7553e7
ILT
231Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
232
cf4245af
ILT
233 * lexsup.c (parse_args): Add support for new options -( -) with
234 synonyms --start-group --end-group.
235 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
236 (lang_group_statement_type): Define new struct.
237 (lang_statement_union_type): Add group_statement field.
238 (lang_enter_group, lang_leave_group): Declare.
239 * ldlang.c (lang_for_each_statement_worker): Handle
240 lang_group_statement_enum.
241 (map_input_to_output_sections, print_statement): Likewise.
242 (lang_size_sections, lang_do_assignments): Likewise.
243 (open_input_bfds): Completely rewrite. Now does its own looping,
244 rather than using lang_for_each_statement. Handle groups.
245 (lang_process): Update call to open_input_bfds.
246 (print_group): New static function.
247 (lang_enter_group, lang_leave_group): New static functions.
248 * ldfile.c (ldfile_open_file): If the file has already been
249 opened, just return rather than taking an assertion failure.
250 * ldver.c (help): Mention new options.
251 * ld.texinfo: Document new options.
252
02b57980
ILT
253 * ldlang.c (end_of_data_section_statement_list): Don't define.
254 (lang_leave_output_section_statement): Don't set obsolete variable
255 end_of_data_section_statement_list.
256
62a4b36c
ILT
257 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
258 ALIGN.
259
686739e2
ILT
260 * ldlang.c (lang_size_sections): Adjust current region address
261 even for sections with an explicit address. From
262 ralphc@pyramid.com (Ralph Campbell).
263
7d56d4f1
ILT
264 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
265 From jrs@world.std.com (Rick Sladkey).
266
3b7553e7
ILT
267 * scripttempl/mipsbsd.sc: Let sections align to their natural
268 boundaries.
269
270Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
271
272 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
273 &bfd_abs_section.
274 (lang_abs_symbol_at_beginning_of): Likewise.
275 (lang_abs_symbol_at_end_of): Likewise.
276 (lang_size_sections): Use bfd_is_abs_section to check for the
277 absolute section. Don't try to set the VMA or output_offset or
278 size of the absolute section.
279 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
280 undefined section.
281
c4aa82c1
JL
282Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
283
284 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
285 when generating relocatable objects.
286
08f20f66
ILT
287Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
288
289 * emultempl/linux.em: New file providing support for linking
290 against Linux shared libraries.
291 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
292 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
293
952b6c2c
ILT
294Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
295
64887de2
ILT
296 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
297 * ldmain.c (main): Initialize link_info.shared to false. Give
298 error if link_info.relocateable and link_info.shared are both set.
299
5d1ffb2f
ILT
300 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
301 it as naming an emulation to be added to EMULATION_OFILES.
302 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
303
bf82ab68
ILT
304 * Makefile.in: Rebuilt dependencies.
305 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
306 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
307 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
308 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
309 (ei386linux.c): Remove; now in Makefile.in.
310 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
311 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
312 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
313 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
314 (eelf64_sparc.c): Remove; now in Makefile.in.
315 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
316 (eelf32_sparc.c): Remove; now in Makefile.in.
317
641fe79b
ILT
318 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
319 no owner--it might be bfd_abs_section. From Eric Youngdale
320 <ericy@cais.cais.com>.
321
952b6c2c
ILT
322 * scripttempl/aout.sc: Let sections align to their natural
323 boundaries.
324
c96386c4
ILT
325Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
326
33b90e52
ILT
327 * ldemul.h (ldemul_open_dynamic_archive): Declare.
328 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
329 * ldemul.c: Include ldexp.h and ldlang.h.
330 (ldemul_open_dynamic_archive): New function.
331 * ldfile.h (ldfile_open_file_search): Declare.
332 * ldfile.c: Include ldemul.h.
333 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
334 argument, not bfd *. Change all callers.
335 (ldfile_open_file_search): Rename from open_a. Return boolean
336 argument, not bfd *. Clean up. Change all callers.
337 (ldfile_open_file): If doing a dynamic link, call
338 ldemul_open_dynamic_archive rather than assuming the extension of
339 a dynamic object is ".so".
340 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
341 New function.
342 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
343 field.
344 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
345
cbbf9608
ILT
346 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
347 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
42792411 348 Accept -static as a synonym for -non_shared.
cbbf9608 349
7fb9ca5f
ILT
350 Let the user change the dynamic linker used by ELF code.
351 * ld.h (args_type): Add new field interpreter.
352 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
353 handle it.
354 * ldmain.c (main): Initialize command_line.interpreter to NULL.
355 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
356 the ELF backend to return the .interp section. If
357 command_line.interpreter is not NULL, set the contents of .interp
358 to it.
359 * ld.texinfo: Mention -dynamic-linker.
360
361 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
362 generic.em.
363
bec7a138
ILT
364 * lexsup.c (parse_args): Sort out the option macros and change the
365 definitions to make it easier to add a new option.
366
66da6c84
ILT
367 * scripttempl/aout.sc: Define __etext and __edata to go along with
368 _etext and _edata.
369
c96386c4 370 * ld.h (ld_config_type): Add new field traditional_format.
605da7e2 371 * lexsup.c (parse_args): Add traditional-format to longopts, and
c96386c4
ILT
372 handle it.
373 * ldmain.c (main): Initialize config.traditional_format to false.
374 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
375 flags of output_bfd according to config.traditional_format.
605da7e2 376 * ldver.c (help): Mention -traditional-format.
c96386c4
ILT
377 * ld.texinfo: Document -traditional-format.
378
7fe331f1
ILT
379Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
380
381 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
382 they are encountered.
383
39a00f7d
ILT
384Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
385
386 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
387 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
388
eb7edfa1
ILT
389Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
390
23677217
ILT
391 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
392 _FTEXT, _ETEXT and _FDATA. Dont define _END.
393
e845d289
ILT
394 * ldfile.c (open_a): If this is not an archive, try to open it in
395 the current directory before searching for it.
396
3e1fd33d
ILT
397 * lexsup.c (parse_args): Treat -i as a synonym for -r.
398
f24078fd
ILT
399 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
400 BLOCK works in a section address as documented.
401
eb7edfa1
ILT
402 * ldgram.y (YYDEBUG): Don't define.
403
f8015b85
ILT
404Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
405
406 * emultempl/gld960.em: Pass false for new argument to
407 ldfile_add_library_path.
408 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
409
410 * emultempl/sunos.em: Only look for .so files if doing a dynamic
411 link.
412
9beeb5d9
ILT
413Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
414
415 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
416
64bb143c
BC
417Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
418
419 * Makefile.in (check): Delete ld.new dependency so that a regression
420 test doesn't trigger a rebuild of the linker.
421
ef01a8a8
ILT
422Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
423
424 * ldlang.c (map_input_to_output_sections): For lang_address, call
425 init_os if it hasn't already been called.
426
ed601bea
ILT
427Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
428
429 Add support for SunOS shared libraries.
430 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
431 shared library support code.
432 * emultempl/sunos.em: New file.
433 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
f7e66391 434 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
ed601bea 435 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
f7e66391 436 (esun3.c): Likewise.
ed601bea
ILT
437
438 * ldlang.c: Minor formatting cleanups.
439 (lang_for_each_input_file): New function.
440 * ldlang.h (lang_for_each_input_file): Declare.
441
442 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
443 field.
444 (search_head): Declare.
445 (ldfile_add_library_path): Add new cmdline argument in prototype.
446 * ldfile.c (search_head): Make non-static.
447 (search_dirs_type): Move to ldfile.h.
448 (ldfile_add_library_path): Accept cmdline argument, and save it.
449 * lexsup.c (parse_args): Pass true for new cmdline argument of
450 ldfile_add_library_path.
451 (set_default_dirlist): Likewise.
452 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
453 argument of ldfile_add_library_path.
454 * ldgram.y (ifile_p1): Likewise.
455
210c52ac
ILT
456Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
457
458 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
459 total_size, superfile and chain.
460 * ldfile.c (open_a): Don't clear search_dirs_flag.
461 (ldfile_open_file): Don't try to open superfile. Assert that file
462 has not already been opened.
463 * ldlang.c (new_afile): Don't initialize superfile.
464 * ldmain.c (add_archive_element): Don't initialize subfiles or
465 chain or superfile. Initialize search_dirs_flag to false.
466
c06e55d9
KR
467Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
468
469 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
470
471 Changes from binutils-2.4 release:
472
473 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
474 variables, use whitespace, so scripts don't break.
475
476 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
477
478 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
479
480 * cdtest-bar.cc: Renamed from cdtest-func.cc.
481 * Makefile.in: Noted change.
482
483 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
484 don't know where that's supposed to come from, or why it's
485 necessary.
486
487 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
488
489 * configure.bat: update to latest makefile.in
490 * emulpara/go32.sh: set to coff-go32 not aout
491 * emultemp/generic.em: strength-reduce the structure of
492 this shell script, since the only available shell for
493 DOS can't handle complex syntax.
494 * emultemp/stringify.sed: for "sed -f" instead of inline.
495 * makefile.in: depend on stringify.sed as well as genscripts.sh
496 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
497 * genscripts.sh: empty variables aren't always considered "set",
498 so set them to "y" instead.
499
29371b1f
ILT
500Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
501
60e8a534
ILT
502 * ldlang.c (entry_symbol): Make static.
503 (lang_add_entry): Add cmdline argument.
504 * ldlang.h (lang_add_entry): Change prototype.
505 * ldgram.y (statement_anywhere): Change lang_add_entry call.
506 * lexsup.c (parse_args): Likewise.
29371b1f 507
f49f58c6
ILT
508Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
509
510 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
511 .reginfo an address.
512 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
513 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
514 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
515
2a9fa50c
ILT
516Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
517
518 Add support for ELF shared libraries.
519 * ld.h (ld_config_type): Add field dynamic_link.
520 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
521 on attempts to use -r with -relax, -call_shared or -s.
522 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
523 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
524 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
525 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
526 OPTION_NON_SHARED by setting dynamic_link field accordingly.
527 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
528 -r and -Ur.
529 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
530 opening a file with a .so extension first.
531 * emultempl/elf32.em: New file.
532 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
533 (NONPAGED_TEXT_START_ADDR): Likewise.
534 (TEMPLATE_NAME): Define as elf32.
535 (DATA_PLT): Define.
536 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
537 * scripttempl/elf.sc: Add placement for new dynamic sections.
538 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
539 outside of any section. Don't use ALIGN(8); just let one section
540 VMA follow another. Put .dynbss in .bss. Don't mention debugging
541 sections; they'll be handled correctly anyhow.
542 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
543
188ce705
ILT
544Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
545
546 * Makefile.in (install): Redirect output of ln to /dev/null.
547
4bd5c39f
JL
548Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
549
550 * emultempl/hppaelf.em: Change all references of
551 .hppa_linker_stubs to .PARISC.stubs.
552 * scripttempl/hppaelf.sc: Likewise.
553
439a3604
ILT
554Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
555
269773c1
ILT
556 * ldlang.c (print_output_section_statement): Change ``no attached
557 output section'' message slightly.
558 (lang_do_assignments): Don't recurse down if there is no real
559 section.
560
439a3604
ILT
561 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
562 match corresponding change in emulation templates.
563 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
564 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
565
82ebe9a2
KR
566Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
567
568 * ldver.c (ldversion): Updated version number.
569
570 * cdtest-foo.cc: Use explicit "#pragma implementation".
571 * cdtest-bar.cc: Renamed from cdtest-func.cc.
572 * Makefile.in: References to cdtest-func.o changed to
573 cdtest-bar.o.
574
f9d3d71a
ILT
575Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
576
577 Don't create unnecessary output sections.
578 * ldlang.c (out_bfd_get_section_by_name): Remove.
579 (wild_section): Call bfd_get_section_by_name rather than
580 our_bfd_get_section_by_name. Don't call wild_doit if there is no
581 section.
582 (lang_create_output_section_statements): Remove.
583 (map_input_to_output_sections): For several cases, call init_os if
584 it has not already been called.
585 (lang_size_sections): If output section was not created, skip it.
586 (lang_process): Don't call lan_create_output_section_statements.
587 (lang_place_orphans): Skip files with just_syms_flags set to true.
588 * ld.texinfo: Document change.
589
27f7237e
ILT
590Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
591
592 * ldlang.c (wild_doit): Don't bother initializing the vma and
593 section size. Don't special case SEC_SHARED_LIBRARY.
594 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
595 specially.
596
c1124600
ILT
597Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
598
599 * config/go32.mh : New file for Xgo32X.
600
f6671f28
ILT
601Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
602
5acce559
ILT
603 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
604 before calling einfo, since we are reporting an fopen failure.
605 From jrs@world.std.com (Rick Sladkey).
606
f6671f28
ILT
607 * configure.in: Use "e" rather than "em_" as prefix for
608 emulations.
609
6e1e82a0
KR
610Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
611
612 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
613 filename.
614 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
615 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
616 Ditto.
617 * Makefile.in: Changed all generated file names.
618 (ldemul-list.h): Depend on Makefile, not config.status. Changed
619 sed patterns to handle new filenames.
620
621 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
622 * configure.in: Adjusted.
623
624Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
625
626 * Makefile.in (install-info): Don't use "$<*", it doesn't always
627 work. Instead, check build dir and $srcdir explicitly, and use
628 `echo' to get all the filenames.
629
630 * configure.in (h8300h-*-hms): Changed ld_target name to
631 cf-h8300h.
632 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
633 unique in 8.3.
634
635 * config/i960coff.mt: New file.
636 * emulparams/gld960coff.sh: New file.
637 * emultempl/gld960c.em: New file.
638 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
639 i960coff configuration.
640 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
641
642 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
643 code isn't included in FSF releases, and it can still be
644 explicitly selected.
645 (distclean): Remove site.bak and tmpdir.
646 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
647 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
648
649 Patches from Ralph Campbell:
650 * config/mipsbsd.mh: New file.
651 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
652 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
653 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
654 instead of `aout'.
655
656 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
657
269ec825
ILT
658Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
659
6e1e82a0
KR
660 * config/m68k.mt (EMUL): Set to m68kaout.
661 * emulparams/m68kaout.sh: New file.
662 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
663 (em_m68kaout.c): New target.
664
269ec825
ILT
665 * ldlang.c (lang_size_sections): If dot moves because of an
666 assignment, don't try to insert a pad into the absolute output
667 section, just change the address of the default memory region
668 instead.
669
670 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
671 cdtest-ur.out, and cdtest-ur.tmp.
672
e6d84626
ILT
673Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
674
675 * scripttempl/sa29200.sc: Align all sections to four byte
676 boundaries.
677
6c86b9ff
SC
678Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
679
680 * Makefile.in, configure.in: Support for go32 coff.
681 * config/i386-go32.mt: New file
682 * emulparams/i386go32.sh: New file
683 * scripttempl/i386go32.sc: New file
684
028f8872
SS
685Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
686
687 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
688 Lynx-specific script templates.
689 * configure.in (sparclite*-*-coff): Use coff-sparc.
690 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
691 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
692 (ENTRY): Set to __main.
693 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
694 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
695 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
696
cde73501
ILT
697Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
698
c435aba8
ILT
699 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
700 byte boundary, in case the global constructors do not take up an
701 even 16 bytes.
702
cde73501
ILT
703 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
704 exist, get crtbegin based on gcc -print-libgcc-file-name.
705 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
706
feaa9c4b
ILT
707Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
708
709 * ldlang.c (lang_size_sections): When no address is given for a
710 section, align it according to its requirements.
711
1e45c4c3
ILT
712Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
713
714 * Makefile.in (clean, distclean): Remove configdoc.texi.
715
9ad75873
BC
716Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
717
718 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
719
9d87af56
ILT
720Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
721
722 * ldlang.c (lang_size_sections): When relaxing, adjust the
723 position of a padding statement, and adjust dot accordingly.
724
ea68d58d
BC
725Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
726
727 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
728
4f2ee958
ILT
729Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
730
731 * scripttempl/i386coff.sc: If relocating, don't put .init and
732 .fini sections into .text; keep them separate.
733 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
734 exist, get crtbegin based on gcc -print-libgcc-file-name.
735 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
736
099c286e
BC
737Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
738
739 * Makefile.in (check): Set TCL_LIBRARY for runtest.
740
79f7de91
JL
741Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
742
f39a73b1
JL
743 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
744 manufacturer.
745
79f7de91
JL
746 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
747 if building a final executable.
748
67d0e7ff
ILT
749Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
750
751 * ldmain.c (main): Check the return value of bfd_close.
752
be9ffc1f
ILT
753Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
754
755 * scripttempl/alpha.sc: Clean up section alignment to ensure that
756 sections never overlap when using -r.
757
6c00b04f
ILT
758Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
759
760 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
761 changes: get_symtab_upper_bound renamed and returns long,
762 bfd_canonicalize_symtab returns long, check for error indications.
763
f078dc7c
ILT
764Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
765
766 * ldlang.c (print_input_section): For section size, use
767 _cooked_size if it is non-zero, size otherwise.
768 (size_input_section): Likewise.
769 (lang_do_assignments): Likewise (case lang_input_section_enum).
770
193c5f93
ILT
771Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
772
773 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
774 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
775 (lang_add_input_file): Pass true to new_afile for add_to_list.
776 (lookup_name): Remove force_load argument. Changed all callers.
777 Pass false to new_afile for add_to_list. Split loading of symbols
778 out into separate function.
779 (load_symbols): New function split out of lookup_name. Don't load
780 the symbols if they are already loaded.
781 (open_input_bfds): For lang_input_statement_enum call load_symbols
782 rather than lookup_name.
783 (lang_process): Pass abs_output_section rather than NULL to
784 lang_size_sections.
785 (lang_startup): Set real field of first_file to true.
786
a2670c2f
ILT
787Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
788
193c5f93
ILT
789 * ldlang.c (had_relax): Removed.
790 (relax_again): New static variable.
791 (lang_size_sections): Change call to bfd_relax_section to
792 correspond to BFD changes. Set relax_again appropriately.
793 (lang_process): Remove #if 0 code. When relaxing, keep calling
794 lang_do_assignments and lang_size_sections until relax_again
795 becomes false.
796
a2670c2f
ILT
797 * emultemp/gld960.em: Include libiberty.h
798 (gld960_before_parse): Pass NULL as final argument to concat.
799
f3bc3ac3
ILT
800Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
801
f7a26f1b
ILT
802 * scripttempl/aout.sc: Force _end and __end to be aligned to a
803 four byte boundary.
804
f3bc3ac3
ILT
805 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
806 building a bfd_data_link_order, rather than by setting the section
807 contents immediately.
808
4fdbafb2
ILT
809Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
810
811 Changes to make -Ur work again.
812 * ldmain.c (add_to_set): Now takes reloc argument rather than
813 bitsize. Check config.build_constructors here. If an new hash
814 table entry is created, mark it as undefined.
815 (constructor_callback): No longer takes bitsize argument. Pass
816 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
817 BFD backend supports it.
818 (reloc_overflow): Handle a NULL abfd argument.
819 (reloc_dangerous, unattached_reloc): Likewise.
820 * ldctor.c: Include ldmain.h.
821 (struct set_info): Change bitsize field to reloc.
822 (ldctor_add_set_entry): Now takes reloc argument rather than
823 bitsize. Don't bother to check config.build_constructors here.
824 (ldctor_build_sets): Get the size from the reloc howto. If
825 generating relocateable output, call lang_add_reloc rather than
826 lang_add_data.
827 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
828 instead of bitsize.
829 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
830 (lang_reloc_statement_type): New structure.
831 (lang_statement_union_type): Add reloc_statement field.
832 (lang_add_reloc): Declare new function.
833 * ldlang.c (lang_for_each_statement_worker): Handle
834 lang_reloc_statement_enum.
835 (map_input_to_output_sections, print_statement): Likewise.
836 (lang_size_sections, lang_do_assignments): Likewise.
837 (print_reloc_statement): New function.
838 (lang_add_reloc): New function.
839 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
840
841 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
842 (cdtest-ur, cdtest-ur.out): New targets.
843 (check-cdtest): Now also check that -Ur works correctly.
844
845 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
846
847Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
848
849 * ldlang.c (lang_process): Move lang_common call before
850 map_input_to_output_sections, to ensure that any alignment
851 constraints set by common symbols are copied over to the output
852 sections.
853
854Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
855
856 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
857 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
858 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
859 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
860 needed for ELF.
861
0071a731
DM
862Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
863
864 * config/i386bsd.mh: New file.
865
7f0638d5
ILT
866Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
867
868 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
869 defined.
870 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
871 (DATA_START_SYMBOLS): Define _fdata.
872
b897ed67
SS
873Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
874
875 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
876
2e39abdb
JL
877Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
878
ff68559e
JL
879 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
880 works again. Attach some output symbols to the stub file bfd.
881
2e39abdb
JL
882 * emultempl/hppaelf.em: Include elf32-hppa.h.
883 (file_chain): Add decl.
884 (hppa_look_for_stubs_in_section): Delete decl.
885 (hppaelf_finish): Reenable code. Do not pass symbols
886 down to hppa_look_for_stubs_in_section.
887
b495c314
ILT
888Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
889
890 * ldmain.c (write_map): Don't define. Removed all references.
891 Just use map_file or map_filename instead.
892 (add_archive_element): Use minfo to write map information, not
893 info_msg.
894 (constructor_callback): Use fprintf to write map information, not
895 info_msg.
896 * ldmain.h (write_map): Don't declare.
897 * ldgram.y (mri_script_command): Removed reference to write_map.
898 * ldlang.c (lang_one_common): Likewise.
899 * lexsup.c (parse_args): Likewise.
900
4725fb48
ILT
901Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
902
bff600cf
ILT
903 * scripttempl/elf.sc: Force all sections to be aligned.
904
27baca71
ILT
905 * ldgram.y (section): Reverse the order of memspec_opt and
906 fill_opt to avoid an ambiguity when both are used.
907 * ld.texinfo: Changed accordingly.
908
6232b6c4
ILT
909 * ldgram.y: Move include of ldlex.h back with other includes.
910 * ldlex.h (input_type): Don't initialize enum constants to
911 particular values.
912 * ldlex.l: Use a switch to return the right token based on
913 input_type, rather than knowing that input_type has a value based
914 on a token type.
915
4725fb48
ILT
916 * ldgram.y (dirlist_ptr): Removed; not used.
917 * lexsup.c: Include ldver.h.
918 * Makefile.in: Rebuilt dependencies.
919
fc1dfb71
ILT
920Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
921
922 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
923 (ldlang_add_file): call it here instead.
924
ff33a8c1
DM
925Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
926
927 * ldgram.y: Include ldlex.h after %token decls, for byacc.
928
a62494c4
JL
929Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
930
531a5bd1
JL
931 * emultempl/hppaelf.em: First attempt to clean this file up.
932 Add comments in several functions as to their purpose and
933 how they function (or my current best guess). Clean up horrible
934 spacing and indention that never should have been accepted in the
935 first place. Add FIXMEs for issues which need to be resolved.
936 Disable linker-stub generation until it gets fixed. This allows
937 the linker to at least work on simple code for testing purposes.
938
a62494c4
JL
939 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
940 it via hppaelf_finish). Prototype moved into ldlang.h.
941 (lang_process): Move problematic extra call to lang_size_sections
942 into the PA ELF specific code.
943 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
944 lang_size_sections moved here.
945
c361ce46
ILT
946Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
947
948 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
949 * config/ppc-elf32.mt: New file.
950 * emulparams/elf32ppc.sh: New file.
951 * emultempl/ppc.em: New file.
952 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
953 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
954 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
955
d4e5e3c3
DM
956Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
957
d5b79a89
DM
958 * lexsup.c (parse_args): Use symbolic numbers for long options.
959 Fix misunderstanding in -Y and -call_shared et al.
960
d4e5e3c3
DM
961 Use getopt instead of lex and yacc to parse the command line.
962
963 * ld.texinfo (Options): Document changes to option syntax.
964 * Makefile.in: Update dependencies.
965 * ldver.c (help): Tweak dashes in usage message.
966 * ldgram.y (%union): Remove unused members.
967 Remove %tokens for command line options; add ones for input types.
968 (command_line): Rules removed.
969 (file): Instead of command line, recognize an
970 input type indicator, then use the nonterminal for that type.
971 (defsym_expr): New nonterminal from code formerly in command_line.
972 * ldlex.h: Declare parser input type enum and variable.
973 Don't declare parse_line.
974 * ldlex.l: Remove unused variables. Make some used ones static
975 and comment them.
976 (COMMAND): Start state and its rules removed.
977 At start of yylex, return input state token if at start of input.
978 (lex_redirect): Don't need to set yyout.
979 (ldlex_command): Function removed.
980 * ldmain.c (main): Instead of calling parse_line, set up the
981 redirections and call yyparse directly.
982 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
983 "command line".
984 * lexsup.c: Remove #if 0'd code.
985 (parse_line): Function removed.
986 (parse_args): Rewrite to use getopt_long_only.
987 (set_default_dirlist): New function from code formerly in
988 ldgram.y:command_line.
989 (set_section_start): New function.
990 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
991 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
992 compiled-in link scripts in "{" and "}", as the grammar no longer
993 wants them to be.
994
995Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
996
997 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
998 require that it be in $(srcdir).
999
6b8929a1
ILT
1000Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
1001
a733e1d7
ILT
1002 * ldlang.c (lang_size_sections): Only align section to alignment
1003 required by linker script, not to maximum alignment of input
1004 sections.
1005
6b8929a1
ILT
1006 * ldlang.h (largest_section): Don't declare.
1007 * ldlang.c (largest_section): Don't define.
1008 (size_input_section): Don't set largest_section; not used.
1009
ef76742f
ILT
1010Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
1011
1012 * ldlang.c (new_afile): Pass NULL as last argument to concat.
1013
42f62ead
ILT
1014Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1015
1016 * ldlang.c, ldmain.c: Include libiberty.h.
1017
1018 * ldmisc.h (concat): Don't declare.
1019 * ldmisc.c (concat): Don't define; just use the one in libiberty.
1020
1021 * ld.h (as_output_section_statement): Removed; not used.
1022
5bcb7f28
DM
1023Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1024
1025 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
1026 bfd_set_error and new error names.
1027
7ff6f2da
KR
1028Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1029
1030 * ldwrite.c (build_link_order): If the cooked size of the section
1031 has been set, use it, for determining link_order size.
1032 (ldwrite): In the error message displayed if bfd_final_link fails,
1033 indicate that it was in fact the final link step that failed.
1034
1035 * ldlang.c (lang_size_sections): Clear bfd_error before calling
1036 bfd_relax_section, in case it returns false but doesn't flag an
1037 error. If an error is returned, indicate which one it is in the
1038 error message.
1039
1040 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
1041 it'll get picked up from $(srcdir) if appropriate.
1042
1043Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
1044
1045 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
1046 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
1047
09aaf97a
DM
1048Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1049
1050 * ldlex.l (comment): Increment line number when newline is read.
1051
c4e48be3
ILT
1052Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1053
1054 * ldlang.c (lookup_name): Take new argument, force_load. If true,
1055 reload the file even if it is already loaded.
1056 (wild): Call lookup_name with force_load argument of 0.
1057 (open_input_bfds): Call lookup_name with force_load argument of 1.
1058 (print_symbol): Remove declaration of non-existent function.
1059 (print_one_symbol): Return true rather than falling off end.
1060
410945f1
ILT
1061Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1062
1063 * ldmain.c (main): Use %ld when printing long values.
1064
1065 * scripttempl/elf.sc: Move _edata after the .sdata section.
1066 Permit OTHER_BSS_SYMBOLS to be defined.
1067 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
1068
f7d4f6f6
JL
1069Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1070
1071 * Rename all "hppaosf" files to "hppaelf".
410945f1
ILT
1072 * Change all "osf" references to "elf" in hppaelf files.
1073 * Makefile.in: Likewise.
1074 * configure.in: Likewise.
f7d4f6f6 1075
f4972135
DM
1076Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1077
6f671266
DM
1078 * ldmain.c (main): Call xatexit, not atexit.
1079 Call xmalloc_set_program_name.
1080
f4972135
DM
1081 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
1082 bfd_errno.
1083
52a8ebfe
DM
1084Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1085
1086 * emultempl/lnk960.em (append), emultempl/hppaosf.em
1087 (hppaosf_finish): Call xmalloc, not ldmalloc.
1088 * ldmain.c (preserve_output): Function removed.
1089 (main): Do it here instead.
1090
9dd7d585
JL
1091Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1092
1093 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
1094 GNU C specific macros.
1095
1096 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
1097 call to LANG_FOR_EACH_INPUT_SECTION.
1098
0b2f8d2e
DM
1099Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1100
1101 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
1102 deleted; will use libiberty versions instead.
1103 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
1104 mri.c Makefile.in: Change callers.
1105
1106 * ldmisc.c (vfinfo): Remove cleanup code.
1107 * ldmain.c (remove_output): Put it here (new function).
1108 (preserve_output): New function.
1109 (main): Register remove_output and preserve_output with atexit.
1110 * ldmain.c ldgram.y: Call xexit instead of exit.
1111 * ldmisc.h: Declare xexit.
1112
9e0f78c8
SC
1113Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
1114
1115 * Makefile.in: Lots of new H8/500 memory models.
1116
836dcbcf
KR
1117Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1118
1119 * ldlex.l: Removed duplicate rules.
1120 (yywrap): Provide default definition, needed with some versions of
1121 flex.
1122
fb55f9b8
DM
1123Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1124
288897f4
DM
1125 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
1126 the archive filename too.
1127
fb55f9b8
DM
1128 * ldlex.l: Add rule to catch invalid input characters instead of
1129 printing them. Include "ldmain.h" for program_name decl.
1130 (lex_warn_invalid): New function.
1131 * Makefile.in: Add dependency.
1132
f3c6455f
KR
1133Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1134
1135 * Makefile.in (check): Don't bother running any tests of
1136 cross-linker until the test suite no longer assumes native mode.
1137
804c8601
SC
1138Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1139
1140 * ldlang.c (print_one_symbol, print_input_section): Print
1141 global symbols in symbol table again.
1142
7b40f2b1
DM
1143Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1144
1145 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
1146 exit successfully instead of complaining if no input files are
1147 given.
1148
8594f568
SS
1149Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
1150
74e6b793
SS
1151 * Makefile.in: Format variable definitions consistently.
1152 (LD_PROG): Remove unnecessary variables from link command,
1153 change variable LOADLIBES to EXTRALIBS.
1154
8594f568
SS
1155 * ldmain.c (main): Compute and display total execution time.
1156 * ld.texinfo (-stats): Document the option.
1157
755f42fe
ILT
1158Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1159
5dad4c97
ILT
1160 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
1161 arguments.
1162
de08b0b1
ILT
1163 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
1164 after opening BFD.
1165
755f42fe
ILT
1166 * ldlang.c (relaxing): Removed global variable.
1167 (lang_size_sections): If the canonical symbols have not already
1168 been read in, read them in before relaxing.
1169 * ldlang.h (relaxing): Removed declaration.
1170
5e6cd559
ILT
1171Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1172
1173 * ldlang.c (new_afile): Initialize loaded field to false.
1174 (lookup_name): If file was already loaded, don't call the
1175 add_symbols entry point again.
1176
8de26d62
DM
1177Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1178
1179 * ld.texinfo: Clarify what -T option does.
1180
a843c817
SC
1181Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1182
1183 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
1184 for a.out.
1185
901f3538
ILT
1186Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1187
8a432746
ILT
1188 * ldmain.c (add_archive_element): If trace_files or
1189 trace_file_tries, print file name.
1190 * ldlang.c (lookup_name): Likewise.
1191 (ldlang_add_file): Don't put files on input_bfds list in reverse
1192 order.
1193
901f3538
ILT
1194 * scripttempl/elf.sc: Correct typo.
1195
c344d884
DM
1196Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1197
1198 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
1199 their arguments optional, for compatibility with the old GNU ld.
1200
267a3ab3
ILT
1201Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1202
1203 * scripttempl/elf.c: Define __bss_start before the .sbss section.
1204
3107eb5b
ILT
1205Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1206
2f84ec0d
ILT
1207 * ldmain.c (add_to_set): Add bitsize argument.
1208 (constructor_callback): New function.
1209 (link_callbacks): Add constructor_callback.
1210 * ldctor.c (struct set_info): Add bitsize field.
1211 (ldctor_add_set_entry): Add bitsize argument.
1212 (ldctor_build_sets): Base the size of the elements of the set on
1213 the bitsize, rather than always using LONG.
1214 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
1215
1216 * ld.h (QUAD_SIZE): Define.
1217 * ldgram.y (QUAD): New token.
1218 (length): Handle it.
1219 * ldlex.l: Return QUAD.
1220 * lexsup.c (keywords): Add QUAD.
1221 * ldwrite.c (build_link_order): Handle QUAD.
1222 * ldlang.c (print_data_statement): Handle QUAD.
1223 (lang_size_sections): Likewise.
1224 (lang_do_assignments): Likewise.
1225 * ldexp.c (exp_print_token): Add QUAD to table.
1226 * ld.texinfo: Describe QUAD.
1227
3107eb5b
ILT
1228 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
1229 since the Alpha doesn't use them.
1230
080d8af0
DM
1231Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1232
1233 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
1234
1235Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
1236
1237 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
1238 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
1239
34f9bf4b
DM
1240Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1241
1242 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
23fdc6be 1243 needed for i386mach. (Should be a no-op on other systems.)
34f9bf4b
DM
1244
1245 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
1246 (PAGE_SIZE): Don't define; not used.
1247
1d166443
ILT
1248Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1249
1250 * ldgram.y (yyerror): Make argument const char *, and actually
1251 print it out rather than assuming it is a syntax error.
1252 * ldmisc.h: Change declaration of yyerror.
1253 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
1254
ae9c8007
DM
1255Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1256
1257 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
1258 exec header offset, since the exec header isn't loaded.
1259 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
1260
4a6afc88
ILT
1261Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1262
1263 A major rewrite to move the bulk of the linker into BFD so that
1264 more efficient backend code can be written for specific object
1265 files.
1266 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
1267 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
1268 * ldctor.c, ldctor.h: Complete rewrite.
1269 * ldwrite.c, ldwrite.h: Complete rewrite.
1270 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
1271 link_info.strip instead. Changed all uses.
1272 (discard_locals_type, discard_locals): Removed. Use
1273 link_info.discard instead. Changed all uses.
1274 (ld_config_type): Removed relocateable_output field; use
1275 link_info.relocateable instead; changed all uses. Added stats
1276 field.
1277 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
1278 set_loader_symbol): Removed.
1279 * ldexp.h (node_class): Added etree_rel.
1280 (etree_type): Added rel field.
1281 * ldexp.c (exp_print_token): Bracketed table initialization.
1282 (exp_relop): New function.
1283 (fold_name): Use linker hash table rather than ldsym functions.
1284 (exp_fold_tree): Likewise. Also, handle etree_rel case.
1285 (exp_print_tree): Handle etree_rel.
1286 * ldgram.y (strip_symbols, discard_locals): Removed.
1287 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
1288 (REL): New token. Does not appear in grammar, but needed for
1289 expression code.
1290 (file): Don't call lang_final; it's called by main anyhow.
1291 * ldlex.l: Accept -stats and -no-keep-memory options.
1292 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
1293 * ldlang.c: Consistently use fill_type for fill argument.
1294 (lang_init_script_file, script_file): Removed.
1295 (create_object_symbols): Removed. Use
1296 link_info.create_object_symbols_section instead. Changed all
1297 uses.
1298 (lang_add_keepsyms_file): Removed.
1299 (lookup_name): Call bfd_link_add_symbols instead of
1300 ldmain_open_file_read_symbol.
1301 (wild): Don't iterate over script_file.
1302 (open_output): Create link hash table.
1303 (lang_place_undefineds): Rewrote.
1304 (lang_size_sections): Handle relaxing (doesn't work yet).
1305 (lang_relocate_globals): Removed.
1306 (lang_finish): Use link hash table rather than ldsym functions.
1307 (lang_common): Rewrote.
1308 (lang_one_common): New function.
1309 (ldlang_add_file): Add file to link_info.input_bfds list. Set
1310 usrdata.
1311 (create_symbol): Removed.
1312 (lang_process): Don't call lang_init_script_file. Call
1313 ldctor_build_sets rather than find_constructors. Don't call
1314 lang_relocate_globals.
1315 (lang_abs_symbol_at_beginning_of): Rewrote.
1316 (lang_abs_symbol_at_end_of): Rewrote.
1317 * ldmain.c (had_y): Removed.
1318 (lprefix, lprefix_len): Removed; use link_info fields instead.
1319 Changed all uses.
1320 (multiple_def_count, commons_pending, undefined_global_sym_count,
1321 total_symbols_seen, total_files_seen): Removed.
1322 (link_callbacks, link_info): New variables.
1323 (main): Initialize link_info. Don't call init_bfd_error_vector or
1324 ldsym_init. Don't set now unused variables. Handle -stats.
1325 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
1326 (add_ysym): Rewrote.
1327 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
1328 search_library, gnu960_check_format, decode_library_subfile,
1329 linear_library, symdef_library, clear_syms, subfile_wanted_p):
1330 Removed.
1331 (add_keepsyms_file, add_archive_element, multiple_definition,
1332 multiple_common, add_to_set, warning_callback, undefined_symbol,
1333 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
1334 New functions.
1335 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
1336 require symbols for %C; look them up instead.
1337 * emultempl/hppaosf.em: Pass link_info to
1338 hppa_look_for_stubs_in_section.
1339 * Makefile.in: Rebuilt dependencies.
1340 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
1341 relax.c.
1342 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
1343 relax.h.
1344 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
1345 ldlang.h and ldctor.h.
1346
1347 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
1348 declarations of free and malloc from flex output. Change malloc
1349 to ldmalloc in flex output.
1350
1351Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1352
1353 * ldmain.c (lprefix): Change default from a char to a string
1354 with only one character.
1355 (lprefix_len): Set default to one.
1356
1357 * ldmain.h (lprefix_len): Declare.
1358
1359 * ldsym.c (write_file_locals): Use strncmp rather than a character
1360 comparison for lprefix.
1361
1362 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
1363 correctly.
1364
1365 * emultmpl/hppaosf.em: Include ldexp.h.
1366 (before_parse): Set lprefix and lprefix_len correctly.
1367
498fbd3c
ILT
1368Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1369
553b0021
ILT
1370 * ldlex.h: Don't declare yywrap if it is a macro.
1371 * ldlex.l: Include sysdep.h.
498fbd3c
ILT
1372 * ldlang.c (lang_for_each_statement_worker,
1373 lang_for_each_statement): Forgot to use PARAMS.
1374
1400cdc5
ILT
1375Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1376
1377 * Makefile.in: Added .PHONY targets where appropriate. Added some
1378 comments. Also:
1379 (gcclibdir, version): Removed unused variables.
1380 (DEP): New variable, set to mkdep.
1381 (ALL_CFLAGS): New variable. Used in .c.o target.
1382 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
1383 variables.
1384 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
1385 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
1386 mostly obsolete variables. Adjusted remaining uses.
1387 (DEF_EMUL): Removed variable.
1388 (ldmain.o): Handle undefined EMUL error correctly.
1389 (ldemul-list.h): Depend on config.status rather than Makefile.
1390 Create via temporary file.
1391 (ver960.c, roll, make): Removed obsolete targets.
1392 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
1393 dependencies.
1394 * dep-in.sed: New file, used when rebuilding dependencies.
1395
2c6635a4
ILT
1396Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
1397
fcf276c4
ILT
1398 Made many changes to eliminate gcc warnings. Made various
1399 cosmetic changes, declared various things in header files, removed
1400 various extern declarations from .c files. No substantive
1401 changes.
1402
2c6635a4
ILT
1403 * ldlang.c (lang_process): Ifdef out final call to
1404 lang_size_sections again (reverting change of Nove 2), since it
1405 breaks the Sun4 linker.
1406
1407Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1408
1409 * configure.in (alpha-*-netware*): New target; use alpha.
1410
d05ac46b
KR
1411Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
1412
1413 * configure.in: Group targets by CPU. Merge some m68k target
1414 entries with different CPU specs that use the same ld_target
1415 values.
1416
1417 * configure.in: Add sparc*-*-coff.
1418 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
1419 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
1420 (em_coff_sparc.c): Add dependencies and build rules.
1421
1422 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
1423
f651733a
ILT
1424Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1425
8e964b07
ILT
1426 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
1427 New tokens.
f651733a 1428 (command_line_option): Accept and ignore them (for now).
8e964b07
ILT
1429 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
1430 where n is a number.
f651733a
ILT
1431
1432Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1433
1434 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
1435 not in bfd_com_section, create the section in the BFD so that it
1436 can be placed in the right output section.
1437
2332114c
ILT
1438Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1439
1440 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
1441 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
1442 (OTHER_READONLY_SECTIONS): Define for .reginfo.
1443 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
1444 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
1445 Move OTHER_READONLY_SECTIONS after all the other readonly
1446 sections. Don't use DATA_ADDR twice.
1447
1448 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
1449 p is in a common section, make sure the BFD has a section of that
1450 name.
1451
1452 * ldlang.c (lang_common): Add newline to error message.
1453
1454Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
1455
1456 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
1457 Lynx-specific script instead of m68kcoff.
1458 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
1459 (ENTRY): Define as __main.
1460 (TEXT_START_ADDR): Define as 0.
1461 (PAGE_SIZE): Define as 0x1000.
1462 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
1463 * scripttempl/m68klynx.sc: New file.
1464
1465Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1466
1467 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
1468 arguments rather than treating them as emulation names.
1469
b11b3ace
DHW
1470Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
1471
1472 * configure.in: Support x86 unixware and netware plus generic netware.
1473
2ccb88c0
DM
1474Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1475
1476 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
1477 Correct values (?).
1478
3c1af24d
KR
1479Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
1480
1481 * Makefile.in (distclean): Don't delete dvi or info files.
4ecfad79 1482 (ld.info): Update dependency list.
2ccb88c0 1483 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
3c1af24d 1484
3c292c5a
DM
1485Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1486
1487 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
1488 Set output_filename instead of creating a new node.
1489 (open_output): Don't set output_filename.
1490 (lang_final): Create the new node here.
1491 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
1492
97fbbaca
JL
1493Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1494
f1f6b5e9
JL
1495 From Pete Hoogenboom (hoogen@cs.utah.edu):
1496
1497 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
1498 edata, _edata, end): Add definitions of these symbols.
1499 (__end): Remove definition of this symbol.
1500 (__data_start): Move definition of this symbol.
1501
5f62613e
JL
1502 * emultempl/hppaosf.em: Various fixes and support for linker stub
1503 generation.
1504 (hppaosf_finish, hppaosf_search_for_padding_statements,
1505 hppaosf_create_output_section_statements): New functions in
1506 support of linker stub generation.
1507 (ld_hppaosf_emulation): Redefine to include new
1508 emulation-specific routines.
1509
97fbbaca
JL
1510 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
1511 Pass abs_output_section rather than NULL to avoid invalidating
1512 absolute symbols.
1513
1514Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1515
1516 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
1517 (em_i386mach.c): New rule.
1518 * configure.in (i[34]86-*-mach*): New case.
1519 * config/i386-mach.mt: New file.
1520 * emulparams/i386mach.sh: New file.
1521
c3b34cfd
ILT
1522Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1523
1524 * ld.h (flag_is_*): Removed macros.
1525 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
1526 Consistently check the BFD symbol flags directly, rather than
1527 using file_is_* macros.
1528
7b95fe96
SS
1529Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
1530
1531 * configure.in (sparc*-*-lynxos*): New target.
1532 * Makefile.in: Add rule for em_sparclynx.c.
1533 (ALL_EMULATIONS): Add Lynx emulations.
1534 * config/sparc-lynx.mt: New file.
1535 * emulparams/sparclynx.sh: New file.
1536 * scripttempl/sparccoff.sc: New file.
1537
d17eb3db
ILT
1538Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1539
1540 * Makefile.in: Add dependency for $(EMULATION_OFILES).
1541
db4b5ad0
ILT
1542Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1543
1544 * relax.c (write_relax): Check return value of bfd_seclet_link.
1545
2fe6619e
KR
1546Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
1547
1548 * ldlang.c (delete_output_file_on_failure): New variable.
1549 (open_output): Set it after bfd open succeeds.
1550 * ldmisc.c (vfinfo): Test it.
1551
1552 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
1553
1554 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
1555 symbols.
1556
1557 * ldemul.c: Support was added to allow emulation-specific
1558 processing to occur. This support was added primarily for linker
1559 stub generation in the elf32-hppa gld.
1560 (ldemul_finish, ldemul_create_output_section_statements): New
1561 functions.
1562 * ldemul.h: Support was added to allow emulation-specific
1563 processing to occur. (As described above.) Added finish and
1564 create_output_section_statements fields to
1565 ld_emulation_xfer_struct structure.
1566 * ldlang.c: Add calls to emulation-specific routines.
1567 (lang_process): Add call to
1568 ldemul_create_output_section_statements function.
1569 (lang_process): Add call to a emulation-specific routine (and
1570 some processing after the call).
1571
1572Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1573
1574 * configure.in: mips*- instead of mips-, mips*el changes
1575
1c4b3cda
ILT
1576Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1577
1578 * configure.in (alpha-*-osf*): New target; use alpha.mt.
1579 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
1580 (em_alpha.c): New target; use alpha.sh and alpha.sc.
1581 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
1582 * config/alpha.mt: New file.
1583 * emulparams/alpha.sh: New file.
1584 * scripttempl/alpha.sc: New file.
1585
1586Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
1587
1588 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
1589 types of different sizes (eg: 64 and 32 bits), so coerce.
1590 * ld.h (ALIGN_N): Add warning about usage.
1591
98b5caad
ILT
1592Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1593
1594 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
1595 which we already have a definition, rather than checking in
1596 several different places whether the symbol is weak.
1597
a71da760
ILT
1598Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1599
1600 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
1601 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
1602 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
1603 expanded within them.
1604 * config/mipsb-elf32.mt: New file.
1605 * emulparams/elf32mipb.sh: New file.
1606 * Makefile.in (em_elf32mipb.c): New target.
1607
a4aeaacf
RS
1608Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
1609
a4aeaacf
RS
1610 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
1611 lang_input_file_is_search_file_enum so objects brought in using
1612 INPUT() do a path lookup.
1613
1614Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
1615
1616 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
1617 instead of {i386,m68k}-coff.
1618 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
1619 * config/i386-lynx.mt: New file.
1620 * config/m68k-lynx.mt: New file.
1621 * emulparams/i386lynx.sh: New file.
1622 * emulparams/m68klynx.sh: New file.
1623
1624 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
1625 but defaulting to _start.
1626
1627 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
1628 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
1629 LynxOS libc.
1630
1631Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
1632
1633 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
1634 HOSTING_LIBS for testing.
1635
9a467cb2
ILT
1636Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1637
1638 Finish up support for i386-sysv4 (without shared libraries):
1639 * ld.h (flag_is_weak): Define.
1640 * ldlang.c (print_symbol): Mention whether symbol is weak.
1641 (print_input_section): Print weak symbols as globals.
1642 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
1643 (enter_global_ref): Do not warn if a weak symbol redefines a
1644 global symbol. Do not let a weak symbol redefine a common symbol.
1645 (enter_file_symbols): Treat weak symbols as global symbols.
1646 (subfile_wanted_p): Do not pull in an object file from a archive
1647 just to resolve an undefined weak symbol.
1648 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
1649 error; the error might be that malloc has run out of space.
1650 * ldsym.c (write_file_locals): Treat weak symbols as global.
1651 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
1652 use i386-elf.
1653 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
1654 * config/i386-elf.mt: New file; set EMUL to elf_i386.
1655 * emulparams/elf_i386.sh: New file.
1656 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
1657 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
1658 (ALL_EMULATIONS): Add em_elf_i386.o.
1659 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
1660 (em_elf_i386.c): New target, like other em_*.c targets.
1661 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
1662 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
1663 nonempty, and configured for native, add it to LIB_PATH.
1664
4f6d6db9
SS
1665Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
1666
1667 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
1668 Added statements to pass stab and stabstr sections through and
1669 mark them as NOLOAD, which makes GDB happier.
1670
1671Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
1672
1673 * configure.in: Accept m68k-lynx-lynxos config.
1674
1675 * Makefile.in: Use $(SHELL) to run genscripts.sh.
1676
1bff7c38
DE
1677Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
1678
4f6d6db9
SS
1679 * config/coff-h8300.mt: Add EMUL=h8300h.
1680
1bff7c38
DE
1681 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
1682
8a6665ae
JW
1683Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
1684
1685 * Makefile.in: Changed CXX back to g++.
1686
3a9149a7
JW
1687Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
1688
1689 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
1690
cbb5c2d1
DM
1691Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1692
1693 * Makefile.in (TAGS): Use shell wildcards.
1694
959eba20
JO
1695Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
1696
1697 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
1698
a0a55af6 1699Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
c1074477 1700
a0a55af6
RP
1701 * ld.texinfo: re-enable included config file; conditionalize doc
1702 for -oformat to interact properly with SingleFormat doc config
1703 var; rename @up/@down to @raisesections/@lowersections.
c1074477
DE
1704
1705Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1706
1707 * configure.in: recognize m88110.
1708
4346166b
KR
1709Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1710
1711 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
1712 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
1713 ELF emulation is "elf32-hppa" not "elf-big".
1714 (hppaosf_before_parse): Remove unneeded processing of environment
1715 variables.
1716 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
1717 .text segment of output file.
1718 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
1719
b98bd3db
RP
1720Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1721
95a2b9d2
RP
1722 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
1723 longer in bfd.h.
1724
1725 * ldlang.c, ld.h: updated copyright.
b98bd3db 1726
ddddcdf0
ILT
1727Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1728
1729 * ldlang.c (open_output, lang_check): Check return value of
1730 bfd_set_arch_mach.
1731
ea1c0ad2
SC
1732Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1733
1734 * scripttempl/h8500.sc: Start all sections in a different segment.
1735 * scripttempl/z8ksim.sc: Handle constructors
1736
ea1c0ad2
SC
1737Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
1738
1739 * Makefile.in: revert earlier changes back to execute runtest
1740 with make check. cdtest and bootstrap now function as they
1741 did within the Makefile.
1742
1743Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1744
1745 * Makefile.in: Update dependencies.
1746
1747 * configure.in: Set EMULATION_OFILES in Makefile based on
1748 --with-targets option.
1749
d301e438
JW
1750Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
1751
1752 * Makefile.in: check targets reimplemented to old way.
1753
75fe5471
ILT
1754Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
1755
d62026ad
ILT
1756 * config/i386v.mh, config/irix4.mh: Use gcc
1757 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
75fe5471
ILT
1758 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
1759 bfd/configure.host change.
1760
1761Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1762
1763 * scripttempl/elf.sc: Handle .line and .debug* sections.
1764
1765 * ldlex.l: Use bfd_scan_vma, not strtoul.
1766
31f55aa5
DM
1767Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1768
1769 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
1770 Remove inital caps in some error messages, change "can't" to
1771 "cannot", add missing colons.
1772 * ldmisc.c (vfinfo): Print "%%" as a single %.
1773 For '%' followed by unrecognized character, print them both
1774 verbatim instead of expecting a char * arg.
1775 For '%C', don't put the function name in parens.
1776
1777 * ldexp.c (invalid): Pass "%%", not "% ".
1778
33536304
ILT
1779Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1780
1781 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
1782 (BSS_VAR): Removed; now always define _fbss.
1783 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
1784 Removed.
1785
1786Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1787
1788 * configure.in: z8k-coff is the same as z8k-sim
1789
7c6a9e79
JW
1790Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
1791
1792 * testsuite/lib/ld.exp: new file
1793 * testsuite/config/unix-ld.exp: new file
1794 * testsuite/ld.bootstrap/bootstrap.exp: new file
1795 * Makefile.in: add dejagnu support for make check
1796
8bf66be8
DM
1797Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1798
1799 * ldlex.l (comment): Add missing newline in message.
1800 * ldindr.c (add_indirect): Ditto.
1801 * ldexp.c (exp_fold_tree): Ditto.
1802
2a28d8b0
DM
1803Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1804
1805 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
1806 into externs.
1807
1808 * ldmisc.c (multiple_warn): New function.
1809 * ldmisc.h: Declare it.
1810 * ldmain.c (enter_global_ref): Call it.
1811 * ld.h (ld_config_type): Add warn_common.
1812 * ldlex.l, ldgram.y: Set it with -warn-common option.
1813 * ldver.c (help): Document it.
1814
94f9d427
KR
1815Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1816
1817 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
1818 target-specific sections, and for changing data section vma.
1819
6b93d764
KR
1820Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
1821
1822 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
1823 terminals, for Solaris.
1824 (dirlist_ptr): New static variable.
1825 (command_line_option): Accept new options.
1826
1827 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
1828 "-YP,...".
1829
1830 * config/sun4sol2.mt: Pass emulation name without ".sh".
1831
94f9d427
KR
1832 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
1833 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
1834
6b93d764
KR
1835Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1836
1837 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
1838 .dtors, .data1, .rodata1 sections, instead of combining them into
1839 other sections. For `-r', set all section start addresses to
1840 zero.
1841
1842 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
1843 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
1844 (MAXPAGESIZE): Renamed from PAGE_SIZE.
1845
a6152e39
DM
1846Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1847
d59e5a47
DM
1848 * genscripts.sh: If this is the default emulation, set
1849 COMPILE_IN.
1850 * emultempl/*.em: Use it to determine whether to compile in the
1851 scripts.
1852
a6152e39
DM
1853 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
1854 genscripts.sh. Pass the current emulation name without ".sh" on
1855 the end.
1856 * genscripts.sh: Take an default emulation arg.
d59e5a47 1857 Use the current emulation name as EMULATION_NAME.
a6152e39
DM
1858 Make default lib path for cross-compiling ':', not null.
1859 * emulparams/*.sh: Don't set EMULATION_NAME.
1860 * ldemul.c (ldemul_get_script): Take isfile arg.
1861 Pass it to emulation's get_script function.
1862 * ldemul.h: Adjust get_script prototypes.
1863 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
1864 No longer static.
1865 * ldfile.h: Declare it.
1866 * ldgram.y: Accept a script on the command line again,
1867 for parsing compiled-in scripts.
1868 * ldmain.c (main): If ld script is a file, parse it as a -T
1869 option, otherwise parse it directly.
1870 * emultempl/*.em (*get_script): Return the scripts themselves if
1871 this is the default emulation; otherwise return their file names.
18d9a9c5 1872 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
a6152e39
DM
1873 generic.em.
1874 * emulparams/m88kbcs.sh: Use it.
1875
18d9a9c5 1876 * ld.h (ld_config_type::unix_relocate): Remove unused element.
a6152e39 1877
0750b974
KR
1878Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1879
1880 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
1881 there's no change log entry yet, tsk tsk) from the list of
1882 emulations compiled in until Mark gets around to checking in
1883 emulparams/i386linux.sh.
820c446c
KR
1884 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
1885 changed, this file gets updated.
0750b974 1886
fe619ced
ILT
1887Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
1888
1889 * ldgram.y (OPTION_Lfile): New token.
1890 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
1891 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
1892
dd8ca662
DE
1893Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
1894
1895 * configure.in: h8/300h support needs own .mt file.
1896 config/coff-h8300h.mt: New file.
1897
922018a1
DM
1898Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1899
1900 * ldmain.c: Don't include sys/stat.h; it already got included
1901 somewhere along the way.
1902
4ab3a31f
DE
1903Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
1904
1905 * Makefile.in: Add h8300h support.
dd8ca662
DE
1906 emulparams/h8300h.sh: New file.
1907 scripttempl/h8300h.sc: New file.
4ab3a31f 1908
bbd2521f
DM
1909Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1910
1911 * ldfile.c (ldfile_open_file): In error message, use the name the
1912 user gave (e.g., "-lc"), rather than the base file name.
1913
1914 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
1915
1916 * ldmain.[ch]: Remove initial Q_ from function names.
1917 * ldexp.c, ldindr.c, ldlang.c: Change callers.
1918
1919 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
1920
1921 * ldlang.c (lang_process): Move loading of default script from
1922 here to main. Add a "/" to start of script name to prevent
1923 finding it in "." first.
1924
1925 * ldmain.c (set_scripts_dir): Don't look in "." first.
1926
1927 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
1928 option_longmap.
1929
9edc5b2e
ILT
1930Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
1931
1932 * Makefile.in (em_m88kbcs.c): Correct dependency.
b0955bc9
ILT
1933 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
1934 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
1935 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
9edc5b2e 1936
cffdcde9
DM
1937Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1938
1939 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
1940 main.c (main): Print the errno string in the error message.
1941
ac2c0ee7
DE
1942Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
1943
1944 * configure.in: Accept h8300h for target cpu.
1945
1946 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
1947 present (demangle is smart enough to know whether to do it or not).
1948
d723cd17
DM
1949Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1950
f4208462
DM
1951 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
1952 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
1953
d723cd17
DM
1954 * ldlang.c (lang_process): Use sizeof instead of magic constant.
1955
1956 * ldmain.c (get_emulation, check_for_scripts_dir,
1957 set_scripts_dir): New functions.
1958 (main): Call them.
1959
e7affb09
KR
1960Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
1961
1962 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
1963 Create symbol "end" instead of "__end". Comment out some parts
1964 that may not be needed (yet) for elf.
1965
1966 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
1967
3cb61417
KR
1968Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1969
1970 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
1971
1972 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
1973 when no prototype is being supplied.
1974 (ldmalloc, ldrealloc): Size argument is now size_t.
1975
1976 * ldmisc.c (finfo): New function, accepts FILE* argument.
1977 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
1978 without leading zeros.
1979 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
1980 bfd_vma value, instead of fprintf(%x) which won't hold a long long
1981 value.
1982 (concat, buystring): String lengths are size_t.
1983 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
1984
1985 * ldlang.c (new_statement): Size argument is now size_t. Added
1986 forward declaration with prototype.
1987
de87cdb4
DM
1988Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1989
1990 * ldgram.y (OPTION_v): Don't turn on verbose output.
1991
49bfda2c
KR
1992Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1993
3cb61417
KR
1994 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
1995 bfd.h instead.
49bfda2c 1996
e357065c
ILT
1997Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
1998
1999 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
2000 collect2 doesn't look for gld any more anyhow.
2001
55636aa7
ILT
2002Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
2003
2004 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
2005 now have a non NULL srefs_chain.
2006
2007 * config/hp300hpux.mt: Use emulation hp3hpux rather than
2008 hp300hpux, since the latter does not exist.
2009
ff76a7db
DM
2010Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2011
2012 * genscripts.sh: Put the scripts in the ldscripts directory, not
2013 emulations.
2014 * configure.in (ldscripts): Make, instead of emulations.
2015 * Makefile.in (scriptdir): Take off the "ld" part.
2016 (install, clean, distclean): Use ldscripts, not emulations.
a04f1d00 2017 In tests, don't pass -Lemulations.
ff76a7db
DM
2018 Don't pass tooldir/lib to genscripts.sh.
2019 * genscripts.sh: Don't take tooldir/lib arg.
2020 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
2021 default script file.
2022
7434d4e5
DE
2023Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
2024
2025 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
2026
2027Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
2028
2029 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
2030
559d7baf
RP
2031Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2032
1e787898
RP
2033 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
2034 run in parallel without colliding on yacc's static file names.
2035 Without the stub rule, make will try to start two yacc's
2036 concurrently which fails because of yacc's static file names.
559d7baf
RP
2037
2038Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
2039
2040 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
2041 symbols.
2042
59fb874e
DM
2043Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2044
559d7baf
RP
2045 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
2046 different from libdir.
2047
59fb874e
DM
2048 * Makefile.in (scriptdir): Base on tooldir, not datadir.
2049
bf065bfd
DM
2050Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2051
2052 * ldver.c (help): New function.
2053 * ldver.h: Declare it.
2054 * ldlex.l, ldgram.y: Recognize new options --help and --version.
2055
304b747a
KR
2056Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
2057
2058 * Makefile.in (INCLUDES): Don't need ../include any more.
2059
2b63dbfe
DM
2060Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2061
bf065bfd
DM
2062 * ldlex.l, ldgram.y: Support new -oformat option.
2063 Remove attempt at supporting script fragments on the command line.
2064 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
2065 * mri.c (mri_format), ldgram.y: Change callers.
2066 * ldlang.h: Change prototype.
2b63dbfe 2067
e9b991c6
DZ
2068Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
2069
2070 * Makefile.in: canonicalize install.sh; for use within
2071 this directory (and subdirs)
2072
565c93e9
DM
2073Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2074
2de8edce
DM
2075 * ldgram.y: Tweak grammar to make reporting of invalid options work.
2076
565c93e9
DM
2077 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
2078 and .cc.o rule.
2079
8ddef552
DM
2080Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2081
2082 * ldfile.c (ldfile_open_command): Don't try .ld extension.
2083 It wasn't documented (or likely used) and wastes time.
2084 (try_open): If EXTEN is empty, don't try it.
2085
2086 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
2087 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
2088 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
2089 with normal function declarations.
2090
2091 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
2092 Move *.sc-sh to scripttempl/*.sc.
2093 * {emultempl,emulparams,scripttempl}/README: New files.
2094 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
2095 removed, replaced with generic.em.
2096 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
2097 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
2098
2099 * *.em (*_get_script): Return script name instead of script contents.
2100 * ldlang.c (lang_process): Change caller.
2101
2102 * ldlex.l, ldgram.y: Recognize -m option.
2103 Check for input files after *all* options in grammar.
2104 * ldmain.c (main): Check for -m options. Add default directory
2105 for -m.
2106
2107 * mkscript.c: File removed.
2108 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
2109 to add to the default LIB_PATH.
2110 Look for input files in the new subdirectories.
2111 Create the scripts in emulations subdirectory and don't filter
2112 them through mkscript.
2113 * configure.in: Make the emulations subdirectory.
2114
2115 * Makefile.in: Account for all of the above changes.
2116 Remove unused .SUFFIXES. Get libgcc.a path with gcc
2117 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
2118 Put CFLAGS last in the compilation rules.
2119 Add -I../bfd to INCLUDES so sysdep.h is found.
2120
2a963f1a
KR
2121Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2122
2123 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
2124
2125 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
2126 dependent on RELOCATING, not RELOCATION.
2127 * hp3hpux.sh (SHLIB_PATH): Define it.
2128
8ddef552
DM
2129Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2130
2131 * ldfile.c (try_open): If opening without the extension fails,
2132 try with the extension even if -v or -V was given.
2133 had_script is imported (from ldgram.y), not exported.
2134
c97b9003
DZ
2135Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
2136
2137 * Makefile.in: remove parentdir support, use INSTALL_XFORM
2138
2139Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
2140
2141 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
2142 * ldgram.y (statement_list_opt): New nonterminal, either empty or
2143 statement_list.
2144 (section): Use statement_list_opt, not statement_list.
2145 * m68kcoff.sc-sh: Gather constructors and destructors and define
2146 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
2147 * sa29200.sc-sh: Gather constructors and destructors and define
2148 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
2149
7f2649bb
PB
2150Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
2151
2152 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
2153 * configure.in: No longer need to configure to get sysdep.h.
2154
91b3a2b6
DZ
2155Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2156
7f2649bb
PB
2157 * Makefile.in: remove install:all and install-info:info
2158 dependencies (these cause some spurious rebuilds at 'make install'
2159 time)
91b3a2b6 2160
559d1cff
ILT
2161Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
2162
98f3d1af
ILT
2163 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
2164 (mips-idt-ecoff*): Added trailing '*'.
2165 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
2166 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
2167 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
2168
559d1cff
ILT
2169 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
2170 incorrect definitions.
2171
1cf91c69
PB
2172Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
2173
2174 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
2175 symbols, unless stripping.
2176
63545898
ILT
2177Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
2178
2179 * Makefile.in: configure looks for ####, so remove lines with many
2180 '#' characters.
2181 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
2182 and HOSTING_LIBS correctly so that ``make check'' will work.
2183
2184Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
2185
2186 * mips.sc-sh: Define _etext, _edata, and _end, in addition
2187 to etext, edata, and end. Needed for IRIX 4.0.5F.
2188 Patch from mwp@iconix.oz.au (Michael Paddon).
2189
2a963f1a
KR
2190 * Version 2.2.1 released.
2191
5266c5ec
KR
2192Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2193
2194 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
2195 * mipsbsd.sh (EMULATION_NAME): Use new file name.
2196
2197Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2198
2199 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
2200 properly right now.
2201
2202 * Version 2.2 released.
2203
2204Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
2205
2206 * ldver.c (ldversion): Bump version number to 2.2.
2207
bc3b479c
PB
2208Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
2209
2210 * NEWS: New file.
2211
2212Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
2213
2214 * mips.sc-sh: Don't define BSS_VAR unless relocating.
2215
2216Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
2217
2218 * Makefile.in (mkscript.o, mkscript): Build mkscript via
2219 mkscript.o, rather than directly from mkscript.c.
2220
b8fc168d
KR
2221Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2222
2223 * configure.in: Look for ${target_makefile_frag} relative to
2224 ${srcdir}, not relative to build directory.
2225
2226 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
2227 * configure.in: Recognize hppa*-hp-osf.
2228 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
2229 (em_hppaosf.c): Build it.
bc3b479c 2230 * config/hppaosf.mh, hppaosf.mt: New files.
b8fc168d
KR
2231
2232 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
2233 some system header files. All uses changed.
2234
2235 * configure.in: Recognize i386-aix configurations as i386-coff
2236 targets.
2237
2238 * configure.in: Recognize m68*-*-hpux.
2239 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
2240 the value of STACKZERO.
2241 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
2242 (em_hp3hpux.c): Build it.
2243 * hp3hpux.sh, config/hp300hpux.mt: New files.
2244
ef868186
ILT
2245Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
2246
2247 * mips.sc-sh: Put constructors in the .data section.
2248 * Makefile.in (cdtest): Added dependency on ld.new.
2249
034351e3
PB
2250Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
2251
2252 * Makefile.in: Change definition of $(tooldir) to match FSF.
2253 * vax.sh, config/vax.mt, configure.in, Makefile.in:
2254 Support VAX Ultrix and BSD.
2255
2256Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2257
2258 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
2259
2260Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
2261
2262 * ldlang.h (struct memory_region): Change `length' and
2263 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
2264 * ldlang.c, mri.c: Corresponding changes, plus lint.
2265
2266Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
2267
2268 * configure.in: For all i386 targets, accept i486 as well.
2269
2270Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
2271
2272 * ldlang.c (wild_doit): Preserve all flags for a
2273 SEC_SHARED_LIBRARY section.
2274 (size_input_section): Consider any SEC_HAS_CONTENTS section when
2275 computing largest_section.
2276
1b8a42f3
ILT
2277Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
2278
2279 * ldlang.c (lang_output_section_statement_lookup): Initialize all
2280 fields of newly created structure.
2281
2282Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
2283
2284 * ldmain.c (g_switch_value): New variable.
2285 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
2286 (command_line_option): Accept -G and set g_switch_value.
2287 * ldlex.l (COMMAND): Accept -G.
2288 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
2289
29f33467
SC
2290Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2291
9fce28ed
SC
2292 Support for linking and loading at different places:
2293
2294 * ldlex.l: Add "AT" keyword.
2295 * ldgram.y: Cleanup, and parse AT.
2296 * ldlang.c (print_output_section_statement): Print output address
2297 of section in map. (lang_size_sections): Fill sections' lma with
2298 load address.
2299 * ldlang.h (lang_output_section_statement_type): Add load_base
2300 information.
2301
29f33467
SC
2302 * ldindr.c (add_indirect): Keep more information in the alias
2303 symbol chain.
2304 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
2305 attribute from an input section.
2306 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
2307 default. (Q_enter_file_symbos): Indirect symbols now are known by
2308 their section, not a special symbol flag.
2309 * ldsym.c (write_file_locals): Indirect symbols aren't local.
2310 (write_file_globals): Write the mapping for an indirect symbol.
2311 * relax.c (build_it): When forced to write a NEVER_LOAD section,
2312 fill it with zeros.
2313
2314Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
2315
2316 * ld.texinfo: changes for q1
2317
f20e9842
DZ
2318Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2319
2320 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
2321
2322Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2323
2324 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
2325
2326Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
2327
2328 * mips.sc-sh: Added variables which may be overridden by a
2329 specific emulation.
2330 * mipsidt.sh: New file; emulation for IDT MIPS board.
2331 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
2332 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
2333 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
2334 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
2335
e637dcf0
KR
2336Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2337
2338 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
2339 ralphc@pyramid.com.
2340 * i386bsd.sh, config/i386bsd.mt: New files.
2341 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
2342
26483cc6
PB
2343Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
2344
e637dcf0 2345 * mri.c: Add extern declaration of strdup.
26483cc6
PB
2346 * ldsym.c (KEEP macro): Add spaces around '=' for the
2347 sake of old (e.g. PCC) compilers.
2348
05985c77
PB
2349Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
2350
2351 * ldver.c: Bump to version 2.1.
2352
067e2baa
SC
2353Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2354
2355 * ldgram.y: allow section types without address expressions.
2356 * ldlang.c (lang_relocate_globals): avoid possible hang with
2357 undefined but unreferenced symbols.
2358 * relax.c (relax_section): don't complain if the script file isn't
2359 relaxable but -relax is set
2360
fb8ecc3d
DZ
2361Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2362
2363 * configure.in: go32 is the 3rd part of the triple, not the 2nd
2364
067e2baa
SC
2365Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
2366
2367 * mipsbig.sh: New file. Big endian MIPS emulation.
2368 * config/mips-big.mt: New file. Use mipsbig emulation.
2369 * configure.in (mips-sgi-irix*): Use target mips-big.
2370 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
2371 (em_mipsbig.c): New target. Uses mipsbig.sh.
2372
e193c31b
ILT
2373Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
2374
2375 * mips.sc-sh: Put .scommon sections into .sbss section.
2376
2377 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
2378 rather than always putting them in bfd_com_section.
2379 * ldlang.c (lang_common): If a common symbol is not in
2380 bfd_com_section, put in a section of the same name, rather than
2381 always putting it in section COMMON.
2382
8a3efe67
ILT
2383Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
2384
f31cb329
ILT
2385 * ldmain.c (subfile_wanted_p): If we already have a common
2386 definition of a symbol, don't necessarily pull in an object file
2387 that provides a non-common definition.
2388
8a3efe67
ILT
2389 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
2390 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
2391 linker.
2392 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
2393 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
2394
af6237a4
ILT
2395Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
2396
2397 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
2398 the link to it.
2399
8a045e50
ILT
2400Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
2401
2402 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
2403 checking for equality to bfd_com_section.
2404
42b5c739
ILT
2405Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
2406
2407 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
2408 targets, linker script.
2409 * mipslit.sh: New file. Little endian MIPS emulation.
2410 * config/mips-lit.mt: New file. Use mipslit emulation.
2411 * configure.in (mips-dec-ultrix*): Use target mips-lit.
2412 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
2413 (em_mipslit.c): New target. Uses mipslit.sh.
2414
2415Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
2416
2417 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
2418 $(tooldir)/bin/gld, so that gcc can find it with or without
2419 collect2.
2420
ac496d4f
ILT
2421Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2422
2423 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
2424 write_norel. All linking is now done via write_relax. Call
2425 ldsym_write before calling write_relax.
2426 * relax.c: Added copyright.
2427 (write_relax): Renamed from write_relaxnorel. Added relocateable
2428 argument. seclet_dump renamed to bfd_seclet_link.
2429 * relax.h: Added copyright.
2430
0550e9f4
SC
2431Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2432
2433 * ldmain.c (decode_library_subfile): Patch from
2434 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
2435
2436Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2437
2438 * config/vxworks960.mt renamed to config/i960.mt
2439
2440 * configure.in: sparc-aout emulates a sun4, as does
2441 sparc*-vxworks, i960-nindy uses gld960 emulation
2442
dadd414a
SC
2443Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2444
2445 Fix support for NOLOAD, add INCLUDE
2446 * ldfile.c (ldfile_open_command_file): pass file name to
2447 lex_push_file.
2448 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
2449 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
2450 attribute.
2451
2452Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2453
2454 * Makefile.in, config.h: no more default emulation. Make the lack
2455 of emulation a compile time error
2456
2457Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2458
2459 * configure.in: recognise all sparclite variants, not just 'sparclite'
2460
a70947c1
ILT
2461Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
2462
2463 * m68kcoff.sc-sh: define _end as well as end, for consistency with
2464 aout.sc-sh.
2465
2466 * configure.in: accept *-ericsson-ose for any m68k CPU.
2467
2468 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
2469 for each output section.
2470
086c5e37
PB
2471Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
2472
2473 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
2474 macro bfd_asymbol_bfd as appropriate.
2475 * Makefile.in: Un-duplicate ldlex.c dependency.
2476 * condigure.in: Replace my_host case table by sourcing
2477 ../bfd/configure.host. Allow std-host as the default.
2478 * ldmisc.c: Change logic for C++ name demangling: There is
2479 no initial '_' to remove from stab-derived function names.
2480
2481Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2482
2483 * ldlang.c (lang_init_script_file): don't attach the output file
2484 sections to the script file.
2485
2486Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2487 * ldlang.c (wild): run expansion loop over command line bfd too.
2488 (lang_ini_script_file): initialize more parts of the command line
2489 bfd.
2490 * ldlex.l: fix DEFINED start states.
8ddef552 2491
85e38cfa
SC
2492Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2493 -y support
2494 * ld.texinfo: new doc.
2495 * ldgram.y, ldlex.l: understand -y<symbol>
2496 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
2497 print info. (add_ysym): new function.
2498 * ldsym.h: (ldsym_type): new define SYM_Y.
2499
e20873a7
JG
2500Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
2501
2502 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
2503 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
2504 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
2505 macros with PARAMS. Recreational cleanup. Update copyrights.
2506
2507Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2508
2509 * Makefile.in: pass down the bfd source directory for includes
2510
22292613
ILT
2511Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
2512
2513 * ldlang.c (lang_size_sections): don't change size and address for
2514 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
2515 sections.
2516
85c838d6
SC
2517Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2518
2519 * relax.c (build_it): re-enable the processing of data_statements
2520 in scripts, makes counted contructor lists work again.
2521
6e94236a
JG
2522Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
2523
2524 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
2525
2526Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
2527
2528 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
2529 and end.
2530
e9b63852
ILT
2531Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
2532
2533 * Support for i386-sysv.
2534 configure.in: check for i386-*-sysv* and i386-*-sco*.
2535 i386coff.sc-sh: rewrote to support SVR3 by default.
2536 ldctor.c (find_constructors): preserve stat_ptr.
2537 ldlang.c (wild_doit): initialize vma and size of new output
2538 section to corresponding input section. This is required for
2539 shared library support.
2540 (lang_size_sections): don't modify vma and size of sections which
2541 are never loaded (for shared libraries).
2542 ldwrite.c (copy_and_relocate): copy the contents of any section
2543 which has contents, not just sections which are loaded (for shared
2544 libraries).
2545
ba2c2b1c
SC
2546Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2547
2548 * ldlang.c (size_input_section): count the sizes of all sections
2549 we allocate.
2550
a385b38f
SC
2551Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2552
2553 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
2554 to demangle symbols better
2555
81150d34
ILT
2556Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
2557
2558 * ldlang.c (lang_finish): don't warn if -e start symbol does not
2559 exist when linking with -r.
2560
b5ddf942
ILT
2561Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
2562
2563 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
2564 .bss segment.
2565
f3739bc3
SC
2566Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2567
2568 * ldmain.c (linear_library): don't even think about processing
2569 an object file if it's already been done
2570
2571Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2572
2573 * configure.in: the hp9000/300 config file is now hp300
2574
ac0832f3
SC
2575Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2576
2577 * config/z8ksim.mt: new file
2578
f3b36ecb
KR
2579Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
2580
2581 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
2582 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
2583
2584 * ld.h (strip_symbols_type): Add value STRIP_SOME.
2585 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
ac0832f3 2586 * ldlang.c (lang_add_keepsyms_file): New function.
f3b36ecb
KR
2587 * ldlex.l: Handle "-retain-symbols-file".
2588 * ldsym.c (keepsyms_file, kept_syms): New vars.
2589 (process_keepsyms): New functihon; reads file, marks symbols for
2590 saving.
2591 (write_file_locals): File symbols should always be kept.
2592 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
2593 and "-s". Process retain-symbols file before setting symtab.
2594 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
2595 (keepsyms_file, kept_syms): Declare them.
2596
2597 * ldmain.c (main): Non-fatal errors should still cause non-zero
2598 exit status even with -r.
2599
22a78f0d
SC
2600Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2601
2602 Added initial support for the z8k
2603 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
2604 * configure.in, Makefile.in: modified to reflect above
2605
2606 * ldlang.c (lang_check): when linking conflicting architectures,
2607 make the output file reflect at least one of the bad inputs.
2608
56409445
ILT
2609Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
2610
2611 * Makefile.in (install): if $(tooldir) exists, install ld in
2612 $(tooldir)/bin.
2613
99e6298a
SC
2614Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2615
2616 * Makefile.in, configure.in: modified to support i386-coff
2617 * i386coff.sh: new file
2618
ab57b174
ILT
2619Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
2620
2621 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
2622 added m68k-coff emulation mode, stolen from a29k emulation.
2623 Almost certainly wrong, but perhaps better than sun3.
2624
8e71a984
PB
2625Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
2626
ab57b174
ILT
2627 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
2628 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
2629 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
2630 This is one character shorter, and lets people build on
2631 SVR3 system. (ld__h8300xray.[co] was the killer there;
2632 h8300xray.sc-sh is also overlong, but seems harmless.)
2633 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
2634 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
2635 * configure.in: Add host isc.
2636
8e71a984
PB
2637 * ldver.c: Call it version 2.0.
2638
2639Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
2640
2641 * ldver.c: Bump to version 0.98.
2642 * TODO: New file.
2643
2644 * Makefile.in: Added mostlyclean, distclean, realclean rules.
2645
c52bdfec
PB
2646Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
2647
2648 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
2649 * ldlex.l: Moved comment() to end, since some compilers
2650 otherwise have problems with input() used before it is defined.
2651
2df68136
DZ
2652Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2653
2654 * configure.in: added Solaris 2 and Irix 4 host support.
2655
2656Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2657
2658 * Makefile.in: remove -S flag from the FLEX definition
2659
2660 * configure.in: rewrote, using new style case statement. use
2661 m68k.mt for m68k-aout systems
2662
0bb95ac8
ILT
2663Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
2664
2665 * Makefile.in: map "ld" through program_transform_name when
2666 installing.
2667
fe2b6209
PB
2668Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
2669
2670 * cplus-dem.c: Removed. Use the version in libiberty now.
2671 * ldmisc.c: Use new libiberty version of cplus_demangle().
2672
94cc1ee7
ILT
2673Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
2674
5f2d9799
ILT
2675 * gld960.em (gld960_choose_target): default to little endian, not
2676 big endian.
94cc1ee7 2677
cd1d8c6d
SC
2678Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2679
2680 * ldlang.c (lang_process): don't pass null pointers when
2681 abs_output_section is what is required.
2682 * ldwrite.c (ldwrite): use malloc to allocate the largest space
2683 used, and pass that down.
2684 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
2685 than alloca.
2686
afba2b22
ILT
2687Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
2688
2689 * configure.in, config/ose68.mt: renamed OSE to ose.
2690
571c4c26
KR
2691Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
2692
2693 * ldsym.c (write_file_locals): Reorder check for common or
2694 undefined symbols so that it works.
2695
b189e892
ILT
2696Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
2697
2698 * configure.in: accept all m68K family members.
2699
2700 * Makefile.in: always create installation directories.
2701
6bf2e3a7
SC
2702Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2703
2704 * ldlex.l: now parses comment correctly, added ~ to acceptable
2705 chars in filenames
2706
2707 * ldexp.c (exp_unop): pass down abs_output_section - now can have
2708 unary -ve constants.
2709
2710 * ldlang.c (lang_finish): warn when an entry symbol supplied on
2711 the command line can't be found.
2712
ae475b39
SC
2713Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2714
2715 * ldlang.h: add new field "loadable" to output_section_statement.
2716 * ldlang.c (lang_output_section_statement_lookup): initilize new
2717 field. (wild_doit): if new field is not set, then stop output
2718 section from being loadable.
2719 (lang_enter_output_section_statement): set the field from the
2720 NOLOAD keyword
2721 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
2722 * h8300hms.sc-sh, h8300hms.em: get -r right.
2723
4b91c519
PB
2724Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
2725
2726 * ldint.texinfo: New internals manual (beginnings thereof).
2727 * PORTING: Removed, merged into ldint.texinfo.
2728
917bffa7
PB
2729Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
2730
2731 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
2732 cdtest.exp: A test program (copied from libg++/test-install)
2733 that tests that constructor and destructors are handled
2734 corrrectly.
2735
b40f9c73
DZ
2736Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2737
2738 * Makefile.in (install): install from ld.new, renaming during the
2739 copy, or else the next 'make install' needs to re-link ld.
2740
2741Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
2742
2743 * configure.in: generalise hp recognition (from sef).
2744
2745Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2746
2747 * configure.in: recognize bsd and hpux hppa configurations.
2748 error messages echo to stderr, not stdout
2749
ec467c83
RP
2750Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2751
2752 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
2753 ldmisc.c: removed rcsid's.
2754
67cddd9f
SC
2755Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2756
2757 * ldlang.c (lang_map): print changes in sizes due to relaxing
2758 (size_input_section): maintain the delta information.
2759 * ldlang.h: add new field to struct to contain delta info.
2760 * relax.c (relax_section): complain if input not relaxable.
2761 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
2762 start of a filename
2763
f7c76897
SC
2764Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2765
2766 * ldmain.c(main): prevent -r and -relax from being on at the same
2767 time.
2768
28b6b1ab
SC
2769Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2770
2771 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
2772 aliasing problems
2773
2774
30d1a390
SC
2775Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2776
2777 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
2778 * ldexp.c: lint
2779 * ldlang.c(open_output): set the target arch and machine as soon
2780 as we can. (lang_size_sections): use new macros for setting vma
2781 * ldwrite.c: lint
2782
5bdf878e
MT
2783Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
2784
2785 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
2786 Also deleted an unreachable path to wrs.
2787
2788Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
2789
2790 * Makefile.in (install): use -d test for $tooldir before
2791 installing ld there so that $tooldir can be inherited from
2792 top-level Makefile.
2793
2794Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
2795
2796 * ldlang.c: Two non-substantial changes for the sake of
2797 the old Portable C Compiler.
2798
5e81edb2
SC
2799Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2800
2801 * ldgram.y, ldlex.l: parse ABSOLUTE
2802 * ldexp.c: add support for ABSOLUTE
2803
7aacc9cc
PB
2804Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
2805
2806 * Makefile.in: Added default definitions for HOSTING_CRT0,
2807 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
2808 * config/*.mh: Miscellaneous clean-up: Removed definitions
2809 of YACC (since it is not longer used in the Makefile).
2810 Remove HOSTING_* definitions that are subsumed by the
2811 ones added to Makefile.in. Removed most definitions of CC.
2812 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
2813 These are no longer needed.
2814
91e25b4f
PB
2815Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
2816
5ff21fa5
PB
2817 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
2818 rules, since these are used when building a distribution.
2819 * Makefile.in (ldlex.c): Don't re-direct output, since that
2820 leaves a bogus output files if it fails.
2821
91e25b4f
PB
2822 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
2823 * ldlex.c: Fix some unnecessary flex-specific-isms.
2824
2825Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2826
2827 * ldgram.y: move spurious semicolon
2828 * ldexp.h: fix prototype
2829
82d1666a
RP
2830Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
2831
2832 * ld.texinfo: references to linker now say "ld" not "gld".
2833
32846f9c
SC
2834Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2835
2836 changed calling convention for Q_enter_global_ref
2837 * ldexp.c, ldlang.c, ldmain.c: reflect this
2838 * ldver.c: bump version to 1.97.1
2839 * ldindr.c (add_indirect): when an edict declaring an indirect
2840 symbol is found, make sure that any ideas about the symbol being
2841 common are changed if it now known to be defined.
2842 * ldmain.c (linear_library): complain once if archive isn't
2843 ranlibbed.
2844 * ldlang.h, ldlang.c: make room for and initialize the complain
2845 once field.
2846
bf3acf44
RP
2847Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2848
2849 * Makefile.in: use flex & bison from ../ if they exist.
2850
9c99a57e
SC
2851Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2852
2853 * relax.c (build_it): don't allocate space in the output file for
2854 stuff if -R flag applys to it.
7153b2ff
SC
2855 * ldfile.c: merge in VMS filename support
2856 * ldmain.c (main): take out ./ from library path, and close file
2857 before unlinking. Make multiple defs of a symbol create an
2858 unexecable file.
2859 * ldmisc.c: fatal errosrs delete output file
9c99a57e 2860
98377f31
PB
2861Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
2862
2863 * ldver.c: Increase version number to 1.97, for consistency
2864 with ../binutils.
2865
3f350eda
RP
2866Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
2867
813da1a5
RP
2868 * Makefile.in: FLEX -> LEX.
2869
3f350eda
RP
2870 * ld.texinfo: {} -> @{@}.
2871
e0047d49
RP
2872Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
2873
2874 * ld.texinfo: describe alternate, MRI-compatible linker scripts
2875 (and associated change in -c option, now used for these scripts)
2876
bfbdc80f
SC
2877Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2878
2879 * ldver.c: Bumped version to 1.96 - new release, resync with the
2880 bfd too #.
2881 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
2882 rather than with raw malloc, makes it easier to track where memory
2883 is going.
2884 * ldsym.h, ldsym.c: create obstack for all global symbols too.
2885 * ldwrite.c (ldwrite): moved malloc so only used when needed.
2886 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
2887
2888
d3451fe8
RP
2889Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
2890
2891 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
2892
2893 * Makefile.in: use bootstrap for check.
2894
dc4726c2
SC
2895Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2896
e14a43bf
SC
2897 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
2898 PUBLIC.
2899 * Makefile.in: now use flex, not lex
dc4726c2
SC
2900 * ldlex.l, ldlang.c, ldctor.c: lint
2901
ee0c4cf7
SC
2902Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2903
2904 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
2905 different sorts of filenames on the command line than in a script.
2906
77b19d3d
RP
2907Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2908
2909 * Makefile.in: rework CFLAGS so that they can be passed on the
2910 make command line. Remove MINUS_G. Default CFLAGS to -g.
2911
119afd7b
RP
2912Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2913
2914 * relax.c: added handling for new "padding" seclet type, used to
2915 fill out gaps between section.
2916 * ldgram.y, ldlex.l: now -defsym on the command line is done
2917 properly.
2918
2919Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2920
2921 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
2922
2e38b71d
SC
2923Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2924
2925 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
2926 scripts.
2927
1900f884
KR
2928Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
2929
2930 * Makefile.in (install): Install second copy in $(tooldir)/bin
2931 without $(program_prefix), since that's what gcc expects.
2932
9d1fe8a4
SC
2933Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2934
2935 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
2936 * h8300*: fix bit rot and add support for h8300xray target
2937 * go32.sh: target emulation for go32.
2938
9d1fe8a4
SC
2939Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
2940
2941 * gld960.em, i960.sc-sh. Fix i960 bit rot
2942
f0280cd2
RP
2943Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
2944
2945 * Makefile.in: install man page.
2946
12fa72d4
SC
2947Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2948
2949 * config/mt-<foo> renamed to <foo>.mt
2950 * config/mh-<foo> renamed to <foo>.mt
2951 * configure.in changed to reflect this
2952 * genscripts.sh now make .xbn files rather than .xN files
2953
2954Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
2955
2956 * ldver.h: fix decl of ldversion.
2957
2958Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
2959
2960 * Makefile.in: added check target.
2961
fe563ffe
SC
2962Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2963
2964 * ldmain.c (Q_enter_file_symbols): now aliases work again
2965
12fa72d4
SC
2966Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
2967
2968 * Makefile.in: added clean-info target.
2969
fe563ffe
SC
2970Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2971
2972 * ldexp.c (exp_print_tree): don't try and follow null pointers
2973 around.
2974 * ldgram.y: remove 11 shift reduce errors
d2861901 2975
12fa72d4
SC
2976Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2977
2978 * Makefile.in: added tooldir and program_prefix.
2979
fe563ffe
SC
2980Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
2981
2982 * ldlang.c (size_input_section): don't move absolute sections
2983 around!
2984
2985
2986Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
2987
d2861901
SC
2988 * cplus-dem.c: yet another copy of this - maybe it should go into
2989 libiberty ?
2990 * ldgram.y: now -V and -v have different actions
2991 * ldver.c: if -V, prints list of emulations compiled in
2992 * ldmisc.c: support for cplus demangling
2993
2994
12fa72d4
SC
2995Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
2996
2997 * Makefile.in, configure.in: removed traces of namesubdir,
2998 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
2999 copyrights to '92, changed some from Cygnus to FSF.
3000
d2861901
SC
3001Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
3002
3003 * Makefile.in: Change mkscript rule into one for ./mkscript
3004 (for the sake of makes that don't realize they're the same).
3005 * PORTING: Add more details.
3006 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
3007
1584d069
PB
3008Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
3009
3010 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
3011 config/mt-hp300bsd: New port to hp300 running BSD.
3012
7e5c1057
PB
3013Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
3014
3015 Major rewrite of how ld is configured. The major idea
3016 is to use shell scripts to generate everything.
3017 * generic.em replaces ldtemplate.
3018 * Other *.em files replace various *.c files.
3019 A *.em file is a shell script that generates the corresponding
3020 ld__*.c file that implements an emulation. This is usually
3021 a straight 'cat' of a here-document, possibly with substitutions.
3022 * Script files (*.sc) are places by *.sc-sh scripts.
3023 Again, these are simple shell scripts that 'cat'
3024 here-documents, usually with some substitutions.
3025 The output a *.sc-sh is a script file.
3026 * Each emulation is defined by a short shell script with
3027 extension *.sh that specifies the emulation-specific
3028 parameters (such as the name of the *.sh-sc and *.em
3029 files to use).
3030 * genscript.sh is the master shell script used to generate
3031 an emulation. It is passed various argument, including
3032 the name a the emulation-speciic *.sh file that it
3033 "sources" to set variables to emulation-specifc parameters.
3034 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
3035 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
3036 * config/mh-foo: Rename LDEMULATION names as appropriate
3037 (usually 'gldfoo' -> plain 'foo').
3038 * ldwrite.c: Fixed a typo in a comment.
3039 * Makefile.in: Major changes. Removed some the sed
3040 magic to converts scripts, since that is now handled
3041 by genscripts.sh and the *.sc-sh scipt generators.
3042 * config.h: Remove a bunch of macros defining emulations
3043 and targets. This becomes one less file to edit when
3044 adding emulations or targets.
3045 * ldemul.h (struct ld_emulation_xfer_struct): Add
3046 emulation_name and target_name fields.
3047 * ldemul.c, ldemul.h: Define some default functions used
3048 by most emulations (and remove from the *.em scripts).
3049 * ldemul.c (ldemul_choose_target): Search the new
3050 ld_emulations array using a loop (instead of a hardwired
3051 nested if statement).
3052 Define the ld_emulation from the automatically-geenrated
3053 ldemul-list.h. This means you no longer have to edit ldemul.c
3054 to add a new emulation.
3055 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
3056 their expansions, since the former no longer exist.
3057 * PORTING: A very rough first draft of a porting guide.
3058
3059 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
3060 to be terminated by a new-line (instead of requiring a semicolon).
3061
3062Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3063
3064 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
3065 tests for NULL pointers all over the place.
3066 * ldlang.c (lang_process): remember to relocate global symbols
3067 *after* relaxing has done it stuff.
3068
3069Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3070
3071 * config/mt-coff-h8300: use EMUL like everything else
3072 * ldlang.c: (print_padding_statement): print the right address.
3073 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
3074
3075
aa34a7c3
SC
3076Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3077
3078 * ldlex.l: Put pack -noinhibit-exec and -sort-common
3079 * ldlang.c (print_data_statement): print the right address.
3080
3081Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
3082
3083 * Makefile.in: The rule for testing ld by re-linking itself
3084 via an intermediate -r link was moved to the ld1 rule
3085 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
3086 which allows the bootstrap rule to work.
3087 * ldctor.c (find_constructors): Don't create a constructor
3088 list if it is already defined (as would happen if ld is
3089 invoked by collect).
3090
cbbdbb9f
SC
3091Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3092
3093 * config/mh-sparc.h: now uses libgcc.a
3094 * ldmain.c: quit using exit
3095 * *sc: use *(COMMON) rather than [COMMON]
3096 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
3097 to allow preprocessing of .l file.
3098 * Makefile.in: New ldlex.l mangling
3099 * ldexp.c (fold_binary): perform expressions with % and / in
3100 integer.
3101 * ldfile.c (open_a): open archives on VMS in a special way
3102
3103
870f54b2
SC
3104Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3105
3106 * ldgram.y: map -M behave in the same way as -Map (sets file name
3107 to be "-".
3108 * ldsym.c, ldlang.c: remember that size of a section is dependent on
3109 whether or not relaxing has been done.
3110 * ldmain.c: don't open a map file if it doesn't have a name
3111 * relax.c: all the brains have moved into bfd.
3112 * ldwrite.c: ammend comment
3113
2e2bf962
SC
3114Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3115
3116 * Makefile.in: added relax, also made three stage go through a
3117 partial link stage.
3118 * relax.c : added
3119 * config.h: if GNU960 defined, then default emulation mode is
3120 GLD960
3121 * ldexp.h, ldexp.c: map to file hooks
3122 * ldlang.c: map to file hooks
3123 * ldgram.y: added -Map -relax
3124 * ldlex.l: added -relax, -Map
3125 * ldmain.c: open map file
3126 * ldmisc.c: support for map file
3127 * ldwrite.c: new relax magic
3128
3129Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
3130
3131 * Makefile.in, config/tm-*.h: Clean up make output, only
3132 pass DEFAULT_EMULATION to ldmain.c.
3133
3134Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
3135
3136 * ldver.c: Bump to version 1.94.
3137
3138Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3139
3140 * Makefile.in: infodir belongs in datadir.
3141
e06ba18d
PB
3142Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
3143
3144 * Makefile.in: Pass -y to bison. (Again;
3145 accidentally deleted by Rich.)
3146 * news.sc, ldgld68k.sc: Define __end as well as _end.
3147
3148Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
3149
3150 * ldindr.h: added to contain prototypes of ldindr.c
3151 * ldfile.c: include ctype.h
3152 * ldmain.c: include the requried prototype headers
3153 * ldwrite.c: get_reloc_upper_bound has been renamed
3154 bfd_get_reloc_upper_bound
3155
818a192a
RP
3156Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3157
3158 * Makefile.in: punt "fundamental" mode because it breaks my emacs
3159 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
3160 spaces following hyphens, bsd make can't cope. added
3161 standards.text support and made it look like all the other
3162 makefiles.
3163
3164 * configure.in: configure now runs entirely in objdir so make file
3165 existence checks against ${srcdir}. Mark this directory as
3166 target dependent.
3167
3168Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3169
3170 * Makefile.in: idestdir and ddestdir go away. Added copyrights
3171 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
3172 and mandir now keyed off datadir by default.
3173
3174Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
3175
3176 * ldver.c: Bumped version to 1.93.
3177 * Makefile.in: Pass -y to bison.
3178
3179Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
3180
3181 * config.h: h8 is now coff, not ieee
3182 * h8300hds.sc: reflect the same
3183
3184Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
3185
3186 * ldver.c (ldversion()): Update to 1.92.
3187 * ldctor.c: There are two places constructor sets
3188 can be defined. One of them checked for an existing
3189 duplicate, the other didn't. Unfortunately, the latter
3190 was called after the former ...
3191 So, factor out code for inserting a new element into
3192 constructor_name_list (after checking for a duplicate)
3193 into a new function add_constructor_name, and call
3194 it from both aforementioned places (ldlang_add_constructor
3195 and ldlang_check_for_constructors).
3196
3197Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
3198
3199 * Makefile.in: Rename .c files generated from ldtemplate
3200 to have names starting with ld__. This helps 'make clean'.
3201
092df318
SC
3202Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
3203
3204 * Makefile.in: Take out the version number for install
3205 * m88kbcs.sc: put in contructor blocks.
3206
1c9e4b15
PB
3207Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
3208
3209 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
3210 parameter, a format, and an arg pointer, and rename it to
3211 vfinfo(). Write info() in terms of new vfinfo().
3212 New einfo() is the same as info(), except it writes to stderr.
3213 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
3214 ldmisc.c: Replace "error" calls to info() by new einfo().
3215
550e87b5
SC
3216Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
3217
3218 * ldlex.l ldgram.y: made -V option do same as -v
3219 * Makefile.in: Added $(MINUS_G) flag so debugging can be
3220 turned off
3221
3222Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
3223 i386 aout changes from Bob Kukura
3224 * Makefile.in, config.h: added i386aout support
3225 * configure.in: fixed /h-{myhost} typo
3226 * ldgram.y: -MM now gives more boring map.
3227 * ldlang.c: now does D_PAGED flag the right way.
3228 * ldsym.c: -MM flags does the right thing.
3229
aeedc30e
PB
3230Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
3231
3232 * configure.in: Fixed typo. Also, a fix for hp300bsd.
3233 * ldlang.c (init_os): Compensate for BFD change,
3234 where bfd_make_section now returns NULL for a duplicate
3235 section request, instead of the old section.
3236
3237Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
3238
3239 * ldver.c: Bump to version 1.91 (consistent with binutils).
3240
2d1a2445
PB
3241Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
3242
3243 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
3244 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
3245 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
3410447c 3246 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
2d1a2445
PB
3247 Add or update copyright notices.
3248
3249Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
3250
3251 * README: New file.
3252 * Makefile.in: Changed installation directory name scheme
3253 to be consistent with gcc. Also changed 'install'.
3254
954ac2ea
RP
3255Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
3256
3257 * Makefile.in: new targets ld.mm, ld.me
3258
972e7b4b
PB
3259Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
3260
3261 * Makefile.in, ldtemplate: Need to use separate scripts
3262 for -n and -N options. Yet more complication.
3263
33ce0085
JG
3264Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
3265
3266 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
3267 work). Add some lines to avoid Sun Make VPATH bugs.
3268
b7e24eef
PB
3269Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
3270
3271 * news.sc: Add alignment for data segment.
3272 * ldtemplate: Add (yet another) script to get for -n or -N
3273 options. (These need different alignment than ZMAGIC files.)
3274 * Makefile.in: Add stuff for new foo.xn scripts.
3275 These are generated by replacing "ALIGN(0x...00)" by ".".
3276
b55e0948
RP
3277Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
3278
3279 * Makefile.in: new targets ld.ms, ld-index.ms
3280 ld.texinfo: remove tabs, other cleanups for texi2roff
3281
6719c75b
PB
3282Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
3283
3284 * ldmain.c (main): Make config.magic_demand_paged be true
3285 by default. Don't the WP_TEXT and D_PAGED flags of
3286 output_bfd here; it's too late, so set it when output_bfd
3287 is created (in ldlang.c). Also fix setting of EXEC_P flag
3288 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
3289 * ldlang.c: Remove some duplicate extern declarations.
3290 * ldgram.y: Fixes to -N and -n options.
3291 * Makefile.in: Recognize upper case letters in sed script
3292 to remove assignments from script files.
3293 * ldtemplate: Don't assukme that -N or -n options
3294 imply use of -r script.
3295 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
3296
8e10cea1
SC
3297Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
3298
3299 * ldtemplate: include bfd.h before sysdep.h.
3300
1f8fc34f
JG
3301Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
3302
3303 Restructure configuration scheme for bfd, binutils, ld.
3304
3305 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
3306 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
3307 Change some config names to match other dirs.
3308 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
3309 get defined first.
3310 * config/: Rename some config files to match up h-*.h names.
3311 Remove all the HOST_SYS definitions from the config files.
3312
3313Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
3314
3315 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
3316 * ldtemplate: Remove ldfile_add_library_path calls;
3317 just use the SEARCH_DIR commands in the script files.
3318 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
3319 the SEARCH_DIR commands in the scripts (using ugly sed magic).
3320 This is primarily intended for cross-linking, where you would
3321 place libaries in a different place than native libraries.
3322 Also, emulations made from ldtemplate now use $(srcdir).
3323 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
3324 form; people can use the Makefile's LIB_PATH to override.
3325
8d317d2a
RP
3326Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
3327
3328 * Makefile.in: fix target ld.dvi, add target ld.info
3329 ld.texinfo: make info filename ld.info
3330
558175fb
JG
3331Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
3332
3333 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
3334 Make).
3335 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
3336 few BFD types & enums.
3337
de0abbfc
ILT
3338\f
3339Local Variables:
bf82ab68
ILT
3340mode: indented-text
3341left-margin: 8
3342fill-column: 74
de0abbfc
ILT
3343version-control: never
3344End:
This page took 0.25779 seconds and 4 git commands to generate.