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 06/04/2023 01.01, Sean Christopherson wrote:
On Wed, 29 Mar 2023 14:38:14 +0200, Thomas Huth wrote:
Recent versions of objcopy (e.g. from Fedora 37) complain:

  objcopy: x86/vmx.elf: warning: empty loadable segment detected at
   vaddr=0x400000, is this intentional?

Seems like we can silence these warnings by properly specifying
program headers in the linker script.

[...]

Applied to kvm-x86 next, thanks!

Thanks for picking it up!

On the topic of annoying warnings, this one is also quite annoying:

   ld: warning: setjmp64.o: missing .note.GNU-stack section implies executable stack
   ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

I thought "-z noexecstack" would make it go away, but either I'm wrong or I'm not
getting the flag set in the right place.

I never saw that warning here before, but I'm currently also still using an older version of GCC and binutils here since my development machine is still using RHEL 8 ...

Anyway, does this happen for the normal builds, or for the efi builds? 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 ?

 Thomas




[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