https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577

--- Comment #36 from dave.anglin at bell dot net ---
On 2019-07-03 6:06 p.m., elowe at elowe dot com wrote:
> The non-working .s file does this:
>
> .LC0:
>         stringz "Hellos World"
>
> <edited for breivity>
>
>         movl r36 = @gprel(.LC0)
>         ;;
>         add r36 = r1, r36
It seems to me that the gprel instruction would fault if the gp (r1) isn't
properly initialized
correctly before main is started.

Reply via email to