[Bug ada/14115] New: 'pragma Linker_Section' stop working with gcc-3.2.1 or earlier

berndtrog at yahoo dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 11 20:45:00 GMT 2004


-- test.ads
package test is
   procedure test_1;
   pragma Linker_Section (
            Entity  => test_1,
            Section => ".my_section");

end;

-- test.adb
package body test is
   procedure test_1
   is
   begin
      null;
   end;
end;

$ gcc -v
Reading specs from /usr/gnat/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/specs
gcc version 2.8.1
(=> aka gnat-3.15p)

$ gcc -S test.adb
$ cat test.s
[..]
.section        .my_section,"ax",@progbits
[..]


Now with gcc version 3.4.0 20040210

$ gcc -S test.adb
test.ads:5:24: warning: section attributes are not supported for this target


Note:
Looks like ASM_OUTPUT_SECTION_NAME is no longer supported by the targets!

-- 
           Summary: 'pragma Linker_Section' stop working with gcc-3.2.1 or
                    earlier
           Product: gcc
           Version: 3.4.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-pc-linux


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



More information about the Gcc-bugs mailing list