HA: [PATCH] D14449: [ELF2] -omagic implementation

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 11:36:11 PST 2015


>От: George Rimar
>Отправлено: 6 ноября 2015 г. 22:21
>Кому: Davide Italiano; reviews+D14449+public+d5b6896f0026b788 at reviews.llvm.org
>Копия: Rafael Ávila de Espíndola; Rui Ueyama; llvm-commits at lists.llvm.org
>Тема: HA: [PATCH] D14449: [ELF2] -omagic implementation
>
>>От: davide.italiano at gmail.com [davide.italiano at gmail.com] от имени Davide Italiano [davide at freebsd.org]
>>Отправлено: 6 ноября 2015 г. 20:10
>>Кому: George Rimar; reviews+D14449+public+d5b6896f0026b788 at reviews.llvm.org
>>Копия: Rafael Ávila de Espíndola; Rui Ueyama; llvm-commits at lists.llvm.org
>>Тема: Re: [PATCH] D14449: [ELF2] -omagic implementation
>>
>>Is somebody really using this?
>
>Well, it could be used is for -r patch (relocatable output) which status is still unclear. Its description mentions that "As a side effect, in environments that support standard Unix magic numbers, this option also sets the output file’s magic number to "OMAGIC"".

Actually I am not sure that "set magic number to OMAGIC" is equals to applying -omagic here. That needs checking.
But I saw that flag usings during search about it in web, so I think it can be useful for some people.

>Second possible use (I guessing here) is for writing self modifiying apps.


More information about the llvm-commits mailing list