-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
The minimal repro I came up with, along with a workaround (putting the table into a .text section):
// m68k-apple-macos-gcc THIS_FILE.c
int main(){
//__attribute__((section(".text.cursed")))
static const void * const m[] = {&&a};
goto *m[0];
a: return 0;
}
Without the attribute I get the following:
Invalid ref from .data:20 to .code00002()+10240
Assertion failed: sym.section.get() == this (/home/ftrvx/w/_/retro68/Elf2Mac/Section.cc: FixRelocs: 238)
collect2: fatal error: ld terminated with signal 6 [Aborted]
compilation terminated.
Metadata
Metadata
Assignees
Labels
No labels