]> err.no Git - linux-2.6/commitdiff
[IA64] vDSO vs --build-id
authorRoland McGrath <roland@redhat.com>
Thu, 18 Oct 2007 22:11:08 +0000 (15:11 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 29 Oct 2007 17:54:33 +0000 (10:54 -0700)
When gcc uses --build-id by default, the gate.lds.S linker script runs afoul
of the new note section and produces a bad DSO image.  This fixes it.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/gate.lds.S

index 44817d97ab43c91b7921ca83064d447da79034ad..454d7a7dfa9d99e7a8d64382b1adce1ee67945f5 100644 (file)
@@ -20,6 +20,8 @@ SECTIONS
        .gnu.version_d          : { *(.gnu.version_d) }
        .gnu.version_r          : { *(.gnu.version_r) }
 
+       .note                   : { *(.note*) }         :readable       :note
+
        .dynamic                : { *(.dynamic) }       :readable       :dynamic
 
        /*
@@ -83,6 +85,7 @@ PHDRS
        epc             PT_LOAD FILEHDR PHDRS   FLAGS(1);       /* PF_X */
 #endif
        dynamic         PT_DYNAMIC              FLAGS(4);       /* PF_R */
+       note            PT_NOTE                 FLAGS(4);       /* PF_R */
        unwind          PT_IA_64_UNWIND;
 }