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

Revert "make/archive: Use the full path name when matching or storing… #11007

Merged
merged 1 commit into from Oct 27, 2023

Conversation

SPRESENSE
Copy link
Contributor

Summary

Revert #10395 (commit 563125f)

The P option of ar command has the following description.

P   Archives created with full path names are not POSIX compliant

Thus, it cannot extract or strip archive files with path names directly.

$ arm-none-eabi-ar x libm.a
bin//lib_acosf.o: No such file or directory
$ arm-none-eabi-strip --strip-unneeded libm.a
arm-none-eabi-strip: stnJhpyc/bin//lib_acosf.o: No such file or directory

If the P option is not mandatory for NuttX, it should avoid mixing the same filename in one archive file without P option.

Impactc

None

Testing

Build: Pass

@anchao
Copy link
Contributor

anchao commented Oct 24, 2023

There is already the same PR working on this issue, let's wait for this commit to be merged
#10973

@anchao
Copy link
Contributor

anchao commented Oct 24, 2023

Depends on: apache/nuttx-apps#2138

@xuxin930
Copy link
Contributor

need rerun CI when apache/nuttx-apps#2138 was merged

@anchao
Copy link
Contributor

anchao commented Oct 27, 2023

@SPRESENSE Please rebase this PR

@SPRESENSE
Copy link
Contributor Author

rebase done.

@xiaoxiang781216 xiaoxiang781216 merged commit f3fabc5 into apache:master Oct 27, 2023
26 checks passed
tmedicci added a commit to tmedicci/incubator-nuttx that referenced this pull request Nov 6, 2023
After apache#11007 was merged, the
path for some files changed, requiring the linker to be fixed to
make it run from the internal memory once again.
acassis pushed a commit that referenced this pull request Nov 6, 2023
After #11007 was merged, the
path for some files changed, requiring the linker to be fixed to
make it run from the internal memory once again.
@jerpelea jerpelea added this to To-Add in Release Notes - 12.4.0 Dec 27, 2023
@jerpelea jerpelea moved this from To-Add to tool in Release Notes - 12.4.0 Jan 8, 2024
@jerpelea jerpelea moved this from tool to processed in Release Notes - 12.4.0 Jan 8, 2024
freakishness pushed a commit to freakishness/incubator-nuttx that referenced this pull request Feb 18, 2024
After apache#11007 was merged, the
path for some files changed, requiring the linker to be fixed to
make it run from the internal memory once again.
halyssonJr pushed a commit to halyssonJr/nuttx that referenced this pull request Apr 10, 2024
After apache#11007 was merged, the
path for some files changed, requiring the linker to be fixed to
make it run from the internal memory once again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Cannnot strip archives with path names by P option of ar command
6 participants