The .got.plt section is the GOT entries associated with the PLT;
although we don't have a PLT we still have the 3 reserved entries
which are mentioned in the psABI as "the first three entries of the
GOT". These don't matter for our needs, but make them part of the
.got anyway.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
.got : {
PROVIDE (__got_start = .);
+ KEEP (*(.got.plt))
KEEP (*(.got))
PROVIDE (__got_end = .);
}
- .got.plt : {
- PROVIDE (__got_plt_start = .);
- KEEP (*(.got.plt))
- PROVIDE (__got_plt_end = .);
- }
/* Adjust the address for the data segment. Avoid mixing code and
data within same 128-byte chunk. */