summaryrefslogtreecommitdiff
path: root/src/elfxx.h
diff options
context:
space:
mode:
authorMatt Fischer <matt.fischer@garmin.com>2013-04-15 09:53:29 -0500
committerMatt Fischer <matt.fischer@garmin.com>2013-05-13 10:50:17 -0500
commiteac65dc9b8cc18fa4c65c0485878a11c470357b6 (patch)
tree9e9df0cd13876251b7240c2209fceb73631258d8 /src/elfxx.h
parentac6c0a6535975f1dc2da6e4e2766614baac2a14a (diff)
downloadlibunwind-eac65dc9b8cc18fa4c65c0485878a11c470357b6.tar.gz
Add basic support for the QNX operating system
This change adds some special cases to allow libunwind to compile for QNX. * QNX's copy of <elf.h> and <link.h> reside in sys/ instead. To deal with this, an AC_CHECK_HEADERS() was added to check for the files in both locations. * Similarly, QNX does not have <endian.h>. In cases where the file is not found, logic was added to refer to QNX-specific macros to determine endianness. * The QCC compiler, which is a wrapper around GCC, cannot handle some standard GCC options. Therefore, logic was added to check for QCC, and when it is found, to suppress the use of -lgcc, and to express the option -nostartfiles as -Wc,-nostartfiles instead, which is correctly passed on to the underlying GCC. * Finally, the support file os-qnx.c was added, patterned after the existing os-*.c files. Only local image lookup is currently supported (see the comments for more information), but this is sufficient for QNX, since ptrace is not supported there anyway, and that is the only case where the function is required to do remote image lookup. Change-Id: Ie7934f94a7317bdde59335f2acd4c3a97c0384c1
Diffstat (limited to 'src/elfxx.h')
-rw-r--r--src/elfxx.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/elfxx.h b/src/elfxx.h
index dea0463f..558a2354 100644
--- a/src/elfxx.h
+++ b/src/elfxx.h
@@ -24,7 +24,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
-#include <elf.h>
#include <fcntl.h>
#include <unistd.h>