commit | 43908c16539f486d0b1afc43329bf59d1c3cdd20 | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Tue Dec 07 12:26:55 2021 +1030 |
committer | Alan Modra <amodra@gmail.com> | Tue Dec 07 16:10:22 2021 +1030 |
tree | 916a93ce4f3c4248d99f6eff20036fde6444d7c6 | |
parent | 21ce5fa063563cb254e0560beb98bd4245b99fb1 [diff] |
Error on ld output file name matching input file name It's not foolproof, for example we don't catch output to a linker script, to a library specified with -l, or to an element of a thin archive. * ldlang.c (open_output): Exit with error on output file matching an input file. * testsuite/ld-misc/just-symbols.exp: Adjust ld -r test to suit.