Bug 1304277
Summary: | when hardening enabled linker says relocation R_X86_64_PC32 against undefined symbol can not be used when making a shared object; recompile with -fPIC | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tom Hughes <tom> |
Component: | binutils | Assignee: | Nick Clifton <nickc> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | jakub, nickc, sergio |
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: | 2016-02-03 09:06:07 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1284714 |
Description
Tom Hughes
2016-02-03 09:02:26 UTC
No, that is just user error. If you are using -specs=/usr/lib/rpm/redhat/redhat-hardened-ld at link time, you also need to use -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 at compile time, and as you are compiling and linking at the same time, you need either both, or drop the -specs=/usr/lib/rpm/redhat/redhat-hardened-ld . Thanks. Think I've found the real problem now... ah, that's it ! , This "R_X86_64_PC32 against undefined symbol can not be used when making a shared object; recompile with -fPIC" happens when LDFLAGS are set with hardening and CFLAGS not . here is my fix for dvd95.spec --- dvd95-code-01dd592f7a8352d61fd5d8faa75463ebfd954980/configure.in.orig 2016-07-09 18:35:26.738348447 +0100 +++ dvd95-code-01dd592f7a8352d61fd5d8faa75463ebfd954980/configure.in 2016-07-10 04:00:33.515939022 +0100 @@ -13,7 +13,7 @@ AC_ISC_POSIX dnl dnl warning flags; always add -Wall dnl -CFLAGS="-Wall -O3" +#CFLAGS="-Wall -O3" AC_PROG_CC AM_PROG_CC_STDC |