Re: [Gnu-efi-discuss] ld: Don't warn about RWX segment maps
Brought to you by:
noxorc
|
From: Callum F. <gm...@op...> - 2023-03-28 17:05:52
|
On 3/28/23 14:26, Richard Hughes wrote: > Newer gnu ld complains about RWX segment maps, and since we build with > "--fatal-warnings" we get the following: > > ld -nostdlib --warn-common --no-undefined --fatal-warnings \ > --build-id=sha1 -shared -Bsymbolic \ > -L/builddir/build/BUILD/gnu-efi-3.0.9//apps/../aa64/lib \ > -L/builddir/build/BUILD/gnu-efi-3.0.9//apps/../aa64/gnuefi \ > /builddir/build/BUILD/gnu-efi-3.0.9//apps/../aa64/gnuefi/crt0-efi-aarch64.o > \ > --defsym=EFI_SUBSYSTEM=0xa t.o -o t.so -lefi -lgnuefi \ > /usr/lib/gcc/aarch64-redhat-linux/13/libgcc.a \ > -T /builddir/build/BUILD/gnu-efi-3.0.9//apps/../gnuefi/elf_aarch64_efi.lds > ld: warning: t.so has a LOAD segment with RWX permissions > > Since the final linked binary will be PE, rather than ELF, and won't > even *have* segment maps, this should be safe to just disable. > > This patch adds "--no-warn-rwx-segments" to the ld command lines. Not needed post https://sourceforge.net/p/gnu-efi/code/ci/1e0055069400179726858e472591ca5ac334120b/ Many thanks, Callum F |