3.1.2-arm-linux-ld option

There are documents link.S, reads as follows

.text  
.global _start  
_start:         
          b   step1  
step1:  
          ldr pc, =step2  
step2:  
  b step2  

After compiling the following command

   arm-linux-gcc -o -c link.S link.o file generated link.o

   arm-linux-ld -Ttext 0x30000000 link.o -o link_elf_0x30000000

   arm-linux-objdump -D link_elf_0x30000000 > link_elf_0x30000000.dis

 

 Why machine code in the last column, there is a with the same address? 0x30000008

Whether the link specified by -Ttext code segment address 0x30000000 is to run the address of the code?

 

Guess you like

Origin www.cnblogs.com/cheyihaosky/p/11828704.html