Re: .s files - different ways to compile it

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

 



> Eugene Teo <eugene.teo@eugeneteo.net> [2003-01-13 13:53]:
>
> I realised that I can compile it, just that when I have a label like
> _main, and when I specify .global _main, it won't compile. Let me read
> more of the docs.
> 

I do not know whether it addresses exactly your issue but you can
define your entry-function directly, i.e.

CFLAGS  = -fno-builtin -nostdinc
LDFLAGS = -e __start

somwhere.c

__start:
  movl etc etc

Try looking for the entry-function; you can also define this in linker
scripts.

HTH,
Lukas
-- 
Lukas Ruf
http://www.lpr.ch
Wanna know anything about raw ip? 
Join rawip@rawip.org on http://www.rawip.org
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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