This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PPC linker fatal signal


>>>>> "Geoff" == Geoff Keating <geoffk@geoffk.org> writes:

Geoff> I think this reflects a bug in your earlier patch.  The linker should
Geoff> complain about this:

Geoff> 	lwz	%r3, var@sdai16(%r13)

Geoff> because 'var' is in the .data section.

Actually, this does not depend on where is `var'. This
one gets the same signal for the same reason:


        .section ".sdata", "rw"
        .global var
var:
        .long 1

        .text
        .global foo
foo:
        lwz     %r3, var@sdai16(%r13)

Regards,
-velco


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]