Re: Set Location Counter to a new value in ld linker script

2018-04-08 Thread Yubin Ruan
On Thu, Apr 05, 2018 at 11:25:23AM +0800, Hao Lee wrote: > Hi, > > I'm confused about the location counter, especially when setting it to > a new value in the output section. > > I write a simple program and a linker script to make my question more > clear. The code is as follows: > >

Set Location Counter to a new value in ld linker script

2018-04-04 Thread Hao Lee
Hi, I'm confused about the location counter, especially when setting it to a new value in the output section. I write a simple program and a linker script to make my question more clear. The code is as follows: -test.s- section .text .globl _start _start: movq $1,