linux/arch/x86/vdso
Andy Lutomirski 0e3727a883 x86/vdso: Remove some redundant in-memory section headers
.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>
2014-06-19 15:45:26 -07:00
..
vdso32 x86/vdso: Improve the fake section headers 2014-06-19 15:45:12 -07:00
.gitignore x86, vdso: Reimplement vdso.so preparation in build-time C 2014-05-05 13:18:51 -07:00
checkundef.sh x86, vdso: Don't quote $nm in the script for checking vdso references 2010-07-27 23:52:29 -07:00
Makefile x86/vdso: Improve the fake section headers 2014-06-19 15:45:12 -07:00
vclock_gettime.c x86, vdso: Move the vvar and hpet mappings next to the 64-bit vDSO 2014-05-05 13:19:01 -07:00
vdso2c.c x86/vdso: Improve the fake section headers 2014-06-19 15:45:12 -07:00
vdso2c.h x86/vdso: Remove some redundant in-memory section headers 2014-06-19 15:45:26 -07:00
vdso32-setup.c x86, mm: Improve _install_special_mapping and fix x86 vdso naming 2014-05-20 11:38:42 -07:00
vdso-fakesections.c x86/vdso: Remove some redundant in-memory section headers 2014-06-19 15:45:26 -07:00
vdso-layout.lds.S x86/vdso: Remove some redundant in-memory section headers 2014-06-19 15:45:26 -07:00
vdso-note.S
vdso.lds.S x86/vdso: Improve the fake section headers 2014-06-19 15:45:12 -07:00
vdsox32.lds.S x86/vdso: Improve the fake section headers 2014-06-19 15:45:12 -07:00
vgetcpu.c x86: vdso: pvclock gettime support 2012-11-27 23:29:11 -02:00
vma.c x86, mm: Improve _install_special_mapping and fix x86 vdso naming 2014-05-20 11:38:42 -07:00