bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/13049] New: Generates R_ARM_NONE relocations for stub_* symbols


From: mh-sourceware at glandium dot org
Subject: [Bug ld/13049] New: Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
Date: Mon, 1 Aug 2011 14:17:11 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13049

           Summary: Generates R_ARM_NONE relocations for stub_* symbols
                    when using -fdata-sections
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden


$ echo 'const char *stub_foo[] = { "a" };' > foo.c
$ gcc -shared -o foo.so foo.c -fPIC -fdata-sections
$ readelf -r foo.so

Relocation section '.rel.dyn' at offset 0x370 contains 7 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
000084e0  00000017 R_ARM_RELATIVE   
000084e4  00000017 R_ARM_RELATIVE   
000085f4  00000017 R_ARM_RELATIVE   
00000000  00000000 R_ARM_NONE       
000085e8  00000315 R_ARM_GLOB_DAT    00000000   __cxa_finalize
000085ec  00000415 R_ARM_GLOB_DAT    00000000   __gmon_start__
000085f0  00000515 R_ARM_GLOB_DAT    00000000   _Jv_RegisterClasses

Relocation section '.rel.plt' at offset 0x3a8 contains 2 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
000085e0  00000316 R_ARM_JUMP_SLOT   00000000   __cxa_finalize
000085e4  00000416 R_ARM_JUMP_SLOT   00000000   __gmon_start__

$ gcc -shared -o foo.so foo.c -fPIC
$ readelf -r foo.so

Relocation section '.rel.dyn' at offset 0x370 contains 7 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
000084e0  00000017 R_ARM_RELATIVE   
000084e4  00000017 R_ARM_RELATIVE   
000085f4  00000017 R_ARM_RELATIVE   
000085f8  00000017 R_ARM_RELATIVE   
000085e8  00000315 R_ARM_GLOB_DAT    00000000   __cxa_finalize
000085ec  00000415 R_ARM_GLOB_DAT    00000000   __gmon_start__
000085f0  00000515 R_ARM_GLOB_DAT    00000000   _Jv_RegisterClasses

Relocation section '.rel.plt' at offset 0x3a8 contains 2 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
000085e0  00000316 R_ARM_JUMP_SLOT   00000000   __cxa_finalize
000085e4  00000416 R_ARM_JUMP_SLOT   00000000   __gmon_start__

gold doesn't have this problem.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]