Skip to content

Add support for -z text #832

@quic-seaswara

Description

@quic-seaswara

-z text support is missing or is broken.

Test

cat > 1.s << \!
.section .text.foo
.global foo
foo:
.word 100
.text
.word foo
!

clang -c 1.s
ld.eld 1.o -z text -shared
ld.lld 1.o -z text -shared

lld fails correctly with the error below

ld.lld: error: relocation R_ARM_ABS32 cannot be used against symbol 'foo'; recompile with -fPIC

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions