[llvm-dev] Link using a linker script

Rafael Espíndola via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 20 12:33:17 PDT 2016


Linker script support is still fairly incomplete.

Can you open a bug explaining which feature you are trying to use and
we are missing?

In this particular case, can't you just list Boot.o first in the command line?

Cheers,
Rafael

On 20 April 2016 at 15:13, Sky Flyer <skylake007 at gmail.com> wrote:
> For example something like STARTUP
> (http://wiki.osdev.org/Linker_Scripts#STARTUP) is not accepted by the LLVM
> LLD. :-/
>
> On Wed, Apr 20, 2016 at 9:08 PM, Sky Flyer <skylake007 at gmail.com> wrote:
>>
>> Yeah I found it, that's nice. Thanks a milion.
>> Could you please tell me how can I specify my bootstrap (startup code) in
>> the linking process?
>>
>>
>> On Wed, Apr 20, 2016 at 8:38 PM, Rafael Espíndola
>> <rafael.espindola at gmail.com> wrote:
>>>
>>> search for VAStart.
>>>
>>> Cheers,
>>> Rafael
>>>
>>>
>>> On 20 April 2016 at 14:18, Sky Flyer <skylake007 at gmail.com> wrote:
>>> > Hi Rafael,
>>> >
>>> > Thanks a lot.
>>> > For example the start entry for me is 0x11000 by default which I don't
>>> > know
>>> > where it come from! I thought there should be a default thing that sets
>>> > this
>>> > entry address.
>>> >
>>> > On Wed, Apr 20, 2016 at 8:05 PM, Rafael Espíndola
>>> > <rafael.espindola at gmail.com> wrote:
>>> >>
>>> >> There is no default linker script.
>>> >>
>>> >> Cheers,
>>> >> Rafael
>>> >>
>>> >>
>>> >> On 20 April 2016 at 11:23, Sky Flyer via llvm-dev
>>> >> <llvm-dev at lists.llvm.org> wrote:
>>> >> > for instance, where is the internal default linker script located?
>>> >> > How
>>> >> > can I
>>> >> > change the default values, for example the star address...
>>> >> >
>>> >> > On Wed, Apr 20, 2016 at 5:17 PM, Sky Flyer <skylake007 at gmail.com>
>>> >> > wrote:
>>> >> >>
>>> >> >> Hi all,
>>> >> >>
>>> >> >> How does the new lld implementation work with the "Linker Script"
>>> >> >> for
>>> >> >> the
>>> >> >> object file adjustment?
>>> >> >> I couldn't find enough resources on the web. Any help is highly
>>> >> >> appreciated.
>>> >> >>
>>> >> >> Cheers,
>>> >> >> ES
>>> >> >
>>> >> >
>>> >> >
>>> >> > _______________________________________________
>>> >> > LLVM Developers mailing list
>>> >> > llvm-dev at lists.llvm.org
>>> >> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>> >> >
>>> >
>>> >
>>
>>
>


More information about the llvm-dev mailing list