search for: __stdx_used

Displaying 5 results from an estimated 5 matches for "__stdx_used".

Did you mean: __stdin_used
2013 Jan 09
4
[LLVMdev] [lld] ELF weak aliases
...H+s.s.H.CP 0080 4889dfba 01000000 5bffe05b c3 H.......[..[. Contents of section .rodata: 0000 00000000 00000000 Note that __stdout_used is the last symbol in the .rodata section. This means that the reader assigns the data (16 bytes of 0) to __stdout_used. Because dummy_file and the other __stdx_used symbols come before it, they end up in the right place in the final file. This works great until another object file provides a definition of __stdout_used. The weak definition of it gets totally removed, meaning so does the content for the other __stdx_used symbols. I fixed this by adding weak_a...
2013 Jan 09
2
[LLVMdev] [lld] ELF weak aliases
...captured. It's an implicit relationship due to the symbols having the same address. > >> Note that __stdout_used is the last symbol in the .rodata section. >> This means that the reader assigns the data (16 bytes of 0) to >> __stdout_used. Because dummy_file and the other __stdx_used symbols >> come before it, they end up in the right place in the final file. > > Did you change the Reader too ? No. I just made another symbol to steal the actual content. > > The Reader doesnot allocate any space for __stdout_used. The size of the > current symbol = (value...
2013 Jan 09
0
[LLVMdev] [lld] ELF weak aliases
...ationship due to > the symbols having the same address. Got it. > >> >>> Note that __stdout_used is the last symbol in the .rodata section. >>> This means that the reader assigns the data (16 bytes of 0) to >>> __stdout_used. Because dummy_file and the other __stdx_used symbols >>> come before it, they end up in the right place in the final file. >> >> Did you change the Reader too ? > > No. I just made another symbol to steal the actual content. We could change the Reader so that if the symbol is the last symbol in the section and the s...
2013 Jan 09
0
[LLVMdev] [lld] ELF weak aliases
...g ? How is the relationship captured in ELF symbol table, that one symbol is a alias of another symbol ? > Note that __stdout_used is the last symbol in the .rodata section. > This means that the reader assigns the data (16 bytes of 0) to > __stdout_used. Because dummy_file and the other __stdx_used symbols > come before it, they end up in the right place in the final file. Did you change the Reader too ? The Reader doesnot allocate any space for __stdout_used. The size of the current symbol = (value of next symbol - current symbol). In this case its zero. > > This works great unti...
2013 Jan 09
0
[LLVMdev] [lld] ELF weak aliases
...00000 5bffe05b c3 H.......[..[. > Contents of section .rodata: > 0000 00000000 00000000 > > Note that __stdout_used is the last symbol in the .rodata section. > This means that the reader assigns the data (16 bytes of 0) to > __stdout_used. Because dummy_file and the other __stdx_used symbols > come before it, they end up in the right place in the final file. > > This works great until another object file provides a definition of > __stdout_used. The weak definition of it gets totally removed, meaning > so does the content for the other __stdx_used symbols. >...