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