------- Comment #6 from dave at hiauly1 dot hia dot nrc dot ca 2010-04-14
20:05 -------
Subject: Re: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
> I wonder if using
>
> asm (".globl start");
> asm ("start: nop");
>
> Would work for everyone? I am going to try that on my nightly HP-UX and Linux
> runs.
No. The second asm will add a tab before the label `start'. Both
the HP and GNU PARISC assemblers require labels to start in column one.
Also, `.global' doesn't work with the HP assembler. It also doesn't
like a colon at the end of labels.
I think the following would work with most versions of gas:
asm (.global start\nstart: nop");
The problem with the original form was the `;'. It introduces a comment
on PA.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283