[llvm] r255787 - [SystemZ] Sort relocs to avoid code corruption by linker optimization

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 08:36:35 PST 2015


Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote on 17.12.2015 17:28:52:

> > What gas does on s390x is to sort relocs for data sections (which is
> > required at least for .eh_frame as I understand), but does not sort
> > relocs for code sections.
>
> But those are also create in the correct order.

Actually, I think in the binutils case the problem was not really
assembling a single file with gas, but combining multiple object
files with ld -r.  It's just that with binutils, those both run
through the same bfd backend that does the actual sort.  Here's
the bugzilla describing the ld -r issue:
https://sourceware.org/bugzilla/show_bug.cgi?id=17666

Bye,
Ulrich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151217/227f677e/attachment.html>


More information about the llvm-commits mailing list