Patch implements ternary operator for linkerscript expressions.
Like:
SECTIONS {
. = 0x1 ? 0x2 : 0x3;
...
} Differential D19332
[ELF] - implemented ternary operator for linkerscript expressions Authored by grimar on Apr 20 2016, 10:06 AM.
Details
Patch implements ternary operator for linkerscript expressions. SECTIONS {
. = 0x1 ? 0x2 : 0x3;
...
}
Diff Detail
Event TimelineComment Actions I have a question (mostly, curiosity). Are you trying to support enough to correctly parse a given linker script (e.g. Linux/FreeBSD kernel) or you're picking features according to some other criterion? Cheers,
Comment Actions I am using bsd script as reference (https://svnweb.freebsd.org/base/head/sys/conf/ldscript.amd64?view=markup), so I am trying to support features it uses, assuming that it is reasonable subset. Comment Actions LGTM with a nit.
| ||||||||||||||||||||||