This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .section directive documentation out of date?


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.

Regards
Senthil


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]