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:
>
>
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,