This is the mail archive of the
mailing list for the binutils project.
Re: .section directive documentation out of date?
- From: Senthil Kumar Selvaraj <senthil_kumar dot selvaraj at atmel dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Senthil Kumar Selvaraj <senthil_kumar dot selvaraj at atmel dot com>, Binutils <binutils at sourceware dot org>
- Date: Tue, 29 Mar 2016 16:02:28 +0530
- Subject: Re: .section directive documentation out of date?
- Authentication-results: sourceware.org; auth=none
- References: <87lh59y8vi dot fsf at atmel dot com> <56F3C3A2 dot 4090906 at redhat dot com>
Nick Clifton writes:
> Hi Senthil,
>> https://sourceware.org/binutils/docs/as/Section.html says that for
>> unrecognized section names, the assembler's default behavior is to
>> make the section loaded and writable. However, that doesn't seem to
>> be the case - for e.g.
>> $ cat test.s
>> .section .fill,"",@progbits
>> .byte 0xFF
>> $ as test.s -o test.o
>> $ objdump -h test.o
>> test.o: file format elf64-x86-64
> That part of the description of the .section pseudo-op is for *COFF* based targets
> not ELF based ones. The elf64-x86-64 target is ELF based, and so this part of the
> description does not apply.
Right you are - embarassing mistake, sorry for the noise.