This is the mail archive of the binutils@sourceware.org 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: ld warning, allocated section not in segment


Hi Vivek,

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 put together.


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).

Cheers
  Nick



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