How to enable the option '--build-id' to ld ?

William Tambe tambewilliam@gmail.com
Wed Dec 11 23:36:00 GMT 2019


On Wed, Dec 11, 2019 at 10:08 AM Ian Lance Taylor <iant@google.com> wrote:
>
> On Wed, Dec 11, 2019 at 7:03 AM William Tambe <tambewilliam@gmail.com> wrote:
> >
> > On Wed, Dec 11, 2019 at 9:29 AM Ian Lance Taylor <iant@google.com> wrote:
> > >
> > > On Wed, Dec 11, 2019 at 4:45 AM William Tambe <tambewilliam@gmail.com> wrote:
> > > >
> > > > How to enable the option '--build-id' to ld such that the following
> > > > error does not occur:
> > > > ld: unrecognized option '--build-id'
> > >
> > > What system are you running on?
> >
> > I am using GNU/Linux.
>
> What is the output of "ld --version"?

$ arch-elf-ld --version
GNU ld (GNU Binutils) 2.32
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

>
> What is the exact command that you are running, and what is the exact
> output that you see from that command?

$ arch-elf-ld --build-id objfile.o
arch-elf-ld: unrecognized option '--build-id'
arch-elf-ld: use the --help option for usage information

>
> Ian



More information about the Binutils mailing list