Skip to content

x86,vdso: Restore a bunch of section headers

Andy Lutomirski lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v15 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86,vdso: Discard the __bug_table sectionarch/x86/vdso/vdso-layout.lds.S+1 -00 replies
2/5x86,vdso2c: Use better macros for ELF bitnessarch/x86/vdso/vdso2c.c arch/x86/vdso/vdso2c.h+25 -400 replies
3/5x86,vdso: Improve the fake section headersarch/x86/vdso/Makefile arch/x86/vdso/vdso-fakesections.c arch/x86/vdso/vdso-layout.lds.S +5 more+237 -670 replies
4/5x86,vdso: Remove some redundant in-memory section headersarch/x86/vdso/vdso-fakesections.c arch/x86/vdso/vdso-layout.lds.S arch/x86/vdso/vdso2c.h+26 -240 replies
5/5x86,vdso: Create .build-id links for unstripped vdso filesarch/x86/vdso/Makefile+13 -32 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] x86,vdso: Restore a bunch of section headers

This series makes me sad. It brings the 64-bit vdso back above 4kB, like it was in 3.15. It's also just silly, but it seems to be needed to keep binutils happy when debugging the vdso.

Patch 5 isn't really necessary, and is likely not 3.16 material. It's useful for testing the rest of this series, though.

Only patch 5 changed from v1:
- Fix for old binutils.
- Pass --build-id, since normal binutils may not have it on by default.

Andy Lutomirski (5):
x86,vdso: Discard the __bug_table section x86,vdso2c: Use better macros for ELF bitness x86,vdso: Improve the fake section headers x86,vdso: Remove some redundant in-memory section headers x86,vdso: Create .build-id links for unstripped vdso files

 arch/x86/vdso/Makefile                   |  20 +++-
 arch/x86/vdso/vdso-fakesections.c        |  41 +++----
 arch/x86/vdso/vdso-layout.lds.S          |  64 +++++++---
 arch/x86/vdso/vdso.lds.S                 |   2 +
 arch/x86/vdso/vdso2c.c                   |  73 ++++++------
 arch/x86/vdso/vdso2c.h                   | 197 ++++++++++++++++++++++++++-----
 arch/x86/vdso/vdso32/vdso-fakesections.c |   1 +
 arch/x86/vdso/vdsox32.lds.S              |   2 +
 8 files changed, 284 insertions(+), 116 deletions(-)
 create mode 100644 arch/x86/vdso/vdso32/vdso-fakesections.c
Signature · 1 line
1.9.3