Commit b2a64a7b authored by Vicent Marti's avatar Vicent Marti

ld.lua: fix parsing of base16 addresses

parent b495d2c3
...@@ -60,6 +60,7 @@ local function _find_load_address(path) ...@@ -60,6 +60,7 @@ local function _find_load_address(path)
path) path)
if addr then if addr then
addr = tonumber(addr, 16)
_find_load_address_cache[path] = addr _find_load_address_cache[path] = addr
end end
...@@ -84,6 +85,7 @@ local function _find_symbol(path, sym) ...@@ -84,6 +85,7 @@ local function _find_symbol(path, sym)
path, sym) path, sym)
if addr then if addr then
addr = tonumber(addr, 16)
symbols[sym] = addr symbols[sym] = addr
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment