grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] to make grub2 compile on NetBSD


From: Yoshinori K. Okuji
Subject: Re: [PATCH] to make grub2 compile on NetBSD
Date: Wed, 13 Feb 2008 04:55:47 +0100
User-agent: KMail/1.9.4

On Wednesday 13 February 2008 00:56, walt wrote:
> This is a link-time error, and I have no clue how to detect it at
> configure time.  Please show me how you would do it.

I think the following would be sufficient:

1. Find small code which produces a reference to __enable_execute_stack even 
with -fno-stack-protector. Probably using a nested function should be enough.

2. Compile it to an object file, and run "nm -u object_file | grep 
__enable_execute_stack".

3. Write a test in aclocal.m4 using the above, and call it from configure.ac.

You can see many examples in aclocal.m4. If you have no clue on writing an 
autoconf test, I can write it for you, if you show me such code.

Okuji




reply via email to

[Prev in Thread] Current Thread [Next in Thread]