Unable to build PowerPC AIX targets

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Sep 16 10:34:19 GMT 2025


Hi Nick,

>   Building gas for AIX targeted PowerPC ports is currently failing
>   because the comment_chars array is now ELF only:
>
> ld: app.o: in function `do_scrub_begin':
> gas/app.c:216:(.text+0x55): undefined reference to `comment_chars'
>
>   I assume that there is no special need for the array to only be
>   defined for the ELF target, so I found that a patch like the one
>   attached solved the problem.  Does this work for you ?

of course.  Sorry for messing things up: I'd misread the nesting of
#ifdef's here and only tested on Linux/PowerPC.

	Rainer  

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


More information about the Binutils mailing list