.got.plt is really part of the GOT
authorH. Peter Anvin <hpa@zytor.com>
Tue, 26 May 2009 20:47:51 +0000 (13:47 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 26 May 2009 20:47:51 +0000 (13:47 -0700)
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>
com32/lib/com32.ld

index f615e82..37ee46c 100644 (file)
@@ -71,14 +71,10 @@ SECTIONS
 
   .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. */