Skip to content

Commit 0fec0d2

Browse files
committed
config/microblaze: fix whitespace in LINK_SPEC is breaking linking
whitespace is causing the intended output of `-dT xilinx.ld%s` to be split and takeninto if-exists-then-else as 2nd and 3rd arguments so LINK_SPEC emits `-dT` when xilinx.ld is found, and emits xilinx.ld when not found. Signed-off-by: Alp Sayin <alpsayin@gmail.com>
1 parent 80f3cbf commit 0fec0d2

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
@@ -115,7 +115,7 @@ extern enum pipeline_type microblaze_pipe;
115115
%{Zxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \
116116
%{mxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \
117117
%{mxl-gp-opt:%{G*}} %{!mxl-gp-opt: -G 0} \
118-
%{!r:%{!T*: %:if-exists-then-else(%:find-file(xilinx.ld) -dT xilinx.ld%s)}}"
118+
%{!r:%{!T*: %:if-exists-then-else(%:find-file(xilinx.ld) -Txilinx.ld%s)}}"
119119

120120
/* Specs for the compiler proper */
121121

0 commit comments

Comments
 (0)