Skip to content

Commit 692ff72

Browse files
keith-packardnashif
authored andcommitted
config/microblaze: Make linker scripts optional
These may not exist during the toolchain build, so check before using. Signed-off-by: Keith Packard <[email protected]>
1 parent 2e9a263 commit 692ff72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/config/microblaze/microblaze.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ extern enum pipeline_type microblaze_pipe;
110110
%{Zxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \
111111
%{mxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \
112112
%{mxl-gp-opt:%{G*}} %{!mxl-gp-opt: -G 0} \
113-
%{!r:%{!T*: -dT xilinx.ld%s}}"
113+
%{!r:%{!T*: %:if-exists-then-else(%:find-file(xilinx.ld) -dT xilinx.ld%s)}}"
114114

115115
/* Specs for the compiler proper */
116116

0 commit comments

Comments
 (0)