Re: GCC Fedora - relocation truncated to fit: R_X86_64_32S against `.rodata'

2022-12-20 Thread Daniel P . Berrangé
On Tue, Dec 20, 2022 at 02:49:48PM +0100, Florian Weimer wrote: > * Daniel P. Berrangé: > > > One notable thing is Ubuntu's use of --enable-default-pie. Some Google > > links also suggested -fPIC as a possible solution to my error, so I > > tried modifying the build system to add -fPIC to

Re: GCC Fedora - relocation truncated to fit: R_X86_64_32S against `.rodata'

2022-12-20 Thread Florian Weimer
* Daniel P. Berrangé: > One notable thing is Ubuntu's use of --enable-default-pie. Some Google > links also suggested -fPIC as a possible solution to my error, so I > tried modifying the build system to add -fPIC to CFLAGS/LDFLAGS, but > that merely gave me a differrent set of errors :-( Have

Re: GCC Fedora - relocation truncated to fit: R_X86_64_32S against `.rodata'

2022-12-20 Thread Jakub Jelinek
On Tue, Dec 20, 2022 at 01:49:00PM +0100, Jakub Jelinek wrote: > On Tue, Dec 20, 2022 at 12:12:42PM +, Daniel P. Berrangé wrote: > > For KVM AMD SEV-SNP virtualization we're trying to get SVSM guest > > firmware built on Fedora. > > > > https://github.com/svsm-vtpm/linux-svsm > > > > It

Re: GCC Fedora - relocation truncated to fit: R_X86_64_32S against `.rodata'

2022-12-20 Thread Jakub Jelinek
On Tue, Dec 20, 2022 at 12:12:42PM +, Daniel P. Berrangé wrote: > For KVM AMD SEV-SNP virtualization we're trying to get SVSM guest > firmware built on Fedora. > > https://github.com/svsm-vtpm/linux-svsm > > It builds successfully on Ubuntu 22.04 (gcc 11.3.0) which is what upstream > uses

Re: GCC Fedora - relocation truncated to fit: R_X86_64_32S against `.rodata'

2022-12-20 Thread Sérgio Basto
On Tue, 2022-12-20 at 12:12 +, Daniel P. Berrangé wrote: > gcc -m64 -nostdlib -Wl,-Tsrc/start/svsm.lds -Wl,--build-id=none -o > svsm.bin.elf src/start/start.o target/x86_64-unknown- > none/debug/liblinux_svsm.a -Wl,--start-group > ./external/build/lib/libtpm.a

GCC Fedora - relocation truncated to fit: R_X86_64_32S against `.rodata'

2022-12-20 Thread Daniel P . Berrangé
For KVM AMD SEV-SNP virtualization we're trying to get SVSM guest firmware built on Fedora. https://github.com/svsm-vtpm/linux-svsm It builds successfully on Ubuntu 22.04 (gcc 11.3.0) which is what upstream uses as their primary dev platform. On Fedora 37 (gcc 12.2.1) though, we're getting