[RTEMS Project] #2612: R_ARM_GOT_BREL relocation type unsupported
RTEMS trac
trac at rtems.org
Wed Feb 24 18:35:20 UTC 2016
#2612: R_ARM_GOT_BREL relocation type unsupported
-------------------------+-----------------------
Reporter: pggauvin | Owner: chrisj
Type: enhancement | Status: accepted
Priority: normal | Milestone:
Component: libdl | Version: 4.11
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Comment (by pggauvin):
Dropping `-fPIC` actually seems to resolve the `dlopen` failure.
I'll still post the example program and Makefile so the error can be
reproduced.
With `-fPIC`:
{{{
Relocation section '.rel.text' at offset 0x96c contains 4 entries:
Offset Info Type Sym.Value Sym. Name
00000020 00001419 R_ARM_BASE_PREL 00000000 _GLOBAL_OFFSET_TABLE_
00000024 0000121a R_ARM_GOT_BREL 00000004 global_variable
00000040 00001419 R_ARM_BASE_PREL 00000000 _GLOBAL_OFFSET_TABLE_
00000044 0000121a R_ARM_GOT_BREL 00000004 global_variable
}}}
Without `-fPIC`:
{{{
Relocation section '.rel.text' at offset 0x904 contains 4 entries:
Offset Info Type Sym.Value Sym. Name
00000008 00000f2f R_ARM_THM_MOVW_AB 00000004 global_variable
0000000c 00000f30 R_ARM_THM_MOVT_AB 00000004 global_variable
00000024 00000f2f R_ARM_THM_MOVW_AB 00000004 global_variable
00000028 00000f30 R_ARM_THM_MOVT_AB 00000004 global_variable
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/2612#comment:6>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list