public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug ada/18680] New: pragma Linker_Section problems @ 2004-11-26 13:29 berndtrog at yahoo dot com 2004-11-26 15:23 ` [Bug ada/18680] " pinskia at gcc dot gnu dot org 2004-11-26 15:45 ` berndtrog at yahoo dot com 0 siblings, 2 replies; 7+ messages in thread From: berndtrog at yahoo dot com @ 2004-11-26 13:29 UTC (permalink / raw) To: gcc-bugs Hello, there seems to be still a problem with 'pragma Linker_Section': package test is eeprom : constant String := "12345678901234567"; -- 17 byte pragma Linker_Section (Entity => eeprom, Section => ".eeprom"); type Eeprom_String is new String; pragma Linker_Section (Entity => Eeprom_String, Section => ".eeprom"); Data_1 : constant Eeprom_String := "12345678901234567"; -- 17 byte Data_2 : constant String := "1234567890123456"; -- 16 byte pragma Linker_Section (Entity => Data_2, Section => ".eeprom"); end; $ gcc -c test.ads $ readelf -a test.o [..] Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .text PROGBITS 00000000 000034 000000 00 AX 0 0 4 [ 2] .data PROGBITS 00000000 000034 000022 00 WA 0 0 4 [ 3] .bss NOBITS 00000000 000058 000000 00 WA 0 0 4 [ 4] .eeprom PROGBITS 00000000 000058 000011 00 WA 0 0 1 [..] Symbol table '.symtab' contains 12 entries: Num: Value Size Type Bind Vis Ndx Name [..] 9: 00000000 17 OBJECT GLOBAL DEFAULT 4 test__eeprom 10: 00000001 17 OBJECT GLOBAL DEFAULT 2 test__data_1 11: 00000012 16 OBJECT GLOBAL DEFAULT 2 test__data_2 The problems I can see are: 1. The minimum usable length is 17 byte! 2. gcc ignors 'pragma Linker_Section' for types. gcc version 4.0.0 20041123 (experimental) -- Summary: pragma Linker_Section problems Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: berndtrog at yahoo dot com CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: i686-gnu-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18680 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/18680] pragma Linker_Section problems 2004-11-26 13:29 [Bug ada/18680] New: pragma Linker_Section problems berndtrog at yahoo dot com @ 2004-11-26 15:23 ` pinskia at gcc dot gnu dot org 2004-11-26 15:45 ` berndtrog at yahoo dot com 1 sibling, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-11-26 15:23 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-26 15:23 ------- *** This bug has been marked as a duplicate of 10670 *** -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18680 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/18680] pragma Linker_Section problems 2004-11-26 13:29 [Bug ada/18680] New: pragma Linker_Section problems berndtrog at yahoo dot com 2004-11-26 15:23 ` [Bug ada/18680] " pinskia at gcc dot gnu dot org @ 2004-11-26 15:45 ` berndtrog at yahoo dot com 1 sibling, 0 replies; 7+ messages in thread From: berndtrog at yahoo dot com @ 2004-11-26 15:45 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From berndtrog at yahoo dot com 2004-11-26 15:45 ------- >This is also a dup of bug 10670. Please note that PR10670 is about a broken 'pragma Machine_Attribute', not about 'pragma Linker_Section'. (It *may* be related to PR14115) -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18680 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-18680-283@http.gcc.gnu.org/bugzilla/>]
* [Bug ada/18680] pragma Linker_Section problems [not found] <bug-18680-283@http.gcc.gnu.org/bugzilla/> @ 2008-04-12 12:17 ` sam at gcc dot gnu dot org 2008-04-12 12:36 ` sam at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 7+ messages in thread From: sam at gcc dot gnu dot org @ 2008-04-12 12:17 UTC (permalink / raw) To: gcc-bugs ------- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/18680] pragma Linker_Section problems [not found] <bug-18680-283@http.gcc.gnu.org/bugzilla/> 2008-04-12 12:17 ` sam at gcc dot gnu dot org @ 2008-04-12 12:36 ` sam at gcc dot gnu dot org 2008-04-14 13:43 ` sam at gcc dot gnu dot org 2008-04-14 16:47 ` sam at gcc dot gnu dot org 3 siblings, 0 replies; 7+ messages in thread From: sam at gcc dot gnu dot org @ 2008-04-12 12:36 UTC (permalink / raw) To: gcc-bugs -- sam at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |sam at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2008-04-12 12:16:40 |2008-04-12 12:35:59 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18680 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/18680] pragma Linker_Section problems [not found] <bug-18680-283@http.gcc.gnu.org/bugzilla/> 2008-04-12 12:17 ` sam at gcc dot gnu dot org 2008-04-12 12:36 ` sam at gcc dot gnu dot org @ 2008-04-14 13:43 ` sam at gcc dot gnu dot org 2008-04-14 16:47 ` sam at gcc dot gnu dot org 3 siblings, 0 replies; 7+ messages in thread From: sam at gcc dot gnu dot org @ 2008-04-14 13:43 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from sam at gcc dot gnu dot org 2008-04-14 13:42 ------- Subject: Bug 18680 Author: sam Date: Mon Apr 14 13:41:25 2008 New Revision: 134266 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134266 Log: gcc/ada/ PR ada/18680 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to apply pragma Linker_Section on type. gcc/testsuite/ PR ada/18680 * gnat.dg/specs/linker_section.ads: New. Added: trunk/gcc/testsuite/gnat.dg/specs/linker_section.ads Modified: trunk/gcc/ada/ChangeLog trunk/gcc/ada/sem_prag.adb trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18680 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/18680] pragma Linker_Section problems [not found] <bug-18680-283@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2008-04-14 13:43 ` sam at gcc dot gnu dot org @ 2008-04-14 16:47 ` sam at gcc dot gnu dot org 3 siblings, 0 replies; 7+ messages in thread From: sam at gcc dot gnu dot org @ 2008-04-14 16:47 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from sam at gcc dot gnu dot org 2008-04-14 16:46 ------- This is fixed in the current SVN tree. -- sam at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18680 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-04-14 16:47 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-11-26 13:29 [Bug ada/18680] New: pragma Linker_Section problems berndtrog at yahoo dot com 2004-11-26 15:23 ` [Bug ada/18680] " pinskia at gcc dot gnu dot org 2004-11-26 15:45 ` berndtrog at yahoo dot com [not found] <bug-18680-283@http.gcc.gnu.org/bugzilla/> 2008-04-12 12:17 ` sam at gcc dot gnu dot org 2008-04-12 12:36 ` sam at gcc dot gnu dot org 2008-04-14 13:43 ` sam at gcc dot gnu dot org 2008-04-14 16:47 ` sam at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).