Bartleby 0.1.0
A symbol renaming toolkit
Loading...
Searching...
No Matches
Bartleby Command Guide

Synopsis

bartleby [options] <input files…> -o output

Description

bartleby is a tool to manipulate symbols across a set of objects or static libraries. In basic usage, it gathers and merges a set of objects or static libraries into a single archive (.a).

Names of symbols can be prefixed according to their definedness across the whole set of input files. Each symbol that is defined at least within one input file from the set will get prefixed. A symbol that is marked as undefined in every input file won't get prefixed.

If the input file is an archive (i.e. a static library), its members are extracted and analyzed.

The output file is an archive (i.e. a static library). Names of members are set according to their provenance. If the member comes from an archive, its name is preserved. If the member comes from a single .o file, its name is the index of the file in the set.

Warning
bartleby is still under developement. Some scenarios may lead to unexpected behavior.

Options

Options
Argument Description
<input files> Input files. At least one input file is required. It can be an object file or an archive (i.e. a static library).
-o Output file. Required.
–prefix prefix Prefix to use for defined symbols. Optional

Exit status

bartleby exits with a non-zero exit code if there is an error. Otherwise, 0 is returned.