gcc

Artur Frysiak wiget at pld.org.pl
Thu Aug 9 14:46:52 CEST 2001


On Thu, Aug 09, 2001 at 01:21:00PM +0200, Michal Moskal wrote:
> On Wed, Aug 08, 2001 at 06:20:57PM +0200, Mariusz Mazur wrote:
> > How do I convince gcc to produce pure bytecode (no elf headers,
> > sections or else).
> 
> You possibly gotta convince as, not gcc. AFAIK gas hasn't got such
> options, opposite to nasm (but this won't help you much...).
> Anyway, how do you think you will run it w/o relocation info and stuff?

It's not true.
>From etherboot Makefile:

# general rule for .bin (plain binary loader code), may be overridden
bin/%.bin:  bin/%.s
    $(AS32) $(ASFLAGS32) -o bin/$*.tmp $<
    $(OBJCOPY) -O binary bin/$*.tmp $@
    $(RM) bin/$*.tmp

AS32=as
ASFLAGS32=

Regards
-- 
Artur Frysiak
http://www.pld.org.pl/



More information about the pld-users-en mailing list