Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Petazzoni
Date: Monday, February 25, 2008 - 10:53 am

Le Mon, 25 Feb 2008 09:03:12 -0800,
Matt Mackall <mpm@selenic.com> a =C3=A9crit :


After a quick look at the LD documentation, it seems that wildcards are
supported in the input section names of the linker script. So that the
CALLBACK_SECTION() macro could add the function pointer to a section
named:

   gcm. ## name

(gcm standing for "generic callback mechanism") and then, in the linker
script, do:

   *(gcm.*)

I'm going to try that.

Sincerly,

Thomas
--=20
Thomas Petazzoni, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1500 pages!)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86 (Linux Tiny): configure out support for some p ..., Michael Opdenacker, (Fri Feb 8, 3:47 pm)
Re: [PATCH] x86 (Linux Tiny): configure out support for so ..., Michael Opdenacker, (Sat Feb 9, 2:26 am)
Re: [PATCH] x86 (Linux Tiny): configure out support for so ..., Michael Opdenacker, (Sat Feb 9, 2:29 am)
Re: [PATCH] x86 (Linux Tiny): configure out support for so ..., Michael Opdenacker, (Sat Feb 9, 2:31 am)
Re: [PATCH] x86 (Linux Tiny): configure out support for so ..., Michael Opdenacker, (Mon Feb 11, 3:42 pm)
Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor ..., Thomas Petazzoni, (Mon Feb 25, 1:29 am)
Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor ..., Thomas Petazzoni, (Mon Feb 25, 10:53 am)