[Top][All Lists]

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

[Bug ld/16546] New: powerpc __tls_get_addr should be ignored in ppc_elf_

From: wang.deqiang1 at zte dot com.cn
Subject: [Bug ld/16546] New: powerpc __tls_get_addr should be ignored in ppc_elf_relax_section
Date: Mon, 10 Feb 2014 02:33:18 +0000


            Bug ID: 16546
           Summary: powerpc __tls_get_addr should be ignored in
           Product: binutils
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: wang.deqiang1 at zte dot com.cn

Created attachment 7400
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7400&action=edit
source code

when i static link the source in attachment with ld relax option,i get a error
like this:

-o test pthread_tls_relax_tst.c -lpthread --save-temps --static -Wl,--relax 

BFD (GNU Binutils) 2.24 assertion fail

when i look into the code , i find  ppc_elf_relax_section relax the call to
__tls_get_addr, and modify the relocation of tls access in global-dynamic and
local-dynamic mode , in fuction ppc_elf_relocate_section when we do tls
optimize to change the global-dynamic mode or local-dynamic mode to
initial-exec mode, we need the relocation type information, but it is changed
in ppc_elf_relax_section, so we got this error.

normally powerpc ld always do tls optimize, so i think we should just ignore
the tls_get_addr symbol in ppc_elf_relax_section .

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]