diff options
author | Alan Modra <amodra@gmail.com> | 2021-12-07 12:26:55 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-12-07 16:10:22 +1030 |
commit | 43908c16539f486d0b1afc43329bf59d1c3cdd20 (patch) | |
tree | 916a93ce4f3c4248d99f6eff20036fde6444d7c6 /gdb/reverse.c | |
parent | 21ce5fa063563cb254e0560beb98bd4245b99fb1 (diff) | |
download | binutils-43908c16539f486d0b1afc43329bf59d1c3cdd20.zip binutils-43908c16539f486d0b1afc43329bf59d1c3cdd20.tar.gz binutils-43908c16539f486d0b1afc43329bf59d1c3cdd20.tar.bz2 |
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.
Diffstat (limited to 'gdb/reverse.c')
0 files changed, 0 insertions, 0 deletions