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

2008-03-04 Thread wilson at tuliptree dot org
--- Additional Comments From wilson at tuliptree dot org 2008-03-05 01:45 --- Subject: Re: pushsection/popsection doesn't work on Itanium hjl dot tools at gmail dot com wrote: > asm (".section .parasections, \"ax\", @progbits"); I would suggest something like asm (".section .par

[Bug ld/5866] LD Does not Set GP Size of Archive Modules

2008-03-04 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-03-05 01:07 --- (In reply to comment #5) > Unfortunately, x86 doesn't have a GP register proper. MIPS and PPC and > possibly > IPF do though. > What is the expect result on MIPS/PPC/IPF? -- http://sourceware.org/bug

[Bug ld/5866] LD Does not Set GP Size of Archive Modules

2008-03-04 Thread evandro at yahoo dot com
--- Additional Comments From evandro at yahoo dot com 2008-03-05 00:11 --- "-G size" sets the global g_switch_value in LD. This value is used to with bfd_set_gp_size in ldlang_add_file for regular modules. However, ldlang_add_file is never called for archived modules. Unfortunately, x

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

2008-03-04 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-03-05 00:02 --- It works for me: [EMAIL PROTECTED] tmp]$ gcc -c x.c [EMAIL PROTECTED] tmp]$ readelf -S x.o There are 14 section headers, starting at offset 0x2f0: Section Headers: [Nr] Name Type

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

2008-03-04 Thread hjl dot tools at gmail dot com
-- What|Removed |Added CC||hjl dot tools at gmail dot ||com http://sourceware.org/bugzilla

[Bug ld/5866] LD Does not Set GP Size of Archive Modules

2008-03-04 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-03-04 23:51 --- How can I reproduce it on Linux/x86-64? What target should I use? Linker manual says: `-GVALUE' `--gpsize=VALUE' Set the maximum size of objects to be optimized using the GP register to SIZE. Thi

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

2008-03-04 Thread fenghua dot yu at intel dot com
-- What|Removed |Added GCC host triplet||Itanium GCC target triplet||Itanium http://sourceware.org/bugzilla/show_bug.cgi?i

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

2008-03-04 Thread fenghua dot yu at intel dot com
On RHEL5.1, compile the following gcc code. The compiled ELF code doesn't contain parasection which is defined by pushsection/popsection in the gcc code. The compiled .o file still contains parasection. But the linked ELF loses the section. If changing linker to ld V2.18, the issue is still exis

[Bug ld/5866] LD Does not Set GP Size of Archive Modules

2008-03-04 Thread evandro at yahoo dot com
-- What|Removed |Added CC||hjl dot tools at gmail dot ||com http://sourceware.org/bugzilla

[Bug ld/5866] LD Does not Set GP Size of Archive Modules

2008-03-04 Thread evandro at yahoo dot com
--- Additional Comments From evandro at yahoo dot com 2008-03-04 17:29 --- Instructions to reproduce this issue: as d.s -o d.o as e.s -o e.o ar r e.a e.o The command below results in both "e4" and "ef" to be placed in .bss: ld d.o e.a Whereas the command below correctly places "e4" i

[Bug ld/5866] LD Does not Set GP Size of Archive Modules

2008-03-04 Thread evandro at yahoo dot com
--- Additional Comments From evandro at yahoo dot com 2008-03-04 17:27 --- Created an attachment (id=2304) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2304&action=view) Archived module -- http://sourceware.org/bugzilla/show_bug.cgi?id=5866 --- You are receiving this

[Bug ld/5866] LD Does not Set GP Size of Archive Modules

2008-03-04 Thread evandro at yahoo dot com
--- Additional Comments From evandro at yahoo dot com 2008-03-04 17:26 --- Created an attachment (id=2303) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2303&action=view) Regular module -- http://sourceware.org/bugzilla/show_bug.cgi?id=5866 --- You are receiving this m

[Bug ld/5866] New: LD Does not Set GP Size of Archive Modules

2008-03-04 Thread evandro at yahoo dot com
It seems that calling bfd_get_gp_size always returns 0 for a module found in an archive, no matter the value passed to LD via the -G option. The result is that when deciding whether to place public common symbols in the small BSS section or in the regular one, if such symbols reside in an archived

[Bug gas/5860] Error: too many positional arguments

2008-03-04 Thread amodra at bigpond dot net dot au
--- Additional Comments From amodra at bigpond dot net dot au 2008-03-04 09:53 --- Please attach a test case. Your bug report doesn't make sense. You say you are using #define, ie. C preprocessor macros, but complain about a gas macro error message. -- What|Removed