IRC channel logs

2023-01-14.log

back to list of logs

<stikonas>maybe at some point we should try to advertise it more
<stikonas>hmm, apparently on base address matters a bit even for position independent binaries
<stikonas>ir cannot be too small, e.g. can't be 0 or even 0x1000. But e.g. 0x10000 works
<stikonas>I guess low address range is reserved for something
<oriansj>stikonas: depends on the architecture. Sometimes for stack. Othertimes it is the memory addresses reserved for system ROM
<stikonas>oriansj: it's amd64
<stikonas>I was updating M0 there to use position independent addresses and also switch to GAS style defines
<oriansj>Then it is usually stack; as the stack pointer is usually put below the binary so that stack overflow hits the zero page and faults
<stikonas>initially used hex2 without --base-address and it crashed
<stikonas>on the other hand, on UEFI we can use hex2 without --base-address at all
<stikonas>so it must be something in ELF header