diff options
author | Tom Rix <trix@redhat.com> | 2001-08-15 17:10:18 +0000 |
---|---|---|
committer | Tom Rix <trix@redhat.com> | 2001-08-15 17:10:18 +0000 |
commit | b90e1c6f3e1b7f75e8e7b9f4b66a5e1db9108b4d (patch) | |
tree | 071f94a7c36f59b8792a169626038c296844c134 /ld | |
parent | bdcd319a1e4591cc67562d960ab225e9847e9a25 (diff) | |
download | fsf-binutils-gdb-b90e1c6f3e1b7f75e8e7b9f4b66a5e1db9108b4d.zip fsf-binutils-gdb-b90e1c6f3e1b7f75e8e7b9f4b66a5e1db9108b4d.tar.gz fsf-binutils-gdb-b90e1c6f3e1b7f75e8e7b9f4b66a5e1db9108b4d.tar.bz2 |
Fix for ld
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldgram.y | 2 | ||||
-rw-r--r-- | ld/ldmain.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 01c0a85..b8a5cac 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2001-08-15 Tom Rix <trix@redhat.com> + + * ldgram.y (saved_script_handle): Initialize to NULL. + * ldmain.c (main): Change check on saved_script_handle. + 2001-08-14 Alan Modra <amodra@bigpond.net.au> * emultempl/elf32.em: Formatting fixes. diff --git a/ld/ldgram.y b/ld/ldgram.y index f9c6058..a823bab 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -50,7 +50,7 @@ static enum section_type sectype; lang_memory_region_type *region; boolean ldgram_want_filename = true; -FILE * saved_script_handle = false; +FILE * saved_script_handle = NULL; boolean force_make_executable = false; boolean ldgram_in_script = false; diff --git a/ld/ldmain.c b/ld/ldmain.c index 849e0ae..0ec7891 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -298,7 +298,7 @@ main (argc, argv) /* If we have not already opened and parsed a linker script read the emulation's appropriate default script. */ - if (saved_script_handle == false) + if (saved_script_handle == NULL) { int isfile; char *s = ldemul_get_script (& isfile); |