This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Builtins-vs-libcalls-vs-optimised-away-vs-still-emitting-an-undefined-symbol-reference
Paul Brook <paul@codesourcery.com> writes:
> > > .file "<stdin>"
> > > foo .global _ffs
> >
> > Is this really a reference? It just looks like a declaration. A
> > typical ELF assembler will not generate an undefined symbol merely
> > because it sees a .global pseudo-op.
>
> I think gas 2.17 counts as a "typical ELF assembler". It does create undefined
> symbols in response to a .global pseudo-op.
Whoops, you're right. I tested that, but I goofed the test.
Ian