diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-20 01:51:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-20 01:51:50 +0000 |
commit | 9c0395e39e1ec90cf040f0428260f0ef363c50f8 (patch) | |
tree | 91c44874a2294ae7747bc7d333ae7a2ca4115f2a /lldb/scripts/Python/python-wrapper.swig | |
parent | b5794ca90c4e1e236eb98bf84b3e3be5e31edc32 (diff) | |
download | llvm-9c0395e39e1ec90cf040f0428260f0ef363c50f8.zip llvm-9c0395e39e1ec90cf040f0428260f0ef363c50f8.tar.gz llvm-9c0395e39e1ec90cf040f0428260f0ef363c50f8.tar.bz2 |
Prefer -Ttext over linker script values.
I found this while trying to build u-boot. It uses -Ttext in
combination with linker scripts.
My first reaction was to change the linker scripts to have the correct
value, but I found that it is actually quite convenient to have -Ttext
take precedence.
By having just
.text : { *(.text) }
In the script, they can define the text address in a single Makefile
and pass it to ld with -Ttext and for the C code with
-DFoo=value. Doing the same with linker scripts would require them to
be generated during the build.
llvm-svn: 305766
Diffstat (limited to 'lldb/scripts/Python/python-wrapper.swig')
0 files changed, 0 insertions, 0 deletions