All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Daney <ddaney.cavm@gmail.com>
To: Michal Simek <michal.simek@xilinx.com>
Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu,
	David Daney <david.daney@cavium.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will.deacon@arm.com>,
	microblaze-uclinux@itee.uq.edu.au
Subject: Re: [PATCH] microblaze: extable: Sort the exception table at build time
Date: Fri, 20 Dec 2013 08:13:59 -0800	[thread overview]
Message-ID: <52B46CC7.7060903@gmail.com> (raw)
In-Reply-To: <3e05730caf4d945ac510b4657c4c4cf6f2e1b6f4.1387531751.git.michal.simek@xilinx.com>

On 12/20/2013 01:29 AM, Michal Simek wrote:
> Sort the exception table at build-time rather than during boot.
>
> Microblaze is the same case as AARCH64 that's why
> EM_MICROBLAZE conditional check was added to allow
> cross-compilation on machines which are not running
> the latest libc-dev.
>
> Inspired by AARCH64 commit:
> "arm64: extable: sort the exception table at build time"
> (sha1: adace89562c7a9645b8dc84f6e1ac7ba8756094e)
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

This seems plausible, I didn't test it, but this is how it is supposed 
to work, so...

Acked-by: David Daney <david.daney@cavium.com>


> ---
>
>   arch/microblaze/Kconfig | 1 +
>   scripts/sortextable.c   | 5 +++++
>   2 files changed, 6 insertions(+)
>
> diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
> index e23cccd..8d581ab 100644
> --- a/arch/microblaze/Kconfig
> +++ b/arch/microblaze/Kconfig
> @@ -30,6 +30,7 @@ config MICROBLAZE
>   	select MODULES_USE_ELF_RELA
>   	select CLONE_BACKWARDS3
>   	select CLKSRC_OF
> +	select BUILDTIME_EXTABLE_SORT
>
>   config SWAP
>   	def_bool n
> diff --git a/scripts/sortextable.c b/scripts/sortextable.c
> index 7941fbd..cc49062 100644
> --- a/scripts/sortextable.c
> +++ b/scripts/sortextable.c
> @@ -39,6 +39,10 @@
>   #define EM_AARCH64	183
>   #endif
>
> +#ifndef EM_MICROBLAZE
> +#define EM_MICROBLAZE	189
> +#endif
> +
>   static int fd_map;	/* File descriptor for file being modified. */
>   static int mmap_failed; /* Boolean flag. */
>   static void *ehdr_curr; /* current ElfXX_Ehdr *  for resource cleanup */
> @@ -275,6 +279,7 @@ do_file(char const *const fname)
>   	case EM_ARCOMPACT:
>   	case EM_ARM:
>   	case EM_AARCH64:
> +	case EM_MICROBLAZE:
>   	case EM_MIPS:
>   		break;
>   	}  /* end switch */
> --
> 1.8.2.3
>


      reply	other threads:[~2013-12-20 16:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20  9:29 [PATCH] microblaze: extable: Sort the exception table at build time Michal Simek
2013-12-20 16:13 ` David Daney [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=52B46CC7.7060903@gmail.com \
    --to=ddaney.cavm@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=catalin.marinas@arm.com \
    --cc=david.daney@cavium.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.simek@xilinx.com \
    --cc=microblaze-uclinux@itee.uq.edu.au \
    --cc=monstr@monstr.eu \
    --cc=will.deacon@arm.com \
    /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.