Using string literals

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Firestryke31
Member
Member
Posts: 550
Joined: Sat Nov 29, 2008 1:07 pm
Location: Throw a dart at central Texas
Contact:

Re: Using string literals

Post by Firestryke31 »

Aphex wrote:Out of curiosity, what makes you think I am not trying to execute a fully functioning executable or binary file?
Aphex wrote: ld -e _call_start -Ttext 0x1000 -o kernel.o main.o
ld -i -e _call_start -Ttext 0x1000 -o kernel.o main.o
The fact that you were specifying an .o file (intermediate object) to output, though once again I had not fully processed the thread and so was simply throwing a potential possibility out there. Without seeing the full process you use to compile your kernel in the order you perform it in (all I saw at a glance were a couple of commands scattered through your post) I could not tell for sure. AFAIK that does produce a "working" executable, just with an odd extension, but I was a bit pressed for time and could not think through what all those commands do.
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Using string literals

Post by Combuster »

Aphex wrote:Still, does anyone know a solution to the problem of my original post? I know its not really your job to solve such trivial questions so, I'll learn about linker scripts, can anyone reccomend and tutorials abotu linker scripts? I think they are hard to find.
I suggest you read my posts again... (especially the first)

Maybe I should fix the wikipedia page, since it suggests the wrong thing, and lacks some quality. (for one, the dictionary disagrees with WP; it equals a binary to an executable file, which is in some cases a subset of object files as mentioned above, but not the same as wikipedia suggests)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply