Skip to content

Commit 7561c14

Browse files
sumanthkorikkarhcahca
authored andcommitted
s390/vdso: add .got.plt in vdso linker script
KCFLAGS="-mno-pic-data-is-text-relative" make leads to bfd assertion error in s390_got_pointer(): LD arch/s390/kernel/vdso64/vdso64.so.dbg ld: BFD version 2.35-18.fc33 assertion fail elf-s390-common.c:74 readelf -Wr vdso64_generic.o | grep GOT 0000000000000032 000000110000001a R_390_GOTENT 0000000000000000 _vdso_data + 2 (...) Add .got.plt in linker script to avoid this. Suggested-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent ff11764 commit 7561c14

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/s390/kernel/vdso32/vdso32.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ SECTIONS
5151

5252
.rela.dyn ALIGN(8) : { *(.rela.dyn) }
5353
.got ALIGN(8) : { *(.got .toc) }
54+
.got.plt ALIGN(8) : { *(.got.plt) }
5455

5556
_end = .;
5657
PROVIDE(end = .);

arch/s390/kernel/vdso64/vdso64.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ SECTIONS
5151

5252
.rela.dyn ALIGN(8) : { *(.rela.dyn) }
5353
.got ALIGN(8) : { *(.got .toc) }
54+
.got.plt ALIGN(8) : { *(.got.plt) }
5455

5556
_end = .;
5657
PROVIDE(end = .);

0 commit comments

Comments
 (0)