aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/ld.texinfo6
-rw-r--r--ld/ldgram.y4
2 files changed, 5 insertions, 5 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 8ecdef2..6662ca3 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -2255,10 +2255,10 @@ of files from matching the file name wildcard, EXCLUDE_FILE may be used to
match all files except the ones specified in the EXCLUDE_FILE list. For
example:
@smallexample
-(*(EXCLUDE_FILE (*crtend.o, *otherfile.o) .ctors))
+(*(EXCLUDE_FILE (*crtend.o *otherfile.o) .ctors))
@end smallexample
-will cause all .ctors sections from all files except crtend.o and otherfile.o
-to be included.
+will cause all .ctors sections from all files except @file{crtend.o} and
+@file{otherfile.o} to be included.
There are two ways to include more than one section:
@smallexample
diff --git a/ld/ldgram.y b/ld/ldgram.y
index 7189812..806ea1c 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -420,11 +420,11 @@ wildcard_spec:
exclude_name_list:
- exclude_name_list ',' wildcard_name
+ exclude_name_list wildcard_name
{
struct name_list *tmp;
tmp = (struct name_list *) xmalloc (sizeof *tmp);
- tmp->name = $3;
+ tmp->name = $2;
tmp->next = $1;
$$ = tmp;
}