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-09-30 13:44:51 +01:00
2025-09-03 01:48:46 -07:00
2025-09-30 13:44:52 +01:00
2025-07-07 22:43:51 -07:00
2025-09-24 03:08:12 +02:00
2025-09-18 22:39:33 -07:00
2025-09-30 13:44:51 +01:00
2025-09-03 21:46:01 -07:00
2025-09-30 13:44:51 +01:00
2025-09-18 22:39:33 -07:00
2025-08-29 17:14:26 -07:00
2025-09-18 22:39:33 -07:00
2025-08-31 12:49:18 -07:00
2025-08-28 18:30:57 -07:00
2025-09-30 13:44:51 +01:00
2025-09-30 13:44:49 +01:00
2025-09-20 14:34:18 -07:00
2025-09-30 13:44:53 +01:00
2025-09-21 14:09:14 -07:00
2025-09-11 00:18:37 -07:00
2025-07-31 22:10:11 -07:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-09-18 22:39:33 -07:00
2025-09-30 13:44:51 +01:00
2025-09-25 11:38:38 -07:00
2025-08-29 17:14:26 -07:00
2025-09-30 13:44:51 +01:00
2025-08-29 17:14:26 -07:00
2025-09-30 13:44:51 +01:00
2025-09-19 16:40:00 -07:00
2025-07-22 09:41:44 -07:00
2025-09-30 13:44:51 +01:00
2025-08-28 18:30:57 -07:00
2025-08-31 12:49:18 -07:00
2025-08-31 12:49:18 -07:00
2025-07-16 10:27:39 -07:00
2025-09-24 20:01:18 -07:00
2025-08-29 17:14:26 -07:00