bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/10111] strip .o using inline func, then armlink fails


From: amodra at bigpond dot net dot au
Subject: [Bug binutils/10111] strip .o using inline func, then armlink fails
Date: 29 Apr 2009 06:14:59 -0000

------- Additional Comments From amodra at bigpond dot net dot au  2009-04-29 
06:14 -------
This would appear to be due to strip replacing section symbols in test2.o

    18: 00000000     0 SECTION LOCAL  DEFAULT    5 i.CallTestInline2
..
    24: 00000000     0 SECTION LOCAL  DEFAULT    6 i.TestInline

with

     6: 00000000     0 SECTION LOCAL  DEFAULT    1 
     7: 00000000     0 SECTION LOCAL  DEFAULT    2 
     8: 00000000     0 SECTION LOCAL  DEFAULT    4 

You get one extra, for .comment, and the ones for i.CallTestInline2 and
i.TestInline sections no longer have names.  Presumably a bug in armlink fails
to interpret these section symbols properly.

This odd behaviour of strip is due to strip removing the section symbols (since
they are not used in any relocs), but bfd/elf.c:elf_map_symbols adds back a
section symbol for all normal sections.

You may be able to work around this by telling strip to keep the original
section symbols with the -K option.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
  GCC build triplet|make armlink                |
 GCC target triplet|arm                         |arm-elf
            Summary|sripe a .o using inline     |strip .o using inline func,
                   |func,the armlink but fail   |then armlink fails


http://sourceware.org/bugzilla/show_bug.cgi?id=10111

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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