This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/14978] Incorrect R_X86_64_GLOB_DAT/R_X86_64_JUMP_SLOT handling


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

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugdal at aerifal dot cx

--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> 2012-12-20 00:06:15 UTC ---
I'm skeptical of this claim. Unless R_X86_64_GLOB_DAT is used ONLY for GOT
entries and not for data-section address constant expressions, addends are
necessary. Consider the sample code:

int x[2], *y = x+1;

Here, there should be a data segment relocation for y pointing to x+1, which
requires an addend. I would check the generated .so file myself but I don't
have a 64-bit system or cross toolchain handy.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]