[Bug 219035] devel/kBuild failed to build

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 8 14:15:39 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219035

vvd at unislabs.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vvd at unislabs.com

--- Comment #4 from vvd at unislabs.com ---
It was discussed a month ago in #bsdports at EFNet IRC.

I had the same with 
# grep =RELRO /var/db/ports/devel_binutils/options
OPTIONS_FILE_SET+=RELRO

After I changed it to OPTIONS_FILE_UNSET+=RELRO and recompile devel/binutils -
devel/kBuild builded without errors.

A bit more info:
#include <ctype.h>
int main ()
{
   islower('a');
   return 0;
}

$ gcc -o test test.c
$ ./test
Segmentation fault

Quote from irc log:
<jilles> VVD, there is a commit to libexec/rtld-elf from early this year with
message "For the main binary, postpone enforcing relro read-only protection
until copy relocations are done."
<jilles> svn r311984 in head and MFCed to stable/11 and stable/10
<VVD> jilles, do I need recompile binutils with OPTIONS_FILE_UNSET+=RELRO ?
<jilles> VVD, that's a possible workaround
<VVD> will try
<VVD> jilles, yes, it fixed: binutils with OPTIONS_FILE_UNSET+=RELRO

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-emulation mailing list