[haiku-bugs] [Haiku] #13292: GCC5 (at least on x86_64) will not create position-indepedent executeables

  • From: "waddlesplash" <trac@xxxxxxxxxxxx>
  • Date: Sun, 12 Feb 2017 01:42:01 -0000

#13292: GCC5 (at least on x86_64) will not create position-indepedent 
executeables
--------------------------+------------------------------
 Reporter:  waddlesplash  |        Owner:  korli
     Type:  bug           |       Status:  new
 Priority:  normal        |    Milestone:  Unscheduled
Component:  Build System  |      Version:  R1/Development
 Keywords:                |   Blocked By:
 Blocking:                |  Has a Patch:  0
 Platform:  All           |
--------------------------+------------------------------
 I'm attempting to port the Dolphin emulator, whose JIT requires *no*
 position-independent code. It builds OK now, but despite {{{-fno-pie}}}
 getting passed to the linker, a position independent executable is still
 made:

 {{{
 $ readelf -h Binaries/dolphin-emu-qt2 | grep "Type: "
 Type:      DYN (shared object file)
 }}}

 Possibly relevant: #12430. This is hrev50951, with GCC "5.4.0
 (2016_06_04)" and ld "2.26.1".

 The source code to my WIP port is here:
 https://github.com/waddlesplash/dolphin/tree/haiku-2 ;(Dolphin requires
 x86_64, so don't even bother trying to build on 32-bit Haiku.)

--
Ticket URL: <https://dev.haiku-os.org/ticket/13292>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: