blob: a537ac2f0b970945f9b77215490db738d3f1fc44 [file] [log] [blame]
Patrick Williams56b44a92024-01-19 08:49:29 -06001From e5bc9fbd6029057a4e3815a5326af5bd83a450e6 Mon Sep 17 00:00:00 2001
Brad Bishopc342db32019-05-15 21:57:59 -04002From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 7 Sep 2015 07:59:45 +0000
4Subject: [PATCH] purgatory: Pass -r directly to linker
5
6This helps compiling with clang since -r is not a known option for clang
7where as gcc knows how to deal with it and passes it down to linker
8unfiltered
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12Upstream-Status: Pending
Patrick Williams56b44a92024-01-19 08:49:29 -060013
Brad Bishopc342db32019-05-15 21:57:59 -040014---
15 purgatory/Makefile | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/purgatory/Makefile b/purgatory/Makefile
Patrick Williams56b44a92024-01-19 08:49:29 -060019index 4d2d071..6673423 100644
Brad Bishopc342db32019-05-15 21:57:59 -040020--- a/purgatory/Makefile
21+++ b/purgatory/Makefile
Patrick Williams56b44a92024-01-19 08:49:29 -060022@@ -61,7 +61,7 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
Brad Bishopc342db32019-05-15 21:57:59 -040023 -I$(shell $(CC) -print-file-name=include)
24 $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\
25 -Wl,--no-undefined -nostartfiles -nostdlib \
26- -nodefaultlibs -e purgatory_start -r \
27+ -nodefaultlibs -e purgatory_start -Wl,-r \
28 -Wl,-Map=$(PURGATORY_MAP)
29
30 $(PURGATORY): $(PURGATORY_OBJS)