dl-sysdep.h has to come before the fallbacks in dl-defs.h,
else the wrong macros are used.
While there adapt the guard to the file name.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* GNU Lesser General Public License version 2.1 or later.
*/
-#ifndef _LD_DEFS_H
-#define _LD_DEFS_H
+#ifndef _DL_DEFS_H
+#define _DL_DEFS_H
#define FLAG_ANY -1
#define FLAG_TYPE_MASK 0x00ff
#endif
+/* arch specific defines */
+#include <dl-sysdep.h>
+
/* Provide a means for a port to pass additional arguments to the _dl_start
function. */
#ifndef DL_START
# define DL_GET_RUN_ADDR(loadaddr, mapaddr) (mapaddr)
#endif
-#endif /* _LD_DEFS_H */
+#endif /* _DL_DEFS_H */