[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22845] New: -z separate-code doesn't work right
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/22845] New: -z separate-code doesn't work right |
Date: |
Wed, 14 Feb 2018 00:02:29 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22845
Bug ID: 22845
Summary: -z separate-code doesn't work right
Product: binutils
Version: 2.31 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
On x86-64, with
diff --git a/ld/emulparams/elf_x86_64.sh b/ld/emulparams/elf_x86_64.sh
index d8c6e54894..d0d4686fc2 100644
--- a/ld/emulparams/elf_x86_64.sh
+++ b/ld/emulparams/elf_x86_64.sh
@@ -14,6 +14,7 @@ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ARCH="i386:x86-64"
MACHINE=
TEMPLATE_NAME=elf32
+SEPARATE_CODE=yes
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
NO_SMALL_DATA=yes
I got
FAIL: ld-elf/ehdr_start-shared
FAIL: ld-elf/ehdr_start
FAIL: ld-elf/loadaddr1
FAIL: ld-elf/loadaddr2
FAIL: ld-elf/mbind1b
FAIL: ld-elf/mbind1c
FAIL: ld-elf/orphan-region
FAIL: ld-elf/pie
FAIL: ld-elf/pr19162
FAIL: ld-elf/pr22393-1c
FAIL: ld-elf/pr22393-1d
FAIL: ld-elf/pr22423
FAIL: ld-elf/textaddr1
FAIL: ld-elf/textaddr2
FAIL: ld-elf/textaddr4
FAIL: ld-elf/textaddr6
FAIL: PIE preinit array
FAIL: PIE init array
FAIL: PIE fini array
FAIL: PIE init array mixed
FAIL: PIE PR ld/14525
FAIL: Run mbind2b
FAIL: static preinit array
FAIL: static init array
FAIL: static fini array
FAIL: static init array mixed
FAIL: Run indirect5 3
FAIL: Run indirect5 4
FAIL: Run indirect6 3
FAIL: Run indirect6 4
FAIL: indirect5c dynsym
FAIL: indirect5d dynsym
FAIL: indirect6c dynsym
FAIL: indirect6d dynsym
FAIL: Build pr22393-2 (PIE)
FAIL: Run pr18458 with PIE
FAIL: Run pr2404 with PIE
FAIL: Run pr2404 with PIE (-z now)
FAIL: Run pr18718 with PIE (1)
FAIL: Run pr18718 with PIE (3)
FAIL: Run pr18718 with PIC (2)
FAIL: Run pr18718 with PIC (4)
FAIL: Run pr19579
FAIL: Run pr19579 (-z now)
FAIL: Run pr22393-2 (PIE)
FAIL: Run pr22393-2 (static)
FAIL: Run pr19719pie fun defined
FAIL: Build pr22263-1
FAIL: TLS -fpic -shared transitions
FAIL: TLS -fpic -shared transitions without PLT
FAIL: TLS descriptor -fpic -shared transitions
FAIL: TLS -fpic and -fno-pic exec transitions
FAIL: TLS -fpic and -fno-pic exec transitions without PLT
FAIL: TLS descriptor -fpic and -fno-pic exec transitions
FAIL: TLS -fno-pic -shared
FAIL: TLS with global dynamic and descriptors
FAIL: Basic --emit-relocs support
FAIL: Build pr19827
FAIL: ld-i386/protected5
FAIL: TLS with PIE
FAIL: TLS with PIE
FAIL: ld-i386/tlspie3a
FAIL: ld-i386/tlspie3b
FAIL: ld-i386/tlspie3c
FAIL: ld-i386/nogot2
FAIL: ld-i386/lea1b
FAIL: ld-i386/lea1e
FAIL: ld-i386/mov2b
FAIL: ld-i386/load1
FAIL: ld-i386/pr19615
FAIL: ld-i386/pr19636-1a
FAIL: ld-i386/pr19636-1b
FAIL: ld-i386/pr19636-1j
FAIL: ld-i386/pr19636-1k
FAIL: ld-i386/pr19636-2a
FAIL: ld-i386/pr19636-2b
FAIL: ld-i386/pr19636-2c
FAIL: ld-i386/pr19636-3a
FAIL: ld-i386/pr19636-3b
FAIL: ld-i386/pr19636-3c
FAIL: ld-i386/pr19636-3h
FAIL: ld-i386/pr19636-3i
FAIL: ld-i386/pr19636-4a
FAIL: ld-i386/pr19636-4b
FAIL: ld-i386/pr19609-2b
FAIL: ld-i386/undefweakb
FAIL: ld-i386/pr20244-1a
FAIL: ld-i386/pr20244-1b
FAIL: ld-i386/pr20244-1c
FAIL: ld-i386/pr20244-2a
FAIL: ld-i386/pr20244-2b
FAIL: ld-i386/pr20244-2c
FAIL: ld-i386/pr20244-2d
FAIL: ld-i386/pr20244-4a
FAIL: ld-i386/pr20244-4b
FAIL: ld-i386/pr20244-4c
FAIL: ld-i386/pr20253-4b
FAIL: ld-i386/pie1
FAIL: ld-i386/pr22115-1a
FAIL: ld-i386/pr22115-1b
FAIL: ld-i386/pr22135
FAIL: PR ld/13302
FAIL: basic PLT generation (non-PIC, -z now)
FAIL: PR ld/20830 (.plt.got)
FAIL: ld-i386/ibt-plt-1
FAIL: ld-i386/ibt-plt-2a
FAIL: ld-i386/ibt-plt-2b
FAIL: ld-i386/ibt-plt-2c
FAIL: ld-i386/ibt-plt-2d
FAIL: ld-i386/ibt-plt-3a
FAIL: ld-i386/ibt-plt-3b
FAIL: ld-i386/ibt-plt-3c
FAIL: ld-i386/ibt-plt-3d
FAIL: Common symbol override ifunc test 1a
FAIL: Common symbol override ifunc test 1b
FAIL: ld-ifunc/ifunc-1-local-x86
FAIL: ld-ifunc/ifunc-1-x86
FAIL: ld-ifunc/ifunc-2-i386-now
FAIL: ld-ifunc/ifunc-2-local-i386-now
FAIL: ld-ifunc/ifunc-2-local-x86-64-now
FAIL: ld-ifunc/ifunc-2-local-x86-64
FAIL: ld-ifunc/ifunc-2-x86-64-now
FAIL: ld-ifunc/ifunc-2-x86-64
FAIL: ld-ifunc/ifunc-21-i386
FAIL: ld-ifunc/ifunc-21-x86-64
FAIL: ld-ifunc/ifunc-22-i386
FAIL: ld-ifunc/ifunc-22-x86-64
FAIL: ld-ifunc/ifunc-23b-x86
FAIL: ld-ifunc/ifunc-24b-x86
FAIL: ld-ifunc/ifunc-25b-x86
FAIL: ld-ifunc/ifunc-3a-x86
FAIL: ld-ifunc/pr17154-i386-now
FAIL: ld-ifunc/pr17154-i386
FAIL: ld-ifunc/pr17154-x86-64-now
FAIL: ld-ifunc/pr17154-x86-64
FAIL: Run ifunc-main with PIE (-z now)
FAIL: weak undefined
FAIL: weak undefined data
FAIL: missing entry symbol
FAIL: zero p_vaddr
FAIL: weak undefined functions in pie, no dyn undef weak
FAIL: weak undefined functions in pie, dyn undef weak
FAIL: Build mpx4
FAIL: Build mpx3 (-z now)
FAIL: Build mpx4 (-z now)
FAIL: Run mpx1 with -static
FAIL: Run mpx2
FAIL: Run mpx2 with -static
FAIL: ld-x86-64/bnd-ifunc-1
FAIL: ld-x86-64/bnd-ifunc-2
FAIL: ld-x86-64/bnd-plt-1
FAIL: ld-x86-64/bnd-branch-1-now
FAIL: ld-x86-64/bnd-ifunc-1-now
FAIL: ld-x86-64/bnd-ifunc-2-now
FAIL: ld-x86-64/bnd-plt-1-now
FAIL: No PLT (PIE 1e)
FAIL: No PLT (PIE 1f)
FAIL: No PLT (PIE 1g)
FAIL: No PLT (static 1d)
FAIL: No PLT (PIE 1e)
FAIL: No PLT (PIE 1f)
FAIL: No PLT (PIE 1g)
FAIL: Run pr20253-2b
FAIL: Run pr20253-2c
FAIL: Run pr20253-2e
FAIL: Run pr20253-2g
FAIL: TLS GD/LD -> LE transition without PLT (PIE)
FAIL: TLS GD/LD -> LE transition without PLT (PIE, -z now)
FAIL: TLS GD/LD -> LE transition without PLT (static)
FAIL: Run tlsdesc1 with PIE
FAIL: Run tlsdesc1 with PIE (-z now)
FAIL: TLS -fpic -shared transitions
FAIL: TLS -fpic -shared transitions with r15 as GOT base
FAIL: TLS descriptor -fpic -shared transitions
FAIL: TLS -fpic and -fno-pic exec transitions
FAIL: TLS -fpic and -fno-pic exec transitions without PLT
FAIL: TLS descriptor -fpic and -fno-pic exec transitions
FAIL: TLS with global dynamic and descriptors
FAIL: Build pr19827
FAIL: Build pr20550
FAIL: ld-x86-64/protected5
FAIL: TLS LE with PIE
FAIL: TLS with PIE
FAIL: ld-x86-64/tlspie2a
FAIL: ld-x86-64/tlspie2b
FAIL: ld-x86-64/tlspie2c
FAIL: ld-x86-64/nogot2
FAIL: PR ld/14207
FAIL: PIE with undefined symbol
FAIL: ld-x86-64/pie3
FAIL: ld-x86-64/pr19807-1a
FAIL: ld-x86-64/pr19807-1b
FAIL: ld-x86-64/pr19807-2b
FAIL: ld-x86-64/pr19807-2c
FAIL: ld-x86-64/pr19807-2d
FAIL: ld-x86-64/pr19807-2e
FAIL: ld-x86-64/pr20093-1
FAIL: ld-x86-64/pr20093-2
FAIL: ld-x86-64/pr22115-1a
FAIL: ld-x86-64/pr22115-1a-x32
FAIL: ld-x86-64/pr22115-1b
FAIL: ld-x86-64/pr22115-1b-x32
FAIL: ld-x86-64/pr22115-1c
FAIL: ld-x86-64/pr22115-1c-x32
FAIL: ld-x86-64/pr22135
FAIL: ld-x86-64/ilp32-4
FAIL: PR ld/13082-1 (b)
FAIL: PR ld/13082-2 (b)
FAIL: PR ld/13082-3 (b)
FAIL: PR ld/13082-3 (d)
FAIL: PR ld/13082-4 (b)
FAIL: PR ld/13082-5 (b)
FAIL: PR ld/13082-6 (b)
FAIL: ld-x86-64/lea1b
FAIL: ld-x86-64/lea1e
FAIL: ld-x86-64/lea1h
FAIL: ld-x86-64/lea1k
FAIL: ld-x86-64/mov2b
FAIL: ld-x86-64/mov2d
FAIL: ld-x86-64/load1a
FAIL: ld-x86-64/load1b
FAIL: ld-x86-64/load1c
FAIL: ld-x86-64/load1d
FAIL: PR ld/18176
FAIL: ld-x86-64/pr19162
FAIL: ld-x86-64/pr19615
FAIL: ld-x86-64/pr19636-1a
FAIL: ld-x86-64/pr19636-1b
FAIL: ld-x86-64/pr19636-1c
FAIL: ld-x86-64/pr19636-1h
FAIL: ld-x86-64/pr19636-1i
FAIL: ld-x86-64/pr19636-2d
FAIL: ld-x86-64/pr19636-2l
FAIL: ld-x86-64/pr19636-3a
FAIL: ld-x86-64/pr19636-3b
FAIL: ld-x86-64/pr19609-1m
FAIL: ld-x86-64/pr19609-5b
FAIL: ld-x86-64/pr20253-1b
FAIL: ld-x86-64/pr20253-1c
FAIL: ld-x86-64/pr20253-1d
FAIL: ld-x86-64/pr20253-1f
FAIL: ld-x86-64/pr20253-1h
FAIL: ld-x86-64/pr20253-1i
FAIL: ld-x86-64/pr20253-1j
FAIL: ld-x86-64/pr20253-1l
FAIL: ld-x86-64/pr20253-4b
FAIL: ld-x86-64/pr20253-4e
FAIL: Build plt-main with PIE
FAIL: Build copyreloc-main with PIE without -fPIE (1)
FAIL: Build copyreloc-main with PIE without -fPIE (2)
FAIL: Build pr17689 with PIE without -fPIE
FAIL: Build pr17689 with PIE -z now without -fPIE
FAIL: Build pr17827 with PIE without -fPIE
FAIL: Build pr19319
FAIL: Build pr22393-3 (PIE)
FAIL: Build pr22791-1
FAIL: Build pr22791-2
FAIL: Run plt-main with PIE
FAIL: Run copyreloc-main with PIE without -fPIE
FAIL: Run pr17689 with PIE without -fPIE
FAIL: Run pr17689 with PIE -z now without -fPIE
FAIL: Run property 1 (PIE)
FAIL: Run property 1 (static)
FAIL: Run property 2 (PIE)
FAIL: Run property 2 (static)
FAIL: Run property 3 (PIE)
FAIL: Run property 3 (static)
FAIL: Run property 4 (PIE)
FAIL: Run property 4 (static)
FAIL: Run property 5 (PIE)
FAIL: Run property 5 (static)
FAIL: Run pr22001-1a (PIC 2)
FAIL: Run pr22001-1b (PIC 2)
FAIL: Run pr21997-1a (PIC 2)
FAIL: Run pr21997-1b (PIC 2)
FAIL: Run pr22064
FAIL: Run pr22393-3 (PIE)
FAIL: Run pr22393-3 (static)
FAIL: Run pr22791-2
FAIL: Build plt-main with -z bndplt
FAIL: Build plt-main with PIE and -z bndplt
FAIL: Build plt-main with -z bndplt -z now
FAIL: Build plt-main with PIE and -z bndplt -z now
FAIL: Run plt-main with PIE and -z bndplt
FAIL: Run plt-main with PIE and -z bndplt -z now
FAIL: Run pr20800
FAIL: Build plt-main with -z ibtplt
FAIL: Build plt-main with PIE and -z ibtplt
FAIL: Build plt-main with -z ibtplt -z now
FAIL: Build plt-main with PIE and -z ibtplt -z now
FAIL: Build libibtplt-lib.so with -z ibtplt
FAIL: Build libibtplt--now-lib.so with -z ibtplt -z now
FAIL: Run plt-main with PIE and -z ibtplt
FAIL: Run plt-main with PIE and -z ibtplt -z now
FAIL: Run pr19704
FAIL: Run pr19704
FAIL: basic PLT generation (-z now)
FAIL: PR ld/20830 (.plt.got)
FAIL: PR ld/20830 (.plt.got)
FAIL: PR ld/21038 (.plt.got)
FAIL: PR ld/21038 (.plt.sec)
FAIL: PR ld/21038 (.plt.got and .plt.sec)
FAIL: PR ld/20830 (.plt.got, -z now)
FAIL: PR ld/20830 (.plt.got, -z now)
FAIL: PR ld/21038 (.plt.got, -z now)
FAIL: PR ld/21038 (.plt.sec, -z now)
FAIL: PR ld/21038 (.plt.got and .plt.sec, -z now)
FAIL: ld-x86-64/ibt-plt-1
FAIL: ld-x86-64/ibt-plt-1-x32
FAIL: ld-x86-64/ibt-plt-2a
FAIL: ld-x86-64/ibt-plt-2b
FAIL: ld-x86-64/ibt-plt-2c
FAIL: ld-x86-64/ibt-plt-2d
FAIL: ld-x86-64/ibt-plt-2a-x32
FAIL: ld-x86-64/ibt-plt-2b-x32
FAIL: ld-x86-64/ibt-plt-2c-x32
FAIL: ld-x86-64/ibt-plt-2d-x32
FAIL: ld-x86-64/ibt-plt-3a
FAIL: ld-x86-64/ibt-plt-3b
FAIL: ld-x86-64/ibt-plt-3c
FAIL: ld-x86-64/ibt-plt-3d
FAIL: ld-x86-64/ibt-plt-3a-x32
FAIL: ld-x86-64/ibt-plt-3b-x32
FAIL: ld-x86-64/ibt-plt-3c-x32
FAIL: ld-x86-64/ibt-plt-3d-x32
Some failures are expected. Many are real bugs.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/22845] New: -z separate-code doesn't work right,
hjl.tools at gmail dot com <=
- [Bug ld/22845] -z separate-code doesn't work right, hjl.tools at gmail dot com, 2018/02/14
- [Bug ld/22845] -z separate-code doesn't work right, hjl.tools at gmail dot com, 2018/02/14
- [Bug ld/22845] -z separate-code doesn't work right, hjl.tools at gmail dot com, 2018/02/14
- [Bug ld/22845] -z separate-code doesn't work right, hjl.tools at gmail dot com, 2018/02/15
- [Bug ld/22845] -z separate-code doesn't work right, cvs-commit at gcc dot gnu.org, 2018/02/16
- [Bug ld/22845] -z separate-code doesn't work right, cvs-commit at gcc dot gnu.org, 2018/02/17
- [Bug ld/22845] -z separate-code doesn't work right, cvs-commit at gcc dot gnu.org, 2018/02/17
- [Bug ld/22845] -z separate-code doesn't work right, cvs-commit at gcc dot gnu.org, 2018/02/17
- [Bug ld/22845] -z separate-code doesn't work right, cvs-commit at gcc dot gnu.org, 2018/02/18
- [Bug ld/22845] -z separate-code doesn't work right, cvs-commit at gcc dot gnu.org, 2018/02/19