This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Linking assembled objects without the GCC toolchain possible?
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sat, 28 Dec 2019 14:39:19 +0100
- Subject: Re: Linking assembled objects without the GCC toolchain possible?
- References: <4d8af07b22ce5cbda4e707197b7d1df0@kathe.in>
Am 28.12.2019 um 13:01 schrieb Mayuresh Kathe:
I have been reading up on various web-pages about building full-blown
applications using just assembler.
Most show examples that hook into external libraries (usually C) and
tend to use the GCC toolchain for the process.
Is it possible to build applications using external libraries but only
with the tools provided by binutils?
Thank you,
~Mayuresh
use ld for linking your object files
NAME
ld - The GNU linker
SYNOPSIS
ld [options] objfile ...
DESCRIPTION
ld combines a number of object and archive files, relocates
their data
and ties up symbol references. Usually the last step in compiling a
program is to run ld.
...