Error: LD: symbol not found: '__data_start'
Alexander Tormasov
a.tormasov at innopolis.ru
Mon Jun 21 22:26:20 CEST 2021
>
> I'm very sorry that I overlooked that hard assignment. In commit [1] (on
> the staging branch), I changed it to a ?= assignment to make the
> variable customizable. Can you give it a try?
>
what I have as command line after patch:
genode-x86-g++ -Wl,-melf_x86_64 -Wl,-gc-sections -Wl,-z -Wl,max-page-size=0x1000 -Wl,--dynamic-list=/var/services/homes/admin/gen/21.05/repos/base/src/ld/genode_dyn.dl -nostdlib -Wl,-nostdlib -Wl,-Ttext=0x01000000 -m64 -mcmodel=large -Wl,--dynamic-linker=ld.lib.so -Wl,--eh-frame-hdr -Wl,-rpath-link=. -Wl,-T -Wl,/var/services/homes/admin/gen/21.05/repos/world/src/test/go_app/genode_dyn.ld …
seems that this is ok, code start working again
and, I found another, simpler solution than usage of own script.
I will add this line to lib/import/import-libgo_support.mk
LD_OPT += --defsym=__data_start=_parent_cap
which will efficiently define alias __data_start to already defined in ld script _parent_cap
Sincerely,
Alexander
More information about the users
mailing list