rtld: Add ${TOKEN} aliases to $TOKEN
it seems that glibc supports them, and such spelling is mentioned in the ld.bfd manual. Idea seems to auto-correct some quoting/makefile sytnax errors on linker command line. Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34247
This commit is contained in:
parent
55abf23dd3
commit
b1b5174123
@ -1181,9 +1181,13 @@ static const struct {
|
||||
const char *subst;
|
||||
} tokens[] = {
|
||||
{ .kw = "$ORIGIN", .pass_obj = true, .subst = NULL },
|
||||
{ .kw = "${ORIGIN}", .pass_obj = true, .subst = NULL },
|
||||
{ .kw = "$OSNAME", .pass_obj = false, .subst = uts.sysname },
|
||||
{ .kw = "${OSNAME}", .pass_obj = false, .subst = uts.sysname },
|
||||
{ .kw = "$OSREL", .pass_obj = false, .subst = uts.release },
|
||||
{ .kw = "${OSREL}", .pass_obj = false, .subst = uts.release },
|
||||
{ .kw = "$PLATFORM", .pass_obj = false, .subst = uts.machine },
|
||||
{ .kw = "${PLATFORM}", .pass_obj = false, .subst = uts.machine },
|
||||
};
|
||||
|
||||
static char *
|
||||
|
Loading…
x
Reference in New Issue
Block a user