unaligned access using bash on glibc 2.5
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 tofree().And a smaller one:
extern
__threadint__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