diff mbox

[10/33] powerpc: Ignore TOC relocations

Message ID 1395747879-5948-11-git-send-email-anton@samba.org (mailing list archive)
State Superseded
Headers show

Commit Message

Anton Blanchard March 25, 2014, 11:44 a.m. UTC
The linker fixes up TOC. relocations, so prom_init_check.sh should
ignore them.

Signed-off-by: Anton Blanchard <anton@samba.org>
---
 arch/powerpc/kernel/prom_init_check.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alan Modra March 26, 2014, 9:36 a.m. UTC | #1
On Tue, Mar 25, 2014 at 10:44:16PM +1100, Anton Blanchard wrote:
> The linker fixes up TOC. relocations, so prom_init_check.sh should
> ignore them.

Err, .TOC. you mean.  Presumably something strips off the leading dot
somewhere?

> -btext_setup_display"
> +btext_setup_display TOC."
Anton Blanchard April 22, 2014, 10:02 p.m. UTC | #2
Hi Alan,

> > The linker fixes up TOC. relocations, so prom_init_check.sh should
> > ignore them.
> 
> Err, .TOC. you mean.  Presumably something strips off the leading dot
> somewhere?

Yeah, the script strips them:

        # On 64-bit nm gives us the function descriptors, which have
        # a leading . on the name, so strip it off here.
        UNDEF="${UNDEF#.}"

I'll modify the commit message to be less confusing.

Anton
diff mbox

Patch

diff --git a/arch/powerpc/kernel/prom_init_check.sh b/arch/powerpc/kernel/prom_init_check.sh
index b0c263d..77aa1e9 100644
--- a/arch/powerpc/kernel/prom_init_check.sh
+++ b/arch/powerpc/kernel/prom_init_check.sh
@@ -23,7 +23,7 @@  strcmp strcpy strlcpy strlen strncmp strstr logo_linux_clut224
 reloc_got2 kernstart_addr memstart_addr linux_banner _stext
 opal_query_takeover opal_do_takeover opal_enter_rtas opal_secondary_entry
 boot_command_line __prom_init_toc_start __prom_init_toc_end
-btext_setup_display"
+btext_setup_display TOC."
 
 NM="$1"
 OBJ="$2"