Skip to contentSkip to conversation

unaligned access using bash on glibc 2.5

parisc-linux John David Anglin 1 participant 1 message May 2, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · Aurelien Jarno
Quoted 3 lines

Please find the reduced testcase below. When the value is assigned to __libc_errno, the value of r19 has been overrided by the call to free().

And a smaller one:

extern __thread int __libc_errno __attribute__ ((tls_model ("initial-exec")));

This is a bug in __attribute__ ((tls_model ("initial-exec"))). It doesn't express that it uses r19. As a result, GCC is free to optimize the save and restore of r19 across the call to free away.

The same is true of the asm.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux