Top "Position-independent-code" questions

Why does GCC create a shared object instead of an executable binary according to file?

I have a library I am building. All of my objects compile and link successively when I run either one …

c gcc shared-libraries static-libraries position-independent-code
How to configure gcc to use -no-pie by default?

I want to compile the following program on Linux: .global _start .text _start: mov $1, %rax mov $1, %rdi mov $msg, %rsi …

gcc configuration ld gnu-assembler position-independent-code
What are the semantics of ADRP and ADRL instructions in ARM assembly?

ADRP Address of 4KB page at a PC-relative offset. ADRL Load a PC-relative address into a register. It is similar …

assembly arm arm64 instructions position-independent-code