bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/16317] [strip] strip does not preserve SHF_INFO_LINK flag


From: hjl.tools at gmail dot com
Subject: [Bug binutils/16317] [strip] strip does not preserve SHF_INFO_LINK flag for .rel.plt and erases the padding after .got.plt
Date: Wed, 11 Dec 2013 16:17:42 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16317

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Alexander Ivchenko from comment #0)
> As discussed here: https://sourceware.org/ml/binutils/2013-11/msg00315.html
> 
> The testcase for SHF_INFO_LINK:
> 
> a.c:
> 
> int global_var = 42;
> 
> int function(int i) {
>   return i + global_var;
> }

Wrong test. The correct one is

---
extern int bar (int);

int function(int i) {
  return bar (i);
}
---

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]