Displaying 5 results from an estimated 5 matches for "myundef".
2013 Aug 28
2
[LLVMdev] [lld] -emit-yaml doesnot contain linker added symbols specified with command line options
...c internal file).
Agree.
> Also for the case of -u, the Driver can make generic UndefinedAtoms.
ELF would want to treat the undefined symbols as a weak undefined
symbols. So the driver cant create undefined atoms.
Below is an example :-
$cat 1.c
int _start() { return 0; }
$gcc -c 1.c
$ld -u myundef 1.o
==> Does not throw any error, the resolver was hinted that /myundef /was
a undefined weak symbol.
> Other options may need platform specific atoms which may be created with the help of static Writer methods.
We wouldnt be able to override the functionality with each flavor, if we
have...
2013 Aug 28
0
[LLVMdev] [lld] -emit-yaml doesnot contain linker added symbols specified with command line options
...the case of -u, the Driver can make generic UndefinedAtoms.
> ELF would want to treat the undefined symbols as a weak undefined symbols. So the driver cant create undefined atoms.
>
> Below is an example :-
>
> $cat 1.c
> int _start() { return 0; }
> $gcc -c 1.c
> $ld -u myundef 1.o
> ==> Does not throw any error, the resolver was hinted that myundef was a undefined weak symbol.
Wow. Reading the gnu ld man page, that is not obvious. How can you make a non-weak undefined on the command line? That is, how can you force and error if something is not defined?
>&g...
2013 Aug 28
1
[LLVMdev] [lld] -emit-yaml doesnot contain linker added symbols specified with command line options
Hi Nick,
On 8/28/2013 6:37 PM, Nick Kledzik wrote
> $cat 1.c
> int _start() { return 0; }
> $gcc -c 1.c
> $ld -u myundef 1.o
> ==> Does not throw any error, the resolver was hinted that myundef was a undefined weak symbol.
> Wow. Reading the gnu ld man page, that is not obvious. How can you make a non-weak undefined on the command line? That is, how can you force and error if something is not defined?
I t...
2013 Aug 28
0
[LLVMdev] [lld] -emit-yaml doesnot contain linker added symbols specified with command line options
On Aug 28, 2013, at 3:14 PM, Shankar Easwaran <shankare at codeaurora.org> wrote:
> Hi Nick,
>
> The problem is when the -emit-yaml option is used, the writer is set to the YAML writer.
Ah!
>
> The YAML writer does not have anything to add here.
>
> The problem can be solved by having the YAML writer append a list of undefined atoms specified by the -u option, but
2013 Aug 28
2
[LLVMdev] [lld] -emit-yaml doesnot contain linker added symbols specified with command line options
Hi Nick,
The problem is when the -emit-yaml option is used, the writer is set to
the YAML writer.
The YAML writer doesnot have anything to add here.
The problem can be solved by having the YAML writer append a list of
undefined atoms specified by the -u option, but the problem I have is
each flavor has extra command line options
for which it wants to create a DefinedAtom/UndefinedAtom. The