Re: failure to read huge .text section

2024-07-28 Thread Philip Guenther
I think we’re saying that it’s been 30+ years since .rodata instead of .text has been the section for read-only data and that your software will be *more* portable (particularly looking to the future) if it uses .rodata instead of .text for data it wants to read-and-not-execute. I guess you could

Re: failure to read huge .text section

2024-07-27 Thread Shein Asker
Dear Mr. Claudio, @misc readers, Thank you for your prompt reply. I see, OpenBSD has a restriction that .text segments are executable-only mapped. In porting the software, I would like to make work-around modifications, preferably without modifying the source. Does OpenBSD provide a way to loose

Re: failure to read huge .text section

2024-07-27 Thread Claudio Jeker
On Sat, Jul 27, 2024 at 08:14:42PM +0900, Shein Asker wrote: > Dear @misc readers, > > I have recently started using OpenBSD and have encountered the problem > shown in the subject when porting a software used on Linux to OpenBSD. > The problem is outlined as follows: SEGV occurs when trying to re

failure to read huge .text section

2024-07-27 Thread Shein Asker
Dear @misc readers, I have recently started using OpenBSD and have encountered the problem shown in the subject when porting a software used on Linux to OpenBSD. The problem is outlined as follows: SEGV occurs when trying to read huge size data placed in a .text section that exceeds the `PAGE_SIZE