muta...@gmail.com
2021-04-19 10:34:54 UTC
jwasm has these defines:
enum fixup_types {
FIX_SEG, /* 0 */
FIX_LOBYTE, /* 1, OMF only */
FIX_HIBYTE, /* 2, OMF only */
FIX_RELOFF8, /* 3 */
FIX_RELOFF16, /* 4 */
FIX_RELOFF32, /* 5 */
FIX_OFF16, /* 6 */
FIX_OFF32, /* 7 */
FIX_PTR16, /* 8, OMF only */
FIX_PTR32, /* 9, OMF only */
FIX_OFF32_IMGREL, /* 10, COFF+ELF only */
FIX_OFF32_SECREL /* 11, COFF+ELF only */
};
And it seems from here:
https://github.com/JWasm/JWasm/blob/master/elf.c
#if GNURELOCS
case FIX_OFF16: em->extused = TRUE; elftype = R_386_16; break;
that FIX_OFF16 is non-standard for ELF.
Is there a reason for that?
This is the code that I am assembling:
https://sourceforge.net/p/pdos/gitcode/ci/master/tree/pdpclib/smlstart.asm
I'm planning on adding the above code to my
version of jwasm 1.94c.
But I'm wondering what it actually means.
Any ideas?
Thanks. Paul.
enum fixup_types {
FIX_SEG, /* 0 */
FIX_LOBYTE, /* 1, OMF only */
FIX_HIBYTE, /* 2, OMF only */
FIX_RELOFF8, /* 3 */
FIX_RELOFF16, /* 4 */
FIX_RELOFF32, /* 5 */
FIX_OFF16, /* 6 */
FIX_OFF32, /* 7 */
FIX_PTR16, /* 8, OMF only */
FIX_PTR32, /* 9, OMF only */
FIX_OFF32_IMGREL, /* 10, COFF+ELF only */
FIX_OFF32_SECREL /* 11, COFF+ELF only */
};
And it seems from here:
https://github.com/JWasm/JWasm/blob/master/elf.c
#if GNURELOCS
case FIX_OFF16: em->extused = TRUE; elftype = R_386_16; break;
that FIX_OFF16 is non-standard for ELF.
Is there a reason for that?
This is the code that I am assembling:
https://sourceforge.net/p/pdos/gitcode/ci/master/tree/pdpclib/smlstart.asm
I'm planning on adding the above code to my
version of jwasm 1.94c.
But I'm wondering what it actually means.
Any ideas?
Thanks. Paul.