Magellan Linux

Contents of /trunk/syslinux/patches/syslinux-6.04-binutils-2.41.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3783 - (show annotations) (download)
Wed Sep 27 14:04:48 2023 UTC (13 months ago) by niro
File size: 3127 byte(s)
-syslinux-6.04_pre1 patches
1 https://bugs.gentoo.org/913129
2 --- a/gnu-efi/gnu-efi-3.0/Make.defaults
3 +++ b/gnu-efi/gnu-efi-3.0/Make.defaults
4 @@ -114,4 +114,4 @@ CFLAGS += $(ARCH3264) -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing \
5 -fno-merge-constants -ffreestanding -fno-stack-protector \
6 -fno-stack-check
7 ASFLAGS += $(ARCH3264)
8 -LDFLAGS += -nostdlib --warn-common --no-undefined --fatal-warnings
9 +LDFLAGS += -nostdlib --warn-common --no-undefined --fatal-warnings --no-warn-rwx-segments -z notext
10 --- a/gnu-efi/gnu-efi-3.0/apps/Makefile
11 +++ b/gnu-efi/gnu-efi-3.0/apps/Makefile
12 @@ -52,7 +52,7 @@ ifneq (,$(findstring FreeBSD,$(OS)))
13 LDSCRIPT = $(TOPDIR)/gnuefi/elf_$(ARCH)_fbsd_efi.lds
14 endif
15
16 -LDFLAGS += -shared -Bsymbolic -L../lib -L../gnuefi $(CRTOBJS)
17 +LDFLAGS += -shared --no-warn-rwx-segments -z notext -Bsymbolic -L../lib -L../gnuefi $(CRTOBJS)
18
19 LOADLIBES += -lefi -lgnuefi
20 LOADLIBES += $(shell $(CC) $(ARCH3264) -print-libgcc-file-name)
21 --- a/mk/com32.mk
22 +++ b/mk/com32.mk
23 @@ -80,7 +80,7 @@ SFLAGS = $(GCCOPT) $(GCCWARN) \
24 -I$(topdir)/core/include
25
26 COM32LD = $(com32)/lib/$(ARCH)/elf.ld
27 -LDFLAGS = -m elf_$(ARCH) -shared --hash-style=gnu -T $(COM32LD)
28 +LDFLAGS = -m elf_$(ARCH) -shared --no-warn-rwx-segments -z notext --hash-style=gnu -T $(COM32LD)
29 LIBGCC := $(shell $(CC) $(GCCOPT) --print-libgcc)
30
31 LNXCFLAGS = -I$(com32)/libutil/include $(GCCWARN) -O -g \
32 --- a/mk/efi.mk
33 +++ b/mk/efi.mk
34 @@ -38,7 +38,7 @@ CRT0 := $(LIBDIR)/crt0-efi-$(EFI_SUBARCH).o
35 LDSCRIPT := $(LIBDIR)/elf_$(EFI_SUBARCH)_efi.lds
36
37 LDFLAGS = -T $(SRC)/$(ARCH)/syslinux.ld -Bsymbolic -pie -nostdlib -znocombreloc \
38 - -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) $(CRT0) -E
39 + -L$(LIBDIR) --no-warn-rwx-segments -z notext --hash-style=gnu -m elf_$(ARCH) $(CRT0) -E
40
41 SFLAGS = $(GCCOPT) $(GCCWARN) $(ARCHOPT) \
42 -fomit-frame-pointer -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__ \
43 --- a/mk/elf.mk
44 +++ b/mk/elf.mk
45 @@ -68,7 +68,7 @@ GCCOPT += -mregparm=3 -DREGPARM=3
46 endif
47
48 SFLAGS = $(GCCOPT) -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__
49 -LDFLAGS = -m elf_$(ARCH) -shared --hash-style=gnu -T $(com32)/lib/$(ARCH)/elf.ld --as-needed
50 +LDFLAGS = -m elf_$(ARCH) -shared --no-warn-rwx-segments -z notext --hash-style=gnu -T $(com32)/lib/$(ARCH)/elf.ld --as-needed
51 LIBGCC := $(shell $(CC) $(GCCOPT) --print-libgcc)
52
53 LNXCFLAGS = -I$(com32)/libutil/include -W -Wall -O -g -D_GNU_SOURCE
54 --- a/mk/lib.mk
55 +++ b/mk/lib.mk
56 @@ -205,7 +205,7 @@ CORELIBOBJS = \
57 $(LIBENTRY_OBJS) \
58 $(LIBMODULE_OBJS)
59
60 -LDFLAGS = -m elf_$(ARCH) --hash-style=gnu -T $(com32)/lib/$(ARCH)/elf.ld
61 +LDFLAGS = -m elf_$(ARCH) --no-warn-rwx-segments -z notext --hash-style=gnu -T $(com32)/lib/$(ARCH)/elf.ld
62
63 .SUFFIXES: .c .o .a .so .lo .i .S .s .ls .ss .lss
64
65 --- a/core/Makefile
66 +++ b/core/Makefile
67 @@ -158,6 +158,7 @@ NASM_ELF = elf
68 %.elf: %.o $(LIBDEP) $(LDSCRIPT) $(AUXLIBS)
69 $(LD) $(LDFLAGS) -pie -Bsymbolic \
70 -T $(LDSCRIPT) \
71 + --no-warn-rwx-segments -z notext \
72 --unresolved-symbols=report-all \
73 -E --hash-style=gnu -M -o $@ $< \
74 --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group \