[SeaBIOS] [PATCH] Makefile: Explicitly pass `no-pic` to compiler
kevin at koconnor.net
Tue Oct 25 18:39:14 CEST 2016
On Tue, Oct 25, 2016 at 06:20:46PM +0200, Paul Menzel wrote:
> On 10/25/16 18:14, Kevin O'Connor wrote:
> > On Tue, Oct 25, 2016 at 06:08:08PM +0200, Paul Menzel wrote:
> > > On 10/25/16 17:27, Paul Menzel wrote:
> > > > On 10/25/16 17:21, Kevin O'Connor wrote:
> > > > > Does adding '-fno-pie' help?
> > > >
> > > > Isn’t that already used due to `COMMONCFLAGS += $(call
> > > > cc-option,$(CC),-nopie,)` in the `Makefile`?
> > > >
> > > > I’ll try it anyway.
> > >
> > > That also worked. Should I sent an updated patch?
> > Does the patch below work?
> Yes, I was just about to send that.
> Do you know, why SeaBIOS won’t build without it?
I don't know the specifics, but in general the ASLR (address space
layout randomization) stuff assumes specific OS properties that aren't
valid when running on bare metal. They certainly aren't going to work
when the processor is in 16bit mode.
More information about the SeaBIOS