https://sourceware.org/bugzilla/show_bug.cgi?id=28619
Alan Modra <amodra at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Alan Modra <amodra at gmail dot com> --- This will very likely not be fixed by any of the maintainers who look at this bugzilla. The difficulty is that -m needs to be parsed early (ldmain.c:get_emulation) in order to choose the linker "emulation", part of which is the set of extra options valid for that emulation. That means that it will always be possible to construct a linker command line that has ambiguous parsing, even if we try to make the initial search for a -m option more clever. So a perfect solution is likely impossible, and it is likely that no one actually wants to call an output file "-main". Now if you, the reporter, feel that this bug ought to be fixed, I encourage you to submit a patch to binut...@sourceware.org. The solution should be something along the lines of moving get_emulation to lexsup.c and rewriting it to use getopt with the basic set of options. You'd need to be careful to prevent getopt permuting argv. See the getopt man page. -- You are receiving this mail because: You are on the CC list for the bug.