Don't build base libraries and BIOS with -fPIC after all.
This commit is contained in:
parent
b7aff65ca9
commit
a4e14f1058
|
@ -146,7 +146,7 @@ class SoC(Module):
|
||||||
if size is not None:
|
if size is not None:
|
||||||
self.add_memory_region(name, address, size)
|
self.add_memory_region(name, address, size)
|
||||||
|
|
||||||
def register_rom(self, interface, rom_size=0x10000):
|
def register_rom(self, interface, rom_size=0xa000):
|
||||||
self.add_wb_slave(mem_decoder(self.mem_map["rom"]), interface)
|
self.add_wb_slave(mem_decoder(self.mem_map["rom"]), interface)
|
||||||
self.add_memory_region("rom", self.cpu_reset_address, rom_size)
|
self.add_memory_region("rom", self.cpu_reset_address, rom_size)
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ def get_cpu_mak(cpu_type):
|
||||||
clang = ""
|
clang = ""
|
||||||
elif cpu_type == "or1k":
|
elif cpu_type == "or1k":
|
||||||
triple = "or1k-linux"
|
triple = "or1k-linux"
|
||||||
cpuflags = "-fPIC -mhard-mul -mhard-div"
|
cpuflags = "-mhard-mul -mhard-div"
|
||||||
clang = "1"
|
clang = "1"
|
||||||
else:
|
else:
|
||||||
raise ValueError("Unsupported CPU type: "+cpu_type)
|
raise ValueError("Unsupported CPU type: "+cpu_type)
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
INCLUDE generated/output_format.ld
|
INCLUDE generated/output_format.ld
|
||||||
ENTRY(_start)
|
ENTRY(_start)
|
||||||
|
|
||||||
__DYNAMIC = 0;
|
|
||||||
|
|
||||||
INCLUDE generated/regions.ld
|
INCLUDE generated/regions.ld
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
@ -14,17 +12,6 @@ SECTIONS
|
||||||
_etext = .;
|
_etext = .;
|
||||||
} > rom
|
} > rom
|
||||||
|
|
||||||
.got :
|
|
||||||
{
|
|
||||||
_GLOBAL_OFFSET_TABLE_ = .;
|
|
||||||
*(.got)
|
|
||||||
} > rom
|
|
||||||
|
|
||||||
.got.plt :
|
|
||||||
{
|
|
||||||
*(.got.plt)
|
|
||||||
} > rom
|
|
||||||
|
|
||||||
.rodata :
|
.rodata :
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
Loading…
Reference in New Issue