Red Hat Bugzilla – Bug 510384
kernel link is not produce proper results for _end symbol
Last modified: 2009-08-12 16:55:06 EDT
The _end symbol in a kernel build is not correct. When building the 'mpc85xx_defconfig' on a v2.6.30 kernel the _end symbol is:
vmlinux:00001000 A _end
Building this same kernel w/gcc4.3 & binutils 22.214.171.124.9-8.fc10 from FC10 produce:
vmlinux:c0599000 A _end
It appears to be some issue with the ALIGN() directive in the linker script (arch/powerpc/kernel/vmlinux.lds) before the _end. If we remove the ALIGN directive the _end symbol has a reasonable value of:
vmlinux:c05d3018 A _end
I assume that this problem is the same as the one that you have reported on the bug-binutils mailing list:
It sounds like you have found a workaround for the problem. Do you still want this bug report left open ?
Yes I'd like it still open. While we have a workaround I dont consider it sufficient since the fact that we have a chicken/egg scenario here.
Older kernel linker scripts aren't going to know about all sections and thus have orphans. If newer binutils are going to place orphan sections at places that break things like _end we have an issue.
In which case, please could you put together a small testcase that reproduces the problem so that I can investigate further.
It looks like Alan Morda posted a patch and has applied it to mainline binutils CVS for this issue.
Do you mind back porting that to the fedora binutils and making a bug fix release
The commit info is here:
> Do you mind back porting that to the fedora binutils and making a bug fix
> release ?
Thanks. Any ability to get an updated package for fc11?
At Josh Boyer's recommendation I'm reopening this and pointing out that it was against F11.
binutils-126.96.36.199.2-18.fc11 has been submitted as an update for Fedora 11.
> Any ability to get an updated package for fc11?
Done. Update to binutils-188.8.131.52.2.18.fc11.
binutils-184.108.40.206.14-1.fc11 has been submitted as an update for Fedora 11.
binutils-220.127.116.11.14-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.