Richard Kenner
eccd41bbdd
(main): Unlink export_file before we return.
...
From-SVN: r10022
1995-06-22 18:03:38 -04:00
Richard Kenner
940d9d638b
Update FSF address.
...
From-SVN: r9959
1995-06-15 07:33:25 -04:00
Richard Kenner
603b4064ce
(main): Don't turn off auto_export because of -g.
...
(main): Ignore the argument to -o.
(main): Place o_file after an initial .o (like crt0.o).
If we have LD_INIT_SWITCH, use init and fini functions for
executables, too. Specify the unique function names.
(write_c_file_stat): Fix the case of destructors but no constructors.
Don't include the generic-named functions for executables.
(write_c_file): If we have LD_INIT_SWITCH, always use write_c_file_stat.
(main): Also add _GLOBAL__D? to export list.
From-SVN: r9956
1995-06-14 22:21:06 -04:00
Richard Kenner
d36c3fe262
(COFF scan_prog_file): Use the AIX duplicate entry.
...
From-SVN: r9898
1995-06-07 05:06:35 -04:00
Richard Kenner
c102bba010
#include config.h before any other .h file.
...
From-SVN: r9756
1995-05-20 07:16:51 -04:00
Richard Kenner
dca0093028
(strstr): Deleted.
...
From-SVN: r9746
1995-05-19 17:46:07 -04:00
Richard Kenner
ddd5a7c180
Fix typos in comments.
...
From-SVN: r9711
1995-05-16 08:14:26 -04:00
Jason Merrill
27a2e668fd
Define strstr.
...
From-SVN: r9696
1995-05-16 00:57:31 +00:00
Jason Merrill
cbbbd91755
AIX shared libraries
...
From-SVN: r9595
1995-05-09 10:21:13 +00:00
Jason Merrill
a31844688a
Make collect demangle
...
From-SVN: r9573
1995-05-04 21:25:31 +00:00
Richard Kenner
96317659b6
Removed __NetBSD__ from conditional.
...
Declare strerror if HAVE_STRERROR is defined; otherwise declare sys_errlist
and sys_nerr.
From-SVN: r9043
1995-02-22 20:28:17 -05:00
Jason Merrill
28aaf32b33
Update SunOS 4 code
...
From-SVN: r9041
1995-02-23 01:23:53 +00:00
Jason Merrill
9f21696b10
Fix collecting under AIX
...
From-SVN: r8933
1995-02-13 20:21:44 +00:00
Jason Merrill
35e530c58f
Improve PA shlib support
...
From-SVN: r8792
1995-01-24 02:52:44 +00:00
Jason Merrill
68d69835ac
Shared library support.
...
From-SVN: r8519
1994-11-19 04:09:58 +00:00
Jason Merrill
0393b857b1
(add_to_list): Check for duplicates.
...
From-SVN: r8328
1994-10-20 22:06:20 +00:00
Jason Merrill
90d326bda2
(scan_prog_file): Call COLLECT_QUALIFY_MATCH to do target-specific checking of the suitability of a match.
...
(scan_prog_file): Call COLLECT_QUALIFY_MATCH to do
target-specific checking of the suitability of a match.
(main): Check REAL_*_FILE_NAME first.
From-SVN: r8317
1994-10-19 22:09:20 +00:00
Richard Kenner
aae807c0f4
(my_strerror): If HAVE_STRERROR defined, call strerror.
...
From-SVN: r8239
1994-10-07 19:09:12 -04:00
Ian Lance Taylor
0b90f9c2dc
If the POSIX.1 wait macros are defined, use them.
...
From-SVN: r8213
1994-10-04 20:53:02 +00:00
Jason Merrill
2d5e74ca04
(main): Ignore options in COLLECT_SUPPRESS_OPTIONS
...
for the first link.
From-SVN: r8153
1994-09-28 00:11:31 +00:00
Jason Merrill
eeed1288b8
(main): Discard the first executable once we've
...
exploited it.
From-SVN: r8122
1994-09-22 17:14:46 +00:00
Richard Kenner
bd1a74b1a7
(fatal_perror, fatal, error): Declare all args as char *.
...
From-SVN: r8078
1994-09-13 14:11:09 -04:00
Charles Hannum
842a1144f2
Do the 4.4BSD sys_errlist modification for NetBSD also.
...
From-SVN: r7707
1994-07-11 19:03:10 +00:00
Richard Kenner
4c9a05bc55
Cast pointer operands to bzero, bcopy, and bcmp to (char *).
...
From-SVN: r7472
1994-06-14 18:19:28 -04:00
Richard Kenner
0dd4a7035f
(putenv): Remove decl of unused variable STR_LEN.
...
(main): Remove decls of unused variables LEN and CLEN.
From-SVN: r6875
1994-03-25 13:57:48 -05:00
Richard Kenner
eadbc96110
(dup2): Catch dup() failure. Return correct value.
...
From-SVN: r6740
1994-03-10 15:23:01 -05:00
Richard Kenner
4b19dee8c6
([__MSDOS__]): Use #ifdef, not #if.
...
From-SVN: r6739
1994-03-10 15:18:00 -05:00
Jim Wilson
1b7ca66047
(sys_siglist): Don't declare if DONT_DECLARE_SYS_SIGLIST is defined.
...
From-SVN: r6494
1994-02-06 13:31:38 -08:00
Richard Kenner
b3a2ef9465
(main): When searching compiler directories, look for ld_suffix, not
...
full_ld_suffix.
From-SVN: r6280
1993-12-23 08:17:07 -05:00
Jim Wilson
5d672cd7e6
(sys_errlist): Conditionalize declaration for BSD 4.4.
...
From-SVN: r5843
1993-10-20 16:20:09 -07:00
Michael Meissner
357a98f13e
Fix typo.
...
From-SVN: r5570
1993-10-03 23:36:06 +00:00
Richard Kenner
4d1a011f56
Add prototypes to static declarations.
...
(PROTO): New macro.
(dup2, putenv): Functions return integers; add type and returns.
From-SVN: r5560
1993-10-02 14:07:37 -04:00
Doug Evans
588e387f14
(main): Provide upward compatibility with old version
...
of collect (avoids infinite mutual recursion between the two).
From-SVN: r5307
1993-09-11 20:46:39 +00:00
Doug Evans
7223feb046
collect2.c (our_file_name, [...]): deleted.
...
* collect2.c (our_file_name, last_file_name): deleted.
(our_file_names): New variable.
(is_in_prefix_list): New function.
(find_a_file): Call is_in_prefix_list.
(main): Make COLLECT_NAMES a list of our invocations.
If we've invoked ourselves, try again with ld_file_name.
From-SVN: r5262
1993-09-05 22:20:29 +00:00
Mike Stump
5555d6d103
collect2.c (is_ctor_dtor): Make sizeof argument match the string.
...
* collect2.c (is_ctor_dtor): Make sizeof argument match the
string.
From-SVN: r5239
1993-09-01 22:06:56 +00:00
Richard Stallman
b31a1e3f17
(handler): Check whether c_file and o_file are 0.
...
From-SVN: r5073
1993-08-05 04:06:59 +00:00
Richard Stallman
d6cf318765
(NAME__MAIN, SYMBOL__MAIN): Add default definitions.
...
(write_c_file, scan_prog_file(OSF/ROSE)): Use them instead of explicit
__main.
From-SVN: r4990
1993-07-26 20:58:04 +00:00
Richard Stallman
c52d2678ed
Finish last change.
...
From-SVN: r4948
1993-07-21 03:41:16 +00:00
Richard Stallman
cf0fc80a45
(is_ctor_dtor): Delete leading _'s from sym names
...
in `special' table, in neither-dots-nor-dollars case.
From-SVN: r4947
1993-07-21 03:36:21 +00:00
Richard Stallman
0d8c1ccd98
(main): Allocate COLLECT_NAME string with xmalloc.
...
From-SVN: r4902
1993-07-10 21:38:19 +00:00
Ian Lance Taylor
f820b89885
Search for ld in the compiler directories.
...
From-SVN: r4872
1993-07-07 18:20:25 +00:00
Jim Wilson
cf0c751a4f
(fork_execute, scan_prog_file): Use "fork" in error
...
messages instead of "vfork" when vfork is defined to fork.
From-SVN: r4871
1993-07-07 10:40:32 -07:00
Richard Stallman
626e18ea3f
(error, fatal, fatal_perror): Say collect2, not collect.
...
From-SVN: r4839
1993-07-04 18:02:51 +00:00
Doug Evans
6c61ac77c0
(main): Give ld_file_name an initial value.
...
From-SVN: r4835
1993-07-03 20:40:36 +00:00
Richard Stallman
985525245a
(main): Don't look for gld' or
TARGET-gld'.
...
From-SVN: r4805
1993-06-30 19:02:44 +00:00
Richard Stallman
46c74083c3
(main): Use TARGET-gcc, not gcc-TARGET.
...
(main) [CROSS_COMPILE]: Use TARGET-TOOL for full_...
From-SVN: r4563
1993-05-25 03:10:36 +00:00
Richard Stallman
a1549b15ed
(main): For -debug, if ..._file_name is a null pointer,
...
say so instead of crashing.
From-SVN: r4530
1993-05-21 19:55:25 +00:00
Richard Kenner
8ab861c702
(main, scan_prog_file): Don't call signal on signal names that aren't
...
defined.
From-SVN: r4135
1993-04-13 17:07:04 -04:00
Richard Stallman
0cdd3dddae
(output_file): New static var.
...
(main): Set output_file.
(my_exit): Delete output_file on failure.
From-SVN: r3777
1993-03-18 21:17:20 +00:00
Richard Stallman
bd814d9779
(main): Use strlen, not sizeof, for our_file_name.
...
From-SVN: r3617
1993-03-03 04:43:37 +00:00
Richard Stallman
7cbfceab52
(is_ctor_dtor): Handle NO_DOT_IN_LABEL.
...
From-SVN: r3538
1993-02-26 06:34:41 +00:00
Richard Kenner
aee3a549b0
(find_a_file): Always reject "./ld".
...
(main): Pass short name of program as first arg to fork_execute; ensure
argv[0] always gets filename.
(fork_execute): Print name for diagnostic from PROG; filename comes from
argv[0].
From-SVN: r3463
1993-02-11 14:41:46 -05:00
Richard Kenner
45840c57d7
(putenv): New function, copied from gcc.c.
...
(last_file_name): New variable.
(find_a_file): Ignore name in last_file_name too.
(main): Look at name in COLLECT_NAME and set it to the name we were called
with.
Pass filename used for ld to ld as argv[0].
From-SVN: r3461
1993-02-11 05:55:22 -05:00
Richard Kenner
7243ba7d92
Delete ISCOFF macro which was in #ifdef _AIX.
...
From-SVN: r3363
1993-01-27 06:46:40 -05:00
Brendan Kehoe
c7af43d8b3
collect2.c (write_list_with_asm): Use __asm__' instead of
asm', to avoid problems with `-fno-asm'.
...
* collect2.c (write_list_with_asm): Use `__asm__' instead of
`asm', to avoid problems with `-fno-asm'.
From-SVN: r3351
1993-01-26 17:14:37 -05:00
Richard Stallman
e8fda1f96b
(find_a_file): First `access' test was backwards.
...
(main): Set full_real_ld_suffix right.
From-SVN: r3346
1993-01-26 06:58:09 +00:00
Richard Kenner
720653a39b
(our_file_name): New variable.
...
(find_a_file): Ignore filename equal to that in our_file_name.
(main): Initialize our_file_name.
From-SVN: r3299
1993-01-22 07:56:23 -05:00
Richard Kenner
aee42e2745
(choose_temp_base, main): Fix "off by one" errors in sizes of
...
allocated strings.
From-SVN: r3261
1993-01-18 06:23:11 -05:00
Richard Stallman
bb59f9a64b
(main): Look for real-ld' after
gld', before `ld'.
...
Fix typo in -debug part of previous change.
Look for tools using paths rather than a single prefix.
(struct prefix_list, struct path_prefix): New structures.
(cpath, path): New variables.
(find_a_file, add_prefix): New functions; simplified versions of
functions from gcc.c.
(prefix_from_env): New function.
(main): Get path to search for binaries from COMPILER_PATH
environment variable always set by gcc.c and from PATH.
Qualify names with target machine in cross-environment unless
using compiler directories.
Use find_a_file to find our binaries.
Remove use of single prefix.
If -debug, print strip_file_name.
(fork_execute): Print program we are trying to execute if -debug and
we can't find the file.
(scan_prog_file): Complain if can't find nm.
From-SVN: r3052
1993-01-02 08:32:09 +00:00
Richard Stallman
033ba47ced
(FREAD, FWRITE): Undef these macros if they were defined
...
before including ldfcn.h.
From-SVN: r2780
1992-11-23 22:46:14 +00:00
Richard Stallman
5365d6ee18
(main): If COLLECT_GCC is a relative name, use it anyway.
...
From-SVN: r2467
1992-10-15 06:11:01 +00:00
Jim Wilson
915ee62371
(main): Only install a signal handler for signals that already have handlers.
...
(main): Only install a signal handler for signals
that already have handlers.
(fork_execute): Don't ignore signals before calling do_wait.
From-SVN: r2436
1992-10-13 11:24:57 -07:00
Richard Stallman
7a646ee5a3
Fix typo in last change.
...
From-SVN: r1865
1992-08-17 07:58:51 +00:00
Richard Stallman
c1af03468d
(is_ctor_dtor): Don't collect cfront init fcns.
...
From-SVN: r1864
1992-08-17 07:58:06 +00:00
Richard Stallman
f28e8a6876
entered into RCS
...
From-SVN: r1697
1992-07-28 02:18:03 +00:00
Charles Hannum
5f4f0e2294
*** empty log message ***
...
From-SVN: r1471
1992-07-06 20:04:00 +00:00
Richard Stallman
e99467d2ed
*** empty log message ***
...
From-SVN: r1360
1992-06-30 04:05:47 +00:00
Mike Stump
3f7cc57ab8
*** empty log message ***
...
From-SVN: r1341
1992-06-29 19:15:14 +00:00
Richard Stallman
f72aed244a
*** empty log message ***
...
From-SVN: r1263
1992-06-24 03:59:40 +00:00
Richard Stallman
7c0891a18f
*** empty log message ***
...
From-SVN: r1212
1992-06-18 19:27:56 +00:00
Michael Meissner
f3c3d3df9c
*** empty log message ***
...
From-SVN: r1185
1992-06-10 19:25:16 +00:00
Richard Stallman
629af8db53
*** empty log message ***
...
From-SVN: r1168
1992-06-05 23:03:21 +00:00
Richard Stallman
e6701a475f
*** empty log message ***
...
From-SVN: r1099
1992-05-27 20:06:15 +00:00
Richard Stallman
cd4f4a28dd
*** empty log message ***
...
From-SVN: r965
1992-05-13 01:24:47 +00:00
Jim Wilson
177048466a
*** empty log message ***
...
From-SVN: r917
1992-05-06 14:25:13 -07:00
Michael Meissner
a87104d913
*** empty log message ***
...
From-SVN: r840
1992-04-27 16:50:26 +00:00
Richard Stallman
aaf625e5fa
*** empty log message ***
...
From-SVN: r677
1992-04-04 06:49:57 +00:00
Richard Stallman
1fab8e8107
*** empty log message ***
...
From-SVN: r656
1992-04-01 05:06:34 +00:00
Richard Stallman
ed5b946218
*** empty log message ***
...
From-SVN: r529
1992-03-19 22:07:22 +00:00
Richard Stallman
4e81a331e8
Initial revision
...
From-SVN: r287
1992-02-06 22:06:40 +00:00