bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/1038] resolution of weak symbol not left for the linker if valu


From: j at uriah dot heep dot sax dot de
Subject: [Bug gas/1038] resolution of weak symbol not left for the linker if value is already known
Date: 20 Sep 2010 05:16:50 -0000

------- Additional Comments From j at uriah dot heep dot sax dot de  2010-09-20 
05:16 -------
In reply to comment #2:

> This is an old bug. Do you still happen to have a test case for this?

The testcase from the original posting is still valid.  I've put it into
a compilable file, see attachment.  Compile with:

avr-gcc -mmcu=atmega8 -c bug1038.S

Disassemble the result:

% avr-objdump -d bug1038.o

bug1038.o:     file format elf32-avr


Disassembly of section .text:

00000000 <.text>:
   0:   cf e5           ldi     r28, 0x5F       ; 95
   2:   d4 e0           ldi     r29, 0x04       ; 4
   4:   de bf           out     0x3e, r29       ; 62
   6:   cd bf           out     0x3d, r28  

As can be seen, the assembler already resolved the weak symbol __stack
(despite as marking it as weak in the symbol table), and inserted the
(compile-time) constant RAMEND.

-- 


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

------- 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]