forked from Minki/linux
0e3727a883
.data doesn't need to be separate from .rodata: they're both readonly. .altinstructions and .altinstr_replacement aren't needed by anything except vdso2c; strip them from the final image. While we're at it, rather than aligning the actual executable text, just shove some unused-at-runtime data in between real data and text. My vdso image is still above 4k, but I'm disinclined to try to trim it harder for 3.16. For future trimming, I suspect that these sections could be moved to later in the file and dropped from the in-memory image: .gnu.version and .gnu.version_d (this may lose versions in gdb) .eh_frame (should be harmless) .eh_frame_hdr (I'm not really sure) .hash (AFAIK nothing needs this section header) Signed-off-by: Andy Lutomirski <luto@amacapital.net> Link: http://lkml.kernel.org/r/2e96d0c49016ea6d026a614ae645e93edd325961.1403129369.git.luto@amacapital.net Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
22 lines
455 B
C
22 lines
455 B
C
/*
|
|
* Copyright 2014 Andy Lutomirski
|
|
* Subject to the GNU Public License, v.2
|
|
*
|
|
* String table for loadable section headers. See vdso2c.h for why
|
|
* this exists.
|
|
*/
|
|
|
|
const char fake_shstrtab[] __attribute__((section(".fake_shstrtab"))) =
|
|
".hash\0"
|
|
".dynsym\0"
|
|
".dynstr\0"
|
|
".gnu.version\0"
|
|
".gnu.version_d\0"
|
|
".dynamic\0"
|
|
".rodata\0"
|
|
".fake_shstrtab\0" /* Yay, self-referential code. */
|
|
".note\0"
|
|
".eh_frame_hdr\0"
|
|
".eh_frame\0"
|
|
".text";
|