[FFmpeg-trac] #7878(undetermined:closed): x86 builds silently generate text-relocations in the binary.

FFmpeg trac at avcodec.org
Thu May 2 01:47:31 EEST 2019


#7878: x86 builds silently generate text-relocations in the binary.
-------------------------------------+-------------------------------------
             Reporter:  dalecurtis   |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:  wontfix
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * priority:  wish => normal
 * resolution:   => wontfix
 * status:  new => closed
 * component:  build system => undetermined


Comment:

 Replying to [ticket:7878 dalecurtis]:

 > When linking with lld instead of ld.bfd or gold, you'll end up with
 errors like this:
 > ld.lld: error: can't create dynamic relocation R_386_32 against local
 symbol in readonly segment; recompile object files with -fPIC or pass
 '-Wl,-z,notext' to allow text relocations in the output

 Did you try this?

 > Removing text relocations improves security and reduces load times:

 (Could it be that you mean here "reduces load times at the cost of runtime
 performance?)
 It was claimed repeatedly on this bug tracker that above is simply not
 true, I would suggest not to revive this discussion;-)

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7878#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list