From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Trenton D. Adams" To: "'eCos Discussion'" Subject: [ECOS] --entry= (slightly off topic) Date: Thu, 20 Sep 2001 15:09:00 -0000 Message-id: <002d01c14220$b81b7b40$090110ac@TRENT> X-SW-Source: 2001-09/msg00520.html I'm doing the following. stack_manager.s doesn't have any entry points, and I don't know how to make one. So, I figured I'd just pass --entry=0x0 to the linker which should create the entry at 0. arm-elf-gcc.exe -nostdlib -nostartfiles -O1 -Wl,--entry=0x0 stack_manager.s bootcode-J3-rev4.c stack_manager.s However, it ends up like this. 00008000 : 8000: e3a0d201 mov sp, #268435456 ; 0x10000000 8004: e38ddc96 orr sp, sp, #38400 ; 0x9600 8008: ebffffff bl 800c 8000 is the default entry point, and that's not what I want. I want 0x00000000. So, how do I either: - create an entry point in stack_manager.s - specify an entry point on the command line ??? I tried a start: label before the first instruction in the .s file, but that didn't work. Trenton D. Adams Extreme Engineering #17, 6025 - 12 St. SE Calgary, Alberta, Canada T2H 2K1 Phone: 403 640 9494 ext-208 Fax: 403 640 9599 http://www.extremeeng.com