base-file: remove password aging feature form /etc/shadow
[openwrt/staging/wigyori.git] / package / boot / at91bootstrap / patches / 001-Makefile-Remove-nostartfiles-from-LDFLAGS.patch
1 From 59c8963d8e6a08222616d1b384e1009ba05e6b82 Mon Sep 17 00:00:00 2001
2 From: Chris Elledge <celledge@digitallumensinc.com>
3 Date: Tue, 8 Jun 2021 14:01:14 -0400
4 Subject: Makefile: Remove -nostartfiles from LDFLAGS
5
6 Binutils linker ld does not support the flag -nostartfiles.
7 This is interpreted as "-n -o startfiles" which fortunately has no impact
8 on the build process. Removing -nostartfiles has no impact on the build.
9
10 Binutils 2.36 and later ld has improved flag parsing and throws an error if
11 -nostartfiles is passed as an argument. Removing the flag fixes the problem.
12
13 Details on the Binutils ML:
14 https://sourceware.org/pipermail/binutils/2021-June/116826.html
15
16 In our ld command line there are explicit
17 -n -o $(BINDIR)/$(BOOT_NAME).elf options,
18 hence removing -nostartfiles will not alter the build.
19
20 Signed-off-by: Chris Elledge <celledge@digitallumensinc.com>
21 Reviewed-by: Aubin Constans <aubin.constans@microchip.com>
22 [eugen.hristev@microchip.com: ported to at91bootstrap4]
23 Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
24 ---
25 Makefile | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28 --- a/Makefile
29 +++ b/Makefile
30 @@ -275,7 +275,7 @@ endif
31 # --cref: add cross reference to map file
32 # -lc : tells the linker to tie in newlib
33 # -lgcc : tells the linker to tie in newlib
34 -LDFLAGS=-nostartfiles -Map=$(BINDIR)/$(BOOT_NAME).map --cref -static
35 +LDFLAGS=-Map=$(BINDIR)/$(BOOT_NAME).map --cref -static
36 LDFLAGS+=-T $(link_script) $(GC_SECTIONS) -Ttext $(LINK_ADDR)
37
38 ifneq ($(DATA_SECTION_ADDR),)