Hi,
I tried to use linker script with lld (this script works just file with GNU
ld). I got a problem with defining new symbols and assign values
(addresses) to them. For instance I got the following code in the linker
script:
SECTIONS
{
_exec_sym = 0;
...
After using lld command with the --script option I got the following error:
line 3: : expected, but got _exec_sym = 0;
^
As a result I couldn't define new symbol. Also the PROVIDE expression is
not supported. I believe I got a latest lld sources from the "git clone
http://llvm.org/git/lld.git" repository, but maybe I'm missing
something.
Is it possible to define (assign values) symbols in the linker script?
Do we have any documentation for the linker script support in llvm/lld?
Thanks a lot, Dima.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20160421/79088c07/attachment.html>
On 21 April 2016 at 11:20, Dima Stepanov via llvm-dev <llvm-dev at lists.llvm.org> wrote:> Hi, > > I tried to use linker script with lld (this script works just file with GNU > ld).This is not yet implemented; there's a PR open for it: llvm.org/pr27407> Also the PROVIDE expression is not supported.This one is in review at http://reviews.llvm.org/D19190
On Thu, Apr 21, 2016 at 3:06 PM, Ed Maste <emaste at freebsd.org> wrote:> On 21 April 2016 at 11:20, Dima Stepanov via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > Hi, > > > > I tried to use linker script with lld (this script works just file with > GNU > > ld). > > This is not yet implemented; there's a PR open for it: llvm.org/pr27407 > > > Also the PROVIDE expression is not supported. > > This one is in review at http://reviews.llvm.org/D19190 >Hi Ed, Thanks a lot for reply and your references. That exactly what I need. Regards, Dima. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160421/08809c7f/attachment.html>