Re: is -fPIC safe for executable programs, or must -fPIE be used?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 25/03/2016 20:04, Britton Kerin a écrit :
      -pie
      --pic-executable     Create a position independent executable.
This is currently only supported on ELF platforms. Position
independent executables are similar to shared libraries in that they
are relocated by the dynamic linker to the virtual address the OS
chooses for them (which can vary between invocations). Like normal
dynamically linked executables they can be executed and symbols
defined in the executable cannot be overridden by shared libraries.

    Hello.

    Isn't there a contradiction in the sentence

  Like normal
dynamically linked executables they can be executed and symbols
defined in the executable cannot be overridden by shared libraries.

The first part of the sentence seeems to mean they can be dynamically linked (they are just abnormal dynamically linked programs) and the second part seems to mean the dynamic linking will fail -- my understanding of dynamic linking being that it relies precisely on overriding symbols.

    Thanks if you can clarify that.

    Didier





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux