Re: [LinuxBIOS] [PATCH] v3: fix absolute calls from initram

2007-12-04 Thread Carl-Daniel Hailfinger
On 04.12.2007 19:40, Corey Osgood wrote: > Carl-Daniel Hailfinger wrote: > >> Absolute calls from initram were only working from the file which had >> _MAINOBJECT #defined. Calls from all other files ended up in nirvana >> because the compiler was not able to calculate the address of the >> wrap

Re: [LinuxBIOS] [PATCH] v3: fix absolute calls from initram

2007-12-04 Thread Corey Osgood
Carl-Daniel Hailfinger wrote: > Absolute calls from initram were only working from the file which had > _MAINOBJECT #defined. Calls from all other files ended up in nirvana > because the compiler was not able to calculate the address of the > wrapper for the absolute call. The linker tried, but fai

Re: [LinuxBIOS] [PATCH] v3: fix absolute calls from initram

2007-12-03 Thread Corey Osgood
Carl-Daniel Hailfinger wrote: > Absolute calls from initram were only working from the file which had > _MAINOBJECT #defined. Calls from all other files ended up in nirvana > because the compiler was not able to calculate the address of the > wrapper for the absolute call. The linker tried, but fai

Re: [LinuxBIOS] [PATCH] v3: fix absolute calls from initram

2007-12-03 Thread Carl-Daniel Hailfinger
On 04.12.2007 04:03, Peter Stuge wrote: > On Tue, Dec 04, 2007 at 03:39:58AM +0100, Carl-Daniel Hailfinger wrote: > >> -ret = execute_in_place(&archive, "normal/initram.o/segment0"); >> +ret = execute_in_place(&archive, "normal/initram/segment0"); >> > > This seems t

Re: [LinuxBIOS] [PATCH] v3: fix absolute calls from initram

2007-12-03 Thread Peter Stuge
On Tue, Dec 04, 2007 at 03:39:58AM +0100, Carl-Daniel Hailfinger wrote: > - ret = execute_in_place(&archive, "normal/initram.o/segment0"); > + ret = execute_in_place(&archive, "normal/initram/segment0"); This seems to have snuck in from another patch? //Peter -- linuxbi

[LinuxBIOS] [PATCH] v3: fix absolute calls from initram

2007-12-03 Thread Carl-Daniel Hailfinger
Absolute calls from initram were only working from the file which had _MAINOBJECT #defined. Calls from all other files ended up in nirvana because the compiler was not able to calculate the address of the wrapper for the absolute call. The linker tried, but failed miserably. Use the -combine flag a