Menu

#16 Please make it possible to build with RelRO

1.2
open
nobody
None
low
2013-11-11
2013-11-09
Fantu
No

I tried to packaging winexe on clean Sid (debian unstable) installation.
I had one problem with winexe compilation:

[ 9/16] cprogram: build/winexesvc_launch.c.1.o
build/winexesvc_loop.c.1.o -> build/winexesvc32.exe
/usr/bin/i686-w64-mingw32-ld: "-z" option unrecognized
collect2: ld returned 1 exit status
Waf: Leaving directory `/root/winexe/source/build'
Build failed
-> task in 'winexesvc32.exe' failed (exit status 1):
{task 20082064: cprogram
winexesvc_launch.c.1.o,winexesvc_loop.c.1.o -> winexesvc32.exe}
['/usr/bin/i686-w64-mingw32-gcc', '-Wl,-z,relro', '-s',
'winexesvc_launch.c.1.o', 'winexesvc_loop.c.1.o', '-o',
'/root/winexe/source/build/winexesvc32.exe', '-Wl,-Bstatic',
'-Wl,-Bdynamic', '-luserenv']

-z option is missed on mingw ld but I not found where to remove it, I
did grep on winexe source without found '-Wl,-z,relro' options setting.
It still gives "the -z option missed" on winexesvc ld also with
DEB_BUILD_HARDENING_RELRO=0.
Is there something on winexe source that can force it?

Thanks for any reply

Discussion

  • Thomas Hood

    Thomas Hood - 2013-11-10

    I do not get this error message when building on Debian with
    /usr/bin/i686-w64-mingw32-gcc from gcc-mingw-w64-i686 and
    /usr/bin/x86_64-w64-mingw32-gcc from gcc-mingw-w64-x86-64
    where the latter packages are from Wheezy, version number 4.6.3-14+8.

    I see that Debian unstable has new versions of these packages with number 4.6.4-4+9.

     

    Last edit: Thomas Hood 2013-11-10
  • Thomas Hood

    Thomas Hood - 2013-11-10
    • Group: 1.1 --> 1.2
     
  • Thomas Hood

    Thomas Hood - 2013-11-11

    Ticket moved from /p/winexe/bugs/38/

     
  • Thomas Hood

    Thomas Hood - 2013-11-11
    • summary: Winexe probably force -z relro on exe's ld --> Please make it possible to build GNU/Linux executables with RelRO
    • Priority: medium --> low
     
  • Thomas Hood

    Thomas Hood - 2013-11-11
    • summary: Please make it possible to build GNU/Linux executables with RelRO --> Please make it possible to build with RelRO
     

Log in to post a comment.

MongoDB Logo MongoDB