mlugg 4e45362529
link.Elf: fix static PIE
We mustn't emit the DT_PLTGOT entry in `.dynamic` in a statically-linked
PIE, because there's no dl to relocate it (and `std.pie.relocate`, or
the PIE relocator in libc, won't touch it). In that case, there cannot
be any PLT entries, so there's no point emitting the `.got.plt` section
at all. If we just don't create that section, `link.Elf` already knows
not to add the DT_PLTGOT entry to `.dynamic`.

Co-authored-by: Jacob Young <jacobly0@users.noreply.github.com>
2025-09-30 13:44:53 +01:00
..
2025-08-31 12:49:18 -07:00
2025-09-29 22:53:06 +02:00
2025-08-30 06:36:41 +02:00
2025-08-30 06:36:40 +02:00
2025-08-30 06:36:41 +02:00
2025-08-30 06:36:41 +02:00
2025-09-30 13:44:53 +01:00
2025-08-29 17:14:26 -07:00