------- Comment #3 from sam at gcc dot gnu dot org  2008-04-12 12:16 -------
With current GCC 4.4.0 (20080411), Data_2 is correctly placed into .eeprom:

% readelf test.o
Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf
Al
[...]
  [ 4] .eeprom           PROGBITS        00000000 000038 000021 00   A  0   0 
1
  [ 5] .rodata           PROGBITS        00000000 000059 000011 00   A  0   0 
1
[...]
Symbol table '.symtab' contains 13 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
[...]
    10: 00000000    17 OBJECT  GLOBAL DEFAULT    4 test__eeprom
    11: 00000000    17 OBJECT  GLOBAL DEFAULT    5 test__data_1
    12: 00000011    16 OBJECT  GLOBAL DEFAULT    4 test__data_2

However, the problem with pragma linker_section not applying on types (while
not failing at compile time) remains.


-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-04-12 12:16:40
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18680

Reply via email to