vdso: remove empty note section

An empty note section looks weird and can confuse some tools. For example,
we've seen this in https://reviews.llvm.org/D116639.

PiperOrigin-RevId: 420093551
This commit is contained in:
Andrei Vagin 2022-01-06 10:33:27 -08:00 committed by gVisor bot
parent d1dae8d69e
commit aa06a0cc20
2 changed files with 0 additions and 6 deletions

View File

@ -43,8 +43,6 @@ SECTIONS {
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.note : { *(.note.*) } :text :note
.eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
.eh_frame : { KEEP (*(.eh_frame)) } :text
@ -77,7 +75,6 @@ SECTIONS {
PHDRS {
text PT_LOAD FLAGS(5) FILEHDR PHDRS; /* PF_R | PF_X */
dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
note PT_NOTE FLAGS(4); /* PF_R */
eh_frame_hdr PT_GNU_EH_FRAME;
}

View File

@ -46,8 +46,6 @@ SECTIONS {
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.note : { *(.note.*) } :text :note
.eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
.eh_frame : { KEEP (*(.eh_frame)) } :text
@ -80,7 +78,6 @@ SECTIONS {
PHDRS {
text PT_LOAD FLAGS(5) FILEHDR PHDRS; /* PF_R | PF_X */
dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
note PT_NOTE FLAGS(4); /* PF_R */
eh_frame_hdr PT_GNU_EH_FRAME;
}