Skip to content

clean up vdso-layout.lds.S

Petr Tesarik lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 2 repliesIn review
  2. v28 patches 12 repliesSuperseded
  3. v18 patches 1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86: Adjust the coding style of vdso-layout.lds.Sarch/x86/vdso/vdso-layout.lds.S+53 -230 replies
2/9x86: Remove .sdata from the vDSO linker scriptarch/x86/vdso/vdso-layout.lds.S+0 -10 replies
3/9x86: add .broken section to the vDSO linker scriptarch/x86/vdso/vdso-layout.lds.S+24 -00 replies
4/9x86: mark altinstr-related sections in vDSO as brokenarch/x86/vdso/vdso-layout.lds.S+6 -70 replies
5/9x86: mark some standard sections as broken in a vDSOarch/x86/vdso/vdso-layout.lds.S+25 -00 replies
6/9x86: move 32-bit vDSO padding from .data to .rodataarch/x86/vdso/vdso32/int80.S arch/x86/vdso/vdso32/syscall.S+2 -20 replies
7/9x86: mark writable vDSO sections as brokenarch/x86/vdso/vdso-layout.lds.S+11 -60 replies
8/9x86: check the size of GOT in vDSOarch/x86/vdso/Makefile arch/x86/vdso/vdso-layout.lds.S+19 -20 replies
9/9x86: remove .gnu.warning* sections from the vDSOarch/x86/vdso/vdso-layout.lds.S+6 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/9] clean up vdso-layout.lds.S

The handling of various sections in the VDSO linker script looks pretty haphazard. This patch series cleans it up in these regards:

- improve the coding style
- remove superfluous sections
- issue a linker error if a section is encountered which is known not to work
- check that the .got section is empty, except for the three entries defined by the ABI
- discard sections which are not useful to user-space

Petr Tesarik (9):
x86: Adjust the coding style of vdso-layout.lds.S
x86: Remove .sdata from the vDSO linker script
x86: add .broken section to the vDSO linker script
x86: mark altinstr-related sections in vDSO as broken
x86: mark some standard sections as broken in a vDSO
x86: move 32-bit vDSO padding from .data to .rodata
x86: mark writable vDSO sections as broken
x86: check the size of GOT in vDSO
x86: remove .gnu.warning* sections from the vDSO

 arch/x86/vdso/Makefile          |    5 +-
 arch/x86/vdso/vdso-layout.lds.S |  158 ++++++++++++++++++++++++++++++++-------
 arch/x86/vdso/vdso32/int80.S    |    2 +-
 arch/x86/vdso/vdso32/syscall.S  |    2 +-
 4 files changed, 136 insertions(+), 31 deletions(-)