bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/5871] pushsection/popsection doesn't work on Itanium


From: hjl dot tools at gmail dot com
Subject: [Bug ld/5871] pushsection/popsection doesn't work on Itanium
Date: 5 Mar 2008 00:02:36 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2008-03-05 
00:02 -------
It works for me:

address@hidden tmp]$ gcc -c x.c
address@hidden tmp]$ readelf -S x.o
There are 14 section headers, starting at offset 0x2f0:

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
  [ 1] .text             PROGBITS         0000000000000000  00000040
       0000000000000180  0000000000000000  AX       0     0     16
  [ 2] .rela.text        RELA             0000000000000000  000007c0
       0000000000000030  0000000000000018          12     1     8
  [ 3] .data             PROGBITS         0000000000000000  000001c0
       0000000000000000  0000000000000000  WA       0     0     1
  [ 4] .bss              NOBITS           0000000000000000  000001c0
       0000000000000000  0000000000000000  WA       0     0     1
  [ 5] .IA_64.unwind_inf PROGBITS         0000000000000000  000001c0
       0000000000000038  0000000000000000   A       0     0     8
  [ 6] .IA_64.unwind     IA_64_UNWIND     0000000000000000  000001f8
       0000000000000048  0000000000000000  AL       1     1     8
  [ 7] .rela.IA_64.unwin RELA             0000000000000000  000007f0
       00000000000000d8  0000000000000018          12     6     8
  [ 8] .parasections     PROGBITS         0000000000000000  00000240
       0000000000000000  0000000000000000           0     0     1

However, .parasections doesn't have any bits in flags. If I add

 asm (".section .parasections, \"ax\", @progbits");

I got

address@hidden tmp]$ gcc -c x.c
address@hidden tmp]$ objdump -d x.o
...
Disassembly of section .parasections:

0000000000000000 <.parasections>:
   0:   01 20 01 48 00 21       [MII]       mov r36=r36
   6:   00 00 00 02 00 00                   nop.i 0x0
   c:   00 00 04 00                         nop.i 0x0;;
address@hidden tmp]$ 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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

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