From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10381 invoked by alias); 12 Apr 2008 12:17:25 -0000 Received: (qmail 10322 invoked by uid 48); 12 Apr 2008 12:16:40 -0000 Date: Sat, 12 Apr 2008 12:17:00 -0000 Message-ID: <20080412121640.10321.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/18680] pragma Linker_Section problems In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sam at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg00874.txt.bz2 ------- 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