gnu-efi: ld.bfd: warning: /usr/lib64/crt0-efi-x86_64.o: missing .note.GNU-stack section implies executable stack

Bug #1979215 reported by Nick Rosbrook
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnu-efi (Ubuntu)
New
Undecided
Unassigned

Bug Description

See also https://sourceforge.net/p/gnu-efi/bugs/28/. I noticed this during a local build of systemd against kinetic-proposed. It is caused by a warning added in a recent binutils (2.38.50.20220615-4ubuntu1 in kinetic-proposed).

Here's the relevant snippet from a systemd build:

[ 73s] /usr/bin/cc -o src/boot/efi/systemd_boot.so -fuse-ld=bfd -L /usr/lib64 -nostdlib -T /usr/lib64/elf_x86_64_efi.lds -Wl,--build-id=sha1 -Wl,--fatal-warnings -Wl,--no-undefined -Wl,--warn-common -Wl,-Bsymbolic -z nocombreloc /usr/lib64/crt0-efi-x86_64.o -pie -Wl,--no-dynamic-linker -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wno-unused-result -fno-stack-protector -fno-strict-aliasing -fpic -fwide-exec-charset=UCS2 -Wall -Wextra -Wsign-compare -nostdlib -std=gnu99 -ffreestanding -fshort-wchar -fvisibility=hidden -isystem /usr/include/efi -isystem /usr/include/efi/x86_64 -I /home/abuild/rpmbuild/BUILD/systemd-v250.4+suse.54.g736db5a59f/src/fundamental -DSD_BOOT -DGNU_EFI_USE_MS_ABI -include src/boot/efi/efi_config.h -include version.h -mno-red-zone -mno-sse -mno-mmx -O3 -flto=auto src/boot/efi/bootspec-fundamental.c.o src/boot/efi/efivars-fundamental.c.o src/boot/efi/sha256.c.o src/boot/efi/string-util-fundamental.c.o src/boot/efi/assert.c.o src/boot/efi/devicetree.c.o src/boot/efi/disk.c.o src/boot/efi/graphics.c.o src/boot/efi/measure.c.o src/boot/efi/pe.c.o src/boot/efi/secure-boot.c.o src/boot/efi/util.c.o src/boot/efi/boot.c.o src/boot/efi/console.c.o src/boot/efi/drivers.c.o src/boot/efi/random-seed.c.o src/boot/efi/shim.c.o src/boot/efi/xbootldr.c.o src/boot/efi/bcd.c.o -lefi -lgnuefi -lgcc
[ 73s] /usr/bin/ld.bfd: warning: /usr/lib64/crt0-efi-x86_64.o: missing .note.GNU-stack section implies executable stack

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.