public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
       [not found] <bug-32219-4@http.gcc.gnu.org/bugzilla/>
@ 2012-06-28 22:51 ` aldot at gcc dot gnu.org
  2012-09-01 15:19 ` mikpe at it dot uu.se
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: aldot at gcc dot gnu.org @ 2012-06-28 22:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> 2012-06-28 22:49:52 UTC ---
Created attachment 27716
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27716
testcase

This was (accidentally) fixed on for at least 4.7 ff but without adding a
testcase like the attached.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
       [not found] <bug-32219-4@http.gcc.gnu.org/bugzilla/>
  2012-06-28 22:51 ` [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking aldot at gcc dot gnu.org
@ 2012-09-01 15:19 ` mikpe at it dot uu.se
  2015-02-06 16:24 ` [Bug rtl-optimization/32219] " hjl.tools at gmail dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: mikpe at it dot uu.se @ 2012-09-01 15:19 UTC (permalink / raw)
  To: gcc-bugs

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

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #14 from Mikael Pettersson <mikpe at it dot uu.se> 2012-09-01 15:17:28 UTC ---
(In reply to comment #13)
> This was (accidentally) fixed on for at least 4.7 ff but without adding a
> testcase like the attached.

Are you sure it's been fixed? The test case segfaults for me on x86_64-linux
when compiled by 4.8-20120826, 4.7-20120825, or 4.6-20120810, with -O1 -m32 and
-fPIC or -fPIE. Without -m32 it doesn't segfault.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug rtl-optimization/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
       [not found] <bug-32219-4@http.gcc.gnu.org/bugzilla/>
  2012-06-28 22:51 ` [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking aldot at gcc dot gnu.org
  2012-09-01 15:19 ` mikpe at it dot uu.se
@ 2015-02-06 16:24 ` hjl.tools at gmail dot com
  2015-02-13  4:53 ` rth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: hjl.tools at gmail dot com @ 2015-02-06 16:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |rtl-optimization

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at

https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00410.html


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug rtl-optimization/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
       [not found] <bug-32219-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-02-06 16:24 ` [Bug rtl-optimization/32219] " hjl.tools at gmail dot com
@ 2015-02-13  4:53 ` rth at gcc dot gnu.org
  2015-02-13  4:58 ` rth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 19+ messages in thread
From: rth at gcc dot gnu.org @ 2015-02-13  4:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219

--- Comment #16 from Richard Henderson <rth at gcc dot gnu.org> ---
Author: rth
Date: Fri Feb 13 04:52:45 2015
New Revision: 220674

URL: https://gcc.gnu.org/viewcvs?rev=220674&root=gcc&view=rev
Log:
PR rtl/32219

gcc/
    * cgraphunit.c (cgraph_node::finalize_function): Set definition
    before notice_global_symbol.
    (varpool_node::finalize_decl): Likewise.
    * varasm.c (default_binds_local_p_2): Rename from
    default_binds_local_p_1, add weak_dominate argument.  Use direct
    returns instead of assigning to local variable.  Unify varpool and
    cgraph paths via symtab_node.  Reject undef weak variables before
    testing visibility.  Reorder tests for simplicity.
    (default_binds_local_p): Use default_binds_local_p_2.
    (default_binds_local_p_1): Likewise.
    (decl_binds_to_current_def_p): Unify varpool and cgraph paths
    via symtab_node.
    (default_elf_asm_output_external): Emit visibility when specified.
gcc/testsuite/
    * gcc.dg/visibility-22.c: New test.
    * gcc.dg/visibility-23.c: New test.
    * gcc.target/i386/pr32219-1.c: New test.
    * gcc.target/i386/pr32219-2.c: New test.
    * gcc.target/i386/pr32219-3.c: New test.
    * gcc.target/i386/pr32219-4.c: New test.
    * gcc.target/i386/pr32219-5.c: New test.
    * gcc.target/i386/pr32219-6.c: New test.
    * gcc.target/i386/pr32219-7.c: New test.
    * gcc.target/i386/pr32219-8.c: New test.
    * gcc.target/i386/pr64317.c: Expect GOTOFF, not GOT.

Added:
    trunk/gcc/testsuite/gcc.dg/visibility-22.c
    trunk/gcc/testsuite/gcc.dg/visibility-23.c
    trunk/gcc/testsuite/gcc.target/i386/pr32219-1.c
    trunk/gcc/testsuite/gcc.target/i386/pr32219-2.c
    trunk/gcc/testsuite/gcc.target/i386/pr32219-3.c
    trunk/gcc/testsuite/gcc.target/i386/pr32219-4.c
    trunk/gcc/testsuite/gcc.target/i386/pr32219-5.c
    trunk/gcc/testsuite/gcc.target/i386/pr32219-6.c
    trunk/gcc/testsuite/gcc.target/i386/pr32219-7.c
    trunk/gcc/testsuite/gcc.target/i386/pr32219-8.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraphunit.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr64317.c
    trunk/gcc/varasm.c


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug rtl-optimization/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
       [not found] <bug-32219-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-02-13  4:53 ` rth at gcc dot gnu.org
@ 2015-02-13  4:58 ` rth at gcc dot gnu.org
  2015-02-16 16:18 ` pthaugen at gcc dot gnu.org
  2015-02-16 18:50 ` pthaugen at gcc dot gnu.org
  6 siblings, 0 replies; 19+ messages in thread
From: rth at gcc dot gnu.org @ 2015-02-13  4:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219

Richard Henderson <rth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rth at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #17 from Richard Henderson <rth at gcc dot gnu.org> ---
Fixed.  Thanks for the work on this one, HJ.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug rtl-optimization/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
       [not found] <bug-32219-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2015-02-13  4:58 ` rth at gcc dot gnu.org
@ 2015-02-16 16:18 ` pthaugen at gcc dot gnu.org
  2015-02-16 18:50 ` pthaugen at gcc dot gnu.org
  6 siblings, 0 replies; 19+ messages in thread
From: pthaugen at gcc dot gnu.org @ 2015-02-16 16:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219

Pat Haugen <pthaugen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pthaugen at gcc dot gnu.org

--- Comment #18 from Pat Haugen <pthaugen at gcc dot gnu.org> ---
The following error started with r220674 on powerpc64-linux when trying to
build 447.dealII from CPU2006 with -m64.

/usr/bin/ld: exceptions.o: In function `ExceptionBase::what() const':
exceptions.cc:(.text+0xda0): unresolvable R_PPC64_TOC16_HA against
`std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>::~basic_string()@@GLIBCXX_3.4.21'
/usr/bin/ld: exceptions.cc:(.text+0xdac): unresolvable R_PPC64_TOC16_LO against
`std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>::~basic_string()@@GLIBCXX_3.4.21'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug rtl-optimization/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
       [not found] <bug-32219-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2015-02-16 16:18 ` pthaugen at gcc dot gnu.org
@ 2015-02-16 18:50 ` pthaugen at gcc dot gnu.org
  6 siblings, 0 replies; 19+ messages in thread
From: pthaugen at gcc dot gnu.org @ 2015-02-16 18:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219

--- Comment #20 from Pat Haugen <pthaugen at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #19)
> 
> Can you try fix in PR 65074?

Yes, that fixes the problem.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
                   ` (10 preceding siblings ...)
  2010-03-16 13:35 ` aldot at gcc dot gnu dot org
@ 2010-06-30 11:53 ` ncopa at alpinelinux dot org
  11 siblings, 0 replies; 19+ messages in thread
From: ncopa at alpinelinux dot org @ 2010-06-30 11:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from ncopa at alpinelinux dot org  2010-06-30 11:52 -------
whats the status on this bug? It still happens on gcc-4.4.4.


-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
                   ` (9 preceding siblings ...)
  2010-03-09 12:39 ` rguenth at gcc dot gnu dot org
@ 2010-03-16 13:35 ` aldot at gcc dot gnu dot org
  2010-06-30 11:53 ` ncopa at alpinelinux dot org
  11 siblings, 0 replies; 19+ messages in thread
From: aldot at gcc dot gnu dot org @ 2010-03-16 13:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from aldot at gcc dot gnu dot org  2010-03-16 13:35 -------
(In reply to comment #10)
> Well, simply re-ordering the visibility and the weak check in
> varasm.c:default_binds_local_p_1 should do the trick.
> 
It does.
http://gcc.gnu.org/ml/gcc-patches/2010-03/msg00665.html


-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
                   ` (8 preceding siblings ...)
  2010-03-08 19:28 ` aldot at gcc dot gnu dot org
@ 2010-03-09 12:39 ` rguenth at gcc dot gnu dot org
  2010-03-16 13:35 ` aldot at gcc dot gnu dot org
  2010-06-30 11:53 ` ncopa at alpinelinux dot org
  11 siblings, 0 replies; 19+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-09 12:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2010-03-09 12:39 -------
Well, simply re-ordering the visibility and the weak check in
varasm.c:default_binds_local_p_1 should do the trick.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
                   ` (7 preceding siblings ...)
  2009-12-29 23:20 ` castet dot matthieu at free dot fr
@ 2010-03-08 19:28 ` aldot at gcc dot gnu dot org
  2010-03-09 12:39 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 19+ messages in thread
From: aldot at gcc dot gnu dot org @ 2010-03-08 19:28 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]



------- Comment #9 from aldot at gcc dot gnu dot org  2010-03-08 19:28 -------
(In reply to comment #8)
> What's the status of this bug ?

we currently still end up with
call 0
on e.g. i386

> The same things can happen in libraries with fpic

yes. Thing is that we could theoretically work around it by explicitly looking
at the addr ¹) but that's just plain disgusting imho. And the hardened guys
will not like the idea to drop DOPIC (i.e. build members of .a without PIC).

So.. What's the status of that bug? Current binutils-2.20 and somewhat current
gcc basically generate "wrong" code, or at least code that behaves in an
unpleasant way causing grief..

¹) https://bugs.uClibc.org/1033

thanks and cheers,


-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-08 19:28:29
               date|                            |


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
                   ` (6 preceding siblings ...)
  2008-02-25 22:17 ` hjl dot tools at gmail dot com
@ 2009-12-29 23:20 ` castet dot matthieu at free dot fr
  2010-03-08 19:28 ` aldot at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 19+ messages in thread
From: castet dot matthieu at free dot fr @ 2009-12-29 23:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from castet dot matthieu at free dot fr  2009-12-29 23:20 -------
What's the status of this bug ?
The same things can happen in libraries with fpic


-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
                   ` (5 preceding siblings ...)
  2008-02-23 23:12 ` hjl dot tools at gmail dot com
@ 2008-02-25 22:17 ` hjl dot tools at gmail dot com
  2009-12-29 23:20 ` castet dot matthieu at free dot fr
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 19+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-02-25 22:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from hjl dot tools at gmail dot com  2008-02-25 22:16 -------
It is a compiler bug after all. From:

http://groups.google.com/group/generic-abi/browse_thread/thread/4364eb484397ebe0

A hidden symbol must be defined in the same component, *if it is  
defined at all*. That last part is the key to the issue. In the case  
of a WEAK HIDDEN UNDEF symbol, it is possible for the symbol to remain  
undefined (or, looked at another way, it is possible for the symbol to  
be defined at link time as an absolute symbol with value 0). I agree  
with Daniel; the compiler should be aware of this possibility and  
generate code that will not require a dynamic relocation for this case.

For a weak and hidden symbol, it is bound local only if PIC is false or
it is used for branch. Otherwise, it should be treated with default
visibility.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |
            Version|4.2.1                       |4.3.0


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
                   ` (4 preceding siblings ...)
  2008-02-23 21:10 ` pluto at agmk dot net
@ 2008-02-23 23:12 ` hjl dot tools at gmail dot com
  2008-02-25 22:17 ` hjl dot tools at gmail dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 19+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-02-23 23:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from hjl dot tools at gmail dot com  2008-02-23 23:12 -------
Weak and hidden aren't really compatible. Linker should enforce it.
I opened a linker bug:

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

As for gcc, I think it is OK since it is a user error and linker
should issue an error. Besides, gcc doesn't know if the .o
file will be used for PIE/shared library or normal executable.
The runtime error only happens with PIE/shared library, not
normal executable.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://sourceware.org/bugzil
                   |                            |la/show_bug.cgi?id=5789
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
                   ` (3 preceding siblings ...)
  2007-06-05 14:13 ` pluto at agmk dot net
@ 2008-02-23 21:10 ` pluto at agmk dot net
  2008-02-23 23:12 ` hjl dot tools at gmail dot com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 19+ messages in thread
From: pluto at agmk dot net @ 2008-02-23 21:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pluto at agmk dot net  2008-02-23 21:09 -------
(In reply to comment #3)
> (In reply to comment #2)
> 
> > Also you should be using -PIE when linking.
> 
> hmm, it doesn't work with int main();
> 
> $ gcc -s main.c -fpie -Wl,-pie
> /usr/bin/ld: /usr/lib64/crt1.o: relocation R_X86_64_32S against
> `__libc_csu_fini' can not be used when making a shared object;
>  recompile with -fPIC
> /usr/lib64/crt1.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> 
> huh, glibc bug, linker bug?

with gcc-4.2.3 and binutils-2.18.50.0.4 it links fine.


-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
                   ` (2 preceding siblings ...)
  2007-06-05 14:10 ` pluto at agmk dot net
@ 2007-06-05 14:13 ` pluto at agmk dot net
  2008-02-23 21:10 ` pluto at agmk dot net
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 19+ messages in thread
From: pluto at agmk dot net @ 2007-06-05 14:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pluto at agmk dot net  2007-06-05 14:13 -------
(In reply to comment #2)
> f always will bind local ...

so, should gcc reject weak attribute in this (hidden visibility) case?


-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
  2007-06-05 12:53 ` [Bug target/32219] " pluto at agmk dot net
  2007-06-05 13:30 ` pinskia at gcc dot gnu dot org
@ 2007-06-05 14:10 ` pluto at agmk dot net
  2007-06-05 14:13 ` pluto at agmk dot net
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 19+ messages in thread
From: pluto at agmk dot net @ 2007-06-05 14:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pluto at agmk dot net  2007-06-05 14:10 -------
(In reply to comment #2)

> Also you should be using -PIE when linking.

hmm, it doesn't work with int main();

$ gcc -s main.c -fpie -Wl,-pie
/usr/bin/ld: /usr/lib64/crt1.o: relocation R_X86_64_32S against
`__libc_csu_fini' can not be used when making a shared object;
 recompile with -fPIC
/usr/lib64/crt1.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

huh, glibc bug, linker bug?


-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
  2007-06-05 12:53 ` [Bug target/32219] " pluto at agmk dot net
@ 2007-06-05 13:30 ` pinskia at gcc dot gnu dot org
  2007-06-05 14:10 ` pluto at agmk dot net
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-05 13:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-06-05 13:30 -------
f always will bind local ...
Also you should be using -PIE when linking.


-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
  2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
@ 2007-06-05 12:53 ` pluto at agmk dot net
  2007-06-05 13:30 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 19+ messages in thread
From: pluto at agmk dot net @ 2007-06-05 12:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pluto at agmk dot net  2007-06-05 12:53 -------
btw, imho the weak+hidden is not a valid combination.
such symbol can't be resolved in runtime because it doesn't exist
in elf rel.plt/rel.dyn tables. it can be resolved only during
linking several objects into one piece (e.g. exec/shlib),
but in such case the weak+hidden behaves like plain hidden.


-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-02-16 18:50 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-32219-4@http.gcc.gnu.org/bugzilla/>
2012-06-28 22:51 ` [Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking aldot at gcc dot gnu.org
2012-09-01 15:19 ` mikpe at it dot uu.se
2015-02-06 16:24 ` [Bug rtl-optimization/32219] " hjl.tools at gmail dot com
2015-02-13  4:53 ` rth at gcc dot gnu.org
2015-02-13  4:58 ` rth at gcc dot gnu.org
2015-02-16 16:18 ` pthaugen at gcc dot gnu.org
2015-02-16 18:50 ` pthaugen at gcc dot gnu.org
2007-06-05  9:38 [Bug target/32219] New: " pluto at agmk dot net
2007-06-05 12:53 ` [Bug target/32219] " pluto at agmk dot net
2007-06-05 13:30 ` pinskia at gcc dot gnu dot org
2007-06-05 14:10 ` pluto at agmk dot net
2007-06-05 14:13 ` pluto at agmk dot net
2008-02-23 21:10 ` pluto at agmk dot net
2008-02-23 23:12 ` hjl dot tools at gmail dot com
2008-02-25 22:17 ` hjl dot tools at gmail dot com
2009-12-29 23:20 ` castet dot matthieu at free dot fr
2010-03-08 19:28 ` aldot at gcc dot gnu dot org
2010-03-09 12:39 ` rguenth at gcc dot gnu dot org
2010-03-16 13:35 ` aldot at gcc dot gnu dot org
2010-06-30 11:53 ` ncopa at alpinelinux 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).