Gary Mills via illumos-developer
2014-10-13 18:34:42 UTC
I had something peculiar come up while I was attempting to build
illumos with a current version of openssl included. During linking of
the libcrypto shared library, I got this error:
Text relocation remains referenced
against symbol offset in file
OPENSSL_cpuid_setup 0x1 pics/x86cpuid.o
ld: fatal: relocations remain against allocatable but non-writable sections
Current working directory .../usr/src/lib/openssl/libcrypto/i386
That function is in another module: cryptlib.o . Links to that
function from other modules were resolved. It's only the one from
x86cpuid.o that was left out. That object file was created from the
x86cpuid.s assembler file, which reads like this:
.section .init
call OPENSSL_cpuid_setup
Is the function call somehow special because it's in the .init
section? When I replace `-Bdirect' with `-Bsymbolic' on the link
line, it completes successfully. Although it works, I'm assuming
that's not an ideal solution. Is there a better one?
--
-Gary Mills- -refurb- -Winnipeg, Manitoba, Canada-
-------------------------------------------
illumos-developer
Archives: https://www.listbox.com/member/archive/182179/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182179/21175072-86d49504
Modify Your Subscription: https://www.listbox.com/member/?member_id=21175072&id_secret=21175072-abdf7b7e
Powered by Listbox: http://www.listbox.com
illumos with a current version of openssl included. During linking of
the libcrypto shared library, I got this error:
Text relocation remains referenced
against symbol offset in file
OPENSSL_cpuid_setup 0x1 pics/x86cpuid.o
ld: fatal: relocations remain against allocatable but non-writable sections
Current working directory .../usr/src/lib/openssl/libcrypto/i386
That function is in another module: cryptlib.o . Links to that
function from other modules were resolved. It's only the one from
x86cpuid.o that was left out. That object file was created from the
x86cpuid.s assembler file, which reads like this:
.section .init
call OPENSSL_cpuid_setup
Is the function call somehow special because it's in the .init
section? When I replace `-Bdirect' with `-Bsymbolic' on the link
line, it completes successfully. Although it works, I'm assuming
that's not an ideal solution. Is there a better one?
--
-Gary Mills- -refurb- -Winnipeg, Manitoba, Canada-
-------------------------------------------
illumos-developer
Archives: https://www.listbox.com/member/archive/182179/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182179/21175072-86d49504
Modify Your Subscription: https://www.listbox.com/member/?member_id=21175072&id_secret=21175072-abdf7b7e
Powered by Listbox: http://www.listbox.com