From 367537507299e289d1441b5af53f47aa3297ece1 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 7 Apr 2017 11:43:05 +0200 Subject: Update riscv-gnu-toolchain to git rev 0c8f87d --- firmware/riscv.ld | 4 ++-- firmware/riscv_ld.diff | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'firmware') diff --git a/firmware/riscv.ld b/firmware/riscv.ld index 20fd2fb..3e7002d 100644 --- a/firmware/riscv.ld +++ b/firmware/riscv.ld @@ -1,5 +1,5 @@ /* Default linker script, for normal executables */ -/* Copyright (C) 2014-2016 Free Software Foundation, Inc. +/* Copyright (C) 2014-2017 Free Software Foundation, Inc. Copying and distribution of this script, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. */ @@ -125,7 +125,7 @@ SECTIONS we can shorten the on-disk segment size. */ .sdata : { - _gp = . + 0x800; + __global_pointer$ = . + 0x800; *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata .srodata.*) *(.sdata .sdata.* .gnu.linkonce.s.*) } diff --git a/firmware/riscv_ld.diff b/firmware/riscv_ld.diff index 104a245..511ecff 100644 --- a/firmware/riscv_ld.diff +++ b/firmware/riscv_ld.diff @@ -1,20 +1,20 @@ ---- <(riscv32-unknown-elf-ld -z nocombreloc -verbose) 2017-01-13 16:55:07.569030165 +0100 -+++ riscv.ld 2017-01-13 16:56:47.796761642 +0100 +--- <(riscv32-unknown-elf-ld -z nocombreloc -verbose) ++++ riscv.ld @@ -1,9 +1,3 @@ --GNU ld (GNU Binutils) 2.28.51.20170101 +-GNU ld (GNU Binutils) 2.28.0.20170322 - Supported emulations: - elf32lriscv - elf64lriscv -using internal linker script: -================================================== /* Default linker script, for normal executables */ - /* Copyright (C) 2014-2016 Free Software Foundation, Inc. + /* Copyright (C) 2014-2017 Free Software Foundation, Inc. Copying and distribution of this script, with or without modification, @@ -13,62 +7,26 @@ "elf32-littleriscv") OUTPUT_ARCH(riscv) ENTRY(_start) --SEARCH_DIR("/opt/new_riscv32i/riscv32-unknown-elf/lib"); +-SEARCH_DIR("/opt/riscv32i/riscv32-unknown-elf/lib"); SECTIONS { - /* Read-only sections, merged into text segment: */ -- cgit