[Patch] Don't declare all text sections at the start of the .s

Rafael Espíndola rafael.espindola at gmail.com
Fri Mar 13 06:18:46 PDT 2015


On 12 March 2015 at 20:15, Jim Grosbach <grosbach at apple.com> wrote:
> Very interesting. You’re right about the underlying problem. The file header there is to pre-set the final order of the sections, the goal of which is as you point out, to prevent debug info from changing actual code. This particular idiom goes back a ways (at least 2007) and pre-dates LLVM+MachO. As such, my worry here is that there may be other dependencies which have (likely inadvertently) crept in since then. That doesn’t mean this isn’t the right thing to do, of course, but rather that lots of testing is in order so that we can identify and fix any of those things.
>

What kind of testing would you be looking for?

All that I can think of is building with/without -g for apple darwin
and comparing.

Cheers,
Rafael




More information about the llvm-commits mailing list