This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to set the default entry point used by ld and gas -o ?
On 12.08.19 11:36, William Tambe wrote:
> On Mon, Aug 12, 2019 at 10:34 AM Carlos O'Donell <carlos@redhat.com> wrote:
> >
> > On 8/12/19 10:44 AM, William Tambe wrote:
> > > How to set the default entry point used by ld and gas -o ?
> > >
> >
> > See `info ld 'entry point'` (if you have binutils info docs installed)
> >
> > or view:
> >
> > https://sourceware.org/binutils/docs-2.32/ld/Entry-Point.html#Entry-Point
>
> Thanks; however it does not seem to apply to gnu-as -o; any idea
> whether the GNU as use the linker at all ?
When running xxx-as manually (as in not invoked by gcc), to just
assemble, one also needs to run ld manually - usually from a makefile.
After all, the assembler may be run a hundred times before the hundred
object files need to be linked. Some may be put into libraries, using
ar. Once rolling your own, it's up to you.
Erik