bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/19106] os_region_check() is called too early


From: nickc at redhat dot com
Subject: [Bug ld/19106] os_region_check() is called too early
Date: Fri, 06 Nov 2015 12:06:33 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19106

--- Comment #7 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 8770
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8770&action=edit
Possible patch

Hi Martina,

> Testcase with .o files

Thanks.  Unfortunately that still fails for me.  Firstly libm.a was missing,
but I provided my own copy.  Then the version of gcc that I was using was too
new:

arm-elf-gcc -mcpu=cortex-m3 -Wl,--gc-sections  -flto=jobserver
-fuse-linker-plugin -Os  -L. -nostdlib  -Wl,-T,STM32_1.ld -Wl,-Map,myproc_1.map
-ggdb -g3 startup_stm32l1xx_hd.o stm32_init.o myproc.o crti.o crtbegin.o crt0.o
 -Wl,--start-group libgcc.a libc.a -Wl,--end-group crtend.o crtn.o -o
myproc_1.elf
lto1: fatal error: bytecode stream generated with LTO version 3.0 instead of
the expected 5.0
compilation terminated.

So I disabled LTO, and then the links worked. :-(

Rather than persist in trying to reproduce the problem then, I have decidec to
try creating a patch blind, based on the program flow analysis provided by
Christian.  So please could you try out this (untested!) patch and let me know
if it works for you ?

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]