anjiahao1 opened a new pull request, #22526:
URL: https://github.com/apache/nuttx/pull/22526

   ## Summary
   
   Pass the objcopy rename arguments through a file.
   
   process_one() collects the --rename-section list in a bash array and
   expands it on the objcopy command line.  A library with many allocated
   sections can make that command line exceed the system argument limit,
   and objcopy then fails with E2BIG.  Write the arguments to a temporary
   file and pass it to objcopy with @file, then remove the file.
   
   ## Impact
   
   * Is new feature added? NO - build tool fix.
   * Impact on user: NO
   * Impact on build: NO - the arguments are identical, only the transport
     changes.
   * Impact on hardware: NO
   * Impact on documentation: NO
   * Impact on security: NO
   * Impact on compatibility: NO
   
   ## Testing
   
   Build host: Linux x86_64, GNU binutils 2.42.
   
   ```
   gcc -c c.c -o c.o     # .text/.data/.bss/.rodata
   tools/symbolprefix.sh c.o out_c.o pre_
   ```
   
   The output is byte-identical to the previous implementation: readelf -SW
   and nm outputs compare equal (SECTIONS MATCH / SYMBOLS MATCH).  A static
   library input produces the same member list and the same prefixed
   symbols as before.
   
   ## PR verification
   
   * [x] This PR introduces only one functional change.
   * [x] I have updated all required description fields above.
   * [x] My PR adheres to Contributing Guidelines and Documentation.
   * [ ] My PR is still work in progress (not ready for review).
   * [x] My PR is ready for review and can be safely merged into a codebase.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to