]> code.ossystems Code Review - openembedded-core.git/commit
binutils-crosssdk: do not set .interp size to 0x1000 for partial linked objects
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Wed, 21 Nov 2012 14:57:42 +0000 (16:57 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Nov 2012 15:12:04 +0000 (15:12 +0000)
commitb25d0c5fe286e44ded46aefdcbe35ed259087759
tree4168a6f2f717a871a1c0bad973eabbff576ee607
parent7e000fef0bf917f27dcad66dd90fae6c155c4d1d
binutils-crosssdk: do not set .interp size to 0x1000 for partial linked objects

When building the SDK, the final .interp section size should be set to a
bigger value (0x1000) in order to be able to change the dynamic loader's
path later. However, we shouldn't do that for partial linked objects
(when -r or -rU is used). That's because those objects will then have an
.interp section of 0x1000 even if it contains no data and when the final
linking is done we will end up with a "cannot move location counter
backwards" error. That's because the linker will try to squeeze all the data in
the .interp sections found in various partial linked objects into one 0x1000
bytes final .interp section.

[YOCTO #3264]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils/relocatable_sdk.patch