Print this page
7594 ld -zaslr should accept Solaris-compatible values
@@ -1442,15 +1442,19 @@
if (*p == '\0') {
ofl->ofl_aslr = 1;
} else if (*p == '=') {
p++;
- if (strcmp(p,
- MSG_ORIG(MSG_ARG_ENABLED)) == 0) {
+ if ((strcmp(p,
+ MSG_ORIG(MSG_ARG_ENABLED)) == 0) ||
+ (strcmp(p,
+ MSG_ORIG(MSG_ARG_ENABLE)) == 0)) {
ofl->ofl_aslr = 1;
- } else if (strcmp(p,
- MSG_ORIG(MSG_ARG_DISABLED)) == 0) {
+ } else if ((strcmp(p,
+ MSG_ORIG(MSG_ARG_DISABLED)) == 0) ||
+ (strcmp(p,
+ MSG_ORIG(MSG_ARG_DISABLE)) == 0)) {
ofl->ofl_aslr = -1;
} else {
ld_eprintf(ofl, ERR_FATAL,
MSG_INTL(MSG_ARG_ILLEGAL),
MSG_ORIG(MSG_ARG_ZASLR), p);