Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 1 | From e5bc9fbd6029057a4e3815a5326af5bd83a450e6 Mon Sep 17 00:00:00 2001 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 7 Sep 2015 07:59:45 +0000 |
| 4 | Subject: [PATCH] purgatory: Pass -r directly to linker |
| 5 | |
| 6 | This helps compiling with clang since -r is not a known option for clang |
| 7 | where as gcc knows how to deal with it and passes it down to linker |
| 8 | unfiltered |
| 9 | |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | |
| 12 | Upstream-Status: Pending |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 13 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 14 | --- |
| 15 | purgatory/Makefile | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/purgatory/Makefile b/purgatory/Makefile |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 19 | index 4d2d071..6673423 100644 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 20 | --- a/purgatory/Makefile |
| 21 | +++ b/purgatory/Makefile |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 22 | @@ -61,7 +61,7 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 23 | -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) |