[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/18718] New: -fno-plt doesn't work with symbol versioning
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/18718] New: -fno-plt doesn't work with symbol versioning |
Date: |
Fri, 24 Jul 2015 17:33:31 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18718
Bug ID: 18718
Summary: -fno-plt doesn't work with symbol versioning
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
address@hidden plt-2]$ cat x.c
extern void foo ();
void
new_foo()
{
}
__asm__(".symver new_foo, foo@@VERS_2.0");
int
main()
{
foo();
return 0;
}
address@hidden plt-2]$ make
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2 -fno-plt -S -o x.s x.c
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -o x x.s
/usr/local/bin/ld: x: No symbol version section for versioned symbol
`foo@@VERS_2.0'
/usr/local/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:19: recipe for target 'x' failed
make: *** [x] Error 1
address@hidden plt-2]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/18718] New: -fno-plt doesn't work with symbol versioning,
hjl.tools at gmail dot com <=