nasm/output
Marat Dukhan 29227125f0 coff: Better handling of section redefinition
Currently, if we try to define an already defined section and specify
section flags, NASM will output "warning: section attributes ignored
on redeclaration of section %SECTIONNAME%".

The patch modifies this behaviour:

1. If the previous section definition differs only in alignment flags,
   no warning is generated

2. If the new definition implies larger alignment, it overrides the
   previous section alignment

3. If the new definition specifies any section alignment, the content of
   the section will be aligned on the new boundary (i.e. the effect is the
   same as if there was ALIGN macro)

Signed-off-by: Marat Dukhan <maratek@gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2013-10-03 16:55:50 +04:00
..
dwarf.h output/dwarf.h: update dwarf constants 2009-08-10 16:00:43 -07:00
elf.h Elf: Use SHA_ANY constant instead of open coded number 2010-04-11 12:58:05 +04:00
nulldbg.c output: change null_debug_routine to null_debug_directive 2009-08-09 13:04:13 -07:00
nullout.c Rename SEGALIGN to SECTALIGN 2010-04-21 18:09:54 +04:00
outaout.c Rename SEGALIGN to SECTALIGN 2010-04-21 18:09:54 +04:00
outaout.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outas86.c Rename SEGALIGN to SECTALIGN 2010-04-21 18:09:54 +04:00
outas86.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outbin.c output/outbin.c: initialize section align/start attributes upon creation 2011-02-28 09:49:04 +03:00
outbin.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outcoff.c coff: Better handling of section redefinition 2013-10-03 16:55:50 +04:00
outcoff.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outdbg.c Fixed wrong format specifier in format string 2013-04-01 02:11:51 +04:00
outelf32.c Fix warnings generated by clang 3.0 2013-02-25 01:08:00 +04:00
outelf64.c Fix warnings generated by clang 3.0 2013-02-25 01:08:00 +04:00
outelf.c backend: add support for x32 ELF 2012-02-03 12:08:59 -08:00
outelf.h elf: Move stabs symbol table format into outelf.h 2010-07-30 00:51:44 +04:00
outelf.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outelfx32.c Fix warnings generated by clang 3.0 2013-02-25 01:08:00 +04:00
outform.c ofmt: Alias shortname must be used for __OUTPUT_FORMAT__ macro 2011-04-06 18:32:15 +04:00
outform.h backend: add support for x32 ELF 2012-02-03 12:08:59 -08:00
outieee.c outieee: Reorder ieeeSection members to eliminate holes 2011-08-28 17:00:04 +04:00
outlib.c Add support for one-byte relocations 2010-05-06 15:33:24 -07:00
outlib.h Rename SEGALIGN to SECTALIGN 2010-04-21 18:09:54 +04:00
outmac32.c Rename filenames to 8.3 format 2010-06-15 10:47:16 -07:00
outmac64.c BR3392232: Fix relocations in MachO64 2012-11-28 20:05:20 +04:00
outmacho.mac macho64: Manually merge macho64 branch with master branch. 2009-07-08 23:04:52 -05:00
outobj.c outobj: Reorder Segment members to eliminate holes 2011-08-28 17:03:21 +04:00
outobj.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outrdf2.c Rename SEGALIGN to SECTALIGN 2010-04-21 18:09:54 +04:00
outrdf2.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outrdf.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
pecoff.h coff: Handle massive relocations 2010-11-20 14:18:23 +03:00
stabs.h Add common STABs definition into output/stabs.h 2010-01-03 15:04:31 +03:00