Bug 970864

Summary: Testsuite failure: Extra PLT reference
Product: [Fedora] Fedora Reporter: Siddhesh Poyarekar <spoyarek>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: codonell, fweimer, jakub, law, mnewsome, pfrankli, schwab, spoyarek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-20 09:23:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Siddhesh Poyarekar 2013-06-05 06:39:29 UTC
Description of problem:
The current rawhide build (in progress, 2.17.90-1.fc20) has an extra PLT reference in libc.so:

=====/builddir/build/BUILD/glibc-2.17-757-g96df079/build-x86_64-redhat-linux/elf/check-localplt.out=====
Extra PLT reference: libc.so: memset

Version-Release number of selected component (if applicable):
glibc-2.17.90-1.fc20

How Reproducible:
Always

Steps to Reproduce:
See build log.

Comment 1 Siddhesh Poyarekar 2013-06-11 03:28:47 UTC
binutils is getting the symbol name wrong somehow, but the breakage is real.  The extra PLT is for __GI___gettimeofday, not memset.  the F17 version of binutils also got the name wrong as malloc, but since malloc is excluded from the extra PLT check, this failure went unnoticed.

There's no point in avoiding a PLT for __gettimeofday and for similar reasons, the hidden definition is also useless.  Any overhead added to avoid the PLT would be more expensive that the additional PLT.  I'm considering removing those bits and adding a direct call to __gettimeofday.