]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/ldgram.y
Add warning messages for the use of an undeclared memory region and the
[thirdparty/binutils-gdb.git] / ld / ldgram.y
index 9038ebc1ae404679096b3110c3b015c1c3f9c0a7..c00b7af617b8831d2be95d5eea1f6367f498b0cc 100644 (file)
@@ -627,7 +627,7 @@ memory_spec_list:
 
 
 memory_spec:   NAME
-               { region = lang_memory_region_lookup($1); }
+               { region = lang_memory_region_lookup ($1, TRUE); }
                attributes_opt ':'
                origin_spec opt_comma length_spec
                {}
@@ -924,7 +924,7 @@ opt_nocrossrefs:
 memspec_opt:
                '>' NAME
                { $$ = $2; }
-       |       { $$ = "*default*"; }
+       |       { $$ = DEFAULT_MEMORY_REGION; }
        ;
 
 phdr_opt: