Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86_64 with gcc 7.3.0 have 4 LOAD segment #50

Open
useless223 opened this issue Aug 10, 2020 · 2 comments
Open

x86_64 with gcc 7.3.0 have 4 LOAD segment #50

useless223 opened this issue Aug 10, 2020 · 2 comments

Comments

@useless223
Copy link

In elflink.c, the MAX_HTLB_SEGS is 3, but in newer gcc and binutils version has 4 LOAD segment, can we put the limitation up to 4?

@buque
Copy link

buque commented Dec 15, 2020

I think set max segments to 4 is a good idea.

@watologo1
Copy link
Contributor

This issue can be closed:

commit eb5211b
Author: Chunsheng Luo luochunsheng@ustc.edu
Date: Mon Mar 4 19:11:20 2024 +0800

elflink.c: Fix LOAD max segment to adapt x86

The app has four load segments in x86, but the maximum load segment
(MAX_HTLB_SEGS) is set to 3, which causes the warn: "The executable
has too many segments", so now set MAX_HTLB_SEGS to 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants