ffmpeg/libavutil
Timothy Gu dd4d709be7 x86inc: Clear __SECT__
Silences warning(s) like:

    libavcodec/x86/fft.asm:93: warning: section flags ignored on
    section redeclaration

The cause of this warning is that because `struc` and `endstruc`
attempts to revert to the previous section state [1].

The section state is stored in the macro __SECT__, defined by
x86inc.asm to be `.note.GNU-stack ...`, through the `SECTION`
directive [2].

Thus, the `.note.GNU-stack` section is defined twice
(once in x86inc.asm, once during `endstruc`), causing the warning.

That is the first part of the commit: using the primitive `[section]` format
for .note.GNU-stack etc., which does not update `__SECT__` [2].

That fixes only half of the problem. Even without any `SECTION` directives,
`__SECT__` is predefined as `.text`, which conflicting with the later
`SECTION_TEXT` (which expands to `.text align=16`).

[1]: http://www.nasm.us/doc/nasmdoc6.html#section-6.4
[2]: http://www.nasm.us/doc/nasmdoc6.html#section-6.3

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-05-28 11:40:15 +02:00
..
2015-05-28 11:40:15 +02:00
2014-04-07 01:31:02 +02:00
2014-04-07 01:31:02 +02:00
2013-03-09 08:36:40 +01:00
2011-05-21 13:48:10 +02:00
2014-01-14 22:19:38 +01:00
2015-02-21 00:54:40 +01:00
2015-04-19 23:45:35 +01:00
2014-04-06 21:18:49 +02:00
2014-04-17 20:08:19 +02:00
2014-04-17 20:08:19 +02:00
2015-01-29 14:59:57 +00:00
2012-10-21 22:38:21 +02:00
2011-12-11 00:32:25 +01:00
2013-07-06 14:28:06 +02:00
2015-02-14 10:13:49 -08:00
2012-08-15 22:32:06 +03:00
2014-03-18 22:56:07 +01:00
2014-12-18 23:22:59 +01:00
2015-02-08 21:28:31 +01:00
2013-06-29 13:23:57 +02:00
2013-06-29 13:23:57 +02:00
2014-06-23 10:20:57 +02:00
2012-10-25 11:36:57 +02:00
2014-05-19 13:13:10 +02:00
2015-01-05 14:58:20 +01:00
2013-05-15 23:01:21 +02:00
2014-07-06 11:44:01 -07:00
2014-10-24 09:53:41 +03:00
2014-10-24 09:53:41 +03:00
2014-04-22 16:32:35 -04:00
2014-04-07 01:31:36 +02:00
2014-04-07 01:31:36 +02:00