[Buildroot] [git commit branch/2021.02.x] Config.in: disable PIC/PIE for Nios2
flat view
From: David Laight <hidden>
Date: 2021-06-10 15:32:51
From: Peter Korsgaard
Sent: 10 June 2021 16:06quoted
quoted
quoted
quoted
quoted
"David" == David Laight [off-list ref] writes:Hi, >> Recently in Buildroot the option BR2_PIC_PIE has been enabled by default along >> with other hardening features [1]. Since then the nios2 defconfig >> qemu_nios2_10m50_defconfig is failing to boot due to a segfault in init program: > You probably just don't want to enable PIE for nios2 at all. Notice that this commit was about disallowing PIE for nios2.
Indeed, but maybe you want a stronger note that you really don't want any of the 'hardening' features on such a slow processor. ...
Yes, I also cannot recommend people using nios2 (or microblaze for that matter) for Linux systems.
Never mind Linux, I don't think I'd even run VxWorks. We have about 4 instructions to set up %sp and then jump straight to the C code loop. No os, no libc, no nothing, just a code loop. The one that does 64 channels of 64k hdlc (for SS7) running at 62.5MHz doesn't ever write to the stack. I did 'cheat', there are some custom instructions for the bitstuffing and abort/flag detection. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)