[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pgubook-readers] a question about linker script
From: |
Jonathan Bartlett |
Subject: |
Re: [Pgubook-readers] a question about linker script |
Date: |
Wed, 4 Aug 2004 07:30:35 -0700 (PDT) |
I didn't get the errors you got. I actually got it to work right by
modifying your opening lines from
movl $_etext
to
movl $msg
and
movl $_bss
to
movl $buf
I did "break 16".
After running, I did
x/s 0x30000
and got this result:
(gdb) break 16
Breakpoint 1 at 0x1001b: file hello.s, line 16.
(gdb) run
Starting program: /local/johnnyb/Test/hello
Breakpoint 1, b () at hello.s:16
16 movl $0,%ebx
Current language: auto; currently asm
(gdb) x/s &buf
0x30000 <buf>: "Hello Jonathan !\n"
(gdb) x/s 0x30000
0x30000 <buf>: "Hello Jonathan !\n"
(gdb)quit
Jon