lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 30 Mar 2010 10:49:13 -0400
From:	Matt Turner <mattst88@...il.com>
To:	Richard Henderson <rth@...ddle.net>
Cc:	linux-alpha@...r.kernel.org, linux-kernel@...r.kernel.org,
	Ivan Kokshaysky <ink@...assic.park.msu.ru>, ang@...gante.org
Subject: Re: [RFC] alpha: hack objstrip.c to make it compile.

On Tue, Mar 30, 2010 at 10:28 AM, Richard Henderson <rth@...ddle.net> wrote:
> 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~

The problem is that, at least with my distribution, probably others
too, the headers installed into /usr/include/linux/ are stripped of
anything inside #ifdef __KERNEL__.

Matt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ