RE: x86 assembly - linking order query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: x86 assembly - linking order query

>> ------
>> extern void AsmFn1(void);
>>
>> int main(void)
>> {
>>         AsmFn1();
>>         return 0;
>> }


>You have not used "ret" instruction in AsmFn2, I guess it will cause
>undefined behavior. I think it has nothing to do with how you compile
>the code. It works perfectly after adding ret instruction at the end
>of AsmFn2. Correct me if I am missing something here.


Thanks. That was the problem, I didn't notice that. Sorry for the stupid question..


--
Sudheer


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux