Skip to content

eld should warn/error when VMA/LMA is negative #264

@Ris-Bali

Description

@Ris-Bali

lld does emit a diagnostic in this case. To maintain compatibility eld should emit an error/warning in this case.

cat > 1.t << \!
SECTIONS {
  .foo (-0x201) : AT(-0x201) { *(.text.foo) }
}
!

cat > 1.c << \!
int foo() { return 0; }
!

hexagon-clang -c 1.c  -ffunction-sections
hexagon-link 1.o -T 1.t

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions