Re: [kvm-unit-tests PATCH] x86/flat.lds: Silence warnings about empty loadable segments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/6/23 19:16, Sean Christopherson wrote:
I can see a .note.GNU-stack entry in x86/efi/elf_x86_64_efi.lds ... maybe we
need something similar in x86/flat.lds ?
I believe that just telling the linker that those sections don't need relocation
info.  I suspect it's unnecessary copy+paste from UEFI sources.

The linker warning from setjmp64.o (and cstart64.o) is yelling about_not_  having
.note.GNU-stack, which is a magic section that tells the linker that the binary
doesn't need an executable stack.  If I'm reading the NOTE correctly, it's saying
that the ability to have an executable stack is soon going away.

More or less; if I remember correctly they want to flip the default from executable stack to non-executable stack. If you want an executable stack you'll have to add an ELF note or link with -z execstack.

All of this of course is irrelevant in a freestanding environment.

Paolo




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux