mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
ld: Properly create a symbolic link to tmpdir/ldscripts
Don't create a symbolic link to tmpdir/ldscripts if it exists. PR ld/27771 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link to tmpdir/ldscripts only if it doesn't exist.
This commit is contained in:
parent
4d6840c335
commit
69cc19455b
@ -1,3 +1,9 @@
|
||||
2021-04-23 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/27771
|
||||
* testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
|
||||
to tmpdir/ldscripts only if it doesn't exist.
|
||||
|
||||
2021-04-22 Jan Beulich <jbeulich@suse.com>
|
||||
|
||||
PR ld/26659
|
||||
|
@ -62,7 +62,9 @@ if { [istarget "powerpc-*-*"] } {
|
||||
|
||||
set gcc_B_opt_save $gcc_B_opt
|
||||
|
||||
catch "exec ln -s ../ldscripts tmpdir/ldscripts" status
|
||||
if {![file exists tmpdir/ldscripts]} then {
|
||||
catch "exec ln -s ../ldscripts tmpdir/ldscripts" status
|
||||
}
|
||||
foreach ldexe {ld1 ld2 ld3} {
|
||||
if {![file isdirectory tmpdir/gcc$ldexe]} then {
|
||||
catch "exec mkdir tmpdir/gcc$ldexe" status
|
||||
|
Loading…
Reference in New Issue
Block a user