ld warning, allocated section not in segment
Tue Nov 14 12:28:00 GMT 2006
>> ld: .tmp_vmlinux1: warning: allocated section `.smp_altinstr_replacement'
>> not in segment
> Does that mean that this is an undesired behaviour, hence a bug and has
> been fixed in latest binutils sources?
No. It means that the linker has found something that *might* indicate
that there is a problem. It is only a warning because the feature
detected by the linker might be something that you have intentionally
> First of all I don't even understand
> what does it mean?
It means that the linker has found a loadable section in the output file
which has not been assigned to a segment. This is a problem because the
run time loader program works in terms of segments. It loads them into
memory before starting the application. So if the application has a
section which needs to be loaded but which is not contained within a
segment, then it is probable that the application will not work.
So in your case the .smp_altinstr_replacement section is not being
associated with a segment. (Are you using a custom linker script ? If
so then the problem might be that you need to update the script to
specify which segment should hold the .smp_altinstr_replacement section).
More information about the Binutils