All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Handle C symbols with leading underscore	(HAVE_ASM_USCORE)
Date: Sun, 18 Nov 2007 21:52:40 +0100	[thread overview]
Message-ID: <4740A618.2060701@t-online.de> (raw)
In-Reply-To: <20071118061841.GB20719@thorin>

Robert Millan wrote:
>
>> diff -rup grub2.orig/kern/dl.c grub2/kern/dl.c
>> --- grub2.orig/kern/dl.c	2007-07-22 01:32:26.000000000 +0200
>> +++ grub2/kern/dl.c	2007-11-11 18:01:50.578125000 +0100
>> @@ -53,6 +53,12 @@ typedef Elf64_Sym Elf_Sym;
>>  
>>  #endif
>>  
>> +#ifdef HAVE_ASM_USCORE
>> +# define SYM_USCORE "_"
>> +#else
>> +# define SYM_USCORE ""
>> +#endif
>>     
>
> Should this be global?  We already have START_SYMBOL and END_SYMBOL.  Perhaps
> this should be next to them?
>
>   

START_SYMBOL and END_SYMBOL are in config.h. SYM_USCORE is derived from 
a config.h symbol and therefore cannot be placed there without changing 
configure.ac.

The symbol is (and likely will be) only used once, so it IMO makes no 
sense to declare it non-locally.

Christian




      reply	other threads:[~2007-11-18 20:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-10 19:03 [PATCH] Handle C symbols with leading underscore (HAVE_ASM_USCORE) Christian Franke
2007-11-10 21:24 ` Robert Millan
2007-11-11 18:24   ` Christian Franke
2007-11-18  6:18     ` Robert Millan
2007-11-18 20:52       ` Christian Franke [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4740A618.2060701@t-online.de \
    --to=christian.franke@t-online.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.