18h
comment multiply defined symbols using static lib
@harper You are wrong: the order of files on the link line is just as relevant for Microsoft Link as it is for all other linkers including GNU ld. msdn.microsoft.com/en-us/library/hcce369f.aspx
19h
comment multiply defined symbols using static lib
A good explanation of how the linker works: eli.thegreenplace.net/2013/07/09/…
19h
comment multiply defined symbols using static lib
@vlad_tepesch "I allways thought the linking would be done on a symbol level rather than on a file level." -- you always thought incorrectly. "someome said that this would work on gcc" -- it would not, unless one uses -ffunction-sections command line argument, which makes it behave on function level rather than file level (this is not the default behavior, and it is not without cost).
19h
answered How to pass specs to gcc linker?
19h
revised Slideshow Won't change source
edited tags
19h
revised Cannot link to fb profile page when fb app is installed
edited tags
Dec
19
answered Analysis Of Core Dump Generated By Release Version App
Dec
18
answered How could I discriminate the functions which have the same name when using gdb?
Dec
18
awarded dlopen
Dec
17
awarded Enlightened
Dec
17
awarded Nice Answer
Dec
17
answered printing c++ classes in gdb without python
Dec
16
revised remote linking image and text
edited tags
Dec
15
revised Changing the dynamic library path
Mac OS doesn't use ELF files.
Dec
14
answered /usr/bin/ld: cannot find happens only when the library has few versions (i think)
Dec
14
comment How to Fix x86_64 Memory Offsets (GAS)?
@belph Your question appears to be: "I am calculating offset incorrectly, where is my mistake?" -- except you didn't provide any details about how you are calculating the offset. You may want to edit your question.
Dec
14
comment How to Fix x86_64 Memory Offsets (GAS)?
@Morpfh What doesn't look quite right? Looks correct to me: CALL is relative to the address of next instruction, which is at 0x7ffff7ff7005+ 6 == 0x7ffff7ff700b, and 0x7ffff7ff700b+0x08409720 == 0x80000040072b.
Dec
14
answered How to set a breakpoint in function which can be detected by gdb
Dec
12
awarded Announcer
Dec
11
awarded Good Answer
1 2 3 4 5