Re: [PATCH] allow exception table to be put in .rodata

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

 



Hi,

On Mon, Dec 6, 2010 at 11:19 AM, Jan Beulich <JBeulich@xxxxxxxxxx> wrote:
> ... and actually do so for x86.
>
This is a technical change, not just a mechanical one. Could you
include in CC the relevant parties concerned by this change ?

Thanks,
 - Arnaud

> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
>
> ---
>  arch/x86/kernel/vmlinux.lds.S     |    5 +++--
>  include/asm-generic/vmlinux.lds.h |    5 +++++
>  2 files changed, 8 insertions(+), 2 deletions(-)
>
> --- linux-2.6.37-rc4/arch/x86/kernel/vmlinux.lds.S
> +++ 2.6.37-rc4-extable-in-rodata/arch/x86/kernel/vmlinux.lds.S
> @@ -20,6 +20,8 @@
>  #define LOAD_OFFSET __START_KERNEL_map
>  #endif
>
> +#define EXCEPTION_TABLE_RO EXCEPTION_TABLE(16)
> +
>  #include <asm-generic/vmlinux.lds.h>
>  #include <asm/asm-offsets.h>
>  #include <asm/thread_info.h>
> @@ -113,8 +115,7 @@ SECTIONS
>        } :text = 0x9090
>
>        NOTES :text :note
> -
> -       EXCEPTION_TABLE(16) :text = 0x9090
> +       text_continues : {} :text /* switch back to regular text... */
>
>        X64_ALIGN_DEBUG_RODATA_BEGIN
>        RO_DATA(PAGE_SIZE)
> --- linux-2.6.37-rc4/include/asm-generic/vmlinux.lds.h
> +++ 2.6.37-rc4-extable-in-rodata/include/asm-generic/vmlinux.lds.h
> @@ -219,6 +219,7 @@
>                *(.rodata1)                                             \
>        }                                                               \
>                                                                        \
> +       EXCEPTION_TABLE_RO                                              \
>        BUG_TABLE                                                       \
>                                                                        \
>        JUMP_TABLE                                                      \
> @@ -439,6 +440,10 @@
>                VMLINUX_SYMBOL(__stop___ex_table) = .;                  \
>        }
>
> +#ifndef EXCEPTION_TABLE_RO
> +#define EXCEPTION_TABLE_RO
> +#endif
> +
>  /*
>  * Init task
>  */
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux