Choose big if -EB is specified, little if -EL is specified, or default if neither is specified.
The new behavior matches GNU ld.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM, I've made some small suggestions.
lld/ELF/Config.h | ||
---|---|---|
157 | eb and el are close in name to the isLE option? Perhaps use something like "optLE" or "leSet" to avoid confusion. | |
lld/ELF/Options.td | ||
162 | Worth adding a simple line of text for the help file? Possibly the man page as well. | |
lld/ELF/ScriptParser.cpp | ||
436 | Worth mentioning what happens if second form is used but no choice of -EB or -EL is made. https://sourceware.org/binutils/docs/ld/Format-Commands.html |
eb and el are close in name to the isLE option? Perhaps use something like "optLE" or "leSet" to avoid confusion.