Sorry for posting such a minor one
, but just found I am not sure this is
expected behaviour though it seems so according to
https://llvm.org/bugs/show_bug.cgi?id=31057.
So do we want that one right ?
Differential D26865
[ELF] - exit on --version call grimar on Nov 18 2016, 11:25 AM. Authored by
Details Sorry for posting such a minor one So do we want that one right ?
Diff Detail Event TimelineComment Actions This is the patch I mentioned. http://llvm.org/viewvc/llvm-project?view=revision&revision=278797 Comment Actions Seems it's a difference in behaviour between -v and --version. AFAICT for -v both ld.bfd and ld.gold print a one-line version number and carry on with the link if there are args (or exit with 0 if not). For --version they print a multi-line version & This program is free software info, and do not link. Comment Actions So we probably should stop handling --version as an alias to -v and make --verbose behave differently than -v. Comment Actions
Behavior of ld.bfd and ld.gold is inconsistent. I checked the next combinations: Until here behavior was equal. But the last case has different result: That is what Rui mentioned on bug page, I did not realized it at first. So looks we can live with just a minor change like this patch do to fix |