Re: [edk2] gnu assembler question and EDK2 (R_X86_64_64 offsets)

2013-11-19 Thread Andrew Fish
On Nov 19, 2013, at 10:34 AM, Andrew Fish wrote: > > On Nov 19, 2013, at 9:34 AM, Stephen Polkowski wrote: > >> Hello, >> >> I'm building a #GP fault handler for a shell application. I named my >> file __gp_fault_handler.S and I added it to my inf file. Everything >> compiles and >>

Re: [edk2] gnu assembler question and EDK2 (R_X86_64_64 offsets)

2013-11-19 Thread Stephen Polkowski
Thank you Andrew. The pc relative addressing mode was the trick! movl $1, EXCEPTION_EXECUTE_HANDLER(%rip) Regards, Stephen Andrew Fish wrote: > > On Nov 19, 2013, at 9:34 AM, Stephen Polkowski > wrote: > >> Hello, >> >> I'm building a #GP fault handler

Re: [edk2] gnu assembler question and EDK2 (R_X86_64_64 offsets)

2013-11-19 Thread Andrew Fish
On Nov 19, 2013, at 9:34 AM, Stephen Polkowski wrote: > Hello, > > I'm building a #GP fault handler for a shell application. I named my > file __gp_fault_handler.S and I added it to my inf file. Everything compiles > and > the exception handler actually works. > > However, now I

Re: [edk2] gnu assembler question and EDK2 (R_X86_64_64 offsets)

2013-11-19 Thread Laszlo Ersek
On 11/19/13 18:34, Stephen Polkowski wrote: > Hello, > > I'm building a #GP fault handler for a shell application. I named my > file __gp_fault_handler.S and I added it to my inf file. Everything compiles > and > the exception handler actually works. > > However, now I want to set

[edk2] gnu assembler question and EDK2 (R_X86_64_64 offsets)

2013-11-19 Thread Stephen Polkowski
Hello, I'm building a #GP fault handler for a shell application. I named my file __gp_fault_handler.S and I added it to my inf file. Everything compiles and the exception handler actually works. However, now I want to set a global variable that is declared in a separate "C" fil