This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Regarding "Inconsistency detected by"

Not sure this problem is due to the new test segment added in the linker
script. tried with below command and shows ELF segment is not aligned

root@localhost:/root/test> /lib/ --list ./testsample
./testsample: error while loading shared libraries: ./testsample: ELF load
command address/offset not properly aligned


After checking the below link, guess I'm into the same problem where I want
to relocate the mapped libc and ld by creating an illusion in linker script
that memory is mapped in the specific region.


By default libc and ld are mapped to x-y (which is not TASK_UNMAPPED) and
now I've modified default linker script to add a new section (PT_LOAD) which
is mapped between x-y

x address is aligned after setting the location counter.

. =x;

Any pointers ?

Thanks in Advance.

View this message in context:
Sent from the Sourceware - binutils list mailing list archive at

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]