cmELF: Define DT_RUNPATH if it isn't already defined

The value of 29 is used by binutils and is used in the System V ABI
draft from 2001.

It isn't defined on NetBSD 6.0.
This commit is contained in:
Maya Rashish
2017-04-26 16:37:28 +03:00
committed by Brad King
parent 008570150c
commit 7146a60429

View File

@@ -44,6 +44,9 @@ typedef struct Elf32_Rela Elf32_Rela;
#ifdef _SCO_DS
#include <link.h> // For DT_SONAME etc.
#endif
#ifndef DT_RUNPATH
#define DT_RUNPATH 29
#endif
// Low-level byte swapping implementation.
template <size_t s>