lkml.org 
[lkml]   [2010]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] alpha: hack objstrip.c to make it compile.
On 03/29/2010 06:49 PM, Matt Turner wrote:
> I don't think this is the appropriate fix. What should I do to fix this?
> ---
> arch/alpha/boot/tools/objstrip.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/arch/alpha/boot/tools/objstrip.c b/arch/alpha/boot/tools/objstrip.c
> index 367d53d..54fa1ef 100644
> --- a/arch/alpha/boot/tools/objstrip.c
> +++ b/arch/alpha/boot/tools/objstrip.c
> @@ -27,6 +27,9 @@
> #include <linux/param.h>
> #ifdef __ELF__
> # include <linux/elf.h>
> +# define elfhdr elf64_hdr
> +# define elf_phdr elf64_phdr
> +# define elf_check_arch(x) ((x)->e_machine == EM_ALPHA)
> #endif
>

Hum. Is it so bad to just #define __KERNEL__ here before
that one include? Similar games are played in tools/perf/,
and with a suitible comment I think that should be all right.


r~


\
 
 \ /
  Last update: 2010-03-30 16:31    [W:1.477 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site