[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
secureplt breaks ld on Alpha Linux
From: |
Mikulas Patocka |
Subject: |
secureplt breaks ld on Alpha Linux |
Date: |
Fri, 29 Aug 2014 15:29:36 -0400 (EDT) |
User-agent: |
Alpine 2.02 (LRH 1266 2009-07-14) |
Hi
I found out that the patch cc75d373fdb9668f367959f99f0b67e056a6c18a
(Enable secureplt by default for alpha-linux) committed to binutils git
breaks ld on alpha.
This is a minimalized testcase that shows the breakage:
http://people.redhat.com/~mpatocka/testcases/alpha-ld-bug/ld-bug.tar.xz
To reproduce the bug, run ./ld-bug.sh to perform the linking, then run the
resulting binary:
LD_PRELOAD=./libots.so ./memset
The bug happens when using the Compaq C Compiler (ccc) on Alpha Linux (it
can be downloaded from
ftp://ftp.compaq.com/pub/products/C-CXX/linux/compaq_c/ ). When using
optimization, Compaq C replaces a call to memset with a call to _OtsZero
located in libots.so. The above patch breaks ld in such a way that the
resulting program crashes when performing the dynamic call to _OtsZero.
Mikulas
- secureplt breaks ld on Alpha Linux,
Mikulas Patocka <=