Excluding DWARF entries from binary

74 views
Skip to first unread message

Jose Pina Coelho

unread,
Jul 25, 2019, 1:12:12 PM7/25/19
to golang-nuts
Hi,

I'm trying to get golang running on AIX 7.1 (pp64).  I've tried cross-compiling on Linux x86_64, but the resulting binary has DWARF entries that aren't recognized by the AIX loader.

Is there a way to build a binary without the DWARF entries ?

Regards, JP.

Ian Lance Taylor

unread,
Jul 25, 2019, 6:48:38 PM7/25/19
to Jose Pina Coelho, golang-nuts
On Thu, Jul 25, 2019 at 10:12 AM Jose Pina Coelho <eresq...@gmail.com> wrote:
>
> I'm trying to get golang running on AIX 7.1 (pp64). I've tried cross-compiling on Linux x86_64, but the resulting binary has DWARF entries that aren't recognized by the AIX loader.
>
> Is there a way to build a binary without the DWARF entries ?

I don't know why the AIX linker would care....

Try using "go build -ldflags=all=-w".

Ian
Reply all
Reply to author
Forward
0 new messages