Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/pkg_elf.c  ·  View all commits
200 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
elf: really analyse the content of an .a
Baptiste Daroussin
1 month ago 637c144
P
pkg: avoid a bunch of warnings
Pierre Pronchery
2 months ago 3b9bfd7
B
configure: stop testing link.h
Baptiste Daroussin
3 months ago db2e1ae
B
configure: use C23 to check for elf headers
Baptiste Daroussin
3 months ago 08c85fc
B
C23: first round at using __has_include
Baptiste Daroussin
3 months ago 0f84b83
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 89d30c6
B
abi: accept symlinks in valid path to be analysed
Baptiste Daroussin
1 year ago 6a314f1
I
libpkg: add SHLIB_PROVIDE_PATHS_* options
Isaac Freund
1 year ago a35c0a3
I
libpkg: only filter provided shlibs without lib prefix in analyze_elf()
Isaac Freund
1 year ago dfee49c
B
shlibs: only requires things which starts with "lib"
Baptiste Daroussin
1 year ago 00658e1
B
elf: prevent absolute path for DT_NEEDED libs
Baptiste Daroussin
1 year ago 7a0cf34
I
libpkg: Fall back to ELF header for shlib OS
Isaac Freund
1 year ago 400f7b9
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 97b10c5
B
elf: when parsing ABI's do not analyse NULL notes
Baptiste Daroussin
1 year ago 67fa30b
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago bf1eb68
I
libpkg: fall back to Linux for ELF shlib parsing
Isaac Freund
1 year ago aaf7945
I
libpkg: track lib32 and Linuxulator shlibs
Isaac Freund
1 year ago 3882f0f
I
libpkg: extract ELF abi parsing into a function
Isaac Freund
1 year ago 92695ba
I
libpkg: clean up variable scoping in analyse_elf()
Isaac Freund
1 year ago 3d9c52c
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 25ee7d0
I
libpkg: fix a few tests for Debian CI
Isaac Freund
1 year ago f88eb14
I
libpkg: make shlib handling portable
Isaac Freund
1 year ago 6462d8a
B
ABI: keep FreeBSD's specifics for old arm binaries really specific
Baptiste Daroussin
1 year ago 034d21d
I
libpkg: rework internal ABI handling, fix bugs
Isaac Freund
1 year ago 6c740ac
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c3b674e
I
libpkg: fix regressions in ELF arch parsing
Isaac Freund
1 year ago 76df8dc
S
Merge remote-tracking branch 'freebsd/main'
Shawn Webb
1 year ago 84c2214
B
ABI: fix segfault in tests
Baptiste Daroussin
1 year ago 0ded12c
B
ABI: get rid of altabi
Baptiste Daroussin
1 year ago c2fe22b
B
elf: add unit test for pkg_analyse_elf + initialization fixes
Baptiste Daroussin
1 year ago 7fb71e9
B
linux: change ABI version to use only major.minor
Baptiste Daroussin
1 year ago f3678e4
B
elf: make os specific choices dynamic
Baptiste Daroussin
1 year ago fa0f9ff
B
osversion: set the string value when actually determining it.
Baptiste Daroussin
1 year ago a4e7e54
B
elf/macho: use struct os_info
Baptiste Daroussin
1 year ago da2358f
K
Introduce pkg_abi_macho and make ABI_FILE work for Darwin.
Keve
1 year ago f5373fd
K
Split pkg_elf into pkg_abi (generic part) and pkg_elf (ELF specific part)
Keve
1 year ago 6f2fbec
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c62eec6
I
libpkg: fix shlib_valid_abi()
Isaac Freund
1 year ago 5618311
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
1 year ago 33f4711
B
cocci: fix NELEM vs nitems mix
Baptiste Daroussin
1 year ago bf078b6
B
STR*EQ: use macros where possible
Baptiste Daroussin
1 year ago 053f4a2
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago fd4c88b
r
libpkg/pkg_elf.c: use memset instead of bzero
rilysh
2 years ago fdf930f
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 76bfe81
r
libpkg/pkg_elf.c: avoid calling strlen() function to re-calculate the length
rilysh
2 years ago 0fb4aad
B
Revert "cleanup: replace memset with some inline declaration"
Baptiste Daroussin
3 years ago 991ca6b
B
cleanup: replace memset with some inline declaration
Baptiste Daroussin
3 years ago 8cfcfbc
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
API: convert all abused hash table into stringlist
Baptiste Daroussin
4 years ago 9b49b83
B
pkg_elf: fix segfault after conversion to pkghash
Baptiste Daroussin
4 years ago 6c39fea
B
quality: plug plenty of memory leaks
Baptiste Daroussin
4 years ago ff0be3e
B
convert from khash to pkghash
Baptiste Daroussin
4 years ago 438bcc6
B
arch detection: .h files are not arch specific
Baptiste Daroussin
4 years ago fa49acc
S
Merge branch 'upstream-master'
Shawn Webb
4 years ago 9b9eef5
A
Fix memory leak of oi.arch and oi.name
Alex Richardson
5 years ago 48b8fce
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
B
Get rid of the dirname and basename which implement differs depending on OSes
Baptiste Daroussin
5 years ago 3c5dde3
t
downgrade error to warning
tigergao99
5 years ago 9f95fe9
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
5 years ago d871ad5
B
Add powerpc64le arch.
Brandon Bergren
5 years ago 84577be
M
Add RISC-V ABI aliases
Mitchell Horne
5 years ago 49d340e
B
Fix computing FreeBSD minor version
Baptiste Daroussin
6 years ago 78af05f
B
Be conservative on ABI checking just before a release
Baptiste Daroussin
6 years ago 8ca261b
B
Determine ABI dynamically per OS instead of at compile time
Baptiste Daroussin
6 years ago 559302c
K
libpkg: fix ABI on FreeBSD
Kyle Evans
6 years ago f2baea0
B
Add more variables to the list of expandable variables
Baptiste Daroussin
6 years ago d313276
K
pkg_elf: try $rootdir/ABI_FILE and use it if it exists
Kyle Evans
6 years ago 0eb50df
R
pkg_elf: add Elf_Note type
Ralf Hubert
6 years ago f993510
B
Fix ABI genaration on DragonFly
Baptiste Daroussin
6 years ago 09d7d32
B
Fix ABI detection on fedora
Baptiste Daroussin
7 years ago 8ac30fb
B
Use in priority /usr/bin/uname to determine the ABI
Baptiste Daroussin
7 years ago d8bbf98
B
Fix -Wformat-truncation warnings
Baptiste Daroussin
7 years ago 18cf338
B
Merge branch 'autosetup'
Baptiste Daroussin
7 years ago b9c18cf
B
Mark some unused parameter as such
Baptiste Daroussin
8 years ago 2931715
l
avoid accessing memory outside bounds of array
loader
8 years ago 7dc4b7c
B
Add a integer to store osversion
Baptiste Daroussin
8 years ago 1bbe636
B
Fix indentation
Baptiste Daroussin
8 years ago 6687b1c
E
Accept DT_SONAME anywhere in .dynamic
Ed Maste
8 years ago bd1f05d
S
floating point exception when packaging weird elf files
Steve Wills
8 years ago 42ff428
S
recognize armv7
Steve Wills
8 years ago 5e0989c
j
Fix ELF note parsing and recognize NT_GNU_ABI_TAG
jrmarino
8 years ago 4e0b7df
F
pkg_elf.c: Only FreeBSD uses FreeBSD binaries
François Tigeot
8 years ago 163d922
V
Merge branch 'master' of github.com:freebsd/pkg
Vsevolod Stakhov
9 years ago d7f6ae8
B
Move the globals under a ctx object to prepare for newer api
Baptiste Daroussin
9 years ago 7ea4379
B
Merge pull request #1483 from jrmarino/master
Baptiste Daroussin
9 years ago 326767f
j
Fix NetBSD ABI and suppress major version change warning
jrmarino
9 years ago e6a7251
B
Protect the elf analysis against libs when SONAME is empty
Baptiste Daroussin
9 years ago a3a2a28
B
Stop relying on the elf notes to find if we can consider the shared library.
Baptiste Daroussin
9 years ago 59f5902
B
Add support hardfloat detection for arm
Baptiste Daroussin
10 years ago fdd780b
B
the elf toolchain in freebsd base used to put the wrong osabi info into the elf header. Workaround this to try to still discover correctly the ABI
Baptiste Daroussin
10 years ago 06512b7
B
In case of ALLOw_BASE_SHLIB append the directories in the staging area corresponding to the base system library directories when looking up for required libs
Baptiste Daroussin
10 years ago 74172be
B
Add a preliminaty mechanism to allow at package creation to accept base shlibs
Baptiste Daroussin
10 years ago 6e6d708
B
Add magic dependencies to jpeg->jpeg-turbo
Baptiste Daroussin
10 years ago 7e448f3
B
Convert *provides/*requires to khash
Baptiste Daroussin
10 years ago f4dcde2
B
Remove from from shlib_required files not provided (because without a SONAME) but listed in files
Baptiste Daroussin
10 years ago 3945b38
B
Early quit if testing elf analysis if not in a analysable format
Baptiste Daroussin
11 years ago 7d03438
B
analyze_elf does not need a callback anymore
Baptiste Daroussin
11 years ago b625766
B
Do not expose shlibs without SONAME as provided libs
Baptiste Daroussin
11 years ago f0a92c4
B
Revert "Fixing the failure to report shlib-to-shlib missing dependencies for 'pkg check -B'"
Baptiste Daroussin
11 years ago d76c4fe
B
Revert "Fix blindly applied patch"
Baptiste Daroussin
11 years ago ac41f9b
B
NetBSD defines roundup2() in <sys/param.h> already; use it.
Baptiste Daroussin
11 years ago 6a57ce8
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago a5266e8
V
Merge branch 'linux-build'
Vsevolod Stakhov
11 years ago dd76225
V
Build libpkg under linux.
Vsevolod Stakhov
11 years ago 5c407dd
B
Merge pull request #1113 from landonf/osx/release/0.1
Baptiste Daroussin
11 years ago 3eafef1
L
Add a stub Mach-O implementation.
Landon Fuller
11 years ago eb48e9d
L
Initial adoption of OS X compatibility shims.
Landon Fuller
11 years ago 753c3af
B
Fix blindly applied patch
Baptiste Daroussin
11 years ago c404e4d
Y
Fixing the failure to report shlib-to-shlib missing dependencies for 'pkg check -B'
Yuri
11 years ago e897c86
B
Dragonfly want to preserve the old ABI style
Baptiste Daroussin
11 years ago bf4a29d
B
Cache developer_mode
Baptiste Daroussin
11 years ago f9dfaa7
B
Remove useless use of sbuf Remove useless accessor
Baptiste Daroussin
11 years ago 093841f
B
Merge pull request #1034 from zxombie/master
Baptiste Daroussin
11 years ago 0f7b719
B
Finish converting struct pkg into a proper structure
Baptiste Daroussin
11 years ago eab4f94
B
Make struct pkg a proper structure
Baptiste Daroussin
11 years ago 99c2768
B
Don't know how and why c was looked for as a wildcard...
Baptiste Daroussin
11 years ago 8df0203
B
Fix conversion of abi to arch
Baptiste Daroussin
11 years ago c2cea0b
B
Fix recopy in case the abi is not yet on new format
Baptiste Daroussin
11 years ago 5fa8025
B
in manifest add both arch (ALTABI) and abi (ABI) for compat with ancient version
Baptiste Daroussin
11 years ago 860ca23
B
Add a function to convert the new ABI to legacy version
Baptiste Daroussin
11 years ago 49e0d8c
B
pkg_file is only used internally no need for accessors for other cases pkg_printf is enough
Baptiste Daroussin
11 years ago 7e21f29
A
Round the note size up correctly.
Andrew Turner
11 years ago a6eafc2
B
Use MACHINE_ARCH to define abi
Baptiste Daroussin
11 years ago 9946e92
B
Add support for the annotation no_provide_shlib
Baptiste Daroussin
11 years ago 9bf8d34
B
I should probably work my math
Baptiste Daroussin
11 years ago 6da09b7
B
Missing shlib: Make it clear it is a required library
Bryan Drewery
11 years ago 58a1891
B
When analysing ELF files with DEVELOPER_MODE, don't bail on first error
Bryan Drewery
11 years ago eb4f6d3
B
Get rid of pkg_register_shlibs() and use pkg_analyse_files() in pkg create.
Bryan Drewery
11 years ago bfe76d6
B
pkg {register, check -B}: Fix registering provided shlibs as required
Bryan Drewery
11 years ago ca3dd25
V
Merge branch 'master' into imax-rework
Vsevolod Stakhov
11 years ago 810a097
B
When filtering out shlib archs, compare wordsize first and then ABI arch string.
Bryan Drewery
11 years ago 03201e6
V
Merge pull request #922 from vstakhov/shlibabi
Vsevolod Stakhov
11 years ago 88de656
V
Check shlib arch prior testing it.
Vsevolod Stakhov
11 years ago 99d54e3
V
Add function to compare ABI.
Vsevolod Stakhov
11 years ago 2d1f272
V
Add utility to convert string to elf constant.
Vsevolod Stakhov
11 years ago e4846b0
B
Ahem
Baptiste Daroussin
11 years ago f2e3a11
B
Dragonfly uses our bundled libelf and lint.h conflicts with it
Baptiste Daroussin
11 years ago b8b603a
B
Attempt to fix build on dragonfly
Baptiste Daroussin
11 years ago dee9d7d
V
Some tunes for portable compiling.
Vsevolod Stakhov
11 years ago b207305
V
Some more steps to portability.
Vsevolod Stakhov
11 years ago 7e68f5e
B
Remove AUTODEPS it is not needed anymore with the new solver
Baptiste Daroussin
11 years ago 792a178
V
Merge branch 'shlibs-rework'
Vsevolod Stakhov
12 years ago 7655e49
V
Do not require libraries that are provided.
Vsevolod Stakhov
12 years ago c0e2f8b
V
Handle shlibs without SONAME.
Vsevolod Stakhov
12 years ago c1298fe
V
If a library has SONAME use it for provides.
Vsevolod Stakhov
12 years ago c986a3c
V
Check note type for brand.
Vsevolod Stakhov
12 years ago 28ce80a
B
Allow to specify which file should be used to read the ABI
Baptiste Daroussin
12 years ago b48249d
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago 859bbf1
B
Fix typo
Baptiste Daroussin
12 years ago 9a848b0
B
Propagate usage of ucl
Baptiste Daroussin
12 years ago 99f9cd1
B
Autotoolizing
Baptiste Daroussin
12 years ago c5d6dde
M
Merge branch 'master' into coctic-master
Matthew Seaman
12 years ago 5722690
B
Fix duplicate dependency warnings with autodeps
Bryan Drewery
12 years ago a63fd3f
B
Do not self register as a dependency
Baptiste Daroussin
12 years ago 18b7716
B
Merge branch 'master' into fix-autoremove-completion
Brad Davis
12 years ago 5b00ee1
V
Merge branch 'master' into gsoc
Vsevolod Stakhov
12 years ago 8d30157
M
Where we use a fixed size char array as a buffer or as a member of a structure, use the sizeof() operator later in the same scope when we need to know the length of the array.
Matthew Seaman
12 years ago 2f3cf0c
B
Fix pkg register complaining about shared libraries not found
Baptiste Daroussin
12 years ago afe4ab3
B
Fix analyzing elf from a stage directory
Baptiste Daroussin
12 years ago b9882e4
B
Merge pull request #581 from zxombie/master
Baptiste Daroussin
12 years ago 53a0267
B
Fix crash analyzing linux shlibs
Bryan Drewery
12 years ago fa1fc23
A
Add support to detect arm vs armv6
Andrew Turner
12 years ago 2dd5c18
B
Only add missing deps if the dependency is not already listed
Baptiste Daroussin
12 years ago cecd01d
B
Merge pull request #535 from zxombie/master
Baptiste Daroussin
12 years ago 075be36
A
Fix ABI detection on ARM
Andrew Turner
12 years ago 7ef0631
B
Stop warning about the library name format this will be allowed very soon in the ports tree
Baptiste Daroussin
12 years ago c1fc835
B
Convert the warning from autodeps into a debug message
Baptiste Daroussin
12 years ago bcc13d8
B
Add a new function pkg_dep_lookup to avoid uselessly looping on deps
Baptiste Daroussin
12 years ago 284c496
B
Turn autodeps on by default. This is needed to stop tracking indirect dependencies safely
Baptiste Daroussin
12 years ago 5d83698
M
Grammar fix
Matthew Seaman
12 years ago e7262e0
M
Merge branch 'master' of git://github.com/zxombie/pkg into zxombie-master
Matthew Seaman
12 years ago 0d2e634
A
Only look within the note section for the version note.
Andrew Turner
12 years ago f198386
B
get rid of deprecated pkg_name() and pkg_version()
Baptiste Daroussin
12 years ago 599869d
B
Fix registering shlibs with a stage directory
Baptiste Daroussin
12 years ago b876000
B
Fix misuage of pkg_emit_errorno
Baptiste Daroussin
12 years ago ab199ee
B
Fix crash when installing netbeans
Bryan Drewery
12 years ago af878ce
B
Fix analyse_elf() leaking file descriptors
Bryan Drewery
13 years ago 0461a90
E
Fix build after addition of -Wmissing-variable-declarations to WARNS=6 in HEAD
Ed Schouten
13 years ago 2dd845c
B
Remove the shlib options as the is now always used
Baptiste Daroussin
13 years ago 0e873c6
M
Shared Libraries for internal use by packages don't necessarily have to be called 'libsomething.so.N' -- when searching for shlibs on RPATH or RUNPATH, accept anything ending in .so or .so.N
Matthew Seaman
13 years ago 9388e83
V
Support glob patterns in pkg-which.
Vsevolod Stakhov
13 years ago 1da7bc9
A
Small fixes
Alexandre Perrin
13 years ago efda89f
B
In pkg_suggest_arch(), use pkg_emit_developer_mode() so it is more clear this is a DEVELOPER_MODE notice
Bryan Drewery
13 years ago 3359b5a
M
Avoid trying to close a file descriptor that was never opened
Matthew Seaman
13 years ago e65f729
M
Avoid analysing symbolic links for shared library usage -- previous code would analyse the file the sym-link pointed to.
Matthew Seaman
13 years ago 7afe682
M
Add the machinery to record the shlibs provided by a package
Matthew Seaman
13 years ago 08da5df
M
Update libpkg API to access both shlibs_required and shlibs_provided.
Matthew Seaman
13 years ago 24ad463
J
Fix ABI on dragonfly
John Marino
13 years ago 94c4931
A
Merge remote-tracking branch 'origin/master' into periodic
Alex Kozlov
13 years ago 677d1b3
B
Use _PATH_BSHELL instead of /bin/sh
Bryan Drewery
13 years ago f8ce927
B
Fix uninitialized warnings causing build failure
Bryan Drewery
13 years ago 69e0e11
M
Style: Add dash to first line of copyright header.
Matthew Seaman
13 years ago bfe0183
M
Issue #403: Don't generate an error if we're analysing a shared library (indicated by the presence of a DT_SONAME tag) and not all the NEEDED resolve to files successfully. Shared libraries can legitimately use dynamic link information from the applications that link against them in order to resolve all their dependencies correctly.
Matthew Seaman
13 years ago d174f74
M
Issue #403 -- partial resolution.
Matthew Seaman
13 years ago 05546e1
M
issue #403 -- show the filename being analysed in 'shared library not found' error messages as an aide to debugging.
Matthew Seaman
13 years ago fde0529
J
Fix fragile NT_VERSION detection, this also fixed version detection for abi string on DragonFly
John Marino
13 years ago f40bb9d
B
Use libelf from elftoolchain for the bundle version of libelf (it has the portability bits)
Baptiste Daroussin
13 years ago 7283bfa
M
Issue #382: In DEVELOPER_MODE, warn about ELF objects that link against shlibs that don't follow the correct naming convention.
Matthew Seaman
13 years ago 753024f
M
mis-merge fix
Matthew Seaman
13 years ago dd9f469