aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/15-reloc.c
Commit message (Collapse)AuthorAgeFilesLines
* c: handle more static eval edgecases for int -> ptrlemon2025-12-131-0/+9
| | | | | sqlite3 was falling back to `((void*)&((char*)0)[X])` for INT_TO_PTR, which this handles now.
* Add -O optimization flaglemon2025-12-131-0/+1
|
* fix position independent loads of function symbols.lemon2025-12-131-0/+29
For `extern int x[1];`, can use PCREL32 for &x. But for `extern int x(int)`, must use GOTREL, when not being called directly (that's PLT). Therefore the type of an external symbol (actually just whether it denotes a function) matters when deciding what kind of relocation to emit, so keep that information.