This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Segmentation Fault while computing TLS address of weak undef symbol


Hi,

I just went trough a SIGSEGV in the dynamic loader for ARM, while
trying to compute the address of an external weak undef symbol marked
with the __thread identifier. The code excerpt inlined in this message
reproduces the problem, and a fix follows attached.

#pragma weak foo

extern __thread int foo;

int main () {

       return &foo;
}

--
"Free as in Freedom"
Glauber de Oliveira Costa.

Attachment: arm-weakundef-segv
Description: Binary data


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