From 1272dbd1d76c979358fff3beae9de0c1462345af Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 9 Jan 2014 15:45:07 -0800 Subject: [PATCH] Add NT_PRSTATUS to . Needed by aarch64. Bug: 12476126 Change-Id: I7764664459a06cf4f2a60e707bd968d321a78430 --- libc/include/elf.h | 5 +++++ linker/linker.h | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libc/include/elf.h b/libc/include/elf.h index 285eb7d4c..3f2e4f25a 100644 --- a/libc/include/elf.h +++ b/libc/include/elf.h @@ -30,6 +30,8 @@ #include #include + +/* TODO: can we switch to instead? http://b/12476126. */ #include typedef struct { @@ -52,4 +54,7 @@ typedef struct { # define Elf_auxv_t Elf32_auxv_t #endif +/* doesn't contain any NT_ constants. aarch64 strace needs this one. */ +#define NT_PRSTATUS 1 + #endif /* _ELF_H */ diff --git a/linker/linker.h b/linker/linker.h index 647c36a8a..9afd9e137 100644 --- a/linker/linker.h +++ b/linker/linker.h @@ -29,12 +29,9 @@ #ifndef _LINKER_H_ #define _LINKER_H_ -#include -#include #include -#include - #include +#include #include "private/libc_logging.h"