[Android-virt] [PATCH] model.lds.S: INPUT() bootsemi.o, not boot.o, if SEMIHOSTING

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13 February 2012 19:56, Peter Maydell <peter.maydell at linaro.org> wrote:
> Actually it looks as if there's no need to have INPUT() lines for
> the .o files at all, because the linker pulls in the correct ones
> anyway when we refer to them in the SECTIONS{} part below [this is
> why the resulting .axf works correctly for semihosting even when
> there's an INPUT(./boot.o) line, because the linker uses bootsemi.o
> anyway]. So I think we could just delete the
> ?INPUT(./monitor.o)
> ?INPUT(./boot.o)
> lines altogether. Anybody with a better grasp of GNU ld linker
> script syntax care to confirm/deny ?

I finally found the bit of the gas manual that confirms this (strictly
there is a tiny difference in that it won't search the archive search
path the way it would with INPUT(), but we don't care about that).
So I'll do a v2 of this patch that just drops the unnecessary INPUT()
lines.

-- PMM



[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux