Skip to content

Commit aec7b62

Browse files
keith-packardnashif
authored andcommitted
gcc: Support Canadian cross builds on microblazeel
Picolibc uses the linker during the build process to construct crt0.o files, but the microblazeel spec from gcc adds -dT xilinx.ld when no -T argument is provided to introduce default linking parameters. However, during a Canadian cross build, the xilinx.ld file isn't installed before picolibc gets built causing the build to fail. Fix this by not using xilinx.ld when the -r flag is selected. Signed-off-by: Keith Packard <[email protected]>
1 parent 95949eb commit aec7b62

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-
%{!T*: -dT xilinx.ld%s}"
113+
%{!r:%{!T*: -dT xilinx.ld%s}}"
114114

115115
/* Specs for the compiler proper */
116116

0 commit comments

Comments
 (0)