This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Regarding "Inconsistency detected by ld.so"
- From: Sakthi <karthikeyan24s at hotmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 29 Apr 2013 00:48:24 -0700 (PDT)
- Subject: Re: Regarding "Inconsistency detected by ld.so"
- References: <1365433766502-227752 dot post at n7 dot nabble dot com> <1365438468344-227765 dot post at n7 dot nabble dot com> <1365513485443-227891 dot post at n7 dot nabble dot com> <20130410021312 dot GB24281 at bubble dot grove dot modra dot org> <1365583712046-228020 dot post at n7 dot nabble dot com> <20130411041020 dot GC363 at bubble dot grove dot modra dot org>
Hi Alan,
Thanks a lot for your reply.
I modified the fake are with your changes and could see the program header
fake part holds valid VirtAddr now. But with new changes also not able to
launch the executable and getting the below mentioned error message.
Inconsistency detected by ld.so: dl-open.c: 593: _dl_open: Assertion
`_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
--------------
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x25000034 0x25000034 0x00120 0x00120 R 0x4
INTERP 0x000154 0x25000154 0x25000154 0x0001a 0x0001a R 0x1
[Requesting program interpreter: /root/prelink/lib/ld.so.1]
LOAD 0x000000 0x25000000 0x25000000 0x00b34 0x00b34 R E 0x10000
LOAD 0x000b34 0x25010b34 0x25010b34 0x0013c 0x00144 RW 0x10000
* LOAD 0x010000 0x0f850000 0x0f850000 0x00000 0x00010 0x10000
* DYNAMIC 0x000b50 0x25010b50 0x25010b50 0x00118 0x00118 RW 0x4
NOTE 0x000ad4 0x25000ad4 0x25000ad4 0x00020 0x00020 R 0x4
GNU_EH_FRAME 0x000af4 0x25000af4 0x25000af4 0x00014 0x00014 R 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4
--------------
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk
Inf Al
[ 0] NULL 00000000 000000 000000 00 0
0 0
[ 1] .interp PROGBITS 25000154 000154 00001a 00 A 0
0 1
[ 2] .hash HASH 25000170 000170 0000ac 04 A 3
0 4
[ 3] .dynsym DYNSYM 2500021c 00021c 000180 10 A 4
1 4
[ 4] .dynstr STRTAB 2500039c 00039c 000132 00 A 0
0 1
[ 5] .gnu.version VERSYM 250004ce 0004ce 000030 02 A 3
0 2
....
....
[31] .debug_str PROGBITS 00000000 000ddd 0000b1 01 MS 0
0 1
* [32] .tststart NOBITS 0f850000 010000 000010 00 WA 0
0 65536
* [33] .shstrtab STRTAB 00000000 000e8e 00013a 00 0
0 1
[34] .symtab SYMTAB 00000000 001568 000500 10 35
57 4
[35] .strtab STRTAB 00000000 001a68 0002a8 00 0
0 1
I thought the problem is with dynamic linker as the ld.so is reporting some
problem, so tried with prelinked ld.so and --dynamic-linker option which not
helped as expected.
Any idea?
--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Regarding-Inconsistency-detected-by-ld-so-tp227752p229913.html
Sent from the Sourceware - binutils list mailing list archive at Nabble.com.