Bug 113499

Summary: -pie succeeds incorrectly on ppc64
Product: [Fedora] Fedora Reporter: Elliot Lee <sopwith>
Component: binutilsAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, nobody+pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-07 15:10:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Elliot Lee 2004-01-14 18:40:56 UTC
cat >t.c <<EOF
void asdf(void);
int main(void) {
    asdf();
    return 0;
}
EOF

$ cc -o t t.c
undefined reference to '.asdf'

$ cc -o t t.c -pie
$ echo $?
0
$ ./t
./t: relocation error: ./t: undefined symbol: asdf

binutils-2.14.90.0.7-1
gcc-3.3.2-5

On the ppc64 arch for Fedora Core 2 development tree.

Comment 1 Jakub Jelinek 2004-10-07 15:10:51 UTC
cc -o t t.c -pie; echo $?; rpm -q --qf '%{name}-%{version}-%{release}.%{arch}\n' binutils
/tmp/ccmggx7d.o(.text+0x14): undefined reference to `asdf'
collect2: ld returned 1 exit status
1
binutils-2.15.92.0.2-2.ppc64