Skip to content

Linker fails with R_ARC_SDA32_ME for hs6x #569

Open
@BrunoASMauricio

Description

@BrunoASMauricio

When linking against metaware libraries (-lmw), the GNU linker throws out the following error against sbrk.o and tlsctorg.o:

arc64-elf-ld: error: linker symbol __SDATA_BEGIN__ not found
arc64-elf-ld: final link failed: bad value

The relocations causing the fault are

000000000004  001a0000001e R_ARC_SDA32_ME    0000000000000000 __mwheap_cur + 0
...
000000000092  001a0000001e R_ARC_SDA32_ME    0000000000000000 __mwheap_cur + 0

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions